The synaps.monitor.api Module

class API

Bases: object

ROLLING_FUNC_MAP = {'SampleCount': <function roll_sum at 0x3ee2668>, 'Average': <function roll_mean at 0x3ee26e0>, 'Minimum': <function roll_min at 0x3ee25f0>, 'Maximum': <function roll_max at 0x3ee2578>, 'Sum': <function roll_sum at 0x3ee2668>}
delete_alarms(context, project_id, alarm_names)
describe_alarm_history(project_id, alarm_name=None, end_date=None, history_item_type=None, max_records=None, next_token=None, start_date=None)
describe_alarms(project_id, action_prefix=None, alarm_name_prefix=None, alarm_names=None, max_records=None, next_token=None, state_value=None)

params: project_id: string action_prefix: TODO: not implemented yet. alarm_name_prefix: string alarm_names: string list max_records: integer next_token: string (uuid type) state_value: string (OK | ALARM | INSUFFICIENT_DATA)

describe_alarms_for_metric(project_id, namespace, metric_name, dimensions=None, period=None, statistic=None, unit=None)

params: project_id: string metric_name: string namespace: string dimensions: dict period: integer statistic: string (SampleCount | Average | Sum | Minimum |

Maximum)

unit: string

get_metric_statistics(project_id, end_time, metric_name, namespace, period, start_time, statistics, unit=None, dimensions=None)

입력받은 조건에 일치하는 메트릭의 통계자료 리스트를 반환한다.

list_metrics(project_id, next_token=None, dimensions=None, metric_name=None, namespace=None)

List Metrics

put_metric_alarm(context, project_id, metricalarm)

Send put metric alarm message to Storm

put_metric_data(context, project_id, namespace, metric_name, dimensions, value, unit, timestamp=None, is_admin=False)
set_alarm_actions(context, project_id, alarm_names, enabled)
set_alarm_state(context, project_id, alarm_name, state_reason, state_value, state_reason_data=None)

Previous topic

The synaps.log Module

Next topic

The synaps.openstack.common.cfg Module

This Page