Skip to content
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

Add user_update, recommendation and snapshot as event alert types #163

Merged
merged 1 commit into from
Nov 20, 2020
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.
Jump to
Jump to file
Failed to load files.
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.3.0",
"regenerated": "2020-11-19 18:22:25.812062",
"spec_repo_commit": "171775a"
"regenerated": "2020-11-20 17:19:54.331056",
"spec_repo_commit": "92b08fe"
},
"v2": {
"apigentools_version": "1.3.0",
"regenerated": "2020-11-19 18:22:36.800055",
"spec_repo_commit": "171775a"
"regenerated": "2020-11-20 17:20:04.502989",
"spec_repo_commit": "92b08fe"
}
}
}
4 changes: 2 additions & 2 deletions docs/v1/EventAlertType.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# EventAlertType

If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, and `success`.
If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, and `success`. | must be one of ["error", "warning", "info", "success", ]
**value** | **str** | If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`. | must be one of ["error", "warning", "info", "success", "user_update", "recommendation", "snapshot", ]

[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

Expand Down
7 changes: 5 additions & 2 deletions src/datadog_api_client/v1/model/event_alert_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class EventAlertType(ModelSimple):
'WARNING': "warning",
'INFO': "info",
'SUCCESS': "success",
'USER_UPDATE': "user_update",
'RECOMMENDATION': "recommendation",
'SNAPSHOT': "snapshot",
},
}

Expand Down Expand Up @@ -101,10 +104,10 @@ def __init__(self, *args, **kwargs):
Note that value can be passed either in args or in kwargs, but not in both.

Args:
args[0] (str): If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, and `success`.., must be one of ["error", "warning", "info", "success", ] # noqa: E501
args[0] (str): If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`.., must be one of ["error", "warning", "info", "success", "user_update", "recommendation", "snapshot", ] # noqa: E501

Keyword Args:
value (str): If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, and `success`.., must be one of ["error", "warning", "info", "success", ] # noqa: E501
value (str): If an alert event is enabled, set its type. For example, `error`, `warning`, `info`, `success`, `user_update`, `recommendation`, and `snapshot`.., must be one of ["error", "warning", "info", "success", "user_update", "recommendation", "snapshot", ] # noqa: E501
_check_type (bool): if True, values for parameters in openapi_types
will be type checked and a TypeError will be
raised if the wrong type is input.
Expand Down
10 changes: 9 additions & 1 deletion src/datadog_api_client/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1337,19 +1337,27 @@ components:
EventAlertType:
description: 'If an alert event is enabled, set its type.

For example, `error`, `warning`, `info`, and `success`.'
For example, `error`, `warning`, `info`, `success`, `user_update`,

`recommendation`, and `snapshot`.'
enum:
- error
- warning
- info
- success
- user_update
- recommendation
- snapshot
example: info
type: string
x-enum-varnames:
- ERROR
- WARNING
- INFO
- SUCCESS
- USER_UPDATE
- RECOMMENDATION
- SNAPSHOT
EventListResponse:
description: An event list response.
properties:
Expand Down