v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
metricsSearchesManagement

Get a metrics search.

Returns a metrics search with the specified identifier.

get/v1/metricsSearches/{id}

Path parameters

idstring required

Identifier of the metrics search.

Response

A metrics search object with metadata.

titlestring required

Item title in the content library.

descriptionstring required

Item description in the content library.

logQuerystring

Log query used to add an overlay to the chart.

desiredQuantizationInSecsinteger

Desired quantization in seconds.

propertiesstring

Chart properties, like line width, color palette, and the fill missing data method. Leave this field empty to use the defaults. This property contains JSON object encoded as a string.

createdAtstring date-time required

Creation timestamp in UTC in RFC3339 format.

createdBystring required

Identifier of the user who created the resource.

modifiedAtstring date-time required

Last modification timestamp in UTC.

modifiedBystring required

Identifier of the user who last modified the resource.

idstring required

Identifier of the metrics search.

parentIdstring

Identifier of the parent element in the content library, such as folder.

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"
}