Download OpenAPI specification:
This API enables you to run Operational Insights Service requests and set request-level parameters.
Enables you to execute a SQL++ for Operational Insights statement. This method allows you to run queries and modifying statements, and specify query parameters.
An object specifying one or more query parameters.
| statement required | string Specifies at least one valid SQL++ for Operational Insights statement to run. |
| client_context_id | string An identifier passed by the client that is returned verbatim in the query response. Useful for matching a particular query to a specific caller. |
| format | string Default: "JSON" Value: "JSON" Desired format for the query results. Note that the only possible format is |
| pretty | boolean Default: false If |
| query_context | string Default: "default:Default.Default" A scope for the statement. The value of this parameter must start with |
| readonly | boolean Default: false If |
| scan_consistency | string Default: "not_bounded" Enum: "not_bounded" "request_plus" The consistency guarantee constraint for index scanning. If |
| scan_wait | string Default: "" The maximum time to wait for collections to be updated before the query is executed. The format includes an amount and a unit: |
| timeout | string Default: "" Maximum time to spend on the request before timing out. The format includes an amount and a unit: |
| mode | string Default: "immediate" Enum: "immediate" "async" The execution mode of the request. If |
| result-ttl | string Default: "" Maximum time to retain the result of an async request. The format includes an amount and a unit: |
| args | Array of any An array of positional parameter values. |
| plan-format | string Default: "JSON" Enum: "JSON" "STRING" The plan format. |
| logical-plan | boolean Default: false If |
| optimized-logical-plan | boolean Default: true If |
| expression-tree | boolean Default: false If |
| rewritten-expression-tree | boolean Default: false If |
| job | boolean Default: false If |
| max-warnings | integer <int32> Default: 0 An integer specifying the maximum number of warning messages to be included in the query response. |
| multi-statement | boolean Default: false If The statements run in order. If a statement fails, the statements before it keep their responses and the statements after it are not executed. A request with more than 1 statement returns a separate response for each statement in the A request with more than 1 statement cannot run in |
| property name* additional property | any A named parameter value. |
{- "statement": "string",
- "client_context_id": "string",
- "format": "JSON",
- "pretty": false,
- "query_context": "default:Default.Default",
- "readonly": false,
- "scan_consistency": "not_bounded",
- "scan_wait": "",
- "timeout": "",
- "mode": "immediate",
- "result-ttl": "",
- "args": [
- null
], - "property1": null,
- "property2": null,
- "plan-format": "JSON",
- "logical-plan": false,
- "optimized-logical-plan": true,
- "expression-tree": false,
- "rewritten-expression-tree": false,
- "job": false,
- "max-warnings": 0,
- "multi-statement": false
}{- "requestID": "string",
- "handle": "string",
- "clientContextID": "string",
- "signature": { },
- "results": [
- null
], - "status": "success",
- "errors": [
- {
- "code": 0,
- "msg": "string"
}
], - "warnings": [
- {
- "code": 0,
- "msg": "string"
}
], - "metrics": {
- "elapsedTime": "string",
- "compileTime": "string",
- "queueWaitTime": "string",
- "executionTime": "string",
- "resultCount": 0,
- "resultSize": 0,
- "errorCount": 0,
- "warningCount": 0,
- "processedObjects": 0
}, - "plans": {
- "logicalPlan": { },
- "optimizedLogicalPlan": { },
- "rewrittenExpressionTree": "string",
- "expressionTree": "string",
- "job": { }
}, - "statements": [
- {
- "statementId": 0,
- "signature": { },
- "results": [
- null
], - "plans": {
- "logicalPlan": { },
- "optimizedLogicalPlan": { },
- "rewrittenExpressionTree": "string",
- "expressionTree": "string",
- "job": { }
}, - "status": "success",
- "errors": [
- {
- "code": 0,
- "msg": "string"
}
], - "warnings": [
- {
- "code": 0,
- "msg": "string"
}
], - "metrics": { }
}
]
}Enables you to execute a SQL++ for Operational Insights statement. This method only allows you to run queries and specify query parameters. It does not allow you to run modifying statements.
This is intended for situations where use of the POST method is restricted.
required | object (Query Parameters) Specify the parameters in the query URL in URL-encoded format. |
{- "requestID": "string",
- "handle": "string",
- "clientContextID": "string",
- "signature": { },
- "results": [
- null
], - "status": "success",
- "errors": [
- {
- "code": 0,
- "msg": "string"
}
], - "warnings": [
- {
- "code": 0,
- "msg": "string"
}
], - "metrics": {
- "elapsedTime": "string",
- "compileTime": "string",
- "queueWaitTime": "string",
- "executionTime": "string",
- "resultCount": 0,
- "resultSize": 0,
- "errorCount": 0,
- "warningCount": 0,
- "processedObjects": 0
}, - "plans": {
- "logicalPlan": { },
- "optimizedLogicalPlan": { },
- "rewrittenExpressionTree": "string",
- "expressionTree": "string",
- "job": { }
}, - "statements": [
- {
- "statementId": 0,
- "signature": { },
- "results": [
- null
], - "plans": {
- "logicalPlan": { },
- "optimizedLogicalPlan": { },
- "rewrittenExpressionTree": "string",
- "expressionTree": "string",
- "job": { }
}, - "status": "success",
- "errors": [
- {
- "code": 0,
- "msg": "string"
}
], - "warnings": [
- {
- "code": 0,
- "msg": "string"
}
], - "metrics": { }
}
]
}Enables you to get the status of a request that was executed in async mode.
| request_id required | string <UUID> The unique identifier of the request. |
| job_id required | string The identifier of the job associated with the request. |
{- "status": "success",
- "handle": "string",
- "resultCount": 0,
- "partitions": [
- {
- "handle": "string",
- "resultCount": 0
}
], - "resultSetOrdered": true,
- "errors": [
- {
- "code": 0,
- "msg": "string"
}
], - "warnings": [
- {
- "code": 0,
- "msg": "string"
}
], - "metrics": {
- "elapsedTime": "string",
- "compileTime": "string",
- "queueWaitTime": "string",
- "executionTime": "string",
- "resultCount": 0,
- "resultSize": 0,
- "errorCount": 0,
- "warningCount": 0,
- "processedObjects": 0
}, - "createdAt": "2019-08-24T14:15:22Z"
}Enables you to retrieve the result of a request that was executed in async mode.
| request_id required | string <UUID> The unique identifier of the request. |
| job_id required | string The identifier of the job associated with the request. |
{- "results": [
- { }
], - "metrics": {
- "elapsedTime": "string",
- "compileTime": "string",
- "queueWaitTime": "string",
- "executionTime": "string",
- "resultCount": 0,
- "resultSize": 0,
- "errorCount": 0,
- "warningCount": 0,
- "processedObjects": 0
}, - "profile": { },
- "createdAt": "2019-08-24T14:15:22Z"
}Enables you to discard the result of a request that was executed in async mode.
| request_id required | string <UUID> The unique identifier of the request. |
| job_id required | string The identifier of the job associated with the request. |