• CLI

sdk
  1. Help Center
  2. CLI
  3. Developer Guide
  4. Mapping Between API and SDK
  5. Python
  6. CES

CES

Interface

Method

API

Metric

metrics(self, **query);

GET /V1.0/{project_id}/metrics

Alarm

alarms(self, **query)

GET /V1.0/{project_id}/alarms

get_alarm(self, alarm)

GET /V1.0/{project_id}/alarms/{alarm_id}

enable_alarm(self, alarm)

disable_alarm(self, alarm)

PUT /V1.0/{project_id}/alarms/{alarm_id}/action

delete_alarm(self, alarm, ignore_missing=True)

DELETE /V1.0/{project_id}/alarms/{alarm_id}

Metric Data

metric_aggregations(self, **query)

GET /V1.0/{project_id}/metric-data

add_metric_data(self, data)

POST /V1.0/{project_id}/metric-data

Quota

quotas(self)

GET /V1.0/{project_id}/quotas