Observability
ObservabilityTelemetry
List keys
Run a query
List values
ModelsExpand Collapse
class TelemetryQueryResponse: …Complete results of a query run. The populated fields depend on the requested view type (events, calculations, invocations, traces, or agents).
Complete results of a query run. The populated fields depend on the requested view type (events, calculations, invocations, traces, or agents).
run: RunThe query run metadata including the query definition, execution status, and timeframe.
The query run metadata including the query definition, execution status, and timeframe.
Number of time-series buckets used for the query. Higher values produce more detailed series data.
query: RunQueryA saved query definition with its parameters, metadata, and ownership information.
A saved query definition with its parameters, metadata, and ownership information.
parameters: RunQueryParameters
calculations: Optional[List[RunQueryParametersCalculation]]Create Calculations to compute as part of the query.
Create Calculations to compute as part of the query.
filter_combination: Optional[Literal["and", "or", "AND", "OR"]]Set a Flag to describe how to combine the filters on the query.
Set a Flag to describe how to combine the filters on the query.
filters: Optional[List[RunQueryParametersFilter]]Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
Configure the Filters to apply to the query. Supports nested groups via kind: ‘group’.
class RunQueryParametersFilterWorkersObservabilityFilterLeaf: …A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.
A filter condition applied to query results. Use the keys and values endpoints to discover available fields and their values before constructing filters.
Filter field name. Use verified keys from previous query results or the keys endpoint. Common keys include $metadata.service, $metadata.origin, $metadata.trigger, $metadata.message, and $metadata.error.
operation: Literal["includes", "not_includes", "starts_with", 25 more]Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
Comparison operator. String operators: includes, not_includes, starts_with, regex. Existence: exists, is_null. Set membership: in, not_in (comma-separated values). Numeric: eq, neq, gt, gte, lt, lte.
type: Literal["string", "number", "boolean"]Data type of the filter field. Must match the actual type of the key being filtered.
Data type of the filter field. Must match the actual type of the key being filtered.
Discriminator for leaf filter nodes. Always ‘filter’ when present; may be omitted.
havings: Optional[List[RunQueryParametersHaving]]Configure the Having clauses that filter on calculations in the query result.
Configure the Having clauses that filter on calculations in the query result.
Set a limit on the number of results / records returned by the query
statistics: StatisticsQuery performance statistics from the database. Includes execution time, rows scanned, and bytes read. Does not include network latency.
Query performance statistics from the database. Includes execution time, rows scanned, and bytes read. Does not include network latency.
agents: Optional[List[Agent]]Durable Object agent summaries. Present when the query view is ‘agents’. Each entry represents an agent with its event counts and status.
Durable Object agent summaries. Present when the query view is ‘agents’. Each entry represents an agent with its event counts and status.
calculations: Optional[List[Calculation]]Aggregated calculation results. Present when the query view is ‘calculations’. Contains computed metrics (count, avg, p99, etc.) with optional group-by breakdowns and time-series data.
Aggregated calculation results. Present when the query view is ‘calculations’. Contains computed metrics (count, avg, p99, etc.) with optional group-by breakdowns and time-series data.
compare: Optional[List[Compare]]Comparison calculation results from the previous time period. Present when the compare option is enabled. Same structure as calculations.
Comparison calculation results from the previous time period. Present when the compare option is enabled. Same structure as calculations.
events: Optional[Events]Individual event results. Present when the query view is ‘events’. Contains the matching log lines and their metadata.
Individual event results. Present when the query view is ‘events’. Contains the matching log lines and their metadata.
Total number of events matching the query (may exceed the number returned due to limits).
events: Optional[List[EventsEvent]]List of individual telemetry events matching the query.
List of individual telemetry events matching the query.
metadata: EventsEventMetadataStructured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.
Structured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.
Whether this was a cold start (1) or warm invocation (0).
Templatized version of the error message used for grouping similar errors.
Templatized version of the log message used for grouping similar messages.
Cloudflare request ID that ties all logs from a single invocation together.
source: Union[str, object]Raw log payload. May be a string or a structured object depending on how the log was emitted.
Raw log payload. May be a string or a structured object depending on how the log was emitted.
Cloudflare Containers event information that enriches your logs for identifying and debugging issues.
workers: Optional[EventsEventWorkers]Cloudflare Workers event information that enriches your logs for identifying and debugging issues.
Cloudflare Workers event information that enriches your logs for identifying and debugging issues.
class EventsEventWorkersUnionMember0: …
class EventsEventWorkersUnionMember1: …
fields: Optional[List[EventsField]]List of fields discovered in the matched events. Useful for building dynamic UIs.
List of fields discovered in the matched events. Useful for building dynamic UIs.
invocations: Optional[Dict[str, List[Invocation]]]Events grouped by invocation (request ID). Present when the query view is ‘invocations’. Each key is a request ID mapping to all events from that invocation.
Events grouped by invocation (request ID). Present when the query view is ‘invocations’. Each key is a request ID mapping to all events from that invocation.
metadata: InvocationMetadataStructured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.
Structured metadata extracted from the event. These fields are indexed and available for filtering and aggregation.
Whether this was a cold start (1) or warm invocation (0).
Templatized version of the error message used for grouping similar errors.
Templatized version of the log message used for grouping similar messages.
Cloudflare request ID that ties all logs from a single invocation together.
source: Union[str, object]Raw log payload. May be a string or a structured object depending on how the log was emitted.
Raw log payload. May be a string or a structured object depending on how the log was emitted.
Cloudflare Containers event information that enriches your logs for identifying and debugging issues.
workers: Optional[InvocationWorkers]Cloudflare Workers event information that enriches your logs for identifying and debugging issues.
Cloudflare Workers event information that enriches your logs for identifying and debugging issues.