Skip to content

Commit dc9e148

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add serverless apm to usage attribution api (#1729)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent cdda717 commit dc9e148

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-10-19 13:24:13.862945",
8-
"spec_repo_commit": "823e1cf6"
7+
"regenerated": "2023-10-23 18:35:36.214958",
8+
"spec_repo_commit": "696abec0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-19 13:24:13.880402",
13-
"spec_repo_commit": "823e1cf6"
12+
"regenerated": "2023-10-23 18:35:36.233010",
13+
"spec_repo_commit": "696abec0"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3922,6 +3922,7 @@ components:
39223922
- functions_usage
39233923
- infra_host_usage
39243924
- invocations_usage
3925+
- lambda_traced_invocations_usage
39253926
- mobile_app_testing_usage
39263927
- ndm_netflow_usage
39273928
- npm_host_usage
@@ -3964,6 +3965,7 @@ components:
39643965
- FUNCTIONS_USAGE
39653966
- INFRA_HOST_USAGE
39663967
- INVOCATIONS_USAGE
3968+
- LAMBDA_TRACED_INVOCATIONS_USAGE
39673969
- MOBILE_APP_TESTING_USAGE
39683970
- NDM_NETFLOW_USAGE
39693971
- NPM_HOST_USAGE
@@ -7545,6 +7547,8 @@ components:
75457547
- infra_host_percentage
75467548
- invocations_usage
75477549
- invocations_percentage
7550+
- lambda_traced_invocations_usage
7551+
- lambda_traced_invocations_percentage
75487552
- mobile_app_testing_percentage
75497553
- mobile_app_testing_usage
75507554
- ndm_netflow_usage
@@ -7628,6 +7632,8 @@ components:
76287632
- INFRA_HOST_PERCENTAGE
76297633
- INVOCATIONS_USAGE
76307634
- INVOCATIONS_PERCENTAGE
7635+
- LAMBDA_TRACED_INVOCATIONS_USAGE
7636+
- LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
76317637
- MOBILE_APP_TESTING_USAGE
76327638
- MOBILE_APP_TESTING_PERCENTAGE
76337639
- NDM_NETFLOW_USAGE
@@ -7893,6 +7899,14 @@ components:
78937899
description: The Lambda invocation usage by tag(s).
78947900
format: double
78957901
type: number
7902+
lambda_traced_invocations_percentage:
7903+
description: The percentage of Serverless APM usage by tag(s).
7904+
format: double
7905+
type: number
7906+
lambda_traced_invocations_usage:
7907+
description: The Serverless APM usage by tag(s).
7908+
format: double
7909+
type: number
78967910
mobile_app_testing_percentage:
78977911
description: The percentage of Synthetic mobile application test usage by
78987912
tag(s).

src/datadog_api_client/v1/model/hourly_usage_attribution_usage_type.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
1616
"""
1717
Supported products for hourly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "apm_usm_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "ci_visibility_itr_usage", "cloud_siem_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_logs_usage", "estimated_ingested_spans_usage", "estimated_rum_sessions_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "mobile_app_testing_usage", "ndm_netflow_usage", "npm_host_usage", "obs_pipeline_bytes_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "sds_scanned_bytes_usage", "serverless_apps_usage", "snmp_usage", "universal_service_monitoring_usage", "vuln_management_hosts_usage"].
19+
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "apm_usm_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "ci_visibility_itr_usage", "cloud_siem_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_logs_usage", "estimated_ingested_spans_usage", "estimated_rum_sessions_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "lambda_traced_invocations_usage", "mobile_app_testing_usage", "ndm_netflow_usage", "npm_host_usage", "obs_pipeline_bytes_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "sds_scanned_bytes_usage", "serverless_apps_usage", "snmp_usage", "universal_service_monitoring_usage", "vuln_management_hosts_usage"].
2020
:type value: str
2121
"""
2222

@@ -49,6 +49,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
4949
"functions_usage",
5050
"infra_host_usage",
5151
"invocations_usage",
52+
"lambda_traced_invocations_usage",
5253
"mobile_app_testing_usage",
5354
"ndm_netflow_usage",
5455
"npm_host_usage",
@@ -90,6 +91,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
9091
FUNCTIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
9192
INFRA_HOST_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
9293
INVOCATIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
94+
LAMBDA_TRACED_INVOCATIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
9395
MOBILE_APP_TESTING_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
9496
NDM_NETFLOW_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
9597
NPM_HOST_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
@@ -152,6 +154,9 @@ def openapi_types(_):
152154
HourlyUsageAttributionUsageType.FUNCTIONS_USAGE = HourlyUsageAttributionUsageType("functions_usage")
153155
HourlyUsageAttributionUsageType.INFRA_HOST_USAGE = HourlyUsageAttributionUsageType("infra_host_usage")
154156
HourlyUsageAttributionUsageType.INVOCATIONS_USAGE = HourlyUsageAttributionUsageType("invocations_usage")
157+
HourlyUsageAttributionUsageType.LAMBDA_TRACED_INVOCATIONS_USAGE = HourlyUsageAttributionUsageType(
158+
"lambda_traced_invocations_usage"
159+
)
155160
HourlyUsageAttributionUsageType.MOBILE_APP_TESTING_USAGE = HourlyUsageAttributionUsageType("mobile_app_testing_usage")
156161
HourlyUsageAttributionUsageType.NDM_NETFLOW_USAGE = HourlyUsageAttributionUsageType("ndm_netflow_usage")
157162
HourlyUsageAttributionUsageType.NPM_HOST_USAGE = HourlyUsageAttributionUsageType("npm_host_usage")

src/datadog_api_client/v1/model/monthly_usage_attribution_supported_metrics.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
1616
"""
1717
Supported metrics for monthly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "apm_usm_usage", "apm_usm_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "ci_visibility_itr_usage", "ci_visibility_itr_percentage", "cloud_siem_usage", "cloud_siem_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_ingested_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_usage", "ndm_netflow_percentage", "npm_host_usage", "npm_host_percentage", "obs_pipeline_bytes_usage", "obs_pipeline_bytes_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "serverless_apps_usage", "serverless_apps_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "universal_service_monitoring_usage", "universal_service_monitoring_percentage", "vuln_management_hosts_usage", "vuln_management_hosts_percentage", "sds_scanned_bytes_usage", "sds_scanned_bytes_percentage", "*"].
19+
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "apm_usm_usage", "apm_usm_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "ci_visibility_itr_usage", "ci_visibility_itr_percentage", "cloud_siem_usage", "cloud_siem_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_ingested_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "lambda_traced_invocations_usage", "lambda_traced_invocations_percentage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_usage", "ndm_netflow_percentage", "npm_host_usage", "npm_host_percentage", "obs_pipeline_bytes_usage", "obs_pipeline_bytes_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "serverless_apps_usage", "serverless_apps_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "universal_service_monitoring_usage", "universal_service_monitoring_percentage", "vuln_management_hosts_usage", "vuln_management_hosts_percentage", "sds_scanned_bytes_usage", "sds_scanned_bytes_percentage", "*"].
2020
:type value: str
2121
"""
2222

@@ -75,6 +75,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
7575
"infra_host_percentage",
7676
"invocations_usage",
7777
"invocations_percentage",
78+
"lambda_traced_invocations_usage",
79+
"lambda_traced_invocations_percentage",
7880
"mobile_app_testing_percentage",
7981
"mobile_app_testing_usage",
8082
"ndm_netflow_usage",
@@ -157,6 +159,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
157159
INFRA_HOST_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
158160
INVOCATIONS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
159161
INVOCATIONS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
162+
LAMBDA_TRACED_INVOCATIONS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
163+
LAMBDA_TRACED_INVOCATIONS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
160164
MOBILE_APP_TESTING_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
161165
MOBILE_APP_TESTING_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
162166
NDM_NETFLOW_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
@@ -318,6 +322,12 @@ def openapi_types(_):
318322
MonthlyUsageAttributionSupportedMetrics.INVOCATIONS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
319323
"invocations_percentage"
320324
)
325+
MonthlyUsageAttributionSupportedMetrics.LAMBDA_TRACED_INVOCATIONS_USAGE = MonthlyUsageAttributionSupportedMetrics(
326+
"lambda_traced_invocations_usage"
327+
)
328+
MonthlyUsageAttributionSupportedMetrics.LAMBDA_TRACED_INVOCATIONS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
329+
"lambda_traced_invocations_percentage"
330+
)
321331
MonthlyUsageAttributionSupportedMetrics.MOBILE_APP_TESTING_USAGE = MonthlyUsageAttributionSupportedMetrics(
322332
"mobile_app_testing_percentage"
323333
)

src/datadog_api_client/v1/model/monthly_usage_attribution_values.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def openapi_types(_):
7373
"infra_host_usage": (float,),
7474
"invocations_percentage": (float,),
7575
"invocations_usage": (float,),
76+
"lambda_traced_invocations_percentage": (float,),
77+
"lambda_traced_invocations_usage": (float,),
7678
"mobile_app_testing_percentage": (float,),
7779
"mobile_app_testing_usage": (float,),
7880
"ndm_netflow_percentage": (float,),
@@ -156,6 +158,8 @@ def openapi_types(_):
156158
"infra_host_usage": "infra_host_usage",
157159
"invocations_percentage": "invocations_percentage",
158160
"invocations_usage": "invocations_usage",
161+
"lambda_traced_invocations_percentage": "lambda_traced_invocations_percentage",
162+
"lambda_traced_invocations_usage": "lambda_traced_invocations_usage",
159163
"mobile_app_testing_percentage": "mobile_app_testing_percentage",
160164
"mobile_app_testing_usage": "mobile_app_testing_usage",
161165
"ndm_netflow_percentage": "ndm_netflow_percentage",
@@ -240,6 +244,8 @@ def __init__(
240244
infra_host_usage: Union[float, UnsetType] = unset,
241245
invocations_percentage: Union[float, UnsetType] = unset,
242246
invocations_usage: Union[float, UnsetType] = unset,
247+
lambda_traced_invocations_percentage: Union[float, UnsetType] = unset,
248+
lambda_traced_invocations_usage: Union[float, UnsetType] = unset,
243249
mobile_app_testing_percentage: Union[float, UnsetType] = unset,
244250
mobile_app_testing_usage: Union[float, UnsetType] = unset,
245251
ndm_netflow_percentage: Union[float, UnsetType] = unset,
@@ -437,6 +443,12 @@ def __init__(
437443
:param invocations_usage: The Lambda invocation usage by tag(s).
438444
:type invocations_usage: float, optional
439445
446+
:param lambda_traced_invocations_percentage: The percentage of Serverless APM usage by tag(s).
447+
:type lambda_traced_invocations_percentage: float, optional
448+
449+
:param lambda_traced_invocations_usage: The Serverless APM usage by tag(s).
450+
:type lambda_traced_invocations_usage: float, optional
451+
440452
:param mobile_app_testing_percentage: The percentage of Synthetic mobile application test usage by tag(s).
441453
:type mobile_app_testing_percentage: float, optional
442454
@@ -621,6 +633,10 @@ def __init__(
621633
kwargs["invocations_percentage"] = invocations_percentage
622634
if invocations_usage is not unset:
623635
kwargs["invocations_usage"] = invocations_usage
636+
if lambda_traced_invocations_percentage is not unset:
637+
kwargs["lambda_traced_invocations_percentage"] = lambda_traced_invocations_percentage
638+
if lambda_traced_invocations_usage is not unset:
639+
kwargs["lambda_traced_invocations_usage"] = lambda_traced_invocations_usage
624640
if mobile_app_testing_percentage is not unset:
625641
kwargs["mobile_app_testing_percentage"] = mobile_app_testing_percentage
626642
if mobile_app_testing_usage is not unset:

0 commit comments

Comments
 (0)