zeus package¶
Submodules¶
zeus.client module¶
-
class
zeus.client.ZeusClient(user_token, server)[source]¶ Zeus Client class, implementing wrapper methods for the Zeus API.
-
deleteMetric(metric_name)[source]¶ Delete an entire metric from Zeus.
Parameters: metric_name (string) – Pattern for the metric name. Return type: boolean
-
getLog(log_name, attribute_name=None, pattern=None, from_date=None, to_date=None, offset=None, limit=None)[source]¶ Return
arrayofdictwith the logs that match the params.Parameters: - log_name (string) – Name of the log.
- attribute_name (string) – Name of field to be searched. If omitted,
search all fields. :param string pattern: Pattern to match the logs against. :param string from_date: Unix formatted start date. :param string to_date: Unix formatted end date. :param string offset: Result offset. :param string limit: Max number of results in the return. :rtype: array
-
getMetric(metric_name, from_date=None, to_date=None, aggregator_function=None, aggregator_column=None, group_interval=None, filter_condition=None, offset=None, limit=None)[source]¶ Return
arrayofdictwith the metrics that match the params.Parameters: - metric_name (string) – Name of the metric.
- from_date (string) – Unix formatted start date.
- to_date (string) – Unix formatted end date.
- aggregator_function (string) – Aggregator function.
sum,
count,min,max,... :param string aggregator_column: Column to whichaggregator_functionis to be applied. :param string group_interval: Intervals in which to group the results. :param string filter_condition: Filters to be applied to metric values. :param string offset: Result offset. :param string limit: Max number of results in the return. :rtype: array
-
getMetricNames(metric_name=None, limit=None, offset=None)[source]¶ Return
arrayofstringwith the metric names that match the params.Parameters: - metric_name (string) – Pattern for the metric name.
- limit (string) – Max number of results in the return.
- limit – Starting offset in the resulting list. The default
value is 0 (first result). :rtype: array
-