SlaMetric

public class SlaMetric

Represents a metric of a SLA contract. Follows the standard defined by AWS Cloudwatch.

For more details, check Raysa Oliveira’s Master Thesis (only in Portuguese).

Author:raysaoliveira

Fields

NULL

public static final SlaMetric NULL

Constructors

SlaMetric

public SlaMetric()

SlaMetric

public SlaMetric(String name)

Methods

getDimensions

public List<SlaMetricDimension> getDimensions()

getMaxDimension

public SlaMetricDimension getMaxDimension()

Gets a SlaMetricDimension representing the maximum value expected for the metric. If the SlaMetricDimension.getValue() is equals to Double.MAX_VALUE, it means there is no maximum value.

getMinDimension

public SlaMetricDimension getMinDimension()

Gets a SlaMetricDimension representing the minimum value expected for the metric. If the SlaMetricDimension.getValue() is a negative number, it means there is no minimum value.

getName

public String getName()

setDimensions

public SlaMetric setDimensions(List<SlaMetricDimension> dimensions)

setName

public SlaMetric setName(String name)

toString

public String toString()