Cloud Eye

The SDK interfaces based on the Cloud Eye v1.0 API are as follows. For details about the invoking methods, see the sample codes.

Interface

Method

API

MetricService

List<? extends Metric> getList(MetricFilterOptions options);

GET /V1.0/{project_id}/metrics

AlarmService

List<? extends Alarm> list(AlarmFilterOptions options);

GET /V1.0/{project_id}/alarms

List<? extends Alarm> get(String alarmId);

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

ActionResponse startAlarm(String alarmId)

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

ActionResponse stopAlarm(String alarmId)

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

ActionResponse deleteAlarm(String alarmId);

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

MetricDataService

MetricAggregation get(String namespace, String metric_name, Date from, Date to, Period period, Filter filter, String[] dimValues);

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

ActionResponse add(List<? extends MetricData> metrics);

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

QuotaService

CloudEyeQuota get();

GET /V1.0/{project_id}/quotas