common schema
Definitions shared by more than one servtuner schema.
Schema file: schema/json/common.schema.json. Generated from servtuner commit 5b46cdad0e5c.
Definitions
Section titled “Definitions”duration
Section titled “duration”A Go-style duration string such as “500ms”, “120s” or “1m30s”. The one duration representation used in every schema.
Type: string (pattern ^([0-9]+(\.[0-9]+)?(ns\|us\|ms\|s\|m\|h))+$)
transportMode
Section titled “transportMode”How one connection is secured. Never inferred.
Type: "mtls", "platform", "tls"
utcTimestamp
Section titled “utcTimestamp”An RFC 3339 timestamp in UTC: a Z suffix, optional fractional seconds. The one timestamp representation used in every schema. Enforced by the pattern alone, with no format keyword, so every language checks it the same way.
Type: string (pattern ^[0-9]{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[12][0-9]\|3[01])T([01][0-9]\|2[0-3]):[0-5][0-9]:([0-5][0-9]\|60)(\.[0-9]+)?Z$)
scrapeIntervalSource
Section titled “scrapeIntervalSource”Where a scrape interval came from: read from Prometheus (/api/v1/targets) or assumed because Prometheus could not be asked.
Type: "discovered", "assumed"
bootstrapInterval
Section titled “bootstrapInterval”A non-negative statistic with its bootstrap confidence interval, in the unit of the property that holds it. Either value, ci_low and ci_high are all present, or they are all absent and insufficient_samples_reason says why (too few samples for the percentile); never both. ci_low <= value <= ci_high is not expressible here and is a servtuner analyze self-check.
| Field | Type | Required | Description |
|---|---|---|---|
value |
number |
No | ≥ 0 |
ci_low |
number |
No | ≥ 0 |
ci_high |
number |
No | ≥ 0 |
samples |
integer |
Yes | Observations the statistic was computed from. ≥ 0 |
insufficient_samples_reason |
string |
No | Present when value and the bounds are omitted because samples is too small. |
Exactly which fields are allowed together is restricted further by the schema.
metricName
Section titled “metricName”A lowercase series name: letters, digits and underscores. Used for RunSpec extra queries and bundle series files.
Type: string (pattern ^[a-z0-9_]+$)
catalogName
Section titled “catalogName”A Prometheus query catalog; extra is the RunSpec’s extra_queries.
Type: "kubernetes", "bifrost", "vllm", "litellm", "dcgm", "extra"
sloName
Section titled “sloName”The SLO keys of the RunSpec’s slos block.
Type: "ttft_p95", "e2e_p95", "itl_p95", "max_error_rate"