def __init__(self):
     """
     """
     ApiCli.__init__(self)
     self.method = "GET"
     self.alarmName = None
     self.alarmId = None
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "DELETE"
        self.path = "v1/hostgroups"

        self.hostGroupId = ""
        self.force = False
Exemplo n.º 3
0
    def __init__(self):
        ApiCli.__init__(self)
        self.method = "DELETE"
        self.path = "v1/hostgroups"

        self.hostGroupId = ""
        self.force = False
Exemplo n.º 4
0
    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
    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
                          }
Exemplo n.º 6
0
 def __init__(self):
     ApiCli.__init__(self)
     self._path = None
     self._name = None
     self._disable = False
     self._remove = False
     self._sources = None
Exemplo n.º 7
0
 def __init__(self):
     ApiCli.__init__(self)
     self._path = None
     self._name = None
     self._disable = False
     self._remove = False
     self._sources = None
Exemplo n.º 8
0
    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
Exemplo n.º 9
0
 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
Exemplo n.º 10
0
 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
Exemplo n.º 11
0
    def __init__(self):
        """
        """
        ApiCli.__init__(self)
        self.method = "GET"
        self.path = "v1/hostgroups"

        self.hostGroupId = ""
Exemplo n.º 12
0
 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
 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
Exemplo n.º 14
0
    def __init__(self):
        """
        """
        ApiCli.__init__(self)
        self.method = "GET"
        self.path = "v1/hostgroups"

        self.hostGroupId = ""
Exemplo n.º 15
0
 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
     self._properties = None
Exemplo n.º 16
0
    def __init__(self):
        ApiCli.__init__(self)
        self.metric_manifest_path = None
        self.plugin_manifest_path = None
        self.readme_path = None
        self.readme_template_path = None
        self.env = Environment(loader=PackageLoader('boundary', 'templates'))

        self.readme_template = """
Exemplo n.º 17
0
 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
 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()
    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
Exemplo n.º 20
0
 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
Exemplo n.º 21
0
 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
Exemplo n.º 22
0
    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
Exemplo n.º 23
0
    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
Exemplo n.º 24
0
 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()
Exemplo n.º 25
0
 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()
Exemplo n.º 26
0
    def __init__(self):
        ApiCli.__init__(self)
        self.file_name = None

        linestyles = [

            # solid line style
            '-',
            # dashed line style
            '--',
            # dash-dot line style
            '-.',
            # dotted line style
            ':'
        ]

        markers = [
            # point marker
            '.',
            # pixel marker
            ',',
            # circle marker
            'o',
            # triangle_down marker
            'v',
            # triangle_up marker
            '^',
            # triangle_left marker
            '<',
            # triangle_right marker
            '>',
            # tri_down marker
            '1',
            # tri_up marker
            '2',
            # tri_left marker
            '3',
            # tri_right marker
            '4',
            # square marker
            's',
            # pentagon marker
            'p',
            # star marker
            '*',
            # hexagon1 marker
            'h',
            # hexagon2 marker
            'H',
            # plus marker
            '+',
            # x marker
            'x',
            # diamond marker
            'D',
            # thin_diamond marker
            'd',
            # vline marker
            '|',
            # hline marker
            '_',
        ]

        colors = [
            # blue
            'b',
            # green
            'g',
            # red
            'r',
            # cyan
            'c',
            # magenta
            'm',
            # yellow
            'y',
            # black
            'k',
            # white
            'w',
        ]

        self._symbols = [(linestyle, marker, color) for linestyle in linestyles
                         for marker in markers for color in colors]
Exemplo n.º 27
0
 def __init__(self):
     ApiCli.__init__(self)
     self._meter = None
     self._since = None
     self._raw = None
     self._relay_output = None
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "POST"
     self.path = "v1/metrics/ref"
     self.metricName = None
Exemplo n.º 29
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "DELETE"
     self.path = "v1/sources/byName"
     self.sources = None
Exemplo n.º 30
0
 def __init__(self):
     ApiCli.__init__(self)
     self.path = "v1/events"
 def __init__(self):
     """
     """
     ApiCli.__init__(self)
     self.method = "DELETE"
     self.alarmId = None
Exemplo n.º 32
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/actions/installed"
Exemplo n.º 33
0
 def __init__(self):
     ApiCli.__init__(self)
     self.path = "v1/events"
Exemplo n.º 34
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = 'PUT'
     self._file = None
     self._meter = None
Exemplo n.º 35
0
 def __init__(self):
     ApiCli.__init__(self)
     self.event_id = None
Exemplo n.º 36
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/hostgroups"
Exemplo n.º 37
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "user"
Exemplo n.º 38
0
 def __init__(self):
     ApiCli.__init__(self)
     self._meter = None
     self._since = None
     self._raw = None
     self._relay_output = None
Exemplo n.º 39
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "DELETE"
     self._metric_name = None
Exemplo n.º 40
0
 def __init__(self,  **kwargs):
     """
     """
     ApiCli.__init__(self)
     self._kwargs = kwargs
     self._alarm_id = None
Exemplo n.º 41
0
    def __init__(self):
        ApiCli.__init__(self)

        self.meter = None
        self.since = None
Exemplo n.º 42
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/hostgroups"
Exemplo n.º 43
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/hostgroups/search"
     self.hostGroupName = ""
 def __init__(self):
     ApiCli.__init__(self)
     self.path = "v1/plugins"
Exemplo n.º 45
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/plugins"
     self.plugin_name = None
Exemplo n.º 46
0
 def __init__(self):
     ApiCli.__init__(self)
     self.path = "v1/plugins"
Exemplo n.º 47
0
 def __init__(self):
     ApiCli.__init__(self)
Exemplo n.º 48
0
 def __init__(self):
     ApiCli.__init__(self)
     self.path = "v1/account/sources/"
     self.method = "GET"
Exemplo n.º 49
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "user"
Exemplo n.º 50
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "DELETE"
     self._metric_name = None
Exemplo n.º 51
0
 def __init__(self):
     """
     """
     ApiCli.__init__(self)
     self._alarm_id = None
Exemplo n.º 52
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/actions"
 def __init__(self):
     ApiCli.__init__(self)
     self.method = "GET"
     self.path = "v1/plugins"
     self.plugin_name = None
Exemplo n.º 54
0
 def __init__(self):
     ApiCli.__init__(self)
     self.method = 'PUT'
     self._file = None
     self._meter = None