com.volcengine.model.tls.response.DescribeHistogramResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of volc-sdk-java Show documentation
Show all versions of volc-sdk-java Show documentation
The VOLC Engine SDK for Java
package com.volcengine.model.tls.response;
import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.tls.HistogramInfo;
import com.volcengine.model.tls.exception.LogException;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.http.Header;
import java.util.List;
import static com.volcengine.model.tls.Const.*;
@Data
@ToString(callSuper = true)
@NoArgsConstructor
public class DescribeHistogramResponse extends CommonResponse {
@JSONField(name = RESULT_STATUS)
String resultStatus;
@JSONField(name = INTERVAL)
long interval;
@JSONField(name = TOTAL_COUNT)
long totalCount;
@JSONField(name = HISTOGRAM)
List histogramInfos;
public DescribeHistogramResponse(Header[] headers) {
super(headers);
}
@Override
public DescribeHistogramResponse deSerialize(byte[] data, Class clazz) throws LogException {
DescribeHistogramResponse response = (DescribeHistogramResponse) super.deSerialize(data, clazz);
this.setResultStatus(response.getResultStatus());
this.setInterval(response.getInterval());
this.setTotalCount(response.getTotalCount());
this.setHistogramInfos(response.getHistogramInfos());
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy