{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/chronosphere/main/json-schema/chronosphere-datav1-read-metric-metadata-response-schema.json", "title": "datav1ReadMetricMetadataResponse", "description": "ReadMetricMetadataResponse contains the metadata for the requested metric.", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/chronosphere-datav1-api-openapi.yml#/components/schemas/datav1ReadMetricMetadataResponse", "properties": { "metadata": { "allOf": [ { "$ref": "#/$defs/datav1MetricMetadata" } ], "description": "The metadata for the requested metric." } }, "type": "object", "$defs": { "datav1MetricMetadata": { "description": "MetricMetadata contains metadata information about a metric.", "properties": { "description": { "description": "Human-readable description of what the metric measures.", "type": "string" }, "name": { "description": "The name of the metric.", "type": "string" }, "source": { "$ref": "#/$defs/datav1Source" }, "type": { "allOf": [ { "$ref": "#/$defs/datav1MetricType" } ], "description": "The type of the metric (counter, gauge, etc.)." } }, "type": "object" }, "datav1MetricType": { "description": "MetricType defines the canonical metric types supported by the platform.\n\n - CUMULATIVE_COUNTER: A Prom-style cumulative counter, which stores a strictly increasing count\nof distinct events (but may reset to zero). Each datapoint stores the\nrunning total at the given timestamp.\n - GAUGE: A true gauge, which stores an observation of state at a point in time,\nwhere it is impossible to have two different states at a single point in\ntime. Each datapoint stores the value at the given timestamp.\n - DELTA_COUNTER: A delta counter, which stores the same type of data as COUNTER, but where\neach datapoint stores a strictly positive delta increment at the given\ntimestamp.\n - MEASUREMENT: A raw observation with some discrete value, e.g. individual request\nlatency, individual request size, etc. Unlike a counter, each MEASUREMENT\nevent has a discrete value. And unlike a gauge, there can be multiple\nvalues at any point in time.\n - CUMULATIVE_EXPONENTIAL_HISTOGRAM: An exponential histogram, where each datapoint is a structured value (not a\nfloat), which stores compressed buckets of cumulative measurement counts,\nalong with total sum and count.\n - DELTA_EXPONENTIAL_HISTOGRAM: An exponential histogram, where each datapoint is a structured value (not a\nfloat), which stores compressed buckets of measurement count deltas,\nalong with total sum and count.", "enum": [ "CUMULATIVE_COUNTER", "GAUGE", "DELTA_COUNTER", "MEASUREMENT", "CUMULATIVE_EXPONENTIAL_HISTOGRAM", "DELTA_EXPONENTIAL_HISTOGRAM" ], "type": "string" }, "datav1Source": { "description": "Source is the wire format used to ingest the metric (maps to the __metric_source__ synthetic label).\nMetrics predating CanonicalSource tracking will have UNSPECIFIED.", "enum": [ "PROMETHEUS", "STATSD", "OPEN_METRICS", "CARBON", "OPEN_TELEMETRY", "SIGNALFX", "WAVEFRONT", "DOGSTATSD", "CHRONO_GCP", "CLOUDWATCH_METRIC_STREAM", "CHRONO_AZURE", "TAGGED_STATSD", "CHRONO_CLOUDFLARE", "CHRONO_INTEGRATION" ], "type": "string" } } }