v1
latestOpenAPI 3.0.02026-08-064311,0881.3 MBlogSearchesEstimatedUsage
Gets estimated usage details per metering type.
Gets the estimated volume of data, per metering type, that would be scanned for running a given log search for a given timerange.
post/v1/logSearches/estimatedUsageByMeteringType
Request body
Example request
{
"queryString": "error {{sourceCategory}}| count by _sourceCategory",
"timeRange": {
"type": "BeginBoundedTimeRange",
"from": {
"type": "RelativeTimeRangeBoundary",
"relativeTime": "-15m"
}
},
"queryParameters": [
{
"autoComplete": {
"type": "SKIP_AUTOCOMPLETE",
"autoCompleteKey": "Ephemeral-3644138589235809747-1583470806220-parameter",
"lookupMetaData": {
"fileName": "users.csv",
"valueColumn": "user_id",
"labelColumn": "user_name"
}
},
"name": "sourceCategory",
"description": "source category for the string",
"dataType": "STRING",
"value": "apache"
}
],
"intervalTimeType": "messageTime",
"timezone": "America/Los_Angeles",
"emulateSearchContext": {
"roleIds": [
"000000000000000C"
],
"userId": "000000000000019F"
}
}Response
Log search information along with its metering type wise estimated usage details.
Example response
{
"queryString": "error {{sourceCategory}}| count by _sourceCategory",
"timeRange": {
"type": "BeginBoundedTimeRange",
"from": {
"type": "RelativeTimeRangeBoundary",
"relativeTime": "-15m"
}
},
"queryParameters": [
{
"autoComplete": {
"type": "SKIP_AUTOCOMPLETE",
"autoCompleteKey": "Ephemeral-3644138589235809747-1583470806220-parameter",
"lookupMetaData": {
"fileName": "users.csv",
"valueColumn": "user_id",
"labelColumn": "user_name"
}
},
"name": "sourceCategory",
"description": "source category for the string",
"dataType": "STRING",
"value": "apache"
}
],
"intervalTimeType": "messageTime",
"timezone": "America/Los_Angeles",
"emulateSearchContext": {
"roleIds": [
"000000000000000C"
],
"userId": "000000000000019F"
},
"estimatedUsageDetails": [
{
"meteringType": "Continuous",
"dataScannedInBytes": 114086541,
"tier": "Continuous"
}
]
}