UNPKG

@datadog/datadog-api-client

Version:
114 lines (113 loc) 3.37 kB
/** * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ import { AggregatedResourceTimingBreakdown } from "./AggregatedResourceTimingBreakdown"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; /** * Aggregated performance statistics for a single network resource across sampled view instances. */ export declare class AggregatedResource { /** * Average total duration in milliseconds. */ "avgDurationMs": number; /** * Average start time relative to view start in milliseconds. */ "avgStartTimeMs": number; /** * Cache hit rate as a percentage. */ "cacheHitRatePct": number; /** * Number of requests served from cache. */ "cachedCount": number; /** * Number of requests downloaded from the network. */ "downloadedCount": number; /** * 75th percentile duration across all view names in the application, present when include_global_appearance is true. */ "globalP75DurationMs"?: number; /** * Number of distinct view names in the application that load this resource, present when include_global_appearance is true. */ "globalViewNameCount"?: number; /** * Percentage of distinct view names in the application that load this resource, present when include_global_appearance is true. */ "globalViewNamePct"?: number; /** * HTTP method for the resource request. */ "httpMethod": string | null; /** * Percentage of sampled view instances that loaded this resource. */ "loadFrequencyPct": number; /** * Maximum duration in milliseconds. */ "maxDurationMs": number; /** * Median duration in milliseconds. */ "medianDurationMs": number; /** * Minimum duration in milliseconds. */ "minDurationMs": number; /** * 75th percentile duration in milliseconds. */ "p75DurationMs": number; /** * 95th percentile duration in milliseconds. */ "p95DurationMs": number; /** * Resource type (JS, CSS, image, fetch, XHR, document, and so on). */ "resourceType": string | null; /** * URL path group used to aggregate similar resources. */ "resourceUrlPathGroup": string; /** * Average timing breakdown per network phase for a resource. */ "timingBreakdown": AggregatedResourceTimingBreakdown; /** * Total number of requests for this resource across all sampled views. */ "totalRequests": number; /** * Number of sampled view instances that loaded this resource. */ "viewsWithResource": number; /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with * the 'additionalProperties' keyword in the OAS document. */ "additionalProperties"?: { [key: string]: any; }; /** * @ignore */ "_unparsed"?: boolean; /** * @ignore */ static readonly attributeTypeMap: AttributeTypeMap; /** * @ignore */ static getAttributeTypeMap(): AttributeTypeMap; constructor(); }