thousandeyes-sdk-python/thousandeyes-sdk-endpoint-tests/src/thousandeyes_sdk/endpoint_tests/models/alert_direction.py
2024-06-25 13:07:19 +00:00

39 lines
869 B
Python

# coding: utf-8
"""
Endpoint Tests API
Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.
The version of the OpenAPI document: 7.0.8
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self
class AlertDirection(str, Enum):
"""
Direction for applicable alert types (eg. path trace, End-to-End (Agent) etc.)
"""
"""
allowed enum values
"""
TO_MINUS_TARGET = 'to-target'
FROM_MINUS_TARGET = 'from-target'
BIDIRECTIONAL = 'bidirectional'
@classmethod
def from_json(cls, json_str: str) -> Self:
"""Create an instance of AlertDirection from a JSON string"""
return cls(json.loads(json_str))