Skip to content

Commit b3c1586

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 96ad4d7 of spec repo
1 parent 0b3df26 commit b3c1586

14 files changed

+50
-90
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,6 +2782,7 @@ components:
27822782
peer_tags:
27832783
description: Tags to query for a specific downstream entity (peer.service, peer.db_instance, peer.s3, peer.s3.bucket, etc.).
27842784
items:
2785+
description: A tag identifying a specific downstream entity (e.g. peer.service, peer.db_instance).
27852786
example: "peer.service:my-service"
27862787
type: string
27872788
type: array
@@ -6647,6 +6648,7 @@ components:
66476648
sources:
66486649
additionalProperties:
66496650
items:
6651+
description: A fallback source attribute name.
66506652
type: string
66516653
type: array
66526654
description: Fallback sources used to populate value of field.
@@ -6695,6 +6697,7 @@ components:
66956697
description: Optional list of profiles to modify the schema.
66966698
example: ["security_control", "host"]
66976699
items:
6700+
description: A profile name that modifies the schema behavior.
66986701
type: string
66996702
type: array
67006703
schema_type:
@@ -7730,25 +7733,13 @@ components:
77307733
- L2NORM
77317734
- PERCENTILE
77327735
- STDDEV
7733-
MonitorFormulaAndFunctionCostDataSource:
7734-
description: Data source for cost queries.
7735-
enum:
7736-
- metrics
7737-
- cloud_cost
7738-
- datadog_usage
7739-
example: "cloud_cost"
7740-
type: string
7741-
x-enum-varnames:
7742-
- METRICS
7743-
- CLOUD_COST
7744-
- DATADOG_USAGE
77457736
MonitorFormulaAndFunctionCostQueryDefinition:
77467737
description: A formula and functions cost query.
77477738
properties:
77487739
aggregator:
77497740
$ref: "#/components/schemas/MonitorFormulaAndFunctionCostAggregator"
77507741
data_source:
7751-
$ref: "#/components/schemas/MonitorFormulaAndFunctionCostDataSource"
7742+
$ref: "#/components/schemas/MonitorFormulaAndFunctionMetricsDataSource"
77527743
name:
77537744
description: Name of the query for use in formulas.
77547745
example: "query1"
@@ -7808,6 +7799,7 @@ components:
78087799
description: Columns to group results by.
78097800
example: ["col1", "col2"]
78107801
items:
7802+
description: A column name to group results by.
78117803
type: string
78127804
type: array
78137805
model_type_override:
@@ -7827,6 +7819,7 @@ components:
78277819
description: Optional grouping fields for aggregation.
78287820
example: ["entity_id"]
78297821
items:
7822+
description: A field name to group results by.
78307823
type: string
78317824
type: array
78327825
measure:
@@ -11161,8 +11154,10 @@ components:
1116111154
description: Product Analytics audience account subquery.
1116211155
properties:
1116311156
name:
11157+
description: The name of the account subquery.
1116411158
type: string
1116511159
query:
11160+
description: The query string for the account subquery.
1116611161
type: string
1116711162
type: object
1116811163
ProductAnalyticsAudienceFilters:
@@ -11173,6 +11168,7 @@ components:
1117311168
$ref: "#/components/schemas/ProductAnalyticsAudienceAccountSubquery"
1117411169
type: array
1117511170
filter_condition:
11171+
description: An optional filter condition applied to the audience subquery.
1117611172
type: string
1117711173
segments:
1117811174
items:
@@ -11184,26 +11180,33 @@ components:
1118411180
type: array
1118511181
type: object
1118611182
ProductAnalyticsAudienceOccurrenceFilter:
11183+
description: Filter applied to occurrence counts when building a Product Analytics audience.
1118711184
properties:
1118811185
operator:
11186+
description: The comparison operator used for the occurrence filter (e.g. `gt`, `lt`, `eq`).
1118911187
type: string
1119011188
value:
11189+
description: The threshold value to compare occurrence counts against.
1119111190
type: string
1119211191
type: object
1119311192
ProductAnalyticsAudienceSegmentSubquery:
1119411193
description: Product Analytics audience segment subquery.
1119511194
properties:
1119611195
name:
11196+
description: The name of the segment subquery.
1119711197
type: string
1119811198
segment_id:
11199+
description: The unique identifier of the segment.
1119911200
type: string
1120011201
type: object
1120111202
ProductAnalyticsAudienceUserSubquery:
1120211203
description: Product Analytics audience user subquery.
1120311204
properties:
1120411205
name:
11206+
description: The name of the user subquery.
1120511207
type: string
1120611208
query:
11209+
description: The query string for the user subquery.
1120711210
type: string
1120811211
type: object
1120911212
QuerySortOrder:
@@ -11772,6 +11775,7 @@ components:
1177211775
- $ref: "#/components/schemas/SLOCountDefinitionWithBadEventsFormula"
1177311776
SLOCountDefinitionWithBadEventsFormula:
1177411777
additionalProperties: false
11778+
description: SLO count definition using a bad events formula alongside a good events formula.
1177511779
properties:
1177611780
bad_events_formula:
1177711781
$ref: "#/components/schemas/SLOFormula"
@@ -11798,6 +11802,7 @@ components:
1179811802
type: object
1179911803
SLOCountDefinitionWithTotalEventsFormula:
1180011804
additionalProperties: false
11805+
description: SLO count definition using a total events formula alongside a good events formula.
1180111806
properties:
1180211807
good_events_formula:
1180311808
$ref: "#/components/schemas/SLOFormula"
@@ -13004,6 +13009,7 @@ components:
1300413009
description: Fields to group by.
1300513010
example: ["source", "destination"]
1300613011
items:
13012+
description: A field name to group by.
1300713013
type: string
1300813014
type: array
1300913015
limit:
@@ -13626,6 +13632,7 @@ components:
1362613632
Always included in service level objective responses (but may be empty).
1362713633
example: ["env:prod", "app:core"]
1362813634
items:
13635+
description: A tag associated with the service level objective.
1362913636
type: string
1363013637
type: array
1363113638
created_at:
@@ -13649,6 +13656,7 @@ components:
1364913656
env_tags:
1365013657
description: Tags with the `env` tag key.
1365113658
items:
13659+
description: A tag with the `env` tag key.
1365213660
type: string
1365313661
type: array
1365413662
groups:
@@ -13693,6 +13701,7 @@ components:
1369313701
service_tags:
1369413702
description: Tags with the `service` tag key.
1369513703
items:
13704+
description: A tag with the `service` tag key.
1369613705
type: string
1369713706
type: array
1369813707
slo_type:
@@ -13702,6 +13711,7 @@ components:
1370213711
team_tags:
1370313712
description: Tags with the `team` tag key.
1370413713
items:
13714+
description: A tag with the `team` tag key.
1370513715
type: string
1370613716
type: array
1370713717
thresholds:
@@ -14712,6 +14722,7 @@ components:
1471214722
description: The tag values.
1471314723
example: ["env"]
1471414724
items:
14725+
description: A tag value string.
1471514726
minLength: 1
1471614727
type: string
1471714728
type: array
@@ -17989,6 +18000,7 @@ components:
1798918000
blockedRequestPatterns:
1799018001
description: Array of URL patterns to block.
1799118002
items:
18003+
description: A URL pattern to block during the Synthetic test.
1799218004
type: string
1799318005
type: array
1799418006
checkCertificateRevocation:

docs/datadog_api_client.v1.model.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,13 +2489,6 @@ datadog\_api\_client.v1.model.monitor\_formula\_and\_function\_cost\_aggregator
24892489
:members:
24902490
:show-inheritance:
24912491

2492-
datadog\_api\_client.v1.model.monitor\_formula\_and\_function\_cost\_data\_source module
2493-
----------------------------------------------------------------------------------------
2494-
2495-
.. automodule:: datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source
2496-
:members:
2497-
:show-inheritance:
2498-
24992492
datadog\_api\_client.v1.model.monitor\_formula\_and\_function\_cost\_query\_definition module
25002493
---------------------------------------------------------------------------------------------
25012494

examples/v1/monitors/CreateMonitor_1303514967.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from datadog_api_client.v1.model.monitor_formula_and_function_cost_aggregator import (
99
MonitorFormulaAndFunctionCostAggregator,
1010
)
11-
from datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source import (
12-
MonitorFormulaAndFunctionCostDataSource,
13-
)
1411
from datadog_api_client.v1.model.monitor_formula_and_function_cost_query_definition import (
1512
MonitorFormulaAndFunctionCostQueryDefinition,
1613
)
14+
from datadog_api_client.v1.model.monitor_formula_and_function_metrics_data_source import (
15+
MonitorFormulaAndFunctionMetricsDataSource,
16+
)
1717
from datadog_api_client.v1.model.monitor_options import MonitorOptions
1818
from datadog_api_client.v1.model.monitor_thresholds import MonitorThresholds
1919
from datadog_api_client.v1.model.monitor_type import MonitorType
@@ -35,7 +35,7 @@
3535
),
3636
variables=[
3737
MonitorFormulaAndFunctionCostQueryDefinition(
38-
data_source=MonitorFormulaAndFunctionCostDataSource.CLOUD_COST,
38+
data_source=MonitorFormulaAndFunctionMetricsDataSource.CLOUD_COST,
3939
query="sum:aws.cost.net.amortized.shared.resources.allocated{aws_product IN (amplify ,athena, backup, bedrock ) } by {aws_product}.rollup(sum, 86400)",
4040
name="query1",
4141
aggregator=MonitorFormulaAndFunctionCostAggregator.SUM,

src/datadog_api_client/v1/model/monitor_formula_and_function_cost_data_source.py

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/datadog_api_client/v1/model/monitor_formula_and_function_cost_query_definition.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from datadog_api_client.v1.model.monitor_formula_and_function_cost_aggregator import (
1818
MonitorFormulaAndFunctionCostAggregator,
1919
)
20-
from datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source import (
21-
MonitorFormulaAndFunctionCostDataSource,
20+
from datadog_api_client.v1.model.monitor_formula_and_function_metrics_data_source import (
21+
MonitorFormulaAndFunctionMetricsDataSource,
2222
)
2323

2424

@@ -28,13 +28,13 @@ def openapi_types(_):
2828
from datadog_api_client.v1.model.monitor_formula_and_function_cost_aggregator import (
2929
MonitorFormulaAndFunctionCostAggregator,
3030
)
31-
from datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source import (
32-
MonitorFormulaAndFunctionCostDataSource,
31+
from datadog_api_client.v1.model.monitor_formula_and_function_metrics_data_source import (
32+
MonitorFormulaAndFunctionMetricsDataSource,
3333
)
3434

3535
return {
3636
"aggregator": (MonitorFormulaAndFunctionCostAggregator,),
37-
"data_source": (MonitorFormulaAndFunctionCostDataSource,),
37+
"data_source": (MonitorFormulaAndFunctionMetricsDataSource,),
3838
"name": (str,),
3939
"query": (str,),
4040
}
@@ -48,7 +48,7 @@ def openapi_types(_):
4848

4949
def __init__(
5050
self_,
51-
data_source: MonitorFormulaAndFunctionCostDataSource,
51+
data_source: MonitorFormulaAndFunctionMetricsDataSource,
5252
name: str,
5353
query: str,
5454
aggregator: Union[MonitorFormulaAndFunctionCostAggregator, UnsetType] = unset,
@@ -60,8 +60,8 @@ def __init__(
6060
:param aggregator: Aggregation methods for metric queries.
6161
:type aggregator: MonitorFormulaAndFunctionCostAggregator, optional
6262
63-
:param data_source: Data source for cost queries.
64-
:type data_source: MonitorFormulaAndFunctionCostDataSource
63+
:param data_source: Data source for metrics queries.
64+
:type data_source: MonitorFormulaAndFunctionMetricsDataSource
6565
6666
:param name: Name of the query for use in formulas.
6767
:type name: str

src/datadog_api_client/v1/model/product_analytics_audience_account_subquery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def __init__(self_, name: Union[str, UnsetType] = unset, query: Union[str, Unset
3030
"""
3131
Product Analytics audience account subquery.
3232
33-
:param name:
33+
:param name: The name of the account subquery.
3434
:type name: str, optional
3535
36-
:param query:
36+
:param query: The query string for the account subquery.
3737
:type query: str, optional
3838
"""
3939
if name is not unset:

src/datadog_api_client/v1/model/product_analytics_audience_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def __init__(
6666
:param accounts:
6767
:type accounts: [ProductAnalyticsAudienceAccountSubquery], optional
6868
69-
:param filter_condition:
69+
:param filter_condition: An optional filter condition applied to the audience subquery.
7070
:type filter_condition: str, optional
7171
7272
:param segments:

src/datadog_api_client/v1/model/product_analytics_audience_occurrence_filter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ def openapi_types(_):
2828

2929
def __init__(self_, operator: Union[str, UnsetType] = unset, value: Union[str, UnsetType] = unset, **kwargs):
3030
"""
31+
Filter applied to occurrence counts when building a Product Analytics audience.
3132
32-
33-
:param operator:
33+
:param operator: The comparison operator used for the occurrence filter (e.g. ``gt`` , ``lt`` , ``eq`` ).
3434
:type operator: str, optional
3535
36-
:param value:
36+
:param value: The threshold value to compare occurrence counts against.
3737
:type value: str, optional
3838
"""
3939
if operator is not unset:

src/datadog_api_client/v1/model/product_analytics_audience_segment_subquery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def __init__(self_, name: Union[str, UnsetType] = unset, segment_id: Union[str,
3030
"""
3131
Product Analytics audience segment subquery.
3232
33-
:param name:
33+
:param name: The name of the segment subquery.
3434
:type name: str, optional
3535
36-
:param segment_id:
36+
:param segment_id: The unique identifier of the segment.
3737
:type segment_id: str, optional
3838
"""
3939
if name is not unset:

src/datadog_api_client/v1/model/product_analytics_audience_user_subquery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def __init__(self_, name: Union[str, UnsetType] = unset, query: Union[str, Unset
3030
"""
3131
Product Analytics audience user subquery.
3232
33-
:param name:
33+
:param name: The name of the user subquery.
3434
:type name: str, optional
3535
36-
:param query:
36+
:param query: The query string for the user subquery.
3737
:type query: str, optional
3838
"""
3939
if name is not unset:

0 commit comments

Comments
 (0)