thousandeyes-sdk-python/alerts_api/test/test_base_alert.py
2023-12-11 09:29:15 +00:00

68 lines
2.0 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.base_alert import BaseAlert
class TestBaseAlert(unittest.TestCase):
"""BaseAlert unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> BaseAlert:
"""Test BaseAlert
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 `BaseAlert`
"""
model = BaseAlert()
if include_optional:
return BaseAlert(
links = alerts_api.models.rule_links__links.RuleLinks__links(
rule = alerts_api.models.link.Link(
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
templated = True,
type = '',
deprecation = '',
name = '',
profile = '',
title = '',
hreflang = '', ), ),
id = 'e9c3bf02-a48c-4aa8-9e5f-898800d6f569',
alert_type = 'http-server',
start_date = '2020-04-23T13:43:16Z',
end_date = '2020-04-23T13:43:16Z',
violation_count = 2,
duration = 60
)
else:
return BaseAlert(
)
"""
def testBaseAlert(self):
"""Test BaseAlert"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()