Package org.cloudsimplus.slametrics
Class SlaMetric
java.lang.Object
org.cloudsimplus.slametrics.SlaMetric
Represents a metric of an SLA contract.
Follows the standard defined by
AWS Cloudwatch.
For more details, check Raysa Oliveira's Master Thesis (only in Portuguese).
- Author:
- raysaoliveira
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets aSlaMetricDimension
representing the maximum value expected for the metric.Gets aSlaMetricDimension
representing the minimum value expected for the metric.getName()
setDimensions
(List<SlaMetricDimension> dimensions) toString()
-
Field Details
-
NULL
-
-
Constructor Details
-
SlaMetric
public SlaMetric()Creates an SLA metric with no name. -
SlaMetric
Creates an SLA metric- Parameters:
name
- the metric name
-
-
Method Details
-
getDimensions
-
setDimensions
-
getName
-
setName
-
toString
-
getMinDimension
Gets aSlaMetricDimension
representing the minimum value expected for the metric. If theSlaMetricDimension.getValue()
is a negative number, it means there is no minimum value.- Returns:
-
getMaxDimension
Gets aSlaMetricDimension
representing the maximum value expected for the metric. If theSlaMetricDimension.getValue()
is equals toDouble.MAX_VALUE
, it means there is no maximum value.- Returns:
-