PoolUsageMetrics Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.PoolUsageMetrics

public class PoolUsageMetrics

Usage metrics for a Pool across an aggregation interval.

Constructor Summary

Constructor Description
PoolUsageMetrics()

Method Summary

Modifier and Type Method and Description
org.joda.time.DateTime endTime()

Get the endTime value.

String poolId()

Get the poolId value.

org.joda.time.DateTime startTime()

Get the startTime value.

double totalCoreHours()

Get the totalCoreHours value.

String vmSize()

Get for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

PoolUsageMetrics withEndTime(DateTime endTime)

Set the endTime value.

PoolUsageMetrics withPoolId(String poolId)

Set the poolId value.

PoolUsageMetrics withStartTime(DateTime startTime)

Set the startTime value.

PoolUsageMetrics withTotalCoreHours(double totalCoreHours)

Set the totalCoreHours value.

PoolUsageMetrics withVmSize(String vmSize)

Set for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

Methods inherited from java.lang.Object

Constructor Details

PoolUsageMetrics

public PoolUsageMetrics()

Method Details

endTime

public DateTime endTime()

Get the endTime value.

Returns:

the endTime value

poolId

public String poolId()

Get the poolId value.

Returns:

the poolId value

startTime

public DateTime startTime()

Get the startTime value.

Returns:

the startTime value

totalCoreHours

public double totalCoreHours()

Get the totalCoreHours value.

Returns:

the totalCoreHours value

vmSize

public String vmSize()

Get for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

Returns:

the vmSize value

withEndTime

public PoolUsageMetrics withEndTime(DateTime endTime)

Set the endTime value.

Parameters:

endTime - the endTime value to set

Returns:

the PoolUsageMetrics object itself.

withPoolId

public PoolUsageMetrics withPoolId(String poolId)

Set the poolId value.

Parameters:

poolId - the poolId value to set

Returns:

the PoolUsageMetrics object itself.

withStartTime

public PoolUsageMetrics withStartTime(DateTime startTime)

Set the startTime value.

Parameters:

startTime - the startTime value to set

Returns:

the PoolUsageMetrics object itself.

withTotalCoreHours

public PoolUsageMetrics withTotalCoreHours(double totalCoreHours)

Set the totalCoreHours value.

Parameters:

totalCoreHours - the totalCoreHours value to set

Returns:

the PoolUsageMetrics object itself.

withVmSize

public PoolUsageMetrics withVmSize(String vmSize)

Set for information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

Parameters:

vmSize - the vmSize value to set

Returns:

the PoolUsageMetrics object itself.

Applies to