dcloud errors queries get

Read one statement: what sampled requests saw, what the database measured (pg_stat_statements), charts, and the database at one request’s minute

IAM errors:GetEventsRead

A database counts only when the caller has rds:DescribeDBQueryInsights on it. Connections, locks and cache hit are sampled once a minute with the statements; minutes sampled before they were kept have them null.

Synopsis

dcloud errors queries get --fp fp [flags]

Flags

  • --fpRequired

    string

    The statement fingerprint, sqlfp1:<16 hex>, as the Queries tab and the database’s query insights show it

    Constraints: /^sqlfp1:[0-9a-f]{16}$/

  • --projectOptional

    string

    Only this project (its id). Default: every project of the organization whose events you may read; a project you may not read leaves nothing to show (404)

    Constraints: uuid

  • --rangeOptional

    enum

    Window counted back from now: the last 24 hours (default) or 7 days

    One of: 24h, 7d

    Default: "24h"

  • --requestOptional

    string

    A sampled request (its transaction event id) whose minute `minute` describes. Default: the request with the slowest call

    Constraints: /^[0-9a-f]{32}$|^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$/

  • --atOptional

    string

    A minute for `minute` instead of a request’s (ISO 8601), e.g. a db span’s start

    Constraints: datetime

Example

dcloud errors queries get --fp example

Generated from the API description, the same one the API checks requests against and the CLI is built from.