Skip to content

Commit 3cbb487

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 469677d of spec repo
1 parent 886a78f commit 3cbb487

13 files changed

+291
-39
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22187,11 +22187,6 @@ components:
2218722187
current date for all organizations.
2218822188
format: int64
2218922189
type: integer
22190-
infra_edge_monitoring_devices_top99p:
22191-
description: Shows the 99th percentile of all Edge Devices Monitoring devices
22192-
over all hours in the current date for all organizations.
22193-
format: int64
22194-
type: integer
2219522190
infra_host_top99p:
2219622191
description: Shows the 99th percentile of all distinct infrastructure hosts
2219722192
over all hours in the current date for all organizations.
@@ -23355,11 +23350,6 @@ components:
2335523350
current date for the given org (To be deprecated on October 1st, 2024).
2335623351
format: int64
2335723352
type: integer
23358-
infra_edge_monitoring_devices_top99p:
23359-
description: Shows the 99th percentile of all Edge Devices Monitoring devices
23360-
over all hours in the current date for the given org.
23361-
format: int64
23362-
type: integer
2336323353
infra_host_top99p:
2336423354
description: Shows the 99th percentile of all distinct infrastructure hosts
2336523355
over all hours in the current date for the given org.
@@ -24523,11 +24513,6 @@ components:
2452324513
2024).
2452424514
format: int64
2452524515
type: integer
24526-
infra_edge_monitoring_devices_top99p_sum:
24527-
description: Shows the 99th percentile of all Edge Devices Monitoring devices
24528-
over all hours in the current month for all organizations.
24529-
format: int64
24530-
type: integer
2453124516
infra_host_top99p_sum:
2453224517
description: Shows the 99th percentile of all distinct infrastructure hosts
2453324518
over all hours in the current month for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54739,6 +54739,69 @@ components:
5473954739
type: string
5474054740
x-enum-varnames:
5474154741
- RULESET
54742+
RumCrossProductSampling:
54743+
description: 'Configuration for additional APM trace data retention for sessions
54744+
that match this retention filter.
54745+
54746+
When a session matches the filter and is retained (based on `sample_rate`),
54747+
you can configure
54748+
54749+
the percentage of retained sessions with ingested traces whose traces are
54750+
indexed.'
54751+
properties:
54752+
trace_enabled:
54753+
description: Indicates whether trace cross-product sampling is enabled.
54754+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54755+
example: true
54756+
type: boolean
54757+
trace_sample_rate:
54758+
description: 'The percentage (0-100) of retained sessions with ingested
54759+
traces whose traces are indexed.
54760+
54761+
For example, 25.0 means 25% of retained sessions with ingested traces
54762+
have their traces indexed.'
54763+
example: 25.0
54764+
format: double
54765+
maximum: 100
54766+
minimum: 0
54767+
type: number
54768+
type: object
54769+
RumCrossProductSamplingCreate:
54770+
description: Configuration for cross-product sampling when creating a retention
54771+
filter.
54772+
properties:
54773+
trace_enabled:
54774+
description: Indicates whether trace cross-product sampling is enabled.
54775+
example: true
54776+
type: boolean
54777+
trace_sample_rate:
54778+
description: The percentage (0-100) of retained sessions with ingested traces
54779+
whose traces are indexed.
54780+
example: 25.0
54781+
format: double
54782+
maximum: 100
54783+
minimum: 0
54784+
type: number
54785+
required:
54786+
- trace_sample_rate
54787+
type: object
54788+
RumCrossProductSamplingUpdate:
54789+
description: Configuration for cross-product sampling when updating a retention
54790+
filter. All fields are optional for partial updates.
54791+
properties:
54792+
trace_enabled:
54793+
description: Indicates whether trace cross-product sampling is enabled.
54794+
example: true
54795+
type: boolean
54796+
trace_sample_rate:
54797+
description: The percentage (0-100) of retained sessions with ingested traces
54798+
whose traces are indexed.
54799+
example: 25.0
54800+
format: double
54801+
maximum: 100
54802+
minimum: 0
54803+
type: number
54804+
type: object
5474254805
RumMetricCompute:
5474354806
description: The compute rule to compute the rum-based metric.
5474454807
properties:
@@ -55026,6 +55089,8 @@ components:
5502655089
RumRetentionFilterAttributes:
5502755090
description: The object describing attributes of a RUM retention filter.
5502855091
properties:
55092+
cross_product_sampling:
55093+
$ref: '#/components/schemas/RumCrossProductSampling'
5502955094
enabled:
5503055095
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503155096
event_type:
@@ -55040,6 +55105,8 @@ components:
5504055105
RumRetentionFilterCreateAttributes:
5504155106
description: The object describing attributes of a RUM retention filter to create.
5504255107
properties:
55108+
cross_product_sampling:
55109+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5504355110
enabled:
5504455111
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5504555112
event_type:
@@ -55141,6 +55208,8 @@ components:
5514155208
RumRetentionFilterUpdateAttributes:
5514255209
description: The object describing attributes of a RUM retention filter to update.
5514355210
properties:
55211+
cross_product_sampling:
55212+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5514455213
enabled:
5514555214
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5514655215
event_type:

docs/datadog_api_client.v2.model.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23867,6 +23867,27 @@ datadog\_api\_client.v2.model.rum\_compute\_type module
2386723867
:members:
2386823868
:show-inheritance:
2386923869

23870+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling module
23871+
------------------------------------------------------------------
23872+
23873+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling
23874+
:members:
23875+
:show-inheritance:
23876+
23877+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_create module
23878+
--------------------------------------------------------------------------
23879+
23880+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_create
23881+
:members:
23882+
:show-inheritance:
23883+
23884+
datadog\_api\_client.v2.model.rum\_cross\_product\_sampling\_update module
23885+
--------------------------------------------------------------------------
23886+
23887+
.. automodule:: datadog_api_client.v2.model.rum_cross_product_sampling_update
23888+
:members:
23889+
:show-inheritance:
23890+
2387023891
datadog\_api\_client.v2.model.rum\_event module
2387123892
-----------------------------------------------
2387223893

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def openapi_types(_):
131131
"incident_management_monthly_active_users_hwm": (int,),
132132
"incident_management_seats_hwm": (int,),
133133
"indexed_events_count_sum": (int,),
134-
"infra_edge_monitoring_devices_top99p": (int,),
135134
"infra_host_top99p": (int,),
136135
"ingested_events_bytes_sum": (int,),
137136
"iot_device_sum": (int,),
@@ -349,7 +348,6 @@ def openapi_types(_):
349348
"incident_management_monthly_active_users_hwm": "incident_management_monthly_active_users_hwm",
350349
"incident_management_seats_hwm": "incident_management_seats_hwm",
351350
"indexed_events_count_sum": "indexed_events_count_sum",
352-
"infra_edge_monitoring_devices_top99p": "infra_edge_monitoring_devices_top99p",
353351
"infra_host_top99p": "infra_host_top99p",
354352
"ingested_events_bytes_sum": "ingested_events_bytes_sum",
355353
"iot_device_sum": "iot_device_sum",
@@ -568,7 +566,6 @@ def __init__(
568566
incident_management_monthly_active_users_hwm: Union[int, UnsetType] = unset,
569567
incident_management_seats_hwm: Union[int, UnsetType] = unset,
570568
indexed_events_count_sum: Union[int, UnsetType] = unset,
571-
infra_edge_monitoring_devices_top99p: Union[int, UnsetType] = unset,
572569
infra_host_top99p: Union[int, UnsetType] = unset,
573570
ingested_events_bytes_sum: Union[int, UnsetType] = unset,
574571
iot_device_sum: Union[int, UnsetType] = unset,
@@ -1002,9 +999,6 @@ def __init__(
1002999
:param indexed_events_count_sum: Shows the sum of all log events indexed over all hours in the current date for all organizations.
10031000
:type indexed_events_count_sum: int, optional
10041001
1005-
:param infra_edge_monitoring_devices_top99p: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for all organizations.
1006-
:type infra_edge_monitoring_devices_top99p: int, optional
1007-
10081002
:param infra_host_top99p: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for all organizations.
10091003
:type infra_host_top99p: int, optional
10101004
@@ -1552,8 +1546,6 @@ def __init__(
15521546
kwargs["incident_management_seats_hwm"] = incident_management_seats_hwm
15531547
if indexed_events_count_sum is not unset:
15541548
kwargs["indexed_events_count_sum"] = indexed_events_count_sum
1555-
if infra_edge_monitoring_devices_top99p is not unset:
1556-
kwargs["infra_edge_monitoring_devices_top99p"] = infra_edge_monitoring_devices_top99p
15571549
if infra_host_top99p is not unset:
15581550
kwargs["infra_host_top99p"] = infra_host_top99p
15591551
if ingested_events_bytes_sum is not unset:

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ def openapi_types(_):
128128
"incident_management_monthly_active_users_hwm": (int,),
129129
"incident_management_seats_hwm": (int,),
130130
"indexed_events_count_sum": (int,),
131-
"infra_edge_monitoring_devices_top99p": (int,),
132131
"infra_host_top99p": (int,),
133132
"ingested_events_bytes_sum": (int,),
134133
"iot_device_agg_sum": (int,),
@@ -352,7 +351,6 @@ def openapi_types(_):
352351
"incident_management_monthly_active_users_hwm": "incident_management_monthly_active_users_hwm",
353352
"incident_management_seats_hwm": "incident_management_seats_hwm",
354353
"indexed_events_count_sum": "indexed_events_count_sum",
355-
"infra_edge_monitoring_devices_top99p": "infra_edge_monitoring_devices_top99p",
356354
"infra_host_top99p": "infra_host_top99p",
357355
"ingested_events_bytes_sum": "ingested_events_bytes_sum",
358356
"iot_device_agg_sum": "iot_device_agg_sum",
@@ -577,7 +575,6 @@ def __init__(
577575
incident_management_monthly_active_users_hwm: Union[int, UnsetType] = unset,
578576
incident_management_seats_hwm: Union[int, UnsetType] = unset,
579577
indexed_events_count_sum: Union[int, UnsetType] = unset,
580-
infra_edge_monitoring_devices_top99p: Union[int, UnsetType] = unset,
581578
infra_host_top99p: Union[int, UnsetType] = unset,
582579
ingested_events_bytes_sum: Union[int, UnsetType] = unset,
583580
iot_device_agg_sum: Union[int, UnsetType] = unset,
@@ -1025,9 +1022,6 @@ def __init__(
10251022
:param indexed_events_count_sum: Shows the sum of all log events indexed over all hours in the current date for the given org (To be deprecated on October 1st, 2024). **Deprecated**.
10261023
:type indexed_events_count_sum: int, optional
10271024
1028-
:param infra_edge_monitoring_devices_top99p: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current date for the given org.
1029-
:type infra_edge_monitoring_devices_top99p: int, optional
1030-
10311025
:param infra_host_top99p: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current date for the given org.
10321026
:type infra_host_top99p: int, optional
10331027
@@ -1589,8 +1583,6 @@ def __init__(
15891583
kwargs["incident_management_seats_hwm"] = incident_management_seats_hwm
15901584
if indexed_events_count_sum is not unset:
15911585
kwargs["indexed_events_count_sum"] = indexed_events_count_sum
1592-
if infra_edge_monitoring_devices_top99p is not unset:
1593-
kwargs["infra_edge_monitoring_devices_top99p"] = infra_edge_monitoring_devices_top99p
15941586
if infra_host_top99p is not unset:
15951587
kwargs["infra_host_top99p"] = infra_host_top99p
15961588
if ingested_events_bytes_sum is not unset:

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ def openapi_types(_):
136136
"incident_management_monthly_active_users_hwm_sum": (int,),
137137
"incident_management_seats_hwm_sum": (int,),
138138
"indexed_events_count_agg_sum": (int,),
139-
"infra_edge_monitoring_devices_top99p_sum": (int,),
140139
"infra_host_top99p_sum": (int,),
141140
"ingested_events_bytes_agg_sum": (int,),
142141
"iot_device_agg_sum": (int,),
@@ -365,7 +364,6 @@ def openapi_types(_):
365364
"incident_management_monthly_active_users_hwm_sum": "incident_management_monthly_active_users_hwm_sum",
366365
"incident_management_seats_hwm_sum": "incident_management_seats_hwm_sum",
367366
"indexed_events_count_agg_sum": "indexed_events_count_agg_sum",
368-
"infra_edge_monitoring_devices_top99p_sum": "infra_edge_monitoring_devices_top99p_sum",
369367
"infra_host_top99p_sum": "infra_host_top99p_sum",
370368
"ingested_events_bytes_agg_sum": "ingested_events_bytes_agg_sum",
371369
"iot_device_agg_sum": "iot_device_agg_sum",
@@ -595,7 +593,6 @@ def __init__(
595593
incident_management_monthly_active_users_hwm_sum: Union[int, UnsetType] = unset,
596594
incident_management_seats_hwm_sum: Union[int, UnsetType] = unset,
597595
indexed_events_count_agg_sum: Union[int, UnsetType] = unset,
598-
infra_edge_monitoring_devices_top99p_sum: Union[int, UnsetType] = unset,
599596
infra_host_top99p_sum: Union[int, UnsetType] = unset,
600597
ingested_events_bytes_agg_sum: Union[int, UnsetType] = unset,
601598
iot_device_agg_sum: Union[int, UnsetType] = unset,
@@ -1046,9 +1043,6 @@ def __init__(
10461043
:param indexed_events_count_agg_sum: Shows the sum of all log events indexed over all hours in the current month for all organizations (To be deprecated on October 1st, 2024). **Deprecated**.
10471044
:type indexed_events_count_agg_sum: int, optional
10481045
1049-
:param infra_edge_monitoring_devices_top99p_sum: Shows the 99th percentile of all Edge Devices Monitoring devices over all hours in the current month for all organizations.
1050-
:type infra_edge_monitoring_devices_top99p_sum: int, optional
1051-
10521046
:param infra_host_top99p_sum: Shows the 99th percentile of all distinct infrastructure hosts over all hours in the current month for all organizations.
10531047
:type infra_host_top99p_sum: int, optional
10541048
@@ -1630,8 +1624,6 @@ def __init__(
16301624
kwargs["incident_management_seats_hwm_sum"] = incident_management_seats_hwm_sum
16311625
if indexed_events_count_agg_sum is not unset:
16321626
kwargs["indexed_events_count_agg_sum"] = indexed_events_count_agg_sum
1633-
if infra_edge_monitoring_devices_top99p_sum is not unset:
1634-
kwargs["infra_edge_monitoring_devices_top99p_sum"] = infra_edge_monitoring_devices_top99p_sum
16351627
if infra_host_top99p_sum is not unset:
16361628
kwargs["infra_host_top99p_sum"] = infra_host_top99p_sum
16371629
if ingested_events_bytes_agg_sum is not unset:
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class RumCrossProductSampling(ModelNormal):
17+
validations = {
18+
"trace_sample_rate": {
19+
"inclusive_maximum": 100,
20+
"inclusive_minimum": 0,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"trace_enabled": (bool,),
28+
"trace_sample_rate": (float,),
29+
}
30+
31+
attribute_map = {
32+
"trace_enabled": "trace_enabled",
33+
"trace_sample_rate": "trace_sample_rate",
34+
}
35+
36+
def __init__(
37+
self_,
38+
trace_enabled: Union[bool, UnsetType] = unset,
39+
trace_sample_rate: Union[float, UnsetType] = unset,
40+
**kwargs,
41+
):
42+
"""
43+
Configuration for additional APM trace data retention for sessions that match this retention filter.
44+
When a session matches the filter and is retained (based on ``sample_rate`` ), you can configure
45+
the percentage of retained sessions with ingested traces whose traces are indexed.
46+
47+
:param trace_enabled: Indicates whether trace cross-product sampling is enabled. If ``false`` , no traces are indexed regardless of ``trace_sample_rate``.
48+
:type trace_enabled: bool, optional
49+
50+
:param trace_sample_rate: The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
51+
For example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
52+
:type trace_sample_rate: float, optional
53+
"""
54+
if trace_enabled is not unset:
55+
kwargs["trace_enabled"] = trace_enabled
56+
if trace_sample_rate is not unset:
57+
kwargs["trace_sample_rate"] = trace_sample_rate
58+
super().__init__(kwargs)
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
from __future__ import annotations
5+
6+
from typing import Union
7+
8+
from datadog_api_client.model_utils import (
9+
ModelNormal,
10+
cached_property,
11+
unset,
12+
UnsetType,
13+
)
14+
15+
16+
class RumCrossProductSamplingCreate(ModelNormal):
17+
validations = {
18+
"trace_sample_rate": {
19+
"inclusive_maximum": 100,
20+
"inclusive_minimum": 0,
21+
},
22+
}
23+
24+
@cached_property
25+
def openapi_types(_):
26+
return {
27+
"trace_enabled": (bool,),
28+
"trace_sample_rate": (float,),
29+
}
30+
31+
attribute_map = {
32+
"trace_enabled": "trace_enabled",
33+
"trace_sample_rate": "trace_sample_rate",
34+
}
35+
36+
def __init__(self_, trace_sample_rate: float, trace_enabled: Union[bool, UnsetType] = unset, **kwargs):
37+
"""
38+
Configuration for cross-product sampling when creating a retention filter.
39+
40+
:param trace_enabled: Indicates whether trace cross-product sampling is enabled.
41+
:type trace_enabled: bool, optional
42+
43+
:param trace_sample_rate: The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
44+
:type trace_sample_rate: float
45+
"""
46+
if trace_enabled is not unset:
47+
kwargs["trace_enabled"] = trace_enabled
48+
super().__init__(kwargs)
49+
50+
self_.trace_sample_rate = trace_sample_rate

0 commit comments

Comments
 (0)