Skip to main content

spanquery

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

Overview

Namespanquery
TypeResource
Idsumologic.tracing.spanquery

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createSpanQueryinsertregion, data__queryRows, data__timeRangeExecute a span analytics query and get the id to fetch its status and results. Use the [Span Query Status] endpoint to check a query status. When the query has been completed, use the [Span Query Result] endpoint to get the result of the asynchronous query.
cancelSpanQueryexecqueryId, regionCancel a currently processed span search query with the given id.

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
queryIdstringIdentifier of the query to cancel.
regionstringSumoLogic region (enum: [us2, au, ca, de, eu, fed, in, jp], default: us2)

INSERT examples

Execute a span analytics query and get the id to fetch its status and results. Use the [Span Query Status] endpoint to check a query status. When the query has been completed, use the [Span Query Result] endpoint to get the result of the asynchronous query.

INSERT INTO sumologic.tracing.spanquery (
data__queryRows,
data__timeRange,
data__timeZone,
region
)
SELECT
'{{ queryRows }}' /* required */,
'{{ timeRange }}' /* required */,
'{{ timeZone }}',
'{{ region }}'
RETURNING
hasErrors,
queryId,
queryRows,
timeRange
;

Lifecycle Methods

Cancel a currently processed span search query with the given id.

EXEC sumologic.tracing.spanquery.cancelSpanQuery 
@queryId='{{ queryId }}' --required,
@region='{{ region }}' --required
;