Asyncio userver client for monitor listeners, typically retrieved from plugins.service_client.monitor_client fixture.
Compatible with werkzeug interface.
Definition at line 385 of file client.py.
|
'MetricsDiffer' | metrics_diff (self, *typing.Optional[str] path=None, typing.Optional[str] prefix=None, typing.Optional[typing.Dict[str, str]] labels=None, bool diff_gauge=False) |
| Creates a MetricsDiffer that fetches metrics using this client.
|
|
metric_module.MetricsSnapshot | metrics (self, *typing.Optional[str] path=None, typing.Optional[str] prefix=None, typing.Optional[typing.Dict[str, str]] labels=None) |
| Returns a dict of metric names to Metric.
|
|
typing.Optional[Metric] | single_metric_optional (self, str path, *typing.Optional[typing.Dict[str, str]] labels=None) |
| Either return a Metric or None if there's no such metric.
|
|
typing.Optional[Metric] | single_metric (self, str path, *typing.Optional[typing.Dict[str, str]] labels=None) |
| Returns the Metric.
|
|
typing.Dict[str, Metric] | metrics_raw (self, str output_format, *typing.Optional[str] path=None, typing.Optional[str] prefix=None, typing.Optional[typing.Dict[str, str]] labels=None) |
| Low level function that returns metrics in a specific format.
|
|
| get_metrics (self, prefix=None) |
|
| get_metric (self, metric_name) |
|
| fired_alerts (self) |
|
| __init__ (self, client) |
|
http.ClientResponse | post (self, str path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| Make a HTTP POST request.
|
|
http.ClientResponse | put (self, path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| Make a HTTP PUT request.
|
|
http.ClientResponse | patch (self, path, annotations.JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| Make a HTTP PATCH request.
|
|
http.ClientResponse | get (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| Make a HTTP GET request.
|
|
http.ClientResponse | delete (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| Make a HTTP DELETE request.
|
|
http.ClientResponse | options (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| Make a HTTP OPTIONS request.
|
|
http.ClientResponse | request (self, str http_method, str path, **kwargs) |
| Make a HTTP request with the specified method.
|
|