package io.wdd.rpc.status.beans;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class CPUMetric {

    /**
     * numCores
     */
    @JsonProperty("NumCores")
    private Integer numCores;
    /**
     * cPUPercent
     */
    @JsonProperty("CPUPercent")
    private Double cPUPercent;
    /**
     * cPULoads
     */
    @JsonProperty("CPULoads")
    private CPULoadsDTO cPULoads;

    /**
     * CPULoadsDTO
     */
    @NoArgsConstructor
    @Data
    public static class CPULoadsDTO {
        /**
         * load1
         */
        @JsonProperty("load1")
        private Double load1;
        /**
         * load5
         */
        @JsonProperty("load5")
        private Double load5;
        /**
         * load15
         */
        @JsonProperty("load15")
        private Double load15;
    }
}
