# 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.alert import Alert class TestAlert(unittest.TestCase): """Alert unit test stubs""" def setUp(self): pass def tearDown(self): pass def make_instance(self, include_optional) -> Alert: """Test Alert 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 `Alert` """ model = Alert() if include_optional: return Alert( 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, 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 = '', ), ), alert_rule_id = '127094', alert_state = 'active', alert_severity = 'major' ) else: return Alert( ) """ def testAlert(self): """Test Alert""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) if __name__ == '__main__': unittest.main()