The watcherclient.v1.metric_collector Module

class watcherclient.v1.metric_collector.MetricCollector(manager, info, loaded=False)[source]

Bases: watcherclient.common.base.Resource

class watcherclient.v1.metric_collector.MetricCollectorManager(api)[source]

Bases: watcherclient.common.base.Manager

create(**kwargs)[source]
delete(metric_collector_id)[source]
get(metric_collector_id)[source]
list(category=None, limit=None, sort_key=None, sort_dir=None, detail=False)[source]

Retrieve a list of metric collector.

Parameters:
  • category – Optional, Metric category, to get all metric collectors mapped with this category.
  • limit
    The maximum number of results to return per
    request, if:
    1. limit > 0, the maximum number of metric collectors to return.
    2. limit == 0, return the entire list of metriccollectors.
    3. limit param is NOT specified (None), the number of items returned respect the maximum imposed by the Watcher API (see Watcher’s api.max_limit option).
  • sort_key – Optional, field used for sorting.
  • sort_dir – Optional, direction of sorting, either ‘asc’ (the default) or ‘desc’.
  • detail – Optional, boolean whether to return detailed information about metric collectors.
Returns:

A list of metric collectors.

resource_class

alias of MetricCollector

update(metric_collector_id, patch)[source]

Previous topic

The watcherclient.v1.goal_shell Module

Next topic

The watcherclient.v1.resource_fields Module

Project Source

This Page