PrometheusMetricTemplateIn
Fields
A template as an ADMIN saves it (IntegrationsConfigUpdate): the placeholder, control characters and the unit are checked per item, so a 422's loc is prometheus_metric_templates.N.<field>.
4 fields
id· required- string
label· required- string
promql· required- string
unit- string
Raw schema (JSON)
{
"additionalProperties": false,
"description": "A template as an ADMIN saves it (IntegrationsConfigUpdate): the placeholder, control characters and\nthe unit are checked per item, so a 422's loc is ``prometheus_metric_templates.N.<field>``.",
"properties": {
"id": {
"pattern": "^[a-z][a-z0-9_]{1,39}$",
"title": "Id",
"type": "string"
},
"label": {
"maxLength": 80,
"minLength": 1,
"title": "Label",
"type": "string"
},
"promql": {
"maxLength": 1000,
"minLength": 1,
"title": "Promql",
"type": "string"
},
"unit": {
"default": "count",
"title": "Unit",
"type": "string"
}
},
"required": [
"id",
"label",
"promql"
],
"title": "PrometheusMetricTemplateIn",
"type": "object"
}Used by endpoints
Section titled “Used by endpoints”One endpoint sends or returns this schema, on its own or inside another schema.
PUT/api/v1/settings/integrations— Update Integrations Config
Used by schemas
Section titled “Used by schemas”More details
Section titled “More details”- Specification: OpenAPI JSON