mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
38 lines
1.9 KiB
Markdown
38 lines
1.9 KiB
Markdown
# BaseAlert
|
|
|
|
|
|
## Properties
|
|
|
|
Name | Type | Description | Notes
|
|
------------ | ------------- | ------------- | -------------
|
|
**id** | **str** | A unique ID for each individual alert occurrence. | [optional] [readonly]
|
|
**alert_type** | [**AlertType**](AlertType.md) | | [optional]
|
|
**start_date** | **datetime** | (Optional) When passing `window` or `startDate` parameter, the client will also receive the `startDate` field indicating the UTC start date of the data's time range being retrieved (ISO date-time format). | [optional] [readonly]
|
|
**end_date** | **datetime** | (Optional) When passing `window` or `endDate` parameter, the client will also receive the `endDate` field indicating the UTC end date of the data's time range being retrieved (ISO date-time format). | [optional] [readonly]
|
|
**violation_count** | **int** | Number of sources that meet the alert criteria. | [optional]
|
|
**duration** | **int** | Duration in seconds the alert was active | [optional]
|
|
**suppressed** | **bool** | Indicates whether the alert is currently suppressed by a real-time ASW. | [optional]
|
|
**meta** | [**AlertMeta**](AlertMeta.md) | | [optional]
|
|
**links** | [**AlertLinks**](AlertLinks.md) | | [optional]
|
|
|
|
## Example
|
|
|
|
```python
|
|
from thousandeyes_sdk.alerts.models.base_alert import BaseAlert
|
|
|
|
# TODO update the JSON string below
|
|
json = "{}"
|
|
# create an instance of BaseAlert from a JSON string
|
|
base_alert_instance = BaseAlert.from_json(json)
|
|
# print the JSON string representation of the object
|
|
print(BaseAlert.to_json())
|
|
|
|
# convert the object into a dict
|
|
base_alert_dict = base_alert_instance.to_dict()
|
|
# create an instance of BaseAlert from a dict
|
|
base_alert_from_dict = BaseAlert.from_dict(base_alert_dict)
|
|
```
|
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
|
|
|