Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 60 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5177,6 +5177,12 @@ components:
example: 54.0
format: double
type: number
local_cache_count:
description: Number of requests served from the local browser cache without a network round trip.
example: 20
format: int32
maximum: 2147483647
type: integer
max_duration_ms:
description: Maximum duration in milliseconds.
example: 945.6
Expand All @@ -5192,6 +5198,12 @@ components:
example: 812.7
format: double
type: number
non_blocking_count:
description: Number of requests reported by the browser as non-render-blocking.
example: 23
format: int32
maximum: 2147483647
type: integer
p75_duration_ms:
description: 75th percentile duration in milliseconds.
example: 844.1
Expand All @@ -5202,6 +5214,17 @@ components:
example: 861.8
format: double
type: number
render_blocking_count:
description: Number of requests reported by the browser as render-blocking.
example: 4
format: int32
maximum: 2147483647
type: integer
render_blocking_pct:
description: Percentage of render-blocking requests among those reporting a render-blocking status.
example: 14.8
format: double
type: number
resource_type:
description: Resource type (JS, CSS, image, fetch, XHR, document, and so on).
example: fetch
Expand All @@ -5211,6 +5234,12 @@ components:
description: URL path group used to aggregate similar resources.
example: /api/gallery
type: string
server_validated_cache_count:
description: Number of cached requests revalidated by the server with a 304 response.
example: 7
format: int32
maximum: 2147483647
type: integer
timing_breakdown:
$ref: "#/components/schemas/AggregatedResourceTimingBreakdown"
total_requests:
Expand Down Expand Up @@ -5243,6 +5272,11 @@ components:
- cached_count
- downloaded_count
- cache_hit_rate_pct
- render_blocking_count
- non_blocking_count
- render_blocking_pct
- local_cache_count
- server_validated_cache_count
type: object
AggregatedResourceTimingBreakdown:
description: Average timing breakdown per network phase for a resource.
Expand Down Expand Up @@ -5709,7 +5743,7 @@ components:
example: ccbc53b1-74f2-496b-bdd7-9a8fa7b7376b
type: string
criteria:
$ref: "#/components/schemas/AggregatedWaterfallPerformanceCriteria"
$ref: "#/components/schemas/AggregatedWaterfallResponseAttributesCriteria"
from:
description: Start of the analyzed time range as a Unix timestamp in seconds.
example: 1762437564
Expand Down Expand Up @@ -5754,10 +5788,30 @@ components:
- view_count
- from
- to
- criteria
- sampled_view_ids
- total_cache_hit_rate_pct
- resources
type: object
AggregatedWaterfallResponseAttributesCriteria:
description: Performance criteria used to filter view instances by a metric threshold, or null if no criteria were applied.
nullable: true
properties:
max:
description: Maximum threshold in seconds (inclusive).
example: 5.0
format: double
type: number
metric:
$ref: "#/components/schemas/AggregatedWaterfallPerformanceCriteriaMetric"
min:
description: Minimum threshold in seconds (inclusive).
example: 2.5
format: double
type: number
required:
- metric
type: object
AggregatedWaterfallResponseData:
description: Data envelope for an aggregated waterfall response.
properties:
Expand Down Expand Up @@ -198387,13 +198441,18 @@ paths:
downloaded_count: 0
http_method: GET
load_frequency_pct: 54.0
local_cache_count: 20
max_duration_ms: 945.6
median_duration_ms: 836.2
min_duration_ms: 812.7
non_blocking_count: 23
p75_duration_ms: 844.1
p95_duration_ms: 861.8
render_blocking_count: 4
render_blocking_pct: 14.8
resource_type: fetch
resource_url_path_group: /api/gallery
server_validated_cache_count: 7
timing_breakdown:
avg_connect_ms: 0.0
avg_dns_ms: 0.0
Expand Down
47 changes: 47 additions & 0 deletions src/datadog_api_client/v2/model/aggregated_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ class AggregatedResource(ModelNormal):
"global_view_name_count": {
"inclusive_maximum": 2147483647,
},
"local_cache_count": {
"inclusive_maximum": 2147483647,
},
"non_blocking_count": {
"inclusive_maximum": 2147483647,
},
"render_blocking_count": {
"inclusive_maximum": 2147483647,
},
"server_validated_cache_count": {
"inclusive_maximum": 2147483647,
},
"total_requests": {
"inclusive_maximum": 2147483647,
},
Expand All @@ -52,13 +64,18 @@ def openapi_types(_):
"global_view_name_pct": (float,),
"http_method": (str, none_type),
"load_frequency_pct": (float,),
"local_cache_count": (int,),
"max_duration_ms": (float,),
"median_duration_ms": (float,),
"min_duration_ms": (float,),
"non_blocking_count": (int,),
"p75_duration_ms": (float,),
"p95_duration_ms": (float,),
"render_blocking_count": (int,),
"render_blocking_pct": (float,),
"resource_type": (str, none_type),
"resource_url_path_group": (str,),
"server_validated_cache_count": (int,),
"timing_breakdown": (AggregatedResourceTimingBreakdown,),
"total_requests": (int,),
"views_with_resource": (int,),
Expand All @@ -75,13 +92,18 @@ def openapi_types(_):
"global_view_name_pct": "global_view_name_pct",
"http_method": "http_method",
"load_frequency_pct": "load_frequency_pct",
"local_cache_count": "local_cache_count",
"max_duration_ms": "max_duration_ms",
"median_duration_ms": "median_duration_ms",
"min_duration_ms": "min_duration_ms",
"non_blocking_count": "non_blocking_count",
"p75_duration_ms": "p75_duration_ms",
"p95_duration_ms": "p95_duration_ms",
"render_blocking_count": "render_blocking_count",
"render_blocking_pct": "render_blocking_pct",
"resource_type": "resource_type",
"resource_url_path_group": "resource_url_path_group",
"server_validated_cache_count": "server_validated_cache_count",
"timing_breakdown": "timing_breakdown",
"total_requests": "total_requests",
"views_with_resource": "views_with_resource",
Expand All @@ -96,13 +118,18 @@ def __init__(
downloaded_count: int,
http_method: Union[str, none_type],
load_frequency_pct: float,
local_cache_count: int,
max_duration_ms: float,
median_duration_ms: float,
min_duration_ms: float,
non_blocking_count: int,
p75_duration_ms: float,
p95_duration_ms: float,
render_blocking_count: int,
render_blocking_pct: float,
resource_type: Union[str, none_type],
resource_url_path_group: str,
server_validated_cache_count: int,
timing_breakdown: AggregatedResourceTimingBreakdown,
total_requests: int,
views_with_resource: int,
Expand Down Expand Up @@ -144,6 +171,9 @@ def __init__(
:param load_frequency_pct: Percentage of sampled view instances that loaded this resource.
:type load_frequency_pct: float

:param local_cache_count: Number of requests served from the local browser cache without a network round trip.
:type local_cache_count: int

:param max_duration_ms: Maximum duration in milliseconds.
:type max_duration_ms: float

Expand All @@ -153,18 +183,30 @@ def __init__(
:param min_duration_ms: Minimum duration in milliseconds.
:type min_duration_ms: float

:param non_blocking_count: Number of requests reported by the browser as non-render-blocking.
:type non_blocking_count: int

:param p75_duration_ms: 75th percentile duration in milliseconds.
:type p75_duration_ms: float

:param p95_duration_ms: 95th percentile duration in milliseconds.
:type p95_duration_ms: float

:param render_blocking_count: Number of requests reported by the browser as render-blocking.
:type render_blocking_count: int

:param render_blocking_pct: Percentage of render-blocking requests among those reporting a render-blocking status.
:type render_blocking_pct: float

:param resource_type: Resource type (JS, CSS, image, fetch, XHR, document, and so on).
:type resource_type: str, none_type

:param resource_url_path_group: URL path group used to aggregate similar resources.
:type resource_url_path_group: str

:param server_validated_cache_count: Number of cached requests revalidated by the server with a 304 response.
:type server_validated_cache_count: int

:param timing_breakdown: Average timing breakdown per network phase for a resource.
:type timing_breakdown: AggregatedResourceTimingBreakdown

Expand All @@ -189,13 +231,18 @@ def __init__(
self_.downloaded_count = downloaded_count
self_.http_method = http_method
self_.load_frequency_pct = load_frequency_pct
self_.local_cache_count = local_cache_count
self_.max_duration_ms = max_duration_ms
self_.median_duration_ms = median_duration_ms
self_.min_duration_ms = min_duration_ms
self_.non_blocking_count = non_blocking_count
self_.p75_duration_ms = p75_duration_ms
self_.p95_duration_ms = p95_duration_ms
self_.render_blocking_count = render_blocking_count
self_.render_blocking_pct = render_blocking_pct
self_.resource_type = resource_type
self_.resource_url_path_group = resource_url_path_group
self_.server_validated_cache_count = server_validated_cache_count
self_.timing_breakdown = timing_breakdown
self_.total_requests = total_requests
self_.views_with_resource = views_with_resource
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
none_type,
)


if TYPE_CHECKING:
from datadog_api_client.v2.model.aggregated_waterfall_performance_criteria import (
AggregatedWaterfallPerformanceCriteria,
from datadog_api_client.v2.model.aggregated_waterfall_response_attributes_criteria import (
AggregatedWaterfallResponseAttributesCriteria,
)
from datadog_api_client.v2.model.aggregated_resource import AggregatedResource

Expand All @@ -29,14 +28,14 @@ class AggregatedWaterfallResponseAttributes(ModelNormal):

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.aggregated_waterfall_performance_criteria import (
AggregatedWaterfallPerformanceCriteria,
from datadog_api_client.v2.model.aggregated_waterfall_response_attributes_criteria import (
AggregatedWaterfallResponseAttributesCriteria,
)
from datadog_api_client.v2.model.aggregated_resource import AggregatedResource

return {
"application_id": (str,),
"criteria": (AggregatedWaterfallPerformanceCriteria,),
"criteria": (AggregatedWaterfallResponseAttributesCriteria,),
"_from": (int,),
"resources": ([AggregatedResource],),
"sampled_view_ids": ([str],),
Expand All @@ -61,14 +60,14 @@ def openapi_types(_):
def __init__(
self_,
application_id: str,
criteria: Union[AggregatedWaterfallResponseAttributesCriteria, none_type],
_from: int,
resources: List[AggregatedResource],
sampled_view_ids: List[str],
to: int,
total_cache_hit_rate_pct: float,
view_count: int,
view_name: str,
criteria: Union[AggregatedWaterfallPerformanceCriteria, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -77,8 +76,8 @@ def __init__(
:param application_id: The RUM application ID that was analyzed.
:type application_id: str

:param criteria: Performance criteria to filter view instances by a metric threshold.
:type criteria: AggregatedWaterfallPerformanceCriteria, optional
:param criteria: Performance criteria used to filter view instances by a metric threshold, or null if no criteria were applied.
:type criteria: AggregatedWaterfallResponseAttributesCriteria, none_type

:param _from: Start of the analyzed time range as a Unix timestamp in seconds.
:type _from: int
Expand All @@ -101,11 +100,10 @@ def __init__(
:param view_name: The RUM view name that was analyzed.
:type view_name: str
"""
if criteria is not unset:
kwargs["criteria"] = criteria
super().__init__(kwargs)

self_.application_id = application_id
self_.criteria = criteria
self_._from = _from
self_.resources = resources
self_.sampled_view_ids = sampled_view_ids
Expand Down
Loading
Loading