Execute HudQL query.
Request:
Only the query parameter is accepted.
Response: The response is a CSV string containing the query result or an error message if the query fails.
Database Schema
Session Context Common columns used by multiple tables. Columns:
session_id(String): Session identifiersession_tags(Map(String, String)): Custom tags attached to the sessionpod_name(String): Pod or runtime instance name
Service Context Common columns used by multiple tables. Columns:
service_name(String): Service nameservice_id(UInt32): Service identifierenvironment_name(String): Environment name such as production or staging
Metric Aggregates Common aggregated metric columns used by function and endpoint metrics tables. Columns:
invocations(UInt64): Number of invocations in the aggregation periodtotal_duration_ms(Float64): Total execution time in millisecondstotal_squared_duration_ms(Float64): Sum of squared durations for variance or standard deviation calculationsduration_buckets(AggregateFunction): Pre-aggregated duration quantiles, usepercentileMS(duration_buckets, percentile)exceptions(Map(String, Float64)): Exception or error counts grouped by type
Table: FunctionMetricsHighResolution Description: Minutes-level function metrics by session. Use for small time windows. Columns:
- Session Context: Shared session columns
- Service Context: Shared service columns
service_runtime(String): Service runtime such as NODEJS, PYTHON, or JAVAtimestamp_end(DateTime): End of the metric periodfunction_id(UInt32): Function identifiercaller_function_id(UInt32): Calling function identifier, or 0 if nonewrapped_endpoint_id(UInt32): Endpoint this function is called within- Metric Aggregates: Shared aggregated metric columns
Table: FunctionMetricsLowResolution Description: Hourly aggregated function metrics across sessions. Use for historical trends. Columns:
hour_end(DateTime): Hour bucket timestampfunction_id(UInt32): Function identifiercaller_function_id(UInt32): Calling function identifierwrapped_endpoint_id(UInt32): Endpoint this function is called within- Service Context: Shared service columns
service_runtime(String): Service runtime such as NODEJS, PYTHON, or JAVA- Metric Aggregates: Shared aggregated metric columns
session_tags(Map(String, String)): Session tags for this aggregation
Table: EndpointMetricsHighResolution Description: Minutes-level endpoint metrics by session for HTTP, Kafka, SQS, GraphQL, and similar endpoint types. Columns:
- Session Context: Shared session columns
- Service Context: Shared service columns
service_runtime(String): Service runtime such as NODEJS, PYTHON, or JAVAtimestamp_end(DateTime): End of the metric periodendpoint_id(UInt32): Endpoint identifierendpoint_type(String): Endpoint type such as HTTP, KAFKA, SQS, GRAPHQL, or ARQmsg_count(UInt64): Message count for queue-based endpointsstatus_codes(Map(String, Float64)): HTTP status code distribution- Metric Aggregates: Shared aggregated metric columns
total_e2e_duration_ms(Float64): Total end-to-end duration for queue endpointstotal_squared_e2e_duration_ms(Float64): Sum of squared end-to-end durationse2e_duration_buckets(AggregateFunction): Pre-aggregated end-to-end duration quantilesfingerprints(Map(String, UInt64)): Error fingerprints with counts
Table: EndpointMetricsLowResolution Description: Hourly aggregated endpoint metrics. Use for historical analysis and capacity planning. Columns:
hour_end(DateTime): Hour bucket timestamp- Service Context: Shared service columns
service_runtime(String): Service runtime such as NODEJS, PYTHON, or JAVAendpoint_id(UInt32): Endpoint identifierendpoint_type(String): Endpoint type such as HTTP, KAFKA, SQS, GRAPHQL, or ARQmsg_count(UInt64): Message countstatus_codes(Map(String, Float64)): HTTP status code distribution- Metric Aggregates: Shared aggregated metric columns
total_e2e_duration_ms(Float64): Total end-to-end duration for queue endpointstotal_squared_e2e_duration_ms(Float64): Sum of squared end-to-end durationse2e_duration_buckets(AggregateFunction): Pre-aggregated end-to-end duration quantilessession_tags(Map(String, String)): Session tags for this aggregationfingerprints(Map(String, UInt64)): Error fingerprints with counts
Table: Functions Description: Function metadata table used to map function IDs to readable names and source locations. Columns:
function_id(UInt32): Function identifierfunction_signature(String): Human-readable function signaturefile(String): Source file pathline_number(UInt32, Nullable): Starting line number in the source fileis_async(Boolean): Whether the function is asyncthird_party(String): Third-party module name, empty if not third partyservices(Array(Tuple(UInt32, String))): Service IDs and service names where the function appears
Table: Endpoints Description: Endpoint metadata table that maps endpoint IDs to routing or queue information. Columns:
endpoint_id(UInt32): Endpoint identifiertype(String): Endpoint type such as HTTP, KAFKA, SQS, GRAPHQL, or ARQendpoint_name(String): Unified endpoint name such as an HTTP path or queue namehttp_methods(Array(String)): HTTP methods for HTTP endpointsservices(Array(Tuple(UInt32, String))): Service IDs and service names where the endpoint appears
Table: FunctionDeployments Description: Function deployment timestamps by service and environment. Columns:
- Service Context: Shared service columns
function_id(UInt64): Function identifierdeployment_timestamp(DateTime): Deployment timestamp
Table: EndpointDeployments Description: Endpoint deployment timestamps by service and environment. Columns:
- Service Context: Shared service columns
endpoint_id(UInt32): Endpoint identifierdeployment_timestamp(DateTime): Deployment timestamp
Table: MachineMetrics Description: Infrastructure metrics per session for CPU, memory, and event loop utilization. Columns:
- Session Context: Shared session columns
service_name(String): Service nameenvironment_name(String): Environment nameservice_runtime(String): Service runtime such as NODEJS, PYTHON, or JAVAtimestamp(DateTime): Metric timestamppid(UInt32): Process IDowner(String): Metric owner such as Process or MainThreaduptime_seconds(Float64): Process uptime in secondsmemory_rss_bytes(UInt64): Resident set sizememory_utilization_percentage(Float64): Memory usage percentageevent_loop_utilization_percentage(Float64): Node.js event loop utilization percentage, or -1 if not applicablecpu_usage_percentage(Float64): CPU usage percentage, or -1 if not applicablecpu_user_time(Float64): CPU user time in secondscpu_system_time(Float64): CPU system time in seconds
Table: Forensics Description: Sampled execution traces for debugging slow requests or errors. Columns:
timestamp_start(DateTime): Request start timeendpoint_id(UInt32): Endpoint that initiated the flow- Service Context: Shared service columns
- Session Context: Shared session columns
trigger_type(String): Trace trigger type such as Error or Durationduration_ms(Float64): Total flow duration in millisecondsfunctions(Array(UInt32)): Function IDs in execution orderexceptions(Array(String)): Exception messagesexceptions_data_enriched(Array(Tuple(String, Array(UInt32)))): Exception messages enriched with function IDsfingerprint(String): Identifier used to group similar errorsfailure_type(String): Failure type for queue endpointscaught(Bool): Whether the exception was caughtforensic_id(String): Unique investigation identifier
