All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.model.tls.response.DescribeHistogramResponse Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
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