mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-03-22 11:06:50 +00:00
64 lines
2.8 KiB
Python
64 lines
2.8 KiB
Python
# coding: utf-8
|
||
|
||
"""
|
||
Alerts API
|
||
|
||
You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: * **Alerts**: Retrieve alert details. Alerts are assigned to tests through alert rules. * **Alert Rules**: Conditions that you configure in order to highlight or be notified of events of interest in your ThousandEyes tests. When an alert rule’s conditions are met, the associated alert is triggered and the alert becomes active. It remains active until the alert is cleared. Alert rules are reusable across multiple tests.. * **Alert Suppression Windows**: Suppress alerts for tests during periods such as planned maintenance. Windows can be one-time events or recurring events to handle periodic occurrences such as monthly downtime for maintenance. For more information about the alerts, see [Alerts](https://docs.thousandeyes.com/product-documentation/alerts).
|
||
|
||
The version of the OpenAPI document: 7.0.0
|
||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||
|
||
Do not edit the class manually.
|
||
""" # noqa: E501
|
||
|
||
|
||
import unittest
|
||
|
||
from alerts.models.get_suppression_windows200_response import GetSuppressionWindows200Response
|
||
|
||
class TestGetSuppressionWindows200Response(unittest.TestCase):
|
||
"""GetSuppressionWindows200Response unit test stubs"""
|
||
|
||
def setUp(self):
|
||
pass
|
||
|
||
def tearDown(self):
|
||
pass
|
||
|
||
def make_instance(self, include_optional) -> GetSuppressionWindows200Response:
|
||
"""Test GetSuppressionWindows200Response
|
||
include_option is a boolean, when False only required
|
||
params are included, when True both required and
|
||
optional params are included """
|
||
# uncomment below to create an instance of `GetSuppressionWindows200Response`
|
||
"""
|
||
model = GetSuppressionWindows200Response()
|
||
if include_optional:
|
||
return GetSuppressionWindows200Response(
|
||
alert_suppression_windows = [
|
||
null
|
||
],
|
||
links = alerts.models.self_links__links.SelfLinks__links(
|
||
self = alerts.models.link.Link(
|
||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
||
templated = True,
|
||
type = '',
|
||
deprecation = '',
|
||
name = '',
|
||
profile = '',
|
||
title = '',
|
||
hreflang = '', ), )
|
||
)
|
||
else:
|
||
return GetSuppressionWindows200Response(
|
||
)
|
||
"""
|
||
|
||
def testGetSuppressionWindows200Response(self):
|
||
"""Test GetSuppressionWindows200Response"""
|
||
# inst_req_only = self.make_instance(include_optional=False)
|
||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||
|
||
if __name__ == '__main__':
|
||
unittest.main()
|