本文整理汇总了Python中boundary.ApiCli.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ApiCli.__init__方法的具体用法?Python ApiCli.__init__怎么用?Python ApiCli.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类boundary.ApiCli
的用法示例。
在下文中一共展示了ApiCli.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self._path = None
self._name = None
self._disable = False
self._remove = False
self._sources = None
示例2: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
"""
"""
ApiCli.__init__(self)
self.method = "GET"
self.alarmName = None
self.alarmId = None
示例3: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self, update):
ApiCli.__init__(self)
self.update = update
self.method = "POST"
self.alarm_name = None
self.metric_name = None
self.aggregate = None
self.operation = None
self.threshold = None
self.interval = None
self.host_group_id = None
self.note = None
self.per_host_notify = None
self.actions = None
self.is_disabled = None
self.intervals = {'1 second': 1,
'5 seconds': 15,
'1 minute': 60,
'5 minutes': 900,
'1 hour': 3600,
'1.5 hours': 5400,
'3 hours': 10800,
'6 hours': 21600,
'12 hours': 43200
}
示例4: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self, update):
ApiCli.__init__(self)
self._update = update
# Mapping of alarm types to corresponding codes
self._alarm_types = {"threshold": 3, "host": 4, "api": 5}
self._aggregate = None
self._actions = None
self._alarm_name = None
self._alarm_id = None
self._host_group_id = None
self._interval = None
self._is_disabled = None
self._metric = None
self._note = None
self._operation = None
self._per_host_notify = None
self._threshold = None
self._type_id = None
self._notify_clear = None
self._notify_set = None
self._payload = {}
self._trigger_interval = None
self._timeout_interval = None
示例5: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.method = "DELETE"
self.path = "v1/hostgroups"
self.hostGroupId = ""
self.force = False
示例6: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.method = "POST"
self.path = "v1/measurements"
self.metricName = None
self.measurement = None
self.source = None
self.timestamp = None
示例7: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
"""
"""
ApiCli.__init__(self)
self.method = "GET"
self.path = "v1/hostgroups"
self.hostGroupId = ""
示例8: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.path = "v1/relays"
self._control = None
self._metrics = None
self._plugins = None
self._plugin_summary = None
self._relays = None
示例9: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.metric_definitions = None
self.dashboards = None
self.metrics = None
self.manifest = None
self.file_path = None
self.fields = None
示例10: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.method = "GET"
self.metricName = None
self.source = None
self.aggregate = None
self.startTime = None
self.stopTime = None
self.now = datetime.now()
示例11: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.rpc_data = []
self.rpc_host = 'localhost'
self.rpc_port = 9192
self.rpc_message = None
self.rpc_method = 'status'
self.rpc_parameters = None
self.MAX_LINE = 1024
示例12: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self.method = "POST"
self.path = 'v1/events'
self.fingerprint_fields = None
self.title = None
self.source = None
self.severity = None
self.status = None
示例13: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self, update):
ApiCli.__init__(self)
self.update = update
if self.update:
self.method = "PUT"
else:
self.method = "POST"
self.path = "v1/hostgroups"
self.sources = None
self.host_group_name = None
示例14: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
PropertyHandler.__init__(self)
self.method = "POST"
self.path = 'v1/events'
self._fingerprint_fields = None
self._title = None
self._source = None
self._severity = None
self._status = None
self._tenant_id = None
示例15: __init__
# 需要导入模块: from boundary import ApiCli [as 别名]
# 或者: from boundary.ApiCli import __init__ [as 别名]
def __init__(self):
ApiCli.__init__(self)
self._indent = 4
self.method = "GET"
self._metric_name = None
self.format = None
self.date_format = None
# Default to 1 second sample period
self.sample = 1
self.source = None
self.aggregate = None
self.startTime = None
self.stopTime = None
self.now = datetime.now()