Skip to content

Commit

Permalink
Add serverless apm to usage attribution api (#1729)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 23, 2023
1 parent cdda717 commit dc9e148
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-19 13:24:13.862945",
"spec_repo_commit": "823e1cf6"
"regenerated": "2023-10-23 18:35:36.214958",
"spec_repo_commit": "696abec0"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-19 13:24:13.880402",
"spec_repo_commit": "823e1cf6"
"regenerated": "2023-10-23 18:35:36.233010",
"spec_repo_commit": "696abec0"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3922,6 +3922,7 @@ components:
- functions_usage
- infra_host_usage
- invocations_usage
- lambda_traced_invocations_usage
- mobile_app_testing_usage
- ndm_netflow_usage
- npm_host_usage
Expand Down Expand Up @@ -3964,6 +3965,7 @@ components:
- FUNCTIONS_USAGE
- INFRA_HOST_USAGE
- INVOCATIONS_USAGE
- LAMBDA_TRACED_INVOCATIONS_USAGE
- MOBILE_APP_TESTING_USAGE
- NDM_NETFLOW_USAGE
- NPM_HOST_USAGE
Expand Down Expand Up @@ -7545,6 +7547,8 @@ components:
- 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
Expand Down Expand Up @@ -7628,6 +7632,8 @@ components:
- INFRA_HOST_PERCENTAGE
- INVOCATIONS_USAGE
- INVOCATIONS_PERCENTAGE
- LAMBDA_TRACED_INVOCATIONS_USAGE
- LAMBDA_TRACED_INVOCATIONS_PERCENTAGE
- MOBILE_APP_TESTING_USAGE
- MOBILE_APP_TESTING_PERCENTAGE
- NDM_NETFLOW_USAGE
Expand Down Expand Up @@ -7893,6 +7899,14 @@ components:
description: The Lambda invocation usage by tag(s).
format: double
type: number
lambda_traced_invocations_percentage:
description: The percentage of Serverless APM usage by tag(s).
format: double
type: number
lambda_traced_invocations_usage:
description: The Serverless APM usage by tag(s).
format: double
type: number
mobile_app_testing_percentage:
description: The percentage of Synthetic mobile application test usage by
tag(s).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
"""
Supported products for hourly usage attribution requests.
: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"].
: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"].
:type value: str
"""

Expand Down Expand Up @@ -49,6 +49,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
"functions_usage",
"infra_host_usage",
"invocations_usage",
"lambda_traced_invocations_usage",
"mobile_app_testing_usage",
"ndm_netflow_usage",
"npm_host_usage",
Expand Down Expand Up @@ -90,6 +91,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
FUNCTIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
INFRA_HOST_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
INVOCATIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
LAMBDA_TRACED_INVOCATIONS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
MOBILE_APP_TESTING_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
NDM_NETFLOW_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
NPM_HOST_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
Expand Down Expand Up @@ -152,6 +154,9 @@ def openapi_types(_):
HourlyUsageAttributionUsageType.FUNCTIONS_USAGE = HourlyUsageAttributionUsageType("functions_usage")
HourlyUsageAttributionUsageType.INFRA_HOST_USAGE = HourlyUsageAttributionUsageType("infra_host_usage")
HourlyUsageAttributionUsageType.INVOCATIONS_USAGE = HourlyUsageAttributionUsageType("invocations_usage")
HourlyUsageAttributionUsageType.LAMBDA_TRACED_INVOCATIONS_USAGE = HourlyUsageAttributionUsageType(
"lambda_traced_invocations_usage"
)
HourlyUsageAttributionUsageType.MOBILE_APP_TESTING_USAGE = HourlyUsageAttributionUsageType("mobile_app_testing_usage")
HourlyUsageAttributionUsageType.NDM_NETFLOW_USAGE = HourlyUsageAttributionUsageType("ndm_netflow_usage")
HourlyUsageAttributionUsageType.NPM_HOST_USAGE = HourlyUsageAttributionUsageType("npm_host_usage")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
"""
Supported metrics for monthly usage attribution requests.
: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", "*"].
: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", "*"].
:type value: str
"""

Expand Down Expand Up @@ -75,6 +75,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
"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",
Expand Down Expand Up @@ -157,6 +159,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
INFRA_HOST_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
INVOCATIONS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
INVOCATIONS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
LAMBDA_TRACED_INVOCATIONS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
LAMBDA_TRACED_INVOCATIONS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
MOBILE_APP_TESTING_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
MOBILE_APP_TESTING_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
NDM_NETFLOW_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
Expand Down Expand Up @@ -318,6 +322,12 @@ def openapi_types(_):
MonthlyUsageAttributionSupportedMetrics.INVOCATIONS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
"invocations_percentage"
)
MonthlyUsageAttributionSupportedMetrics.LAMBDA_TRACED_INVOCATIONS_USAGE = MonthlyUsageAttributionSupportedMetrics(
"lambda_traced_invocations_usage"
)
MonthlyUsageAttributionSupportedMetrics.LAMBDA_TRACED_INVOCATIONS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
"lambda_traced_invocations_percentage"
)
MonthlyUsageAttributionSupportedMetrics.MOBILE_APP_TESTING_USAGE = MonthlyUsageAttributionSupportedMetrics(
"mobile_app_testing_percentage"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def openapi_types(_):
"infra_host_usage": (float,),
"invocations_percentage": (float,),
"invocations_usage": (float,),
"lambda_traced_invocations_percentage": (float,),
"lambda_traced_invocations_usage": (float,),
"mobile_app_testing_percentage": (float,),
"mobile_app_testing_usage": (float,),
"ndm_netflow_percentage": (float,),
Expand Down Expand Up @@ -156,6 +158,8 @@ def openapi_types(_):
"infra_host_usage": "infra_host_usage",
"invocations_percentage": "invocations_percentage",
"invocations_usage": "invocations_usage",
"lambda_traced_invocations_percentage": "lambda_traced_invocations_percentage",
"lambda_traced_invocations_usage": "lambda_traced_invocations_usage",
"mobile_app_testing_percentage": "mobile_app_testing_percentage",
"mobile_app_testing_usage": "mobile_app_testing_usage",
"ndm_netflow_percentage": "ndm_netflow_percentage",
Expand Down Expand Up @@ -240,6 +244,8 @@ def __init__(
infra_host_usage: Union[float, UnsetType] = unset,
invocations_percentage: Union[float, UnsetType] = unset,
invocations_usage: Union[float, UnsetType] = unset,
lambda_traced_invocations_percentage: Union[float, UnsetType] = unset,
lambda_traced_invocations_usage: Union[float, UnsetType] = unset,
mobile_app_testing_percentage: Union[float, UnsetType] = unset,
mobile_app_testing_usage: Union[float, UnsetType] = unset,
ndm_netflow_percentage: Union[float, UnsetType] = unset,
Expand Down Expand Up @@ -437,6 +443,12 @@ def __init__(
:param invocations_usage: The Lambda invocation usage by tag(s).
:type invocations_usage: float, optional
:param lambda_traced_invocations_percentage: The percentage of Serverless APM usage by tag(s).
:type lambda_traced_invocations_percentage: float, optional
:param lambda_traced_invocations_usage: The Serverless APM usage by tag(s).
:type lambda_traced_invocations_usage: float, optional
:param mobile_app_testing_percentage: The percentage of Synthetic mobile application test usage by tag(s).
:type mobile_app_testing_percentage: float, optional
Expand Down Expand Up @@ -621,6 +633,10 @@ def __init__(
kwargs["invocations_percentage"] = invocations_percentage
if invocations_usage is not unset:
kwargs["invocations_usage"] = invocations_usage
if lambda_traced_invocations_percentage is not unset:
kwargs["lambda_traced_invocations_percentage"] = lambda_traced_invocations_percentage
if lambda_traced_invocations_usage is not unset:
kwargs["lambda_traced_invocations_usage"] = lambda_traced_invocations_usage
if mobile_app_testing_percentage is not unset:
kwargs["mobile_app_testing_percentage"] = mobile_app_testing_percentage
if mobile_app_testing_usage is not unset:
Expand Down

0 comments on commit dc9e148

Please sign in to comment.