| | |
- delete_metric(metric_id, hostname)
- Delete complex metric
# noqa: E501
:param metric_id: Metric identyfier. It has the same form as `metric_id` field of `Metric` model
:type metric_id: str
:param hostname: Target host (domain name)
:type hostname: str
:rtype: object
- get_hosts(q=None)
- Get list of hosts
# noqa: E501
:param q: Filters out used metrics and hosts according to provided keys. String needs to match the following schema: `KEY1:VAL1,KEY2:VAL2;KEY3:VAL4...`. Comma is used to indicate `AND` operation while semicolon relates to `OR`. When `VAL` paramater is wrapped into slashes then regex mode is activated. For example when we query for `metric_id:cpu,os:/.*nix.*/;metric_id:cpu,os:/.*win.*/` we should receive cpu metric measurements for hosts containing either nix or win as substring in `os` metadata. Note that `AND` operation has higher priority than `OR`. Allowed keys: `metric_id`, `description`, `complex` (metric parameters) and all available host metadata fields. When not provided: No filtering performed - all available metrics and hosts are taken
:type q: str
:rtype: List[Host]
- post_metric(hostname, payload)
- Add complex metric
# noqa: E501
:param hostname: Target host (domain name)
:type hostname: str
:param payload: Complex mertic payload
:type payload: dict | bytes
:rtype: InlineResponse201
|