TeamCity REST API Reference 2024.07 Help

Metric

Represents the specific server metric.

Related Help article: Metrics

Properties

Field

Data type

name

string

description

string

prometheusName

string

metricValues

MetricValues

metricTags

MetricTags

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<metric description="string" name="string" prometheusName="string"> <metricValues count="123"> <metricValue>[[[metricValue...|metricvalue.html]]]</metricValue> </metricValues> <metricTags count="123"> <metricTag>[[[metricTag...|metrictag.html]]]</metricTag> </metricTags> </metric>
{ "metricTags" : { "metricTag" : [ { "name" : "name", "value" : "value" } ], "count" : 2 }, "prometheusName" : "prometheusName", "name" : "name", "description" : "description", "metricValues" : { "count" : 8, "metricValue" : [ { "name" : "name", "value" : 7.273019311111276, "tags" : "[[[metricTags...|metrictags.html]]]" } ] } }
Last modified: 04 July 2024