@Generated(value="org.immutables.processor.ProxyProcessor") public final class ContainerMetric extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerMetric.Builder
Builds instances of type
ContainerMetric. |
| Modifier and Type | Method and Description |
|---|---|
static ContainerMetric.Builder |
builder()
Creates a builder for
ContainerMetric. |
boolean |
equals(Object another)
This instance is equal to all instances of
ContainerMetric that have equal attribute values. |
static ContainerMetric |
from(org.cloudfoundry.dropsonde.events.ContainerMetric dropsonde) |
String |
getApplicationId()
The ID of the contained application
|
Double |
getCpuPercentage()
The CPU used, on a scale of 0 to 100
|
Long |
getDiskBytes()
The bytes of disk used
|
Long |
getDiskBytesQuota()
The maximum bytes of disk allocated to container
|
Integer |
getInstanceIndex()
The instance index of the contained application.
|
Long |
getMemoryBytes()
The bytes of memory used
|
Long |
getMemoryBytesQuota()
The maximum bytes of memory allocated to container
|
int |
hashCode()
Computes a hash code from attributes:
applicationId, cpuPercentage, diskBytes, diskBytesQuota, instanceIndex, memoryBytes, memoryBytesQuota. |
String |
toString()
Prints the immutable value
ContainerMetric with attribute values. |
public String getApplicationId()
public Double getCpuPercentage()
public Long getDiskBytes()
public Long getDiskBytesQuota()
public Integer getInstanceIndex()
public Long getMemoryBytes()
public Long getMemoryBytesQuota()
public boolean equals(Object another)
ContainerMetric that have equal attribute values.public int hashCode()
applicationId, cpuPercentage, diskBytes, diskBytesQuota, instanceIndex, memoryBytes, memoryBytesQuota.public String toString()
ContainerMetric with attribute values.public static ContainerMetric.Builder builder()
ContainerMetric.
ContainerMetric.builder()
.applicationId(String) // required applicationId
.cpuPercentage(Double) // required cpuPercentage
.diskBytes(Long) // required diskBytes
.diskBytesQuota(Long | null) // nullable diskBytesQuota
.instanceIndex(Integer) // required instanceIndex
.memoryBytes(Long) // required memoryBytes
.memoryBytesQuota(Long | null) // nullable memoryBytesQuota
.build();
public static ContainerMetric from(org.cloudfoundry.dropsonde.events.ContainerMetric dropsonde)
Copyright © 2020. All rights reserved.