Skip to content

Commit 3980c12

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bf2f8fa of spec repo
1 parent 24c1b00 commit 3980c12

File tree

9 files changed

+16
-93
lines changed

9 files changed

+16
-93
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8024,25 +8024,13 @@ components:
80248024
- L2NORM
80258025
- PERCENTILE
80268026
- STDDEV
8027-
MonitorFormulaAndFunctionCostDataSource:
8028-
description: Data source for cost queries.
8029-
enum:
8030-
- metrics
8031-
- cloud_cost
8032-
- datadog_usage
8033-
example: cloud_cost
8034-
type: string
8035-
x-enum-varnames:
8036-
- METRICS
8037-
- CLOUD_COST
8038-
- DATADOG_USAGE
80398027
MonitorFormulaAndFunctionCostQueryDefinition:
80408028
description: A formula and functions cost query.
80418029
properties:
80428030
aggregator:
80438031
$ref: '#/components/schemas/MonitorFormulaAndFunctionCostAggregator'
80448032
data_source:
8045-
$ref: '#/components/schemas/MonitorFormulaAndFunctionCostDataSource'
8033+
$ref: '#/components/schemas/MonitorFormulaAndFunctionMetricsDataSource'
80468034
name:
80478035
description: Name of the query for use in formulas.
80488036
example: query1

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42913,11 +42913,6 @@ components:
4291342913

4291442914
**Supported pipeline types:** logs, metrics'
4291542915
properties:
42916-
address_key:
42917-
description: Name of the environment variable or secret that holds the listen
42918-
address for the Datadog Agent source.
42919-
example: DATADOG_AGENT_ADDRESS
42920-
type: string
4292142916
id:
4292242917
description: The unique identifier for this component. Used in other parts
4292342918
of the pipeline to reference this component (for example, as the `input`

docs/datadog_api_client.v1.model.rst

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

2443-
datadog\_api\_client.v1.model.monitor\_formula\_and\_function\_cost\_data\_source module
2444-
----------------------------------------------------------------------------------------
2445-
2446-
.. automodule:: datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source
2447-
:members:
2448-
:show-inheritance:
2449-
24502443
datadog\_api\_client.v1.model.monitor\_formula\_and\_function\_cost\_query\_definition module
24512444
---------------------------------------------------------------------------------------------
24522445

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/models/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,6 @@
408408
from datadog_api_client.v1.model.monitor_formula_and_function_cost_aggregator import (
409409
MonitorFormulaAndFunctionCostAggregator,
410410
)
411-
from datadog_api_client.v1.model.monitor_formula_and_function_cost_data_source import (
412-
MonitorFormulaAndFunctionCostDataSource,
413-
)
414411
from datadog_api_client.v1.model.monitor_formula_and_function_cost_query_definition import (
415412
MonitorFormulaAndFunctionCostQueryDefinition,
416413
)
@@ -1560,7 +1557,6 @@
15601557
"MonitorFormulaAndFunctionAggregateQueryJoinCondition",
15611558
"MonitorFormulaAndFunctionAggregateQueryJoinType",
15621559
"MonitorFormulaAndFunctionCostAggregator",
1563-
"MonitorFormulaAndFunctionCostDataSource",
15641560
"MonitorFormulaAndFunctionCostQueryDefinition",
15651561
"MonitorFormulaAndFunctionDataQualityDataSource",
15661562
"MonitorFormulaAndFunctionDataQualityModelTypeOverride",

src/datadog_api_client/v2/model/observability_pipeline_config_source_item.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ def __init__(self, **kwargs):
1515
"""
1616
A data source for the pipeline.
1717
18-
:param address_key: Name of the environment variable or secret that holds the listen address for the Datadog Agent source.
19-
:type address_key: str, optional
20-
2118
:param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` to downstream components).
2219
:type id: str
2320
@@ -27,6 +24,9 @@ def __init__(self, **kwargs):
2724
:param type: The source type. The value should always be `datadog_agent`.
2825
:type type: ObservabilityPipelineDatadogAgentSourceType
2926
27+
:param address_key: Name of the environment variable or secret that holds the Firehose delivery stream address.
28+
:type address_key: str, optional
29+
3030
:param auth: AWS authentication credentials used for accessing AWS services such as S3.
3131
If omitted, the system’s default credentials are used (for example, the IAM role and environment variables).
3232
:type auth: ObservabilityPipelineAwsAuth, optional

src/datadog_api_client/v2/model/observability_pipeline_datadog_agent_source.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ def openapi_types(_):
2929
)
3030

3131
return {
32-
"address_key": (str,),
3332
"id": (str,),
3433
"tls": (ObservabilityPipelineTls,),
3534
"type": (ObservabilityPipelineDatadogAgentSourceType,),
3635
}
3736

3837
attribute_map = {
39-
"address_key": "address_key",
4038
"id": "id",
4139
"tls": "tls",
4240
"type": "type",
@@ -46,7 +44,6 @@ def __init__(
4644
self_,
4745
id: str,
4846
type: ObservabilityPipelineDatadogAgentSourceType,
49-
address_key: Union[str, UnsetType] = unset,
5047
tls: Union[ObservabilityPipelineTls, UnsetType] = unset,
5148
**kwargs,
5249
):
@@ -55,9 +52,6 @@ def __init__(
5552
5653
**Supported pipeline types:** logs, metrics
5754
58-
:param address_key: Name of the environment variable or secret that holds the listen address for the Datadog Agent source.
59-
:type address_key: str, optional
60-
6155
:param id: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the ``input`` to downstream components).
6256
:type id: str
6357
@@ -67,8 +61,6 @@ def __init__(
6761
:param type: The source type. The value should always be ``datadog_agent``.
6862
:type type: ObservabilityPipelineDatadogAgentSourceType
6963
"""
70-
if address_key is not unset:
71-
kwargs["address_key"] = address_key
7264
if tls is not unset:
7365
kwargs["tls"] = tls
7466
super().__init__(kwargs)

0 commit comments

Comments
 (0)