Metrics Metadata API
API for creating, retrieving, updating, and deleting metric names and MTS metadata.
NOTE:* Although you can't set custom properties or tags for a metric, you can retrieve them for metrics and metric time series (MTS**).
Retrieves dimensions based on a query
Retrieves the dimensions objects for the search criteria you specify
in the query
query parameter.
The query can contain one or more of the following:
- Dimension names
- Dimension names and values
- Custom property names
The API first collects all of the matching results. This is known as the
result set. Depending on the values you specify for offset
and
limit
, the number of metadata objects in the response body can be
smaller than than the result set. For example, if you specify offset=0
(the default) and limit=50
, and the API finds 100 matches, you only
receive the first 50 results.
query Parameters
query | string Search criteria for the dimensions you want to retrieve Use this syntax:
|
orderBy | string Metadata object property on which the API should sort the results. This must be a property of the dimensions metadata object. |
offset | integer <int32> Object in the result set at which the API should start returning results to you. If omitted, the API starts at the first result in the set. |
limit | integer <int32> Number of results to return from the result set |
header Parameters
X-SF-TOKEN required | string Authentication token |
Responses
Response Schema: application/json
count | integer <int64> Number of metadata objects that matched the search criteria. This
isn't the same as |
Array of objects (DimensionMetadata) List of dimension metadata objects, in the form of an array of JSON objects. Each object contains metadata for a dimension that matched the query. |
Response samples
- 200
{- "count": 0,
- "results": [
- {
- "created": 1555065030000,
- "creator": "string",
- "customProperties": { },
- "description": "string",
- "key": "string",
- "lastUpdated": 1555237830000,
- "lastUpdatedBy": "string",
- "tags": [
- "string"
], - "value": "string"
}
]
}
Retrieves metadata for a dimension and value
Retrieves the metadata for the dimension and value specified in the
key
and value
path parameters
path Parameters
key required | string Dimension name |
value required | string Dimension value |
header Parameters
X-SF-TOKEN required | string Authentication token |
Responses
Response Schema: application/json
created | integer <int64> Dimension creation timestamp, in Unix time This property is set by the system, and you can't modify it. |
creator | string SignalFx-assigned ID of the user who "created" the dimension. This can be one of the following:
If the value is "AAAAAAAAAAA", SignalFx created the dimension. |
object <= 50 items Dimension custom properties, in the form of a JSON object containing custom property key-value pairs. Names and values have these requirements: Name:
Value:
| |
description | string <UTF-8> [ 0 .. 1024 ] characters Dimension description, up to 1024 UTF-8 characters |
key | string <= 128 characters Dimension name. It has these requirements:
|
lastUpdated | integer <int64> Last updated timestamp, in Unix time |
lastUpdatedBy | string SignalFx-assigned ID of the user who last updated the dimension by modifying its metadata. If the value is "AAAAAAAAAAA", SignalFx last modified the dimension. |
tags | Array of strings <= 50 items Tags for the dimension, in the form of a JSON array of tag names Each tag is a UTF-8 string, starting with an uppercase or lowercase alphabetic character. The maximum length is expressed in characters; if a string consists solely of single-byte UTF-8 entities, 1024 characters are available. NOTE: You can't have more than 50 tags per MTS, so you can't have more than 50 tags total for all of the dimensions associated with the MTS. |
value | string <= 256 characters Dimension value. It has these requirements:
|
Response samples
- 200
{- "created": 1555065030000,
- "creator": "string",
- "customProperties": { },
- "description": "string",
- "key": "string",
- "lastUpdated": 1555237830000,
- "lastUpdatedBy": "string",
- "tags": [
- "string"
], - "value": "string"
}
Overwrites metadata for the specified dimension
Overwrites metadata for the dimension specified by the name and value in the path parameters.
This method uses overwrite semantics. Properties in the request body
overwrite existing values. If a property exists and you omit it from the
request body, the API sets it to null
.
path Parameters
key required | string Name of the dimension you want to update |
value required | string Value of the dimension you want to update |
header Parameters
X-SF-TOKEN required | string Authentication token |
Request Body schema: application/json
Custom properties or tags (or both) that you want to add or update for the specified dimension key and value
object Custom property updates. Because PUT
| |
description | string <UTF-8> [ 0 .. 1024 ] characters Updated dimension description |
key | string <= 128 characters Dimension name for which you want to update metadata |
tags | Array of strings <= 50 items List of tags you want to add, in the form of
a JSON array. Because PUT |
value | string <= 256 characters Dimension value for which you want to update metadata |
Responses
Response Schema: application/json
created | integer <int64> Creation timestamp, in Unix time This property is set by the system, and you can't modify it. |
creator | string SignalFx-assigned ID of the user who "created" the dimension. This can be one of the following:
If the value is "AAAAAAAAAAA", SignalFx created the dimension. |
object <= 50 items Custom properties for the dimension, in the form of a JSON object containing custom property key-value pairs | |
description | string <UTF-8> [ 0 .. 1024 ] characters Dimension description, up to 1024 UTF-8 characters |
key | string <= 128 characters Name of the updated dimension |
lastUpdated | integer <int64> Last updated timestamp, in Unix time |
lastUpdatedBy | string SignalFx-assigned ID of the user who last updated the metric by modifying its metadata. If the value is "AAAAAAAAAAA", SignalFx last modified the metric. |
tags | Array of strings <= 50 items List of tags for the dimension, in the form of a JSON array of strings |
value | string <= 256 characters Value of the updated dimension |
Request samples
- Payload
{- "customProperties": { },
- "description": "string",
- "key": "string",
- "tags": [
- "string"
], - "value": "string"
}
Response samples
- 200
{- "created": 1557484230100,
- "creator": "string",
- "customProperties": { },
- "description": "string",
- "key": "string",
- "lastUpdated": 1557570630000,
- "lastUpdatedBy": "string",
- "tags": [
- "string"
], - "value": "string"
}
Retrieve metadata for metrics
Retrieves metadata objects for which the metrics name matches the search criteria.
The API first collects all of the matching results. This is known as the
result set. Depending on the values you specify for offset
and
limit
, the number of metadata objects in the response body can be
smaller than than the result set. For example, if you specify offset=0
(the default) and limit=50
, and the API finds 100 matches, you only
receive the first 50 results.
query Parameters
query | string Metric name search string. The string always starts with
|
orderBy | string Result object property on which the API should sort the results. This must be a property of the metrics metadata object. |
offset | integer <int32> Default: 0 Object in the result set at which the API should start returning results to you. If omitted, the API starts at the first result in the set. |
limit | integer <int32> Number of results to return from the set of all metrics that match the query. |
header Parameters
X-SF-TOKEN required | string Authentication token |
Responses
Response Schema: application/json
count | integer <int64> Number of metadata objects that matched the specified metrics name.
This isn't the same as |
Array of objects (MetricsMetadata) List of results, in the form of a JSON array of metadata objects |
Response samples
- 200
{- "count": 0,
- "result": [
- {
- "created": 1556055030000,
- "creator": "string",
- "customProperties": { },
- "description": "string",
- "lastUpdated": 1556141430000,
- "lastUpdatedBy": "string",
- "name": "string",
- "tags": [
- "string"
], - "type": "GAUGE"
}
]
}