Example #1
0
 def list_records(self, zone):
     value_dict = {'type': 'records', 'zone': zone}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #2
0
 def list_container_objects(self, container):
     value_dict = {'container': container}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #3
0
    def ex_views_metric_list(self, ex_next_marker=None):
        value_dict = {'url': '/views/metric_list',
                      'start_marker': ex_next_marker,
                      'list_item_mapper': self._to_metric_list_obj}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #4
0
 def list_zones(self):
     value_dict = {'type': 'zones'}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #5
0
    def list_agents(self):
        value_dict = {'url': '/agents',
                      'list_item_mapper': self._to_agents}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #6
0
    def list_agent_connections(self, agent_id):
        value_dict = {'url': "/agents/%s/connections" % (agent_id),
                      'list_item_mapper': self._to_agent_connection}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #7
0
 def list_checks(self, entity, ex_next_marker=None):
     value_dict = {'url': "/entities/%s/checks" % (entity.id),
                   'start_marker': ex_next_marker,
                   'list_item_mapper': self._to_check,
                   'entity_id': entity.id}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #8
0
    def list_entities(self, ex_next_marker=None):
        value_dict = {'url': '/entities',
                      'start_marker': ex_next_marker,
                      'list_item_mapper': self._to_entity}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #9
0
    def list_suppression_logs(self, ex_next_marker=None):
        value_dict = {'url': '/suppression_logs',
                      'start_marker': ex_next_marker,
                      'list_item_mapper': self._to_suppression_log}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #10
0
 def list_notification_plans(self, ex_next_marker=None):
     value_dict = {'url': "/notification_plans",
                   'start_marker': ex_next_marker,
                   'list_item_mapper': self._to_notification_plan}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #11
0
 def list_monitoring_zones(self):
     value_dict = {'url': '/monitoring_zones',
                    'list_item_mapper': self._to_monitoring_zone}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #12
0
 def fetch_data_point(self, entity_id, check_id, metric_name, from_timestamp, to_timestamp, points=1):
     value_dict = {'url': '/entities/%s/checks/%s/metrics/%s/plot' %
                          (entity_id, check_id, metric_name),
                   'params': {'from': from_timestamp, 'to': to_timestamp, 'points': points},
                   'list_item_mapper': self._to_datapoints}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #13
0
 def list_metrics(self, entity_id, check_id, ex_next_marker=None):
     value_dict = {'url': '/entities/%s/checks/%s/metrics' %
                          (entity_id, check_id),
                     'list_item_mapper': self._to_metrics}
     return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #14
0
    def list_notification_types(self):
        value_dict = {'url': '/notification_types',
                       'list_item_mapper': self._to_notification_type}

        return LazyList(get_more=self._get_more, value_dict=value_dict)
Example #15
0
    def list_check_types(self):
        value_dict = {'url': '/check_types',
                       'list_item_mapper': self._to_check_type}

        return LazyList(get_more=self._get_more, value_dict=value_dict)