mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2026-03-22 02:56:51 +00:00
72 lines
2.3 KiB
Python
72 lines
2.3 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Alerts API
|
|
|
|
## Overview Manage all alerts, alert rules and alert suppression windows.
|
|
|
|
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
|
|
import datetime
|
|
|
|
from alerts_api.models.complete_alert_suppression_window import CompleteAlertSuppressionWindow
|
|
|
|
class TestCompleteAlertSuppressionWindow(unittest.TestCase):
|
|
"""CompleteAlertSuppressionWindow unit test stubs"""
|
|
|
|
def setUp(self):
|
|
pass
|
|
|
|
def tearDown(self):
|
|
pass
|
|
|
|
def make_instance(self, include_optional) -> CompleteAlertSuppressionWindow:
|
|
"""Test CompleteAlertSuppressionWindow
|
|
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 `CompleteAlertSuppressionWindow`
|
|
"""
|
|
model = CompleteAlertSuppressionWindow()
|
|
if include_optional:
|
|
return CompleteAlertSuppressionWindow(
|
|
alert_suppression_window_id = '2411',
|
|
name = 'Monthly maintenance',
|
|
is_enabled = False,
|
|
status = 'ended',
|
|
start_date = '2017-07-01T05:00Z',
|
|
duration = 0,
|
|
repeat = alerts_api.models.repeat.Repeat(
|
|
type = 'week',
|
|
interval_type = 'day',
|
|
interval_length = 2,
|
|
days_of_week = [
|
|
'sun'
|
|
], ),
|
|
end_repeat = alerts_api.models.end_repeat.EndRepeat(
|
|
type = 'never',
|
|
count = 3,
|
|
date = 'Sat Jul 01 01:00:00 BST 2017', ),
|
|
tests = [
|
|
null
|
|
]
|
|
)
|
|
else:
|
|
return CompleteAlertSuppressionWindow(
|
|
)
|
|
"""
|
|
|
|
def testCompleteAlertSuppressionWindow(self):
|
|
"""Test CompleteAlertSuppressionWindow"""
|
|
# inst_req_only = self.make_instance(include_optional=False)
|
|
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|