v1
latestOpenAPI 3.0.02026-08-064311,0881.3 MBmetricsSearchesManagement
Save a metrics search.
Saves a metrics search in the content library. Metrics search consists of one or more queries, a time range, a quantization period and a set of chart properties like line width.
post/v1/metricsSearches
Request body
Example request
{
"title": "Short title",
"description": "Long and detailed description",
"timeRange": {
"type": "BeginBoundedTimeRange",
"from": {
"type": "RelativeTimeRangeBoundary",
"relativeTime": "-15m"
}
},
"logQuery": "my_metric | timeslice 1m | count by _timeslice",
"metricsQueries": [
{
"rowId": "A",
"query": "my_metric | avg"
}
],
"desiredQuantizationInSecs": 60,
"properties": "{ \\\"key\\\": \\\"value\\\" }",
"parentId": "000000000000001A"
}Response
Newly created metrics search.
Example response
{
"title": "Short title",
"description": "Long and detailed description",
"timeRange": {
"type": "BeginBoundedTimeRange",
"from": {
"type": "RelativeTimeRangeBoundary",
"relativeTime": "-15m"
}
},
"logQuery": "my_metric | timeslice 1m | count by _timeslice",
"metricsQueries": [
{
"rowId": "A",
"query": "my_metric | avg"
}
],
"desiredQuantizationInSecs": 60,
"properties": "{ \\\"key\\\": \\\"value\\\" }",
"createdAt": "2018-10-16T09:10:00Z",
"createdBy": "0000000006743FDD",
"modifiedAt": "2018-10-16T09:10:00Z",
"modifiedBy": "0000000006743FE8",
"id": "000000000000001A",
"parentId": "0000000000007D2B"
}