Skip to main content

span_query_field_values

Creates, updates, deletes, gets or lists a span_query_field_values resource.

Overview​

Namespan_query_field_values
TypeResource
Idsumologic.tracing.span_query_field_values

Fields​

The following fields are returned by SELECT queries:

List of available filter values for the given field.

NameDatatypeDescription

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfield, regionquery, limit, tokenGet a list of available values for the given span analytics query filter field. Not all fields support value listing. The response is paginated with a default limit of 10 field values per page.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
fieldstringField identifier.
regionstringSumo Logic deployment (au, ca, ch, de, eu, fed, in, jp, kr, us1, us2). Resolved from the SUMOLOGIC_ENVIRONMENT environment variable when it is set (x-stackQL-envVar, the same variable the Terraform provider reads); otherwise defaults to us2. A WHERE region = '...' value always takes precedence. (enum: [au, ca, ch, de, eu, fed, in, jp, kr, us1, us2], default: us2, x-stackQL-envVar: SUMOLOGIC_ENVIRONMENT)
limitinteger (int32)The maximum number of results to fetch.
querystringSearch filter to apply on the values to be returned. Only values containing the search query term will be returned.
tokenstringContinuation token to get the next page of results. A page object with the next continuation token is returned in the response body. Subsequent GET requests should specify the continuation token to get the next page of results. token is set to null when no more pages are left.

SELECT examples​

Get a list of available values for the given span analytics query filter field. Not all fields support value listing. The response is paginated with a default limit of 10 field values per page.

SELECT
*
FROM sumologic.tracing.span_query_field_values
WHERE field = '{{ field }}' -- required
AND region = '{{ region }}' -- required unless SUMOLOGIC_ENVIRONMENT is set
AND query = '{{ query }}'
AND limit = '{{ limit }}'
AND token = '{{ token }}'
;