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

com.github.dockerjava.api.model.CpuStatsConfig Maven / Gradle / Ivy

There is a newer version: 3.4.0_1
Show newest version
package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import javax.annotation.CheckForNull;
import java.io.Serializable;

/**
 * Used in {@link Statistics}
 *
 * @author Yuting Liu
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CpuStatsConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("cpu_usage")
    private CpuUsageConfig cpuUsage;

    @JsonProperty("system_cpu_usage")
    private Long systemCpuUsage;

    @JsonProperty("online_cpus")
    private Long onlineCpus;

    @JsonProperty("throttling_data")
    private ThrottlingDataConfig throttlingData;

    /**
     * @see #cpuUsage
     */
    @CheckForNull
    public CpuUsageConfig getCpuUsage() {
        return cpuUsage;
    }

    /**
     * @see #systemCpuUsage
     */
    @CheckForNull
    public Long getSystemCpuUsage() {
        return systemCpuUsage;
    }

    /**
     * @see #onlineCpus
     */
    @CheckForNull
    public Long getOnlineCpus() {
        return onlineCpus;
    }

    /**
     * @see #throttlingData
     */
    @CheckForNull
    public ThrottlingDataConfig getThrottlingData() {
        return throttlingData;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy