com.aliyun.datahub.client.impl.request.GetTopicMetricRequest Maven / Gradle / Ivy
The newest version!
package com.aliyun.datahub.client.impl.request;
import com.aliyun.datahub.client.impl.serializer.GetTopicMetricRequestSerializer;
import com.aliyun.datahub.client.model.AggType;
import com.aliyun.datahub.client.model.MetricType;
import com.aliyun.datahub.client.model.TimeGranularity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.List;
@JsonSerialize(using = GetTopicMetricRequestSerializer.class)
public class GetTopicMetricRequest extends BaseRequest {
private long startTime;
private long endTime;
private List metricTypes;
private TimeGranularity timeGranularity = TimeGranularity.DEFAULT;
private AggType aggType = AggType.AVG;
public GetTopicMetricRequest() {
setAction("metric");
}
public long getStartTime() {
return startTime;
}
public GetTopicMetricRequest setStartTime(long startTime) {
this.startTime = startTime;
return this;
}
public long getEndTime() {
return endTime;
}
public GetTopicMetricRequest setEndTime(long endTime) {
this.endTime = endTime;
return this;
}
public List getMetricTypes() {
return metricTypes;
}
public GetTopicMetricRequest setMetricTypes(List metricTypes) {
this.metricTypes = metricTypes;
return this;
}
public TimeGranularity getTimeGranularity() {
return timeGranularity;
}
public GetTopicMetricRequest setTimeGranularity(TimeGranularity timeGranularity) {
this.timeGranularity = timeGranularity;
return this;
}
public AggType getAggType() {
return aggType;
}
public GetTopicMetricRequest setAggType(AggType aggType) {
this.aggType = aggType;
return this;
}
}