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

org.testifyproject.github.dockerjava.api.model.Statistics Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package org.testifyproject.testifyproject.github.dockerjava.api.model;

import java.util.Map;

import javax.annotation.CheckForNull;

import org.testifyproject.apache.org.testifyproject.testifyprojectmons.lang.builder.ToStringBuilder;

import org.testifyproject.testifyproject.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.testifyproject.testifyproject.fasterxml.jackson.annotation.JsonInclude;
import org.testifyproject.testifyproject.fasterxml.jackson.annotation.JsonInclude.Include;
import org.testifyproject.testifyproject.fasterxml.jackson.annotation.JsonProperty;

/**
 * Representation of a Docker statistics.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(Include.NON_NULL)
public class Statistics {

    @JsonProperty("read")
    private String read;

    /**
     * @since Docker Remote API 1.21
     */
    @CheckForNull
    @JsonProperty("networks")
    private Map networks;

    /**
     * @org.testifyproject.testifyprojectprecated as of Docker Remote API 1.21, replaced by {@link #networks}
     */
    @Deprecated
    @JsonProperty("network")
    private Map network;

    @JsonProperty("memory_stats")
    private Map memoryStats;

    @JsonProperty("blkio_stats")
    private Map blkioStats;

    @JsonProperty("cpu_stats")
    private Map cpuStats;

    /**
     * @since Docker Remote API 1.21
     */
    @CheckForNull
    public Map getNetworks() {
        return networks;
    }

    /**
     * @org.testifyproject.testifyprojectprecated as of Docker Remote API 1.21, replaced by {@link #getNetworks()}
     */
    @Deprecated
    public Map getNetwork() {
        return network;
    }

    public Map getCpuStats() {
        return cpuStats;
    }

    public Map getMemoryStats() {
        return memoryStats;
    }

    public Map getBlkioStats() {
        return blkioStats;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy