Skip to content

Add Workflow Executions to usage metering API #1597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5",
"regenerated": "2023-07-25 21:17:49.776052",
"spec_repo_commit": "91969c8e"
"regenerated": "2023-07-26 14:18:05.895117",
"spec_repo_commit": "835cb6df"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-07-25 21:17:49.794940",
"spec_repo_commit": "91969c8e"
"regenerated": "2023-07-26 14:18:05.974104",
"spec_repo_commit": "835cb6df"
}
}
}
15 changes: 15 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17879,6 +17879,11 @@ components:
Management hosts over all hours in the current date for the given org.
format: int64
type: integer
workflow_executions_usage_sum:
description: Sum of all workflows executed over all hours in the current
date for all organizations.
format: int64
type: integer
type: object
UsageSummaryDateOrg:
description: Global hourly report of all data billed by Datadog for a given
Expand Down Expand Up @@ -18304,6 +18309,11 @@ components:
Management hosts over all hours in the current date for the given org.
format: int64
type: integer
workflow_executions_usage_sum:
description: Sum of all workflows executed over all hours in the current
date for the given org.
format: int64
type: integer
type: object
UsageSummaryResponse:
description: Response summarizing all usage aggregated across the months in
Expand Down Expand Up @@ -18777,6 +18787,11 @@ components:
Management hosts over all hours in the current months for all organizations.
format: int64
type: integer
workflow_executions_usage_agg_sum:
description: Sum of all workflows executed over all hours in the current
months for all organizations.
format: int64
type: integer
type: object
UsageSyntheticsAPIHour:
description: Number of Synthetics API tests run for each hour for a given organization.
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def openapi_types(_):
"universal_service_monitoring_host_top99p": (int,),
"vsphere_host_top99p": (int,),
"vuln_management_host_count_top99p": (int,),
"workflow_executions_usage_sum": (int,),
}

attribute_map = {
Expand Down Expand Up @@ -193,6 +194,7 @@ def openapi_types(_):
"universal_service_monitoring_host_top99p": "universal_service_monitoring_host_top99p",
"vsphere_host_top99p": "vsphere_host_top99p",
"vuln_management_host_count_top99p": "vuln_management_host_count_top99p",
"workflow_executions_usage_sum": "workflow_executions_usage_sum",
}

def __init__(
Expand Down Expand Up @@ -280,6 +282,7 @@ def __init__(
universal_service_monitoring_host_top99p: Union[int, UnsetType] = unset,
vsphere_host_top99p: Union[int, UnsetType] = unset,
vuln_management_host_count_top99p: Union[int, UnsetType] = unset,
workflow_executions_usage_sum: Union[int, UnsetType] = unset,
**kwargs,
):
"""
Expand Down Expand Up @@ -533,6 +536,9 @@ def __init__(

:param vuln_management_host_count_top99p: Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
:type vuln_management_host_count_top99p: int, optional

:param workflow_executions_usage_sum: Sum of all workflows executed over all hours in the current date for all organizations.
:type workflow_executions_usage_sum: int, optional
"""
if agent_host_top99p is not unset:
kwargs["agent_host_top99p"] = agent_host_top99p
Expand Down Expand Up @@ -700,4 +706,6 @@ def __init__(
kwargs["vsphere_host_top99p"] = vsphere_host_top99p
if vuln_management_host_count_top99p is not unset:
kwargs["vuln_management_host_count_top99p"] = vuln_management_host_count_top99p
if workflow_executions_usage_sum is not unset:
kwargs["workflow_executions_usage_sum"] = workflow_executions_usage_sum
super().__init__(kwargs)
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_date_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def openapi_types(_):
"universal_service_monitoring_host_top99p": (int,),
"vsphere_host_top99p": (int,),
"vuln_management_host_count_top99p": (int,),
"workflow_executions_usage_sum": (int,),
}

attribute_map = {
Expand Down Expand Up @@ -190,6 +191,7 @@ def openapi_types(_):
"universal_service_monitoring_host_top99p": "universal_service_monitoring_host_top99p",
"vsphere_host_top99p": "vsphere_host_top99p",
"vuln_management_host_count_top99p": "vuln_management_host_count_top99p",
"workflow_executions_usage_sum": "workflow_executions_usage_sum",
}

def __init__(
Expand Down Expand Up @@ -279,6 +281,7 @@ def __init__(
universal_service_monitoring_host_top99p: Union[int, UnsetType] = unset,
vsphere_host_top99p: Union[int, UnsetType] = unset,
vuln_management_host_count_top99p: Union[int, UnsetType] = unset,
workflow_executions_usage_sum: Union[int, UnsetType] = unset,
**kwargs,
):
"""
Expand Down Expand Up @@ -538,6 +541,9 @@ def __init__(

:param vuln_management_host_count_top99p: Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current date for the given org.
:type vuln_management_host_count_top99p: int, optional

:param workflow_executions_usage_sum: Sum of all workflows executed over all hours in the current date for the given org.
:type workflow_executions_usage_sum: int, optional
"""
if agent_host_top99p is not unset:
kwargs["agent_host_top99p"] = agent_host_top99p
Expand Down Expand Up @@ -709,4 +715,6 @@ def __init__(
kwargs["vsphere_host_top99p"] = vsphere_host_top99p
if vuln_management_host_count_top99p is not unset:
kwargs["vuln_management_host_count_top99p"] = vuln_management_host_count_top99p
if workflow_executions_usage_sum is not unset:
kwargs["workflow_executions_usage_sum"] = workflow_executions_usage_sum
super().__init__(kwargs)
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_summary_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def openapi_types(_):
"usage": ([UsageSummaryDate],),
"vsphere_host_top99p_sum": (int,),
"vuln_management_host_count_top99p_sum": (int,),
"workflow_executions_usage_agg_sum": (int,),
}

attribute_map = {
Expand Down Expand Up @@ -213,6 +214,7 @@ def openapi_types(_):
"usage": "usage",
"vsphere_host_top99p_sum": "vsphere_host_top99p_sum",
"vuln_management_host_count_top99p_sum": "vuln_management_host_count_top99p_sum",
"workflow_executions_usage_agg_sum": "workflow_executions_usage_agg_sum",
}

def __init__(
Expand Down Expand Up @@ -309,6 +311,7 @@ def __init__(
usage: Union[List[UsageSummaryDate], UnsetType] = unset,
vsphere_host_top99p_sum: Union[int, UnsetType] = unset,
vuln_management_host_count_top99p_sum: Union[int, UnsetType] = unset,
workflow_executions_usage_agg_sum: Union[int, UnsetType] = unset,
**kwargs,
):
"""
Expand Down Expand Up @@ -589,6 +592,9 @@ def __init__(

:param vuln_management_host_count_top99p_sum: Shows the 99th percentile of all Application Vulnerability Management hosts over all hours in the current months for all organizations.
:type vuln_management_host_count_top99p_sum: int, optional

:param workflow_executions_usage_agg_sum: Sum of all workflows executed over all hours in the current months for all organizations.
:type workflow_executions_usage_agg_sum: int, optional
"""
if agent_host_top99p_sum is not unset:
kwargs["agent_host_top99p_sum"] = agent_host_top99p_sum
Expand Down Expand Up @@ -776,4 +782,6 @@ def __init__(
kwargs["vsphere_host_top99p_sum"] = vsphere_host_top99p_sum
if vuln_management_host_count_top99p_sum is not unset:
kwargs["vuln_management_host_count_top99p_sum"] = vuln_management_host_count_top99p_sum
if workflow_executions_usage_agg_sum is not unset:
kwargs["workflow_executions_usage_agg_sum"] = workflow_executions_usage_agg_sum
super().__init__(kwargs)