-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
- Loading branch information
1 parent
34d2891
commit a726e0a
Showing
28 changed files
with
219 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
# This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
# Copyright 2019-Present Datadog, Inc. | ||
from __future__ import annotations | ||
|
||
|
||
from datadog_api_client.model_utils import ( | ||
ModelSimple, | ||
cached_property, | ||
) | ||
|
||
from typing import ClassVar | ||
|
||
|
||
class WidgetLiveSpan(ModelSimple): | ||
""" | ||
The available timeframes depend on the widget you are using. | ||
:param value: Must be one of ["1m", "5m", "10m", "15m", "30m", "1h", "4h", "1d", "2d", "1w", "1mo", "3mo", "6mo", "1y", "alert"]. | ||
:type value: str | ||
""" | ||
|
||
allowed_values = { | ||
"1m", | ||
"5m", | ||
"10m", | ||
"15m", | ||
"30m", | ||
"1h", | ||
"4h", | ||
"1d", | ||
"2d", | ||
"1w", | ||
"1mo", | ||
"3mo", | ||
"6mo", | ||
"1y", | ||
"alert", | ||
} | ||
PAST_ONE_MINUTE: ClassVar["WidgetLiveSpan"] | ||
PAST_FIVE_MINUTES: ClassVar["WidgetLiveSpan"] | ||
PAST_TEN_MINUTES: ClassVar["WidgetLiveSpan"] | ||
PAST_FIFTEEN_MINUTES: ClassVar["WidgetLiveSpan"] | ||
PAST_THIRTY_MINUTES: ClassVar["WidgetLiveSpan"] | ||
PAST_ONE_HOUR: ClassVar["WidgetLiveSpan"] | ||
PAST_FOUR_HOURS: ClassVar["WidgetLiveSpan"] | ||
PAST_ONE_DAY: ClassVar["WidgetLiveSpan"] | ||
PAST_TWO_DAYS: ClassVar["WidgetLiveSpan"] | ||
PAST_ONE_WEEK: ClassVar["WidgetLiveSpan"] | ||
PAST_ONE_MONTH: ClassVar["WidgetLiveSpan"] | ||
PAST_THREE_MONTHS: ClassVar["WidgetLiveSpan"] | ||
PAST_SIX_MONTHS: ClassVar["WidgetLiveSpan"] | ||
PAST_ONE_YEAR: ClassVar["WidgetLiveSpan"] | ||
ALERT: ClassVar["WidgetLiveSpan"] | ||
|
||
@cached_property | ||
def openapi_types(_): | ||
return { | ||
"value": (str,), | ||
} | ||
|
||
|
||
WidgetLiveSpan.PAST_ONE_MINUTE = WidgetLiveSpan("1m") | ||
WidgetLiveSpan.PAST_FIVE_MINUTES = WidgetLiveSpan("5m") | ||
WidgetLiveSpan.PAST_TEN_MINUTES = WidgetLiveSpan("10m") | ||
WidgetLiveSpan.PAST_FIFTEEN_MINUTES = WidgetLiveSpan("15m") | ||
WidgetLiveSpan.PAST_THIRTY_MINUTES = WidgetLiveSpan("30m") | ||
WidgetLiveSpan.PAST_ONE_HOUR = WidgetLiveSpan("1h") | ||
WidgetLiveSpan.PAST_FOUR_HOURS = WidgetLiveSpan("4h") | ||
WidgetLiveSpan.PAST_ONE_DAY = WidgetLiveSpan("1d") | ||
WidgetLiveSpan.PAST_TWO_DAYS = WidgetLiveSpan("2d") | ||
WidgetLiveSpan.PAST_ONE_WEEK = WidgetLiveSpan("1w") | ||
WidgetLiveSpan.PAST_ONE_MONTH = WidgetLiveSpan("1mo") | ||
WidgetLiveSpan.PAST_THREE_MONTHS = WidgetLiveSpan("3mo") | ||
WidgetLiveSpan.PAST_SIX_MONTHS = WidgetLiveSpan("6mo") | ||
WidgetLiveSpan.PAST_ONE_YEAR = WidgetLiveSpan("1y") | ||
WidgetLiveSpan.ALERT = WidgetLiveSpan("alert") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/v1/cassettes/test_scenarios/test_create_a_new_dashboard_with_powerpack_widget.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-10-11T18:44:47.026Z | ||
2023-10-24T18:32:08.933Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/v2/cassettes/test_scenarios/test_create_a_new_powerpack_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-10-11T15:48:55.126Z | ||
2023-10-24T18:32:10.926Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/v2/cassettes/test_scenarios/test_delete_a_powerpack_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2023-10-11T15:48:55.488Z | ||
2023-10-24T18:32:12.418Z |
Oops, something went wrong.