Skip to content

Adding aas count to the documentation for summary and hourly usage endpoints #1635

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-08-25 12:25:40.724264",
"spec_repo_commit": "1a77c0b6"
"regenerated": "2023-08-28 20:29:20.630970",
"spec_repo_commit": "0fac706f"
},
"v2": {
"apigentools_version": "1.6.5",
"regenerated": "2023-08-25 12:25:40.743585",
"spec_repo_commit": "1a77c0b6"
"regenerated": "2023-08-28 20:29:20.644178",
"spec_repo_commit": "0fac706f"
}
}
}
21 changes: 21 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17220,6 +17220,12 @@ components:
UsageProfilingHour:
description: The number of profiled hosts for each hour for a given organization.
properties:
aas_count:
description: Contains the total number of profiled Azure app services reporting
during a given hour.
format: int64
nullable: true
type: integer
avg_container_agent_count:
description: Get average number of container agents for that hour.
format: int64
Expand Down Expand Up @@ -17863,6 +17869,11 @@ components:
items:
$ref: '#/components/schemas/UsageSummaryDateOrg'
type: array
profiling_aas_count_top99p:
description: Shows the 99th percentile of all profiled Azure app services
over all hours in the current date for all organizations.
format: int64
type: integer
profiling_host_top99p:
description: Shows the 99th percentile of all profiled hosts over all hours
in the current date for all organizations.
Expand Down Expand Up @@ -18293,6 +18304,11 @@ components:
date for the given org.
format: int64
type: integer
profiling_aas_count_top99p:
description: Shows the 99th percentile of all profiled Azure app services
over all hours in the current date for all organizations.
format: int64
type: integer
profiling_host_top99p:
description: Shows the 99th percentile of all profiled hosts over all hours
in the current date for the given org.
Expand Down Expand Up @@ -18755,6 +18771,11 @@ components:
months for all organizations.
format: int64
type: integer
profiling_aas_count_top99p_sum:
description: Shows the 99th percentile of all profiled Azure app services
over all hours in the current months for all organizations.
format: int64
type: integer
profiling_container_agent_count_avg:
description: Shows the average number of profiled containers over all hours
in the current months for all organizations.
Expand Down
8 changes: 8 additions & 0 deletions src/datadog_api_client/v1/model/usage_profiling_hour.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class UsageProfilingHour(ModelNormal):
@cached_property
def openapi_types(_):
return {
"aas_count": (int, none_type),
"avg_container_agent_count": (int, none_type),
"host_count": (int, none_type),
"hour": (datetime,),
Expand All @@ -27,6 +28,7 @@ def openapi_types(_):
}

attribute_map = {
"aas_count": "aas_count",
"avg_container_agent_count": "avg_container_agent_count",
"host_count": "host_count",
"hour": "hour",
Expand All @@ -36,6 +38,7 @@ def openapi_types(_):

def __init__(
self_,
aas_count: Union[int, none_type, UnsetType] = unset,
avg_container_agent_count: Union[int, none_type, UnsetType] = unset,
host_count: Union[int, none_type, UnsetType] = unset,
hour: Union[datetime, UnsetType] = unset,
Expand All @@ -46,6 +49,9 @@ def __init__(
"""
The number of profiled hosts for each hour for a given organization.

:param aas_count: Contains the total number of profiled Azure app services reporting during a given hour.
:type aas_count: int, none_type, optional

:param avg_container_agent_count: Get average number of container agents for that hour.
:type avg_container_agent_count: int, none_type, optional

Expand All @@ -61,6 +67,8 @@ def __init__(
:param public_id: The organization public ID.
:type public_id: str, optional
"""
if aas_count is not unset:
kwargs["aas_count"] = aas_count
if avg_container_agent_count is not unset:
kwargs["avg_container_agent_count"] = avg_container_agent_count
if host_count is not unset:
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 @@ -90,6 +90,7 @@ def openapi_types(_):
"opentelemetry_apm_host_top99p": (int,),
"opentelemetry_host_top99p": (int,),
"orgs": ([UsageSummaryDateOrg],),
"profiling_aas_count_top99p": (int,),
"profiling_host_top99p": (int,),
"rum_browser_and_mobile_session_count": (int,),
"rum_session_count_sum": (int,),
Expand Down Expand Up @@ -178,6 +179,7 @@ def openapi_types(_):
"opentelemetry_apm_host_top99p": "opentelemetry_apm_host_top99p",
"opentelemetry_host_top99p": "opentelemetry_host_top99p",
"orgs": "orgs",
"profiling_aas_count_top99p": "profiling_aas_count_top99p",
"profiling_host_top99p": "profiling_host_top99p",
"rum_browser_and_mobile_session_count": "rum_browser_and_mobile_session_count",
"rum_session_count_sum": "rum_session_count_sum",
Expand Down Expand Up @@ -267,6 +269,7 @@ def __init__(
opentelemetry_apm_host_top99p: Union[int, UnsetType] = unset,
opentelemetry_host_top99p: Union[int, UnsetType] = unset,
orgs: Union[List[UsageSummaryDateOrg], UnsetType] = unset,
profiling_aas_count_top99p: Union[int, UnsetType] = unset,
profiling_host_top99p: Union[int, UnsetType] = unset,
rum_browser_and_mobile_session_count: Union[int, UnsetType] = unset,
rum_session_count_sum: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -489,6 +492,9 @@ def __init__(
:param orgs: Organizations associated with a user.
:type orgs: [UsageSummaryDateOrg], optional

:param profiling_aas_count_top99p: Shows the 99th percentile of all profiled Azure app services over all hours in the current date for all organizations.
:type profiling_aas_count_top99p: int, optional

:param profiling_host_top99p: Shows the 99th percentile of all profiled hosts over all hours in the current date for all organizations.
:type profiling_host_top99p: int, optional

Expand Down Expand Up @@ -678,6 +684,8 @@ def __init__(
kwargs["opentelemetry_host_top99p"] = opentelemetry_host_top99p
if orgs is not unset:
kwargs["orgs"] = orgs
if profiling_aas_count_top99p is not unset:
kwargs["profiling_aas_count_top99p"] = profiling_aas_count_top99p
if profiling_host_top99p is not unset:
kwargs["profiling_host_top99p"] = profiling_host_top99p
if rum_browser_and_mobile_session_count is not unset:
Expand Down
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 @@ -83,6 +83,7 @@ def openapi_types(_):
"online_archive_events_count_sum": (int,),
"opentelemetry_apm_host_top99p": (int,),
"opentelemetry_host_top99p": (int,),
"profiling_aas_count_top99p": (int,),
"profiling_host_top99p": (int,),
"public_id": (str,),
"region": (str,),
Expand Down Expand Up @@ -173,6 +174,7 @@ def openapi_types(_):
"online_archive_events_count_sum": "online_archive_events_count_sum",
"opentelemetry_apm_host_top99p": "opentelemetry_apm_host_top99p",
"opentelemetry_host_top99p": "opentelemetry_host_top99p",
"profiling_aas_count_top99p": "profiling_aas_count_top99p",
"profiling_host_top99p": "profiling_host_top99p",
"public_id": "public_id",
"region": "region",
Expand Down Expand Up @@ -264,6 +266,7 @@ def __init__(
online_archive_events_count_sum: Union[int, UnsetType] = unset,
opentelemetry_apm_host_top99p: Union[int, UnsetType] = unset,
opentelemetry_host_top99p: Union[int, UnsetType] = unset,
profiling_aas_count_top99p: Union[int, UnsetType] = unset,
profiling_host_top99p: Union[int, UnsetType] = unset,
public_id: Union[str, UnsetType] = unset,
region: Union[str, UnsetType] = unset,
Expand Down Expand Up @@ -488,6 +491,9 @@ def __init__(
:param opentelemetry_host_top99p: Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current date for the given org.
:type opentelemetry_host_top99p: int, optional

:param profiling_aas_count_top99p: Shows the 99th percentile of all profiled Azure app services over all hours in the current date for all organizations.
:type profiling_aas_count_top99p: int, optional

:param profiling_host_top99p: Shows the 99th percentile of all profiled hosts over all hours in the current date for the given org.
:type profiling_host_top99p: int, optional

Expand Down Expand Up @@ -683,6 +689,8 @@ def __init__(
kwargs["opentelemetry_apm_host_top99p"] = opentelemetry_apm_host_top99p
if opentelemetry_host_top99p is not unset:
kwargs["opentelemetry_host_top99p"] = opentelemetry_host_top99p
if profiling_aas_count_top99p is not unset:
kwargs["profiling_aas_count_top99p"] = profiling_aas_count_top99p
if profiling_host_top99p is not unset:
kwargs["profiling_host_top99p"] = profiling_host_top99p
if public_id is not unset:
Expand Down
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 @@ -96,6 +96,7 @@ def openapi_types(_):
"online_archive_events_count_agg_sum": (int,),
"opentelemetry_apm_host_top99p_sum": (int,),
"opentelemetry_host_top99p_sum": (int,),
"profiling_aas_count_top99p_sum": (int,),
"profiling_container_agent_count_avg": (int,),
"profiling_host_count_top99p_sum": (int,),
"rehydrated_indexed_events_agg_sum": (int,),
Expand Down Expand Up @@ -193,6 +194,7 @@ def openapi_types(_):
"online_archive_events_count_agg_sum": "online_archive_events_count_agg_sum",
"opentelemetry_apm_host_top99p_sum": "opentelemetry_apm_host_top99p_sum",
"opentelemetry_host_top99p_sum": "opentelemetry_host_top99p_sum",
"profiling_aas_count_top99p_sum": "profiling_aas_count_top99p_sum",
"profiling_container_agent_count_avg": "profiling_container_agent_count_avg",
"profiling_host_count_top99p_sum": "profiling_host_count_top99p_sum",
"rehydrated_indexed_events_agg_sum": "rehydrated_indexed_events_agg_sum",
Expand Down Expand Up @@ -291,6 +293,7 @@ def __init__(
online_archive_events_count_agg_sum: Union[int, UnsetType] = unset,
opentelemetry_apm_host_top99p_sum: Union[int, UnsetType] = unset,
opentelemetry_host_top99p_sum: Union[int, UnsetType] = unset,
profiling_aas_count_top99p_sum: Union[int, UnsetType] = unset,
profiling_container_agent_count_avg: Union[int, UnsetType] = unset,
profiling_host_count_top99p_sum: Union[int, UnsetType] = unset,
rehydrated_indexed_events_agg_sum: Union[int, UnsetType] = unset,
Expand Down Expand Up @@ -530,6 +533,9 @@ def __init__(
:param opentelemetry_host_top99p_sum: Shows the 99th percentile of all hosts reported by the Datadog exporter for the OpenTelemetry Collector over all hours in the current months for all organizations.
:type opentelemetry_host_top99p_sum: int, optional

:param profiling_aas_count_top99p_sum: Shows the 99th percentile of all profiled Azure app services over all hours in the current months for all organizations.
:type profiling_aas_count_top99p_sum: int, optional

:param profiling_container_agent_count_avg: Shows the average number of profiled containers over all hours in the current months for all organizations.
:type profiling_container_agent_count_avg: int, optional

Expand Down Expand Up @@ -744,6 +750,8 @@ def __init__(
kwargs["opentelemetry_apm_host_top99p_sum"] = opentelemetry_apm_host_top99p_sum
if opentelemetry_host_top99p_sum is not unset:
kwargs["opentelemetry_host_top99p_sum"] = opentelemetry_host_top99p_sum
if profiling_aas_count_top99p_sum is not unset:
kwargs["profiling_aas_count_top99p_sum"] = profiling_aas_count_top99p_sum
if profiling_container_agent_count_avg is not unset:
kwargs["profiling_container_agent_count_avg"] = profiling_container_agent_count_avg
if profiling_host_count_top99p_sum is not unset:
Expand Down