{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/cloudbees/main/json-schema/cloudbees-api-fmimpressions-get-impressions-response-schema.json", "title": "api.fmimpressions.GetImpressionsResponse", "x-generated": "2026-10-04", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/cloudbees-flag-lifecycle-api-openapi.yml#/components/schemas/api.fmimpressions.GetImpressionsResponse", "required": [ "analytics" ], "type": "object", "properties": { "analytics": { "type": "object", "additionalProperties": { "$ref": "#/$defs/api.fmimpressions.SdkKeyImpressions" }, "description": "Impression data keyed by flag name. Each entry maps to aggregated impression counts organized by time interval." } }, "$defs": { "api.fmimpressions.AllFlagImpressions": { "type": "object", "properties": { "impressions": { "type": "array", "items": { "$ref": "#/$defs/api.fmimpressions.FlagImpression" }, "description": "List of impression records for the flag, each representing one time interval." } } }, "api.fmimpressions.FlagImpression": { "type": "object", "properties": { "from": { "type": "string", "description": "Start timestamp of the impression interval.", "format": "date-time" }, "aggregatedValues": { "type": "array", "items": { "$ref": "#/$defs/api.fmimpressions.ValuesAndCounters" }, "description": "Aggregated impression counts for each flag variation within this interval." } } }, "api.fmimpressions.SdkKeyImpressions": { "required": [ "interval" ], "type": "object", "properties": { "interval": { "type": "object", "additionalProperties": { "$ref": "#/$defs/api.fmimpressions.AllFlagImpressions" }, "description": "Impression data keyed by timestamp interval (hourly or daily durations, depending on the requested mode). Each value contains the aggregated impressions for that interval." } } }, "api.fmimpressions.ValuesAndCounters": { "required": [ "value", "counter" ], "type": "object", "properties": { "value": { "type": "string", "description": "The flag variation value that was served." }, "counter": { "type": "number", "description": "Number of times this variation was served during the interval.", "format": "double" } } } } }