."/> Skip to content
TestLookupTestLookup
Search Ctrl K

Search TestLookup

Enter a term to search the local static index.

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

    One endpoint sends or returns this schema, on its own or inside another schema.