mirror of
https://github.com/thousandeyes/thousandeyes-sdk-python.git
synced 2025-12-06 06:26:51 +00:00
CP-2205 - Cleans empty unused model tests
This commit is contained in:
parent
aeeba1556a
commit
c9edb7ee1d
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.account_group import AccountGroup
|
|
||||||
|
|
||||||
class TestAccountGroup(unittest.TestCase):
|
|
||||||
"""AccountGroup unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AccountGroup:
|
|
||||||
"""Test AccountGroup
|
|
||||||
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 `AccountGroup`
|
|
||||||
"""
|
|
||||||
model = AccountGroup()
|
|
||||||
if include_optional:
|
|
||||||
return AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AccountGroup(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAccountGroup(self):
|
|
||||||
"""Test AccountGroup"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent import Agent
|
|
||||||
|
|
||||||
class TestAgent(unittest.TestCase):
|
|
||||||
"""Agent unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Agent:
|
|
||||||
"""Test Agent
|
|
||||||
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 `Agent`
|
|
||||||
"""
|
|
||||||
model = Agent()
|
|
||||||
if include_optional:
|
|
||||||
return Agent(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
agent_type = 'enterprise-cluster'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Agent(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgent(self):
|
|
||||||
"""Test Agent"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_base import AgentBase
|
|
||||||
|
|
||||||
class TestAgentBase(unittest.TestCase):
|
|
||||||
"""AgentBase unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentBase:
|
|
||||||
"""Test AgentBase
|
|
||||||
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 `AgentBase`
|
|
||||||
"""
|
|
||||||
model = AgentBase()
|
|
||||||
if include_optional:
|
|
||||||
return AgentBase(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentBase(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentBase(self):
|
|
||||||
"""Test AgentBase"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_cluster_assign_request import AgentClusterAssignRequest
|
|
||||||
|
|
||||||
class TestAgentClusterAssignRequest(unittest.TestCase):
|
|
||||||
"""AgentClusterAssignRequest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentClusterAssignRequest:
|
|
||||||
"""Test AgentClusterAssignRequest
|
|
||||||
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 `AgentClusterAssignRequest`
|
|
||||||
"""
|
|
||||||
model = AgentClusterAssignRequest()
|
|
||||||
if include_optional:
|
|
||||||
return AgentClusterAssignRequest(
|
|
||||||
agents = ["281474976710706"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentClusterAssignRequest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentClusterAssignRequest(self):
|
|
||||||
"""Test AgentClusterAssignRequest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_cluster_unassign_request import AgentClusterUnassignRequest
|
|
||||||
|
|
||||||
class TestAgentClusterUnassignRequest(unittest.TestCase):
|
|
||||||
"""AgentClusterUnassignRequest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentClusterUnassignRequest:
|
|
||||||
"""Test AgentClusterUnassignRequest
|
|
||||||
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 `AgentClusterUnassignRequest`
|
|
||||||
"""
|
|
||||||
model = AgentClusterUnassignRequest()
|
|
||||||
if include_optional:
|
|
||||||
return AgentClusterUnassignRequest(
|
|
||||||
members = ["281474976710706"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentClusterUnassignRequest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentClusterUnassignRequest(self):
|
|
||||||
"""Test AgentClusterUnassignRequest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,113 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_details import AgentDetails
|
|
||||||
|
|
||||||
class TestAgentDetails(unittest.TestCase):
|
|
||||||
"""AgentDetails unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentDetails:
|
|
||||||
"""Test AgentDetails
|
|
||||||
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 `AgentDetails`
|
|
||||||
"""
|
|
||||||
model = AgentDetails()
|
|
||||||
if include_optional:
|
|
||||||
return AgentDetails(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
tests = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
labels = [
|
|
||||||
thousandeyes_sdk.agents.models.labels.Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name', )
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), ),
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
],
|
|
||||||
notification_rules = [
|
|
||||||
thousandeyes_sdk.agents.models.notification_rules.NotificationRules(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}], )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentDetails(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentDetails(self):
|
|
||||||
"""Test AgentDetails"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_details_expand import AgentDetailsExpand
|
|
||||||
|
|
||||||
class TestAgentDetailsExpand(unittest.TestCase):
|
|
||||||
"""AgentDetailsExpand unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAgentDetailsExpand(self):
|
|
||||||
"""Test AgentDetailsExpand"""
|
|
||||||
# inst = AgentDetailsExpand()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_ipv6_policy import AgentIpv6Policy
|
|
||||||
|
|
||||||
class TestAgentIpv6Policy(unittest.TestCase):
|
|
||||||
"""AgentIpv6Policy unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAgentIpv6Policy(self):
|
|
||||||
"""Test AgentIpv6Policy"""
|
|
||||||
# inst = AgentIpv6Policy()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_list_expand import AgentListExpand
|
|
||||||
|
|
||||||
class TestAgentListExpand(unittest.TestCase):
|
|
||||||
"""AgentListExpand unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAgentListExpand(self):
|
|
||||||
"""Test AgentListExpand"""
|
|
||||||
# inst = AgentListExpand()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,74 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_proxies import AgentProxies
|
|
||||||
|
|
||||||
class TestAgentProxies(unittest.TestCase):
|
|
||||||
"""AgentProxies unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentProxies:
|
|
||||||
"""Test AgentProxies
|
|
||||||
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 `AgentProxies`
|
|
||||||
"""
|
|
||||||
model = AgentProxies()
|
|
||||||
if include_optional:
|
|
||||||
return AgentProxies(
|
|
||||||
agent_proxies = [
|
|
||||||
thousandeyes_sdk.agents.models.agent_proxy.AgentProxy(
|
|
||||||
aid = '1234',
|
|
||||||
auth_type = 'basic',
|
|
||||||
bypass_list = ["10.0.0.0/16","*.thousandeyes.com"],
|
|
||||||
last_modified = '2022-07-17T22:00:54Z',
|
|
||||||
location = 'proxy.thousandeyes.com:3128',
|
|
||||||
is_local_configured = True,
|
|
||||||
name = 'Test Proxy - Auth Type - BASIC',
|
|
||||||
password = '****',
|
|
||||||
proxy_id = '281474976710706',
|
|
||||||
type = 'static',
|
|
||||||
user = 'user1', )
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentProxies(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentProxies(self):
|
|
||||||
"""Test AgentProxies"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_proxy import AgentProxy
|
|
||||||
|
|
||||||
class TestAgentProxy(unittest.TestCase):
|
|
||||||
"""AgentProxy unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentProxy:
|
|
||||||
"""Test AgentProxy
|
|
||||||
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 `AgentProxy`
|
|
||||||
"""
|
|
||||||
model = AgentProxy()
|
|
||||||
if include_optional:
|
|
||||||
return AgentProxy(
|
|
||||||
aid = '1234',
|
|
||||||
auth_type = 'basic',
|
|
||||||
bypass_list = ["10.0.0.0/16","*.thousandeyes.com"],
|
|
||||||
last_modified = '2022-07-17T22:00:54Z',
|
|
||||||
location = 'proxy.thousandeyes.com:3128',
|
|
||||||
is_local_configured = True,
|
|
||||||
name = 'Test Proxy - Auth Type - BASIC',
|
|
||||||
password = '****',
|
|
||||||
proxy_id = '281474976710706',
|
|
||||||
type = 'static',
|
|
||||||
user = 'user1'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentProxy(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentProxy(self):
|
|
||||||
"""Test AgentProxy"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.agent_request import AgentRequest
|
|
||||||
|
|
||||||
class TestAgentRequest(unittest.TestCase):
|
|
||||||
"""AgentRequest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AgentRequest:
|
|
||||||
"""Test AgentRequest
|
|
||||||
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 `AgentRequest`
|
|
||||||
"""
|
|
||||||
model = AgentRequest()
|
|
||||||
if include_optional:
|
|
||||||
return AgentRequest(
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
enabled = True,
|
|
||||||
account_groups = ["1234","1"],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = ["10.2.3.3/24","10.2.3.3/25"],
|
|
||||||
tests = ["12313145","12345"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AgentRequest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAgentRequest(self):
|
|
||||||
"""Test AgentRequest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.alert_email import AlertEmail
|
|
||||||
|
|
||||||
class TestAlertEmail(unittest.TestCase):
|
|
||||||
"""AlertEmail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertEmail:
|
|
||||||
"""Test AlertEmail
|
|
||||||
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 `AlertEmail`
|
|
||||||
"""
|
|
||||||
model = AlertEmail()
|
|
||||||
if include_optional:
|
|
||||||
return AlertEmail(
|
|
||||||
message = 'This test is failing, check as soon as possible.',
|
|
||||||
recipients = ["user1@thousandeyes.com","user2@cisco.com"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertEmail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertEmail(self):
|
|
||||||
"""Test AlertEmail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.alert_integration_base import AlertIntegrationBase
|
|
||||||
|
|
||||||
class TestAlertIntegrationBase(unittest.TestCase):
|
|
||||||
"""AlertIntegrationBase unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertIntegrationBase:
|
|
||||||
"""Test AlertIntegrationBase
|
|
||||||
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 `AlertIntegrationBase`
|
|
||||||
"""
|
|
||||||
model = AlertIntegrationBase()
|
|
||||||
if include_optional:
|
|
||||||
return AlertIntegrationBase(
|
|
||||||
integration_id = 'wb-78',
|
|
||||||
integration_name = 'integrationSlack1',
|
|
||||||
integration_type = 'slack',
|
|
||||||
target = 'https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
auth_method = 'Basic',
|
|
||||||
auth_user = 'user123',
|
|
||||||
auth_token = '0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
channel = '#slackChannel'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertIntegrationBase(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertIntegrationBase(self):
|
|
||||||
"""Test AlertIntegrationBase"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.alert_integration_type import AlertIntegrationType
|
|
||||||
|
|
||||||
class TestAlertIntegrationType(unittest.TestCase):
|
|
||||||
"""AlertIntegrationType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAlertIntegrationType(self):
|
|
||||||
"""Test AlertIntegrationType"""
|
|
||||||
# inst = AlertIntegrationType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.cloud_agent_detail import CloudAgentDetail
|
|
||||||
|
|
||||||
class TestCloudAgentDetail(unittest.TestCase):
|
|
||||||
"""CloudAgentDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> CloudAgentDetail:
|
|
||||||
"""Test CloudAgentDetail
|
|
||||||
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 `CloudAgentDetail`
|
|
||||||
"""
|
|
||||||
model = CloudAgentDetail()
|
|
||||||
if include_optional:
|
|
||||||
return CloudAgentDetail(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
agent_type = 'cloud',
|
|
||||||
tests = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
labels = [
|
|
||||||
thousandeyes_sdk.agents.models.labels.Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name', )
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return CloudAgentDetail(
|
|
||||||
agent_type = 'cloud',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testCloudAgentDetail(self):
|
|
||||||
"""Test CloudAgentDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.cloud_enterprise_agent import CloudEnterpriseAgent
|
|
||||||
|
|
||||||
class TestCloudEnterpriseAgent(unittest.TestCase):
|
|
||||||
"""CloudEnterpriseAgent unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> CloudEnterpriseAgent:
|
|
||||||
"""Test CloudEnterpriseAgent
|
|
||||||
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 `CloudEnterpriseAgent`
|
|
||||||
"""
|
|
||||||
model = CloudEnterpriseAgent()
|
|
||||||
if include_optional:
|
|
||||||
return CloudEnterpriseAgent(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return CloudEnterpriseAgent(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testCloudEnterpriseAgent(self):
|
|
||||||
"""Test CloudEnterpriseAgent"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.cloud_enterprise_agent_type import CloudEnterpriseAgentType
|
|
||||||
|
|
||||||
class TestCloudEnterpriseAgentType(unittest.TestCase):
|
|
||||||
"""CloudEnterpriseAgentType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testCloudEnterpriseAgentType(self):
|
|
||||||
"""Test CloudEnterpriseAgentType"""
|
|
||||||
# inst = CloudEnterpriseAgentType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.cloud_enterprise_agents import CloudEnterpriseAgents
|
|
||||||
|
|
||||||
class TestCloudEnterpriseAgents(unittest.TestCase):
|
|
||||||
"""CloudEnterpriseAgents unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> CloudEnterpriseAgents:
|
|
||||||
"""Test CloudEnterpriseAgents
|
|
||||||
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 `CloudEnterpriseAgents`
|
|
||||||
"""
|
|
||||||
model = CloudEnterpriseAgents()
|
|
||||||
if include_optional:
|
|
||||||
return CloudEnterpriseAgents(
|
|
||||||
agents = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return CloudEnterpriseAgents(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testCloudEnterpriseAgents(self):
|
|
||||||
"""Test CloudEnterpriseAgents"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,64 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.cluster_member import ClusterMember
|
|
||||||
|
|
||||||
class TestClusterMember(unittest.TestCase):
|
|
||||||
"""ClusterMember unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ClusterMember:
|
|
||||||
"""Test ClusterMember
|
|
||||||
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 `ClusterMember`
|
|
||||||
"""
|
|
||||||
model = ClusterMember()
|
|
||||||
if include_optional:
|
|
||||||
return ClusterMember(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
member_id = '10',
|
|
||||||
name = 'Cluster member name',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
utilization = 25
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ClusterMember(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testClusterMember(self):
|
|
||||||
"""Test ClusterMember"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,91 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent import EnterpriseAgent
|
|
||||||
|
|
||||||
class TestEnterpriseAgent(unittest.TestCase):
|
|
||||||
"""EnterpriseAgent unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EnterpriseAgent:
|
|
||||||
"""Test EnterpriseAgent
|
|
||||||
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 `EnterpriseAgent`
|
|
||||||
"""
|
|
||||||
model = EnterpriseAgent()
|
|
||||||
if include_optional:
|
|
||||||
return EnterpriseAgent(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EnterpriseAgent(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEnterpriseAgent(self):
|
|
||||||
"""Test EnterpriseAgent"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,113 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_cluster_detail import EnterpriseAgentClusterDetail
|
|
||||||
|
|
||||||
class TestEnterpriseAgentClusterDetail(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentClusterDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EnterpriseAgentClusterDetail:
|
|
||||||
"""Test EnterpriseAgentClusterDetail
|
|
||||||
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 `EnterpriseAgentClusterDetail`
|
|
||||||
"""
|
|
||||||
model = EnterpriseAgentClusterDetail()
|
|
||||||
if include_optional:
|
|
||||||
return EnterpriseAgentClusterDetail(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
],
|
|
||||||
tests = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
notification_rules = [
|
|
||||||
thousandeyes_sdk.agents.models.notification_rules.NotificationRules(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}], )
|
|
||||||
],
|
|
||||||
labels = [
|
|
||||||
thousandeyes_sdk.agents.models.labels.Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name', )
|
|
||||||
],
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EnterpriseAgentClusterDetail(
|
|
||||||
agent_type = 'enterprise-cluster',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEnterpriseAgentClusterDetail(self):
|
|
||||||
"""Test EnterpriseAgentClusterDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,79 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_data import EnterpriseAgentData
|
|
||||||
|
|
||||||
class TestEnterpriseAgentData(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentData unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EnterpriseAgentData:
|
|
||||||
"""Test EnterpriseAgentData
|
|
||||||
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 `EnterpriseAgentData`
|
|
||||||
"""
|
|
||||||
model = EnterpriseAgentData()
|
|
||||||
if include_optional:
|
|
||||||
return EnterpriseAgentData(
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EnterpriseAgentData(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEnterpriseAgentData(self):
|
|
||||||
"""Test EnterpriseAgentData"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,113 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_detail import EnterpriseAgentDetail
|
|
||||||
|
|
||||||
class TestEnterpriseAgentDetail(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EnterpriseAgentDetail:
|
|
||||||
"""Test EnterpriseAgentDetail
|
|
||||||
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 `EnterpriseAgentDetail`
|
|
||||||
"""
|
|
||||||
model = EnterpriseAgentDetail()
|
|
||||||
if include_optional:
|
|
||||||
return EnterpriseAgentDetail(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
],
|
|
||||||
tests = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
notification_rules = [
|
|
||||||
thousandeyes_sdk.agents.models.notification_rules.NotificationRules(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}], )
|
|
||||||
],
|
|
||||||
labels = [
|
|
||||||
thousandeyes_sdk.agents.models.labels.Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name', )
|
|
||||||
],
|
|
||||||
agent_type = 'enterprise',
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EnterpriseAgentDetail(
|
|
||||||
agent_type = 'enterprise',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEnterpriseAgentDetail(self):
|
|
||||||
"""Test EnterpriseAgentDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_ipv6_policy import EnterpriseAgentIpv6Policy
|
|
||||||
|
|
||||||
class TestEnterpriseAgentIpv6Policy(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentIpv6Policy unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testEnterpriseAgentIpv6Policy(self):
|
|
||||||
"""Test EnterpriseAgentIpv6Policy"""
|
|
||||||
# inst = EnterpriseAgentIpv6Policy()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_response_expands import EnterpriseAgentResponseExpands
|
|
||||||
|
|
||||||
class TestEnterpriseAgentResponseExpands(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentResponseExpands unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EnterpriseAgentResponseExpands:
|
|
||||||
"""Test EnterpriseAgentResponseExpands
|
|
||||||
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 `EnterpriseAgentResponseExpands`
|
|
||||||
"""
|
|
||||||
model = EnterpriseAgentResponseExpands()
|
|
||||||
if include_optional:
|
|
||||||
return EnterpriseAgentResponseExpands(
|
|
||||||
tests = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
notification_rules = [
|
|
||||||
thousandeyes_sdk.agents.models.notification_rules.NotificationRules(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}], )
|
|
||||||
],
|
|
||||||
labels = [
|
|
||||||
thousandeyes_sdk.agents.models.labels.Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EnterpriseAgentResponseExpands(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEnterpriseAgentResponseExpands(self):
|
|
||||||
"""Test EnterpriseAgentResponseExpands"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.enterprise_agent_state import EnterpriseAgentState
|
|
||||||
|
|
||||||
class TestEnterpriseAgentState(unittest.TestCase):
|
|
||||||
"""EnterpriseAgentState unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testEnterpriseAgentState(self):
|
|
||||||
"""Test EnterpriseAgentState"""
|
|
||||||
# inst = EnterpriseAgentState()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.error import Error
|
|
||||||
|
|
||||||
class TestError(unittest.TestCase):
|
|
||||||
"""Error unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Error:
|
|
||||||
"""Test Error
|
|
||||||
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 `Error`
|
|
||||||
"""
|
|
||||||
model = Error()
|
|
||||||
if include_optional:
|
|
||||||
return Error(
|
|
||||||
type = '',
|
|
||||||
title = '',
|
|
||||||
status = 56,
|
|
||||||
detail = '',
|
|
||||||
instance = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Error(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testError(self):
|
|
||||||
"""Test Error"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.error_detail import ErrorDetail
|
|
||||||
|
|
||||||
class TestErrorDetail(unittest.TestCase):
|
|
||||||
"""ErrorDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ErrorDetail:
|
|
||||||
"""Test ErrorDetail
|
|
||||||
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 `ErrorDetail`
|
|
||||||
"""
|
|
||||||
model = ErrorDetail()
|
|
||||||
if include_optional:
|
|
||||||
return ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ErrorDetail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testErrorDetail(self):
|
|
||||||
"""Test ErrorDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.error_detail_code import ErrorDetailCode
|
|
||||||
|
|
||||||
class TestErrorDetailCode(unittest.TestCase):
|
|
||||||
"""ErrorDetailCode unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testErrorDetailCode(self):
|
|
||||||
"""Test ErrorDetailCode"""
|
|
||||||
# inst = ErrorDetailCode()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.interface_ip_mapping import InterfaceIpMapping
|
|
||||||
|
|
||||||
class TestInterfaceIpMapping(unittest.TestCase):
|
|
||||||
"""InterfaceIpMapping unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> InterfaceIpMapping:
|
|
||||||
"""Test InterfaceIpMapping
|
|
||||||
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 `InterfaceIpMapping`
|
|
||||||
"""
|
|
||||||
model = InterfaceIpMapping()
|
|
||||||
if include_optional:
|
|
||||||
return InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return InterfaceIpMapping(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testInterfaceIpMapping(self):
|
|
||||||
"""Test InterfaceIpMapping"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.labels import Labels
|
|
||||||
|
|
||||||
class TestLabels(unittest.TestCase):
|
|
||||||
"""Labels unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Labels:
|
|
||||||
"""Test Labels
|
|
||||||
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 `Labels`
|
|
||||||
"""
|
|
||||||
model = Labels()
|
|
||||||
if include_optional:
|
|
||||||
return Labels(
|
|
||||||
label_id = '11',
|
|
||||||
name = 'Label name'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Labels(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testLabels(self):
|
|
||||||
"""Test Labels"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.link import Link
|
|
||||||
|
|
||||||
class TestLink(unittest.TestCase):
|
|
||||||
"""Link unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Link:
|
|
||||||
"""Test Link
|
|
||||||
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 `Link`
|
|
||||||
"""
|
|
||||||
model = Link()
|
|
||||||
if include_optional:
|
|
||||||
return Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testLink(self):
|
|
||||||
"""Test Link"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.list_notification_rules_response import ListNotificationRulesResponse
|
|
||||||
|
|
||||||
class TestListNotificationRulesResponse(unittest.TestCase):
|
|
||||||
"""ListNotificationRulesResponse unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ListNotificationRulesResponse:
|
|
||||||
"""Test ListNotificationRulesResponse
|
|
||||||
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 `ListNotificationRulesResponse`
|
|
||||||
"""
|
|
||||||
model = ListNotificationRulesResponse()
|
|
||||||
if include_optional:
|
|
||||||
return ListNotificationRulesResponse(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ListNotificationRulesResponse(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testListNotificationRulesResponse(self):
|
|
||||||
"""Test ListNotificationRulesResponse"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,75 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.notification import Notification
|
|
||||||
|
|
||||||
class TestNotification(unittest.TestCase):
|
|
||||||
"""Notification unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Notification:
|
|
||||||
"""Test Notification
|
|
||||||
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 `Notification`
|
|
||||||
"""
|
|
||||||
model = Notification()
|
|
||||||
if include_optional:
|
|
||||||
return Notification(
|
|
||||||
email = thousandeyes_sdk.agents.models.alert_email.AlertEmail(
|
|
||||||
message = 'This test is failing, check as soon as possible.',
|
|
||||||
recipients = ["user1@thousandeyes.com","user2@cisco.com"], ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.agents.models.alert_integration_base.AlertIntegrationBase(
|
|
||||||
integration_id = 'wb-78',
|
|
||||||
integration_name = 'integrationSlack1',
|
|
||||||
integration_type = 'slack',
|
|
||||||
target = 'https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
auth_method = 'Basic',
|
|
||||||
auth_user = 'user123',
|
|
||||||
auth_token = '0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
channel = '#slackChannel', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.agents.models.alert_integration_base.AlertIntegrationBase(
|
|
||||||
integration_id = 'wb-78',
|
|
||||||
integration_name = 'integrationSlack1',
|
|
||||||
integration_type = 'slack',
|
|
||||||
target = 'https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
auth_method = 'Basic',
|
|
||||||
auth_user = 'user123',
|
|
||||||
auth_token = '0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
channel = '#slackChannel', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Notification(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotification(self):
|
|
||||||
"""Test Notification"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.notification_rule import NotificationRule
|
|
||||||
|
|
||||||
class TestNotificationRule(unittest.TestCase):
|
|
||||||
"""NotificationRule unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationRule:
|
|
||||||
"""Test NotificationRule
|
|
||||||
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 `NotificationRule`
|
|
||||||
"""
|
|
||||||
model = NotificationRule()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationRule(
|
|
||||||
rule_id = '281474976710706',
|
|
||||||
rule_name = 'Default Agent Offline Notification',
|
|
||||||
expression = '((lastContact >= 30 min))',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = False
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationRule(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationRule(self):
|
|
||||||
"""Test NotificationRule"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.notification_rule_detail import NotificationRuleDetail
|
|
||||||
|
|
||||||
class TestNotificationRuleDetail(unittest.TestCase):
|
|
||||||
"""NotificationRuleDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationRuleDetail:
|
|
||||||
"""Test NotificationRuleDetail
|
|
||||||
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 `NotificationRuleDetail`
|
|
||||||
"""
|
|
||||||
model = NotificationRuleDetail()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationRuleDetail(
|
|
||||||
rule_id = '281474976710706',
|
|
||||||
rule_name = 'Default Agent Offline Notification',
|
|
||||||
expression = '((lastContact >= 30 min))',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = False,
|
|
||||||
notifications = thousandeyes_sdk.agents.models.notification.Notification(
|
|
||||||
email = thousandeyes_sdk.agents.models.alert_email.AlertEmail(
|
|
||||||
message = 'This test is failing, check as soon as possible.',
|
|
||||||
recipients = ["user1@thousandeyes.com","user2@cisco.com"], ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.agents.models.alert_integration_base.AlertIntegrationBase(
|
|
||||||
integration_id = 'wb-78',
|
|
||||||
integration_name = 'integrationSlack1',
|
|
||||||
integration_type = 'slack',
|
|
||||||
target = 'https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
auth_method = 'Basic',
|
|
||||||
auth_user = 'user123',
|
|
||||||
auth_token = '0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
channel = '#slackChannel', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.agents.models.alert_integration_base.AlertIntegrationBase(
|
|
||||||
integration_id = 'wb-78',
|
|
||||||
integration_name = 'integrationSlack1',
|
|
||||||
target = 'https://hooks.slack.com/services/asd/0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
auth_method = 'Basic',
|
|
||||||
auth_user = 'user123',
|
|
||||||
auth_token = '0VqDYEpidpHVAK397x8PBsmZ',
|
|
||||||
channel = '#slackChannel', )
|
|
||||||
], ),
|
|
||||||
agents = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.agents.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationRuleDetail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationRuleDetail(self):
|
|
||||||
"""Test NotificationRuleDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.notification_rules import NotificationRules
|
|
||||||
|
|
||||||
class TestNotificationRules(unittest.TestCase):
|
|
||||||
"""NotificationRules unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationRules:
|
|
||||||
"""Test NotificationRules
|
|
||||||
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 `NotificationRules`
|
|
||||||
"""
|
|
||||||
model = NotificationRules()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationRules(
|
|
||||||
agent_alert_rules = [{"ruleId":"281474976710706","ruleName":"Default Agent Offline Notification","expression":"((lastContact >= 30 min))","notifyOnClear":true,"isDefault":false},{"ruleId":"281474976710709","ruleName":"Test Rule","expression":"((lastContact >= 40 min))","notifyOnClear":true,"isDefault":true}]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationRules(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationRules(self):
|
|
||||||
"""Test NotificationRules"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.proxy_auth_type import ProxyAuthType
|
|
||||||
|
|
||||||
class TestProxyAuthType(unittest.TestCase):
|
|
||||||
"""ProxyAuthType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testProxyAuthType(self):
|
|
||||||
"""Test ProxyAuthType"""
|
|
||||||
# inst = ProxyAuthType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.proxy_type import ProxyType
|
|
||||||
|
|
||||||
class TestProxyType(unittest.TestCase):
|
|
||||||
"""ProxyType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testProxyType(self):
|
|
||||||
"""Test ProxyType"""
|
|
||||||
# inst = ProxyType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.self_links import SelfLinks
|
|
||||||
|
|
||||||
class TestSelfLinks(unittest.TestCase):
|
|
||||||
"""SelfLinks unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> SelfLinks:
|
|
||||||
"""Test SelfLinks
|
|
||||||
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 `SelfLinks`
|
|
||||||
"""
|
|
||||||
model = SelfLinks()
|
|
||||||
if include_optional:
|
|
||||||
return SelfLinks(
|
|
||||||
var_self = thousandeyes_sdk.agents.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return SelfLinks(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testSelfLinks(self):
|
|
||||||
"""Test SelfLinks"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.simple_agent import SimpleAgent
|
|
||||||
|
|
||||||
class TestSimpleAgent(unittest.TestCase):
|
|
||||||
"""SimpleAgent unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> SimpleAgent:
|
|
||||||
"""Test SimpleAgent
|
|
||||||
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 `SimpleAgent`
|
|
||||||
"""
|
|
||||||
model = SimpleAgent()
|
|
||||||
if include_optional:
|
|
||||||
return SimpleAgent(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return SimpleAgent(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testSimpleAgent(self):
|
|
||||||
"""Test SimpleAgent"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,89 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.simple_enterprise_agent import SimpleEnterpriseAgent
|
|
||||||
|
|
||||||
class TestSimpleEnterpriseAgent(unittest.TestCase):
|
|
||||||
"""SimpleEnterpriseAgent unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> SimpleEnterpriseAgent:
|
|
||||||
"""Test SimpleEnterpriseAgent
|
|
||||||
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 `SimpleEnterpriseAgent`
|
|
||||||
"""
|
|
||||||
model = SimpleEnterpriseAgent()
|
|
||||||
if include_optional:
|
|
||||||
return SimpleEnterpriseAgent(
|
|
||||||
ip_addresses = ["99.139.65.220","9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce"],
|
|
||||||
public_ip_addresses = ["192.168.1.78","f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c"],
|
|
||||||
network = 'AT&T Services, Inc. (AS 7018)',
|
|
||||||
agent_id = '281474976710706',
|
|
||||||
agent_name = 'thousandeyes-stg-va-254',
|
|
||||||
location = 'San Francisco Bay Area',
|
|
||||||
country_id = 'US',
|
|
||||||
enabled = True,
|
|
||||||
prefix = '99.128.0.0/11',
|
|
||||||
verify_ssl_certificates = True,
|
|
||||||
cluster_members = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
utilization = 25,
|
|
||||||
account_groups = [
|
|
||||||
thousandeyes_sdk.agents.models.account_group.AccountGroup(
|
|
||||||
aid = '1234',
|
|
||||||
account_group_name = 'Account A', )
|
|
||||||
],
|
|
||||||
ipv6_policy = 'force-ipv4',
|
|
||||||
error_details = [
|
|
||||||
thousandeyes_sdk.agents.models.error_detail.ErrorDetail(
|
|
||||||
code = 'agent-version-outdated',
|
|
||||||
description = 'Agent Version 0.1.1 (latest: 1.0.0)', )
|
|
||||||
],
|
|
||||||
hostname = 'thousandeyes.com',
|
|
||||||
last_seen = '2022-07-17T22:00:54Z',
|
|
||||||
agent_state = 'online',
|
|
||||||
keep_browser_cache = True,
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
target_for_tests = '1.1.1.1',
|
|
||||||
local_resolution_prefixes = [
|
|
||||||
'10.2.3.3/24'
|
|
||||||
],
|
|
||||||
interface_ip_mappings = [
|
|
||||||
thousandeyes_sdk.agents.models.interface_ip_mapping.InterfaceIpMapping(
|
|
||||||
interface_name = 'wlp4s0',
|
|
||||||
ip_addresses = ["73.252.207.219","2601:646:300:3ae0::b977"], )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return SimpleEnterpriseAgent(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testSimpleEnterpriseAgent(self):
|
|
||||||
"""Test SimpleEnterpriseAgent"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,66 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.simple_test import SimpleTest
|
|
||||||
|
|
||||||
class TestSimpleTest(unittest.TestCase):
|
|
||||||
"""SimpleTest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> SimpleTest:
|
|
||||||
"""Test SimpleTest
|
|
||||||
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 `SimpleTest`
|
|
||||||
"""
|
|
||||||
model = SimpleTest()
|
|
||||||
if include_optional:
|
|
||||||
return SimpleTest(
|
|
||||||
interval = 120,
|
|
||||||
alerts_enabled = True,
|
|
||||||
enabled = True,
|
|
||||||
created_by = 'user@user.com',
|
|
||||||
created_date = '2022-07-17T22:00:54Z',
|
|
||||||
description = 'ThousandEyes Test',
|
|
||||||
live_share = False,
|
|
||||||
modified_by = 'user@user.com',
|
|
||||||
modified_date = '2022-07-17T22:00:54Z',
|
|
||||||
saved_event = True,
|
|
||||||
test_id = '281474976710706',
|
|
||||||
test_name = 'ThousandEyes Test',
|
|
||||||
type = 'agent-to-server',
|
|
||||||
links = thousandeyes_sdk.agents.models.test_links.TestLinks(
|
|
||||||
self = null,
|
|
||||||
test_results = [{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/network"},{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"}], )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return SimpleTest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testSimpleTest(self):
|
|
||||||
"""Test SimpleTest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.test_interval import TestInterval
|
|
||||||
|
|
||||||
class TestTestInterval(unittest.TestCase):
|
|
||||||
"""TestInterval unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testTestInterval(self):
|
|
||||||
"""Test TestInterval"""
|
|
||||||
# inst = TestInterval()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.test_links import TestLinks
|
|
||||||
|
|
||||||
class TestTestLinks(unittest.TestCase):
|
|
||||||
"""TestLinks unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> TestLinks:
|
|
||||||
"""Test TestLinks
|
|
||||||
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 `TestLinks`
|
|
||||||
"""
|
|
||||||
model = TestLinks()
|
|
||||||
if include_optional:
|
|
||||||
return TestLinks(
|
|
||||||
var_self = None,
|
|
||||||
test_results = [{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/network"},{"href":"https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis"}]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return TestLinks(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testTestLinks(self):
|
|
||||||
"""Test TestLinks"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.test_self_link import TestSelfLink
|
|
||||||
|
|
||||||
class TestTestSelfLink(unittest.TestCase):
|
|
||||||
"""TestSelfLink unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> TestSelfLink:
|
|
||||||
"""Test TestSelfLink
|
|
||||||
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 `TestSelfLink`
|
|
||||||
"""
|
|
||||||
model = TestSelfLink()
|
|
||||||
if include_optional:
|
|
||||||
return TestSelfLink(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return TestSelfLink(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testTestSelfLink(self):
|
|
||||||
"""Test TestSelfLink"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.test_type import TestType
|
|
||||||
|
|
||||||
class TestTestType(unittest.TestCase):
|
|
||||||
"""TestType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testTestType(self):
|
|
||||||
"""Test TestType"""
|
|
||||||
# inst = TestType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.unauthorized_error import UnauthorizedError
|
|
||||||
|
|
||||||
class TestUnauthorizedError(unittest.TestCase):
|
|
||||||
"""UnauthorizedError unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> UnauthorizedError:
|
|
||||||
"""Test UnauthorizedError
|
|
||||||
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 `UnauthorizedError`
|
|
||||||
"""
|
|
||||||
model = UnauthorizedError()
|
|
||||||
if include_optional:
|
|
||||||
return UnauthorizedError(
|
|
||||||
error = 'invalid_token',
|
|
||||||
error_description = 'Invalid access token'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return UnauthorizedError(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testUnauthorizedError(self):
|
|
||||||
"""Test UnauthorizedError"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.validation_error import ValidationError
|
|
||||||
|
|
||||||
class TestValidationError(unittest.TestCase):
|
|
||||||
"""ValidationError unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ValidationError:
|
|
||||||
"""Test ValidationError
|
|
||||||
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 `ValidationError`
|
|
||||||
"""
|
|
||||||
model = ValidationError()
|
|
||||||
if include_optional:
|
|
||||||
return ValidationError(
|
|
||||||
type = '',
|
|
||||||
title = '',
|
|
||||||
status = 56,
|
|
||||||
detail = '',
|
|
||||||
instance = '',
|
|
||||||
errors = [
|
|
||||||
thousandeyes_sdk.agents.models.validation_error_item.ValidationErrorItem(
|
|
||||||
code = '',
|
|
||||||
field = 56,
|
|
||||||
message = '', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ValidationError(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testValidationError(self):
|
|
||||||
"""Test ValidationError"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
|
|
||||||
"""
|
|
||||||
Agents API
|
|
||||||
|
|
||||||
## Overview Manage all agents available to your account in ThousandEyes, including both Cloud and Enterprise Agents.
|
|
||||||
|
|
||||||
The version of the OpenAPI document: 7.0.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.agents.models.validation_error_item import ValidationErrorItem
|
|
||||||
|
|
||||||
class TestValidationErrorItem(unittest.TestCase):
|
|
||||||
"""ValidationErrorItem unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ValidationErrorItem:
|
|
||||||
"""Test ValidationErrorItem
|
|
||||||
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 `ValidationErrorItem`
|
|
||||||
"""
|
|
||||||
model = ValidationErrorItem()
|
|
||||||
if include_optional:
|
|
||||||
return ValidationErrorItem(
|
|
||||||
code = '',
|
|
||||||
var_field = 56,
|
|
||||||
message = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ValidationErrorItem(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testValidationErrorItem(self):
|
|
||||||
"""Test ValidationErrorItem"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.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,
|
|
||||||
suppressed = False,
|
|
||||||
meta = thousandeyes_sdk.alerts.models.alert_meta.AlertMeta(
|
|
||||||
version = 1, ),
|
|
||||||
links = thousandeyes_sdk.alerts.models.alert_links.AlertLinks(
|
|
||||||
test = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
rule = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
app_link = ,
|
|
||||||
self = , ),
|
|
||||||
alert_id = 'e9c3bf02-a48c-4aa8-9e5f-898800d6f569',
|
|
||||||
date_start = '2020-04-23 13:43:16',
|
|
||||||
date_end = '2020-04-23 13:43:16',
|
|
||||||
rule_id = 127094,
|
|
||||||
state = 'ACTIVE',
|
|
||||||
severity = 'MAJOR',
|
|
||||||
permalink = 'https://app.thousandeyes.com/alerts/list?__a=75&alertId=2783&agentId=12',
|
|
||||||
api_links = [
|
|
||||||
{ }
|
|
||||||
],
|
|
||||||
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()
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_detail import AlertDetail
|
|
||||||
|
|
||||||
class TestAlertDetail(unittest.TestCase):
|
|
||||||
"""AlertDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertDetail:
|
|
||||||
"""Test AlertDetail
|
|
||||||
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 `AlertDetail`
|
|
||||||
"""
|
|
||||||
model = AlertDetail()
|
|
||||||
if include_optional:
|
|
||||||
return AlertDetail(
|
|
||||||
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,
|
|
||||||
suppressed = False,
|
|
||||||
meta = thousandeyes_sdk.alerts.models.alert_meta.AlertMeta(
|
|
||||||
version = 1, ),
|
|
||||||
links = thousandeyes_sdk.alerts.models.alert_links.AlertLinks(
|
|
||||||
test = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
rule = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
app_link = ,
|
|
||||||
self = , ),
|
|
||||||
state = 'active',
|
|
||||||
severity = 'major',
|
|
||||||
details = [
|
|
||||||
thousandeyes_sdk.alerts.models.alert_metric_detail.AlertMetricDetail(
|
|
||||||
end = thousandeyes_sdk.alerts.models.end_alert_metrics.EndAlertMetrics(
|
|
||||||
metrics = '', ),
|
|
||||||
id = '3379',
|
|
||||||
name = 'Bucharest, Romania',
|
|
||||||
start = thousandeyes_sdk.alerts.models.start_alert_metrics.StartAlertMetrics(
|
|
||||||
metrics = '', ),
|
|
||||||
state = 'active',
|
|
||||||
type = 'cea_agent', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertDetail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertDetail(self):
|
|
||||||
"""Test AlertDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_direction import AlertDirection
|
|
||||||
|
|
||||||
class TestAlertDirection(unittest.TestCase):
|
|
||||||
"""AlertDirection unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAlertDirection(self):
|
|
||||||
"""Test AlertDirection"""
|
|
||||||
# inst = AlertDirection()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,86 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_links import AlertLinks
|
|
||||||
|
|
||||||
class TestAlertLinks(unittest.TestCase):
|
|
||||||
"""AlertLinks unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertLinks:
|
|
||||||
"""Test AlertLinks
|
|
||||||
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 `AlertLinks`
|
|
||||||
"""
|
|
||||||
model = AlertLinks()
|
|
||||||
if include_optional:
|
|
||||||
return AlertLinks(
|
|
||||||
test = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
rule = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
app_link = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
var_self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertLinks(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertLinks(self):
|
|
||||||
"""Test AlertLinks"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_meta import AlertMeta
|
|
||||||
|
|
||||||
class TestAlertMeta(unittest.TestCase):
|
|
||||||
"""AlertMeta unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertMeta:
|
|
||||||
"""Test AlertMeta
|
|
||||||
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 `AlertMeta`
|
|
||||||
"""
|
|
||||||
model = AlertMeta()
|
|
||||||
if include_optional:
|
|
||||||
return AlertMeta(
|
|
||||||
version = 1
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertMeta(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertMeta(self):
|
|
||||||
"""Test AlertMeta"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,58 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_metric_detail import AlertMetricDetail
|
|
||||||
|
|
||||||
class TestAlertMetricDetail(unittest.TestCase):
|
|
||||||
"""AlertMetricDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertMetricDetail:
|
|
||||||
"""Test AlertMetricDetail
|
|
||||||
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 `AlertMetricDetail`
|
|
||||||
"""
|
|
||||||
model = AlertMetricDetail()
|
|
||||||
if include_optional:
|
|
||||||
return AlertMetricDetail(
|
|
||||||
end = thousandeyes_sdk.alerts.models.end_alert_metrics.EndAlertMetrics(
|
|
||||||
metrics = '', ),
|
|
||||||
id = '3379',
|
|
||||||
name = 'Bucharest, Romania',
|
|
||||||
start = thousandeyes_sdk.alerts.models.start_alert_metrics.StartAlertMetrics(
|
|
||||||
metrics = '', ),
|
|
||||||
state = 'active',
|
|
||||||
type = 'cea_agent'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertMetricDetail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertMetricDetail(self):
|
|
||||||
"""Test AlertMetricDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_rounds_violation_mode import AlertRoundsViolationMode
|
|
||||||
|
|
||||||
class TestAlertRoundsViolationMode(unittest.TestCase):
|
|
||||||
"""AlertRoundsViolationMode unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAlertRoundsViolationMode(self):
|
|
||||||
"""Test AlertRoundsViolationMode"""
|
|
||||||
# inst = AlertRoundsViolationMode()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,62 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_rule import AlertRule
|
|
||||||
|
|
||||||
class TestAlertRule(unittest.TestCase):
|
|
||||||
"""AlertRule unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertRule:
|
|
||||||
"""Test AlertRule
|
|
||||||
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 `AlertRule`
|
|
||||||
"""
|
|
||||||
model = AlertRule()
|
|
||||||
if include_optional:
|
|
||||||
return AlertRule(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
severity = 'major'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertRule(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertRule(self):
|
|
||||||
"""Test AlertRule"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_suppression_window import AlertSuppressionWindow
|
|
||||||
|
|
||||||
class TestAlertSuppressionWindow(unittest.TestCase):
|
|
||||||
"""AlertSuppressionWindow unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertSuppressionWindow:
|
|
||||||
"""Test AlertSuppressionWindow
|
|
||||||
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 `AlertSuppressionWindow`
|
|
||||||
"""
|
|
||||||
model = AlertSuppressionWindow()
|
|
||||||
if include_optional:
|
|
||||||
return AlertSuppressionWindow(
|
|
||||||
alert_suppression_window_id = '2411',
|
|
||||||
name = 'Monthly maintenance',
|
|
||||||
is_enabled = False,
|
|
||||||
status = 'ended',
|
|
||||||
start_date = '2017-07-01T05:00Z',
|
|
||||||
duration = 0,
|
|
||||||
repeat = thousandeyes_sdk.alerts.models.repeat.Repeat(
|
|
||||||
type = 'week',
|
|
||||||
interval_type = 'day',
|
|
||||||
interval_length = 2,
|
|
||||||
days_of_week = [
|
|
||||||
'sun'
|
|
||||||
], ),
|
|
||||||
end_repeat = thousandeyes_sdk.alerts.models.end_repeat.EndRepeat(
|
|
||||||
type = 'never',
|
|
||||||
count = 3,
|
|
||||||
date = 'Sat Jul 01 01:00:00 BST 2017', ),
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertSuppressionWindow(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertSuppressionWindow(self):
|
|
||||||
"""Test AlertSuppressionWindow"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_suppression_window_detail import AlertSuppressionWindowDetail
|
|
||||||
|
|
||||||
class TestAlertSuppressionWindowDetail(unittest.TestCase):
|
|
||||||
"""AlertSuppressionWindowDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertSuppressionWindowDetail:
|
|
||||||
"""Test AlertSuppressionWindowDetail
|
|
||||||
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 `AlertSuppressionWindowDetail`
|
|
||||||
"""
|
|
||||||
model = AlertSuppressionWindowDetail()
|
|
||||||
if include_optional:
|
|
||||||
return AlertSuppressionWindowDetail(
|
|
||||||
alert_suppression_window_id = '2411',
|
|
||||||
name = 'Monthly maintenance',
|
|
||||||
is_enabled = False,
|
|
||||||
status = 'ended',
|
|
||||||
start_date = '2017-07-01T05:00Z',
|
|
||||||
duration = 0,
|
|
||||||
repeat = thousandeyes_sdk.alerts.models.repeat.Repeat(
|
|
||||||
type = 'week',
|
|
||||||
interval_type = 'day',
|
|
||||||
interval_length = 2,
|
|
||||||
days_of_week = [
|
|
||||||
'sun'
|
|
||||||
], ),
|
|
||||||
end_repeat = thousandeyes_sdk.alerts.models.end_repeat.EndRepeat(
|
|
||||||
type = 'never',
|
|
||||||
count = 3,
|
|
||||||
date = 'Sat Jul 01 01:00:00 BST 2017', ),
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), ),
|
|
||||||
tests = [
|
|
||||||
null
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertSuppressionWindowDetail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertSuppressionWindowDetail(self):
|
|
||||||
"""Test AlertSuppressionWindowDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,70 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_suppression_window_request import AlertSuppressionWindowRequest
|
|
||||||
|
|
||||||
class TestAlertSuppressionWindowRequest(unittest.TestCase):
|
|
||||||
"""AlertSuppressionWindowRequest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertSuppressionWindowRequest:
|
|
||||||
"""Test AlertSuppressionWindowRequest
|
|
||||||
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 `AlertSuppressionWindowRequest`
|
|
||||||
"""
|
|
||||||
model = AlertSuppressionWindowRequest()
|
|
||||||
if include_optional:
|
|
||||||
return AlertSuppressionWindowRequest(
|
|
||||||
alert_suppression_window_id = '2411',
|
|
||||||
name = 'Monthly maintenance',
|
|
||||||
is_enabled = False,
|
|
||||||
status = 'ended',
|
|
||||||
start_date = '2017-07-01T05:00Z',
|
|
||||||
duration = 0,
|
|
||||||
repeat = thousandeyes_sdk.alerts.models.repeat.Repeat(
|
|
||||||
type = 'week',
|
|
||||||
interval_type = 'day',
|
|
||||||
interval_length = 2,
|
|
||||||
days_of_week = [
|
|
||||||
'sun'
|
|
||||||
], ),
|
|
||||||
end_repeat = thousandeyes_sdk.alerts.models.end_repeat.EndRepeat(
|
|
||||||
type = 'never',
|
|
||||||
count = 3,
|
|
||||||
date = 'Sat Jul 01 01:00:00 BST 2017', ),
|
|
||||||
tests = [
|
|
||||||
'71687'
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertSuppressionWindowRequest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertSuppressionWindowRequest(self):
|
|
||||||
"""Test AlertSuppressionWindowRequest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_suppression_window_state import AlertSuppressionWindowState
|
|
||||||
|
|
||||||
class TestAlertSuppressionWindowState(unittest.TestCase):
|
|
||||||
"""AlertSuppressionWindowState unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAlertSuppressionWindowState(self):
|
|
||||||
"""Test AlertSuppressionWindowState"""
|
|
||||||
# inst = AlertSuppressionWindowState()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_suppression_windows import AlertSuppressionWindows
|
|
||||||
|
|
||||||
class TestAlertSuppressionWindows(unittest.TestCase):
|
|
||||||
"""AlertSuppressionWindows unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> AlertSuppressionWindows:
|
|
||||||
"""Test AlertSuppressionWindows
|
|
||||||
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 `AlertSuppressionWindows`
|
|
||||||
"""
|
|
||||||
model = AlertSuppressionWindows()
|
|
||||||
if include_optional:
|
|
||||||
return AlertSuppressionWindows(
|
|
||||||
alert_suppression_windows = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return AlertSuppressionWindows(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlertSuppressionWindows(self):
|
|
||||||
"""Test AlertSuppressionWindows"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alert_type import AlertType
|
|
||||||
|
|
||||||
class TestAlertType(unittest.TestCase):
|
|
||||||
"""AlertType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testAlertType(self):
|
|
||||||
"""Test AlertType"""
|
|
||||||
# inst = AlertType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,73 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.alerts import Alerts
|
|
||||||
|
|
||||||
class TestAlerts(unittest.TestCase):
|
|
||||||
"""Alerts unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Alerts:
|
|
||||||
"""Test Alerts
|
|
||||||
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 `Alerts`
|
|
||||||
"""
|
|
||||||
model = Alerts()
|
|
||||||
if include_optional:
|
|
||||||
return Alerts(
|
|
||||||
alerts = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.alerts.models.pagination_links.PaginationLinks(
|
|
||||||
previous = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
next = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
self = , )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Alerts(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testAlerts(self):
|
|
||||||
"""Test Alerts"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,80 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.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(
|
|
||||||
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,
|
|
||||||
suppressed = False,
|
|
||||||
meta = thousandeyes_sdk.alerts.models.alert_meta.AlertMeta(
|
|
||||||
version = 1, ),
|
|
||||||
links = thousandeyes_sdk.alerts.models.alert_links.AlertLinks(
|
|
||||||
test = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
rule = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
app_link = ,
|
|
||||||
self = , )
|
|
||||||
)
|
|
||||||
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()
|
|
||||||
@ -1,67 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.base_alert_suppression_window import BaseAlertSuppressionWindow
|
|
||||||
|
|
||||||
class TestBaseAlertSuppressionWindow(unittest.TestCase):
|
|
||||||
"""BaseAlertSuppressionWindow unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> BaseAlertSuppressionWindow:
|
|
||||||
"""Test BaseAlertSuppressionWindow
|
|
||||||
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 `BaseAlertSuppressionWindow`
|
|
||||||
"""
|
|
||||||
model = BaseAlertSuppressionWindow()
|
|
||||||
if include_optional:
|
|
||||||
return BaseAlertSuppressionWindow(
|
|
||||||
alert_suppression_window_id = '2411',
|
|
||||||
name = 'Monthly maintenance',
|
|
||||||
is_enabled = False,
|
|
||||||
status = 'ended',
|
|
||||||
start_date = '2017-07-01T05:00Z',
|
|
||||||
duration = 0,
|
|
||||||
repeat = thousandeyes_sdk.alerts.models.repeat.Repeat(
|
|
||||||
type = 'week',
|
|
||||||
interval_type = 'day',
|
|
||||||
interval_length = 2,
|
|
||||||
days_of_week = [
|
|
||||||
'sun'
|
|
||||||
], ),
|
|
||||||
end_repeat = thousandeyes_sdk.alerts.models.end_repeat.EndRepeat(
|
|
||||||
type = 'never',
|
|
||||||
count = 3,
|
|
||||||
date = 'Sat Jul 01 01:00:00 BST 2017', )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return BaseAlertSuppressionWindow(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testBaseAlertSuppressionWindow(self):
|
|
||||||
"""Test BaseAlertSuppressionWindow"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,69 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.base_rule import BaseRule
|
|
||||||
|
|
||||||
class TestBaseRule(unittest.TestCase):
|
|
||||||
"""BaseRule unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> BaseRule:
|
|
||||||
"""Test BaseRule
|
|
||||||
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 `BaseRule`
|
|
||||||
"""
|
|
||||||
model = BaseRule()
|
|
||||||
if include_optional:
|
|
||||||
return BaseRule(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
include_covered_prefixes = True,
|
|
||||||
severity = 'major'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return BaseRule(
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
alert_type = 'http-server',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testBaseRule(self):
|
|
||||||
"""Test BaseRule"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,68 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.base_test import BaseTest
|
|
||||||
|
|
||||||
class TestBaseTest(unittest.TestCase):
|
|
||||||
"""BaseTest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> BaseTest:
|
|
||||||
"""Test BaseTest
|
|
||||||
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 `BaseTest`
|
|
||||||
"""
|
|
||||||
model = BaseTest()
|
|
||||||
if include_optional:
|
|
||||||
return BaseTest(
|
|
||||||
interval = 120,
|
|
||||||
alerts_enabled = True,
|
|
||||||
enabled = True,
|
|
||||||
alert_rules = [
|
|
||||||
thousandeyes_sdk.alerts.models.alert_rule.AlertRule(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
severity = 'major', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return BaseTest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testBaseTest(self):
|
|
||||||
"""Test BaseTest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.days_of_week import DaysOfWeek
|
|
||||||
|
|
||||||
class TestDaysOfWeek(unittest.TestCase):
|
|
||||||
"""DaysOfWeek unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testDaysOfWeek(self):
|
|
||||||
"""Test DaysOfWeek"""
|
|
||||||
# inst = DaysOfWeek()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.end_alert_metrics import EndAlertMetrics
|
|
||||||
|
|
||||||
class TestEndAlertMetrics(unittest.TestCase):
|
|
||||||
"""EndAlertMetrics unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EndAlertMetrics:
|
|
||||||
"""Test EndAlertMetrics
|
|
||||||
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 `EndAlertMetrics`
|
|
||||||
"""
|
|
||||||
model = EndAlertMetrics()
|
|
||||||
if include_optional:
|
|
||||||
return EndAlertMetrics(
|
|
||||||
metrics = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EndAlertMetrics(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEndAlertMetrics(self):
|
|
||||||
"""Test EndAlertMetrics"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.end_repeat import EndRepeat
|
|
||||||
|
|
||||||
class TestEndRepeat(unittest.TestCase):
|
|
||||||
"""EndRepeat unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> EndRepeat:
|
|
||||||
"""Test EndRepeat
|
|
||||||
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 `EndRepeat`
|
|
||||||
"""
|
|
||||||
model = EndRepeat()
|
|
||||||
if include_optional:
|
|
||||||
return EndRepeat(
|
|
||||||
type = 'never',
|
|
||||||
count = 3,
|
|
||||||
var_date = 'Sat Jul 01 01:00:00 BST 2017'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return EndRepeat(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testEndRepeat(self):
|
|
||||||
"""Test EndRepeat"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.end_repeat_type import EndRepeatType
|
|
||||||
|
|
||||||
class TestEndRepeatType(unittest.TestCase):
|
|
||||||
"""EndRepeatType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testEndRepeatType(self):
|
|
||||||
"""Test EndRepeatType"""
|
|
||||||
# inst = EndRepeatType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,55 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.error import Error
|
|
||||||
|
|
||||||
class TestError(unittest.TestCase):
|
|
||||||
"""Error unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Error:
|
|
||||||
"""Test Error
|
|
||||||
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 `Error`
|
|
||||||
"""
|
|
||||||
model = Error()
|
|
||||||
if include_optional:
|
|
||||||
return Error(
|
|
||||||
type = '',
|
|
||||||
title = '',
|
|
||||||
status = 56,
|
|
||||||
detail = '',
|
|
||||||
instance = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Error(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testError(self):
|
|
||||||
"""Test Error"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.expand import Expand
|
|
||||||
|
|
||||||
class TestExpand(unittest.TestCase):
|
|
||||||
"""Expand unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testExpand(self):
|
|
||||||
"""Test Expand"""
|
|
||||||
# inst = Expand()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.interval_type import IntervalType
|
|
||||||
|
|
||||||
class TestIntervalType(unittest.TestCase):
|
|
||||||
"""IntervalType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testIntervalType(self):
|
|
||||||
"""Test IntervalType"""
|
|
||||||
# inst = IntervalType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,60 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.legacy_alert import LegacyAlert
|
|
||||||
|
|
||||||
class TestLegacyAlert(unittest.TestCase):
|
|
||||||
"""LegacyAlert unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> LegacyAlert:
|
|
||||||
"""Test LegacyAlert
|
|
||||||
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 `LegacyAlert`
|
|
||||||
"""
|
|
||||||
model = LegacyAlert()
|
|
||||||
if include_optional:
|
|
||||||
return LegacyAlert(
|
|
||||||
alert_id = 'e9c3bf02-a48c-4aa8-9e5f-898800d6f569',
|
|
||||||
date_start = '2020-04-23 13:43:16',
|
|
||||||
date_end = '2020-04-23 13:43:16',
|
|
||||||
rule_id = 127094,
|
|
||||||
state = 'ACTIVE',
|
|
||||||
severity = 'MAJOR',
|
|
||||||
permalink = 'https://app.thousandeyes.com/alerts/list?__a=75&alertId=2783&agentId=12',
|
|
||||||
api_links = [
|
|
||||||
{ }
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return LegacyAlert(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testLegacyAlert(self):
|
|
||||||
"""Test LegacyAlert"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.link import Link
|
|
||||||
|
|
||||||
class TestLink(unittest.TestCase):
|
|
||||||
"""Link unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Link:
|
|
||||||
"""Test Link
|
|
||||||
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 `Link`
|
|
||||||
"""
|
|
||||||
model = Link()
|
|
||||||
if include_optional:
|
|
||||||
return Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testLink(self):
|
|
||||||
"""Test Link"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,63 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.notification import Notification
|
|
||||||
|
|
||||||
class TestNotification(unittest.TestCase):
|
|
||||||
"""Notification unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Notification:
|
|
||||||
"""Test Notification
|
|
||||||
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 `Notification`
|
|
||||||
"""
|
|
||||||
model = Notification()
|
|
||||||
if include_optional:
|
|
||||||
return Notification(
|
|
||||||
email = thousandeyes_sdk.alerts.models.notification_email.NotificationEmail(
|
|
||||||
recipients = ["noreply@thousandeyes.com"],
|
|
||||||
message = 'Notification message', ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_third_party.NotificationThirdParty(
|
|
||||||
integration_id = 'sl-101',
|
|
||||||
integration_type = 'slack', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_webhook.NotificationWebhook(
|
|
||||||
integration_id = 'wb-201',
|
|
||||||
integration_type = 'webhook', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Notification(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotification(self):
|
|
||||||
"""Test Notification"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.notification_email import NotificationEmail
|
|
||||||
|
|
||||||
class TestNotificationEmail(unittest.TestCase):
|
|
||||||
"""NotificationEmail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationEmail:
|
|
||||||
"""Test NotificationEmail
|
|
||||||
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 `NotificationEmail`
|
|
||||||
"""
|
|
||||||
model = NotificationEmail()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationEmail(
|
|
||||||
recipients = ["noreply@thousandeyes.com"],
|
|
||||||
message = 'Notification message'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationEmail(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationEmail(self):
|
|
||||||
"""Test NotificationEmail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.notification_third_party import NotificationThirdParty
|
|
||||||
|
|
||||||
class TestNotificationThirdParty(unittest.TestCase):
|
|
||||||
"""NotificationThirdParty unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationThirdParty:
|
|
||||||
"""Test NotificationThirdParty
|
|
||||||
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 `NotificationThirdParty`
|
|
||||||
"""
|
|
||||||
model = NotificationThirdParty()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationThirdParty(
|
|
||||||
integration_id = 'sl-101',
|
|
||||||
integration_type = 'slack'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationThirdParty(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationThirdParty(self):
|
|
||||||
"""Test NotificationThirdParty"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.notification_webhook import NotificationWebhook
|
|
||||||
|
|
||||||
class TestNotificationWebhook(unittest.TestCase):
|
|
||||||
"""NotificationWebhook unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> NotificationWebhook:
|
|
||||||
"""Test NotificationWebhook
|
|
||||||
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 `NotificationWebhook`
|
|
||||||
"""
|
|
||||||
model = NotificationWebhook()
|
|
||||||
if include_optional:
|
|
||||||
return NotificationWebhook(
|
|
||||||
integration_id = 'wb-201',
|
|
||||||
integration_type = 'webhook'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return NotificationWebhook(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testNotificationWebhook(self):
|
|
||||||
"""Test NotificationWebhook"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.pagination_links import PaginationLinks
|
|
||||||
|
|
||||||
class TestPaginationLinks(unittest.TestCase):
|
|
||||||
"""PaginationLinks unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> PaginationLinks:
|
|
||||||
"""Test PaginationLinks
|
|
||||||
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 `PaginationLinks`
|
|
||||||
"""
|
|
||||||
model = PaginationLinks()
|
|
||||||
if include_optional:
|
|
||||||
return PaginationLinks(
|
|
||||||
previous = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
next = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ),
|
|
||||||
var_self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return PaginationLinks(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testPaginationLinks(self):
|
|
||||||
"""Test PaginationLinks"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,56 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.repeat import Repeat
|
|
||||||
|
|
||||||
class TestRepeat(unittest.TestCase):
|
|
||||||
"""Repeat unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Repeat:
|
|
||||||
"""Test Repeat
|
|
||||||
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 `Repeat`
|
|
||||||
"""
|
|
||||||
model = Repeat()
|
|
||||||
if include_optional:
|
|
||||||
return Repeat(
|
|
||||||
type = 'week',
|
|
||||||
interval_type = 'day',
|
|
||||||
interval_length = 2,
|
|
||||||
days_of_week = [
|
|
||||||
'sun'
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Repeat(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testRepeat(self):
|
|
||||||
"""Test Repeat"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.repeat_type import RepeatType
|
|
||||||
|
|
||||||
class TestRepeatType(unittest.TestCase):
|
|
||||||
"""RepeatType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testRepeatType(self):
|
|
||||||
"""Test RepeatType"""
|
|
||||||
# inst = RepeatType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.rule import Rule
|
|
||||||
|
|
||||||
class TestRule(unittest.TestCase):
|
|
||||||
"""Rule unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Rule:
|
|
||||||
"""Test Rule
|
|
||||||
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 `Rule`
|
|
||||||
"""
|
|
||||||
model = Rule()
|
|
||||||
if include_optional:
|
|
||||||
return Rule(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
include_covered_prefixes = True,
|
|
||||||
severity = 'major',
|
|
||||||
notifications = thousandeyes_sdk.alerts.models.notification.Notification(
|
|
||||||
email = thousandeyes_sdk.alerts.models.notification_email.NotificationEmail(
|
|
||||||
recipients = ["noreply@thousandeyes.com"],
|
|
||||||
message = 'Notification message', ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_third_party.NotificationThirdParty(
|
|
||||||
integration_id = 'sl-101',
|
|
||||||
integration_type = 'slack', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_webhook.NotificationWebhook(
|
|
||||||
integration_id = 'wb-201', )
|
|
||||||
], ),
|
|
||||||
test_ids = ["281474976710706","271659"],
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Rule(
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
alert_type = 'http-server',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testRule(self):
|
|
||||||
"""Test Rule"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,95 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.rule_detail import RuleDetail
|
|
||||||
|
|
||||||
class TestRuleDetail(unittest.TestCase):
|
|
||||||
"""RuleDetail unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> RuleDetail:
|
|
||||||
"""Test RuleDetail
|
|
||||||
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 `RuleDetail`
|
|
||||||
"""
|
|
||||||
model = RuleDetail()
|
|
||||||
if include_optional:
|
|
||||||
return RuleDetail(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
include_covered_prefixes = True,
|
|
||||||
severity = 'major',
|
|
||||||
notifications = thousandeyes_sdk.alerts.models.notification.Notification(
|
|
||||||
email = thousandeyes_sdk.alerts.models.notification_email.NotificationEmail(
|
|
||||||
recipients = ["noreply@thousandeyes.com"],
|
|
||||||
message = 'Notification message', ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_third_party.NotificationThirdParty(
|
|
||||||
integration_id = 'sl-101',
|
|
||||||
integration_type = 'slack', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_webhook.NotificationWebhook(
|
|
||||||
integration_id = 'wb-201', )
|
|
||||||
], ),
|
|
||||||
tests = [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return RuleDetail(
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
alert_type = 'http-server',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testRuleDetail(self):
|
|
||||||
"""Test RuleDetail"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,83 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.rule_detail_update import RuleDetailUpdate
|
|
||||||
|
|
||||||
class TestRuleDetailUpdate(unittest.TestCase):
|
|
||||||
"""RuleDetailUpdate unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> RuleDetailUpdate:
|
|
||||||
"""Test RuleDetailUpdate
|
|
||||||
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 `RuleDetailUpdate`
|
|
||||||
"""
|
|
||||||
model = RuleDetailUpdate()
|
|
||||||
if include_optional:
|
|
||||||
return RuleDetailUpdate(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
include_covered_prefixes = True,
|
|
||||||
severity = 'major',
|
|
||||||
notifications = thousandeyes_sdk.alerts.models.notification.Notification(
|
|
||||||
email = thousandeyes_sdk.alerts.models.notification_email.NotificationEmail(
|
|
||||||
recipients = ["noreply@thousandeyes.com"],
|
|
||||||
message = 'Notification message', ),
|
|
||||||
third_party = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_third_party.NotificationThirdParty(
|
|
||||||
integration_id = 'sl-101',
|
|
||||||
integration_type = 'slack', )
|
|
||||||
],
|
|
||||||
webhook = [
|
|
||||||
thousandeyes_sdk.alerts.models.notification_webhook.NotificationWebhook(
|
|
||||||
integration_id = 'wb-201', )
|
|
||||||
], ),
|
|
||||||
test_ids = ["281474976710706","271659"]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return RuleDetailUpdate(
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
alert_type = 'http-server',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testRuleDetailUpdate(self):
|
|
||||||
"""Test RuleDetailUpdate"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,77 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.rules import Rules
|
|
||||||
|
|
||||||
class TestRules(unittest.TestCase):
|
|
||||||
"""Rules unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> Rules:
|
|
||||||
"""Test Rules
|
|
||||||
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 `Rules`
|
|
||||||
"""
|
|
||||||
model = Rules()
|
|
||||||
if include_optional:
|
|
||||||
return Rules(
|
|
||||||
alert_rules = [
|
|
||||||
thousandeyes_sdk.alerts.models.base_rule.BaseRule(
|
|
||||||
rule_id = '127094',
|
|
||||||
rule_name = 'The End of the Internet',
|
|
||||||
expression = '((hops((hopDelay >= 100 ms))))',
|
|
||||||
direction = 'to-target',
|
|
||||||
notify_on_clear = True,
|
|
||||||
is_default = True,
|
|
||||||
alert_type = 'http-server',
|
|
||||||
minimum_sources = 10,
|
|
||||||
minimum_sources_pct = 99,
|
|
||||||
rounds_violating_mode = 'exact',
|
|
||||||
rounds_violating_out_of = 5,
|
|
||||||
rounds_violating_required = 2,
|
|
||||||
include_covered_prefixes = True,
|
|
||||||
severity = 'major', )
|
|
||||||
],
|
|
||||||
links = thousandeyes_sdk.alerts.models.self_links.SelfLinks(
|
|
||||||
self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', ), )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return Rules(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testRules(self):
|
|
||||||
"""Test Rules"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,59 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.self_links import SelfLinks
|
|
||||||
|
|
||||||
class TestSelfLinks(unittest.TestCase):
|
|
||||||
"""SelfLinks unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> SelfLinks:
|
|
||||||
"""Test SelfLinks
|
|
||||||
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 `SelfLinks`
|
|
||||||
"""
|
|
||||||
model = SelfLinks()
|
|
||||||
if include_optional:
|
|
||||||
return SelfLinks(
|
|
||||||
var_self = thousandeyes_sdk.alerts.models.link.Link(
|
|
||||||
href = 'https://api.thousandeyes.com/v7/link/to/resource/id',
|
|
||||||
templated = True,
|
|
||||||
type = '',
|
|
||||||
deprecation = '',
|
|
||||||
name = '',
|
|
||||||
profile = '',
|
|
||||||
title = '',
|
|
||||||
hreflang = '', )
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return SelfLinks(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testSelfLinks(self):
|
|
||||||
"""Test SelfLinks"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.severity import Severity
|
|
||||||
|
|
||||||
class TestSeverity(unittest.TestCase):
|
|
||||||
"""Severity unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testSeverity(self):
|
|
||||||
"""Test Severity"""
|
|
||||||
# inst = Severity()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.start_alert_metrics import StartAlertMetrics
|
|
||||||
|
|
||||||
class TestStartAlertMetrics(unittest.TestCase):
|
|
||||||
"""StartAlertMetrics unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> StartAlertMetrics:
|
|
||||||
"""Test StartAlertMetrics
|
|
||||||
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 `StartAlertMetrics`
|
|
||||||
"""
|
|
||||||
model = StartAlertMetrics()
|
|
||||||
if include_optional:
|
|
||||||
return StartAlertMetrics(
|
|
||||||
metrics = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return StartAlertMetrics(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testStartAlertMetrics(self):
|
|
||||||
"""Test StartAlertMetrics"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.state import State
|
|
||||||
|
|
||||||
class TestState(unittest.TestCase):
|
|
||||||
"""State unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testState(self):
|
|
||||||
"""Test State"""
|
|
||||||
# inst = State()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.test_interval import TestInterval
|
|
||||||
|
|
||||||
class TestTestInterval(unittest.TestCase):
|
|
||||||
"""TestInterval unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testTestInterval(self):
|
|
||||||
"""Test TestInterval"""
|
|
||||||
# inst = TestInterval()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,33 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.third_party_integration_type import ThirdPartyIntegrationType
|
|
||||||
|
|
||||||
class TestThirdPartyIntegrationType(unittest.TestCase):
|
|
||||||
"""ThirdPartyIntegrationType unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def testThirdPartyIntegrationType(self):
|
|
||||||
"""Test ThirdPartyIntegrationType"""
|
|
||||||
# inst = ThirdPartyIntegrationType()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,52 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.unauthorized_error import UnauthorizedError
|
|
||||||
|
|
||||||
class TestUnauthorizedError(unittest.TestCase):
|
|
||||||
"""UnauthorizedError unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> UnauthorizedError:
|
|
||||||
"""Test UnauthorizedError
|
|
||||||
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 `UnauthorizedError`
|
|
||||||
"""
|
|
||||||
model = UnauthorizedError()
|
|
||||||
if include_optional:
|
|
||||||
return UnauthorizedError(
|
|
||||||
error = 'invalid_token',
|
|
||||||
error_description = 'Invalid access token'
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return UnauthorizedError(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testUnauthorizedError(self):
|
|
||||||
"""Test UnauthorizedError"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.unexpanded_test import UnexpandedTest
|
|
||||||
|
|
||||||
class TestUnexpandedTest(unittest.TestCase):
|
|
||||||
"""UnexpandedTest unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> UnexpandedTest:
|
|
||||||
"""Test UnexpandedTest
|
|
||||||
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 `UnexpandedTest`
|
|
||||||
"""
|
|
||||||
model = UnexpandedTest()
|
|
||||||
if include_optional:
|
|
||||||
return UnexpandedTest(
|
|
||||||
interval = 120,
|
|
||||||
alerts_enabled = True,
|
|
||||||
enabled = True
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return UnexpandedTest(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testUnexpandedTest(self):
|
|
||||||
"""Test UnexpandedTest"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,61 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.validation_error import ValidationError
|
|
||||||
|
|
||||||
class TestValidationError(unittest.TestCase):
|
|
||||||
"""ValidationError unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ValidationError:
|
|
||||||
"""Test ValidationError
|
|
||||||
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 `ValidationError`
|
|
||||||
"""
|
|
||||||
model = ValidationError()
|
|
||||||
if include_optional:
|
|
||||||
return ValidationError(
|
|
||||||
type = '',
|
|
||||||
title = '',
|
|
||||||
status = 56,
|
|
||||||
detail = '',
|
|
||||||
instance = '',
|
|
||||||
errors = [
|
|
||||||
thousandeyes_sdk.alerts.models.validation_error_item.ValidationErrorItem(
|
|
||||||
code = '',
|
|
||||||
field = 56,
|
|
||||||
message = '', )
|
|
||||||
]
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ValidationError(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testValidationError(self):
|
|
||||||
"""Test ValidationError"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
@ -1,53 +0,0 @@
|
|||||||
# 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.4
|
|
||||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
||||||
|
|
||||||
Do not edit the class manually.
|
|
||||||
""" # noqa: E501
|
|
||||||
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
from thousandeyes_sdk.alerts.models.validation_error_item import ValidationErrorItem
|
|
||||||
|
|
||||||
class TestValidationErrorItem(unittest.TestCase):
|
|
||||||
"""ValidationErrorItem unit test stubs"""
|
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def make_instance(self, include_optional) -> ValidationErrorItem:
|
|
||||||
"""Test ValidationErrorItem
|
|
||||||
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 `ValidationErrorItem`
|
|
||||||
"""
|
|
||||||
model = ValidationErrorItem()
|
|
||||||
if include_optional:
|
|
||||||
return ValidationErrorItem(
|
|
||||||
code = '',
|
|
||||||
var_field = 56,
|
|
||||||
message = ''
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
return ValidationErrorItem(
|
|
||||||
)
|
|
||||||
"""
|
|
||||||
|
|
||||||
def testValidationErrorItem(self):
|
|
||||||
"""Test ValidationErrorItem"""
|
|
||||||
# inst_req_only = self.make_instance(include_optional=False)
|
|
||||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user