当前位置: 首页>>代码示例>>Python>>正文


Python ApiCli.__init__方法代码示例

本文整理汇总了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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:9,代码来源:relay_toggle.py

示例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
开发者ID:GabrielNicolasAvellaneda,项目名称:boundary-api-cli,代码行数:9,代码来源:alarm_get.py

示例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
                          }
开发者ID:GabrielNicolasAvellaneda,项目名称:boundary-api-cli,代码行数:29,代码来源:alarm_modify.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:27,代码来源:alarm_modify.py

示例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
开发者ID:jdgwartney,项目名称:pulse-api-cli,代码行数:9,代码来源:hostgroup_delete.py

示例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
开发者ID:wcainboundary,项目名称:boundary-api-cli,代码行数:10,代码来源:measurement_create.py

示例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 = ""
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:10,代码来源:hostgroup_get.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:10,代码来源:relay_list.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:10,代码来源:metric_markdown.py

示例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()
开发者ID:GabrielNicolasAvellaneda,项目名称:boundary-api-cli,代码行数:11,代码来源:measurement_get.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:11,代码来源:meter_client.py

示例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
开发者ID:GabrielNicolasAvellaneda,项目名称:boundary-api-cli,代码行数:12,代码来源:event_create.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:12,代码来源:hostgroup_modify.py

示例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
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:14,代码来源:event_create.py

示例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()
开发者ID:boundary,项目名称:pulse-api-cli,代码行数:16,代码来源:measurement_get.py


注:本文中的boundary.ApiCli.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。