Skip to content

Commit

Permalink
Regenerate client from commit 28778f1 of spec repo (#809)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jan 31, 2022
1 parent 4c9bfa9 commit 12e65a2
Show file tree
Hide file tree
Showing 52 changed files with 771 additions and 18 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.1",
"regenerated": "2022-01-27 16:02:03.387181",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:57.942418",
"spec_repo_commit": "28778f1"
},
"v2": {
"apigentools_version": "1.6.1",
"regenerated": "2022-01-27 16:02:03.911147",
"spec_repo_commit": "c738c50"
"regenerated": "2022-01-31 10:15:58.422149",
"spec_repo_commit": "28778f1"
}
}
}
42 changes: 42 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12428,6 +12428,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageAnalyzedLogsResponse:
description: A response containing the number of analyzed logs for each hour
Expand Down Expand Up @@ -13347,6 +13353,12 @@ components:
of the given hour's month until the given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIncidentManagementResponse:
description: Response containing the incident management usage for each hour
Expand All @@ -13369,6 +13381,12 @@ components:
description: Contains the number of spans indexed.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIndexedSpansResponse:
description: A response containing indexed spans usage.
Expand All @@ -13392,6 +13410,12 @@ components:
hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIngestedSpansResponse:
description: Response containing the ingested spans usage for each hour for
Expand All @@ -13414,6 +13438,12 @@ components:
description: The total number of IoT devices during a given hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageIoTResponse:
description: Response containing the IoT usage for each hour for a given organization.
Expand Down Expand Up @@ -13641,6 +13671,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageProfilingResponse:
description: Response containing the number of profiled hosts for each hour
Expand Down Expand Up @@ -13782,6 +13818,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
snmp_devices:
description: Contains the number of SNMP devices.
format: int64
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/UsageAnalyzedLogsHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageIncidentManagementHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageIndexedSpansHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageIngestedSpansHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageIoTHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageProfilingHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions docs/v1/UsageSNMPHour.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetIncidentManagement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for incident management returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_incident_management(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetIngestedSpans.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for ingested spans returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_ingested_spans(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetUsageAnalyzedLogs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for analyzed logs returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_analyzed_logs(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetUsageIndexedSpans.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for indexed spans returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_indexed_spans(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetUsageInternetOfThings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for IoT returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_internet_of_things(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetUsageProfiling.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for profiled hosts returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_profiling(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
18 changes: 18 additions & 0 deletions examples/v1/usage-metering/GetUsageSNMP.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"""
Get hourly usage for SNMP devices returns "OK" response
"""

from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client.v1 import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = UsageMeteringApi(api_client)
response = api_instance.get_usage_snmp(
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"),
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"),
)

print(response)
6 changes: 6 additions & 0 deletions src/datadog_api_client/v1/model/usage_analyzed_logs_hour.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/datadog_api_client/v1/model/usage_indexed_spans_hour.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/datadog_api_client/v1/model/usage_ingested_spans_hour.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12e65a2

Please sign in to comment.