Cloudflare - v1.3.0
    Preparing search index...

    Interface AnalyticsSettings

    Analytics settings — the Analytics Engine dataset metrics are written to.

    Bayu Dwiyan Satria

    1.1.0

    1.0.0

    interface AnalyticsSettings {
        binding: string;
        enabled: boolean;
        minRequestStatus: number;
    }

    Hierarchy (View Summary)

    Index
    binding: string

    Name of the binding as declared in wrangler.json.

    enabled: boolean

    Whether metrics are recorded at all.

    Switching this off silences every data point without touching a call site.

    minRequestStatus: number

    Lowest HTTP status worth a request metric.

    Applies to AnalyticsService.request. A domain event is not describing a response, so it is recorded either way.

    Defaults to 500: a data point is a failure unless a Worker says otherwise. Lower it to 400 to add client errors, or to 0 to record everything on a Worker where request rate and latency percentiles are worth the volume — neither is answerable from a dataset holding only failures, because the denominator is no longer in it.