fluxgatedocs
Dashboard ↗GitHub

Data models

The complete schema reference, generated from OpenAPI 3.1.0.

QueryResult

object

metricstringrequired
kindstringoptional
"gauge" "counter" "histogram" "mixed"
aggregationstringrequired
fromstringrequired

The resolved start of the range, so a caller can see what a relative range meant.

Format date-time
tostringrequired
Format date-time
stepstringoptional

The width of each point when the query merged stored windows, including the width step=auto chose. Absent when stored windows were returned as they are. Points are bucket starts.

seriesQuerySeries[]required
Array items · QuerySeriesQuerySeries ↗
Object properties
kindstringrequired
"gauge" "counter" "histogram"
labelsobjectrequired
Additional values · string
pointsobject[]required
Array items · object
Object properties
tstringrequired

The window start.

Format date-time
vnumberrequired
truncatedbooleanoptional

True when a limit cut the response short, so a caller can tell an incomplete answer from an empty one.

warningsstring[]optional

Facts a caller needs that are not errors, such as a percentile requested of a metric that has no histogram.

Array items · string

QuerySeries

object

kindstringrequired
"gauge" "counter" "histogram"
labelsobjectrequired
Additional values · string
pointsobject[]required
Array items · object
Object properties
tstringrequired

The window start.

Format date-time
vnumberrequired

StreamRollup

object

The data of a rollup event on GET /v1/stream: the current totals of one series' window, replacing any earlier event for the same series and window. Not an additive delta.

kindstringrequired
"gauge" "counter" "histogram"
metricstringrequired
labelsobjectrequired
Additional values · string
window_startstringrequired
Format date-time
window_endstringrequired
Format date-time
countintegerrequired
sumnumberrequired
minnumberrequired
maxnumberrequired
lastnumberrequired

The value of the observation with the latest event time.

StreamReset

object

The data of a reset event on GET /v1/stream: the requested position could not be honoured, and the stream continues live from revision. Refetch the displayed range through GET /v1/query.

reasonstringrequired
"stale_cursor" "future_cursor" "foreign_cursor" "lagging"
revisionintegerrequired
Format int64

MetricSummary

object

metricstringoptional
kindstringoptional
series_countintegeroptional

Distinct label combinations seen for this metric.

oldest_windowstringoptional
Format date-time
newest_windowstringoptional
Format date-time

IngestRequest

object

pointsPoint[]required
Min items 1Max items 1000
Array items · PointPoint ↗

Unknown fields are rejected rather than ignored, so a typo such as timestmap is reported immediately instead of silently dropping data.

Object properties
metricstringrequired

Dotted metric name. Must start with a letter or underscore; trailing dots and doubled dots are rejected.

Max length 200Pattern ^[a-zA-Z_][a-zA-Z0-9_.\-]*$
kindstringrequired

gauge moves in any direction, counter is a nonnegative increment (not a cumulative total) and must not be negative, histogram is an observation to be bucketed.

"gauge" "counter" "histogram"
valuenumberrequired

Required, finite, and at most 1e100 in absolute value. Null is rejected. NaN and the infinities are rejected: a single one poisons every aggregate it reaches, with nothing left to identify which point caused it.

Format doubleMinimum -1e+100Maximum 1e+100
timestampstring | nulloptional

RFC 3339. Defaults to the arrival time when omitted or null. May be up to 5 minutes in the future to tolerate client clock drift, and up to 7 days in the past by default. Accepted late observations can correct an older window; window closure is not a finality guarantee.

Format date-time
labelsobject | nulloptional

Dimensions to break the metric down by. The 20-label ceiling is the tightest limit in the API: cardinality is multiplicative, and an unbounded label set is the fastest way to make a time-series store unqueryable. Keys beginning __ are reserved by the platform. Omitted or null means an empty label set. Values are limited to 256 UTF-8 bytes (in addition to the schema character ceiling) and must not contain control characters.

Max properties 20
Additional values · string
Max length 256
Property name constraints
Max length 64Pattern ^[a-zA-Z_][a-zA-Z0-9_]*$

Unknown properties are rejected.

Unknown properties are rejected.

Point

object

Unknown fields are rejected rather than ignored, so a typo such as timestmap is reported immediately instead of silently dropping data.

metricstringrequired

Dotted metric name. Must start with a letter or underscore; trailing dots and doubled dots are rejected.

Max length 200Pattern ^[a-zA-Z_][a-zA-Z0-9_.\-]*$
kindstringrequired

gauge moves in any direction, counter is a nonnegative increment (not a cumulative total) and must not be negative, histogram is an observation to be bucketed.

"gauge" "counter" "histogram"
valuenumberrequired

Required, finite, and at most 1e100 in absolute value. Null is rejected. NaN and the infinities are rejected: a single one poisons every aggregate it reaches, with nothing left to identify which point caused it.

Format doubleMinimum -1e+100Maximum 1e+100
timestampstring | nulloptional

RFC 3339. Defaults to the arrival time when omitted or null. May be up to 5 minutes in the future to tolerate client clock drift, and up to 7 days in the past by default. Accepted late observations can correct an older window; window closure is not a finality guarantee.

Format date-time
labelsobject | nulloptional

Dimensions to break the metric down by. The 20-label ceiling is the tightest limit in the API: cardinality is multiplicative, and an unbounded label set is the fastest way to make a time-series store unqueryable. Keys beginning __ are reserved by the platform. Omitted or null means an empty label set. Values are limited to 256 UTF-8 bytes (in addition to the schema character ceiling) and must not contain control characters.

Max properties 20
Additional values · string
Max length 256
Property name constraints
Max length 64Pattern ^[a-zA-Z_][a-zA-Z0-9_]*$

Unknown properties are rejected.

IngestResponse

object

batch_idstringrequired

Identifies the accepted batch downstream.

acceptedintegerrequired

Points admitted to the pipeline.

rejectedintegerrequired

Points that failed validation. Always exact.

errorsFieldError[]optional

The individual failures, capped at 100 entries so a response cannot dwarf the request that produced it.

Max items 100
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

errors_truncatedbooleanoptional

True when more than 100 field violations occurred. One rejected point can have several violations, so errors length need not equal rejected.

FieldError

object

fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

Problem

object

typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

ProbeStatus

object

statusstringrequired
"ok" "draining" "degraded"
checksobjectoptional

Per-dependency result; details of failures are logged server-side, not exposed in this response.

Additional values · string
"ok" "unavailable"

VersionInfo

object

versionstringoptional
commitstringoptional
build_datestringoptional
go_versionstringoptional
platformstringoptional
Something to improve? Edit this page View source

Search the complete documentation.