Update Derived Metric
Update a specific derived metric definition
id
Example Body:
{ "id": "1459375928549", "name": "Query Name", "createUserId": "user", "query": "aliasMetric(ts(~sample.cpu.loadavg.1m), \"my.new.metric\")", "minutes": 5, "additionalInformation": "Additional Info" }
{
"tagpaths": [
"string"
],
"minutes": 0,
"name": "string",
"id": "string",
"query": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"tags": {
"customerTags": [
"string"
]
},
"status": [
"string"
],
"deleted": false,
"created": 0,
"queryQBEnabled": false,
"queryQBSerialization": "string",
"processRateMinutes": 0,
"createUserId": "string",
"updated": 0,
"updateUserId": "string",
"queryFailing": false,
"lastFailedTime": 0,
"lastErrorMessage": "string",
"additionalInformation": "string",
"metricsUsed": [
"string"
],
"hostsUsed": [
"string"
],
"inTrash": false,
"lastProcessedMillis": 0,
"pointsScannedAtLastQuery": 0,
"includeObsoleteMetrics": false,
"lastQueryTime": 0,
"creatorId": "string",
"updaterId": "string"
}
tagpaths
Number of minutes to query for the derived metric
name
id
A Wavefront query that is evaluated at regular intervals (default 1m).
createdEpochMillis
updatedEpochMillis
Lists the current state of the derived metric. Can be one or more of: INVALID, ACTIVE, TRASH, NO_DATA
deleted
When this derived metric was created, in epoch millis
Whether the query was created using the Query Builder. Default false
The special serialization of the Query Builder that corresponds to the query. Applicable only when queryQBEnabled is true
The interval between executing the query, in minutes. Defaults to 1 minute
createUserId
When the derived metric definition was last updated, in epoch millis
The user that last updated this derived metric definition
Whether there was an exception when the query last ran
The time of the last error encountered when running the query, in epoch millis
The last error encountered when running the query
User-supplied additional explanatory information for the derived metric
Number of metrics checked by the query
Number of hosts checked by the query
inTrash
The last time when the derived metric query was run, in epoch millis
A derived field recording the number of data points scanned when the system last computed the query
Whether to include obsolete metrics in query
Time for the query execute, averaged on hourly basis
creatorId
updaterId
successful operation
{
"status": {
"result": "string",
"message": "string",
"code": 0
},
"response": {
"tagpaths": [
"string"
],
"minutes": 0,
"name": "string",
"id": "string",
"query": "string",
"createdEpochMillis": 0,
"updatedEpochMillis": 0,
"tags": {
"customerTags": [
"string"
]
},
"status": [
"string"
],
"deleted": false,
"created": 0,
"queryQBEnabled": false,
"queryQBSerialization": "string",
"processRateMinutes": 0,
"createUserId": "string",
"updated": 0,
"updateUserId": "string",
"queryFailing": false,
"lastFailedTime": 0,
"lastErrorMessage": "string",
"additionalInformation": "string",
"metricsUsed": [
"string"
],
"hostsUsed": [
"string"
],
"inTrash": false,
"lastProcessedMillis": 0,
"pointsScannedAtLastQuery": 0,
"includeObsoleteMetrics": false,
"lastQueryTime": 0,
"creatorId": "string",
"updaterId": "string"
}
}