Represents a SLA Contract containing a list of metrics. It follows the standard used by Amazon Cloudwatch.
The constants inside the class define the names of SLA Metrics supported in the JSON SLA Contract format.
Instances of this class can be created from a JSON file using the
getInstance(String)methods. This way, one doesn’t need to create instances of this class using its default constructor. This one is just used by the JSON parsing library.
For more details, check Raysa Oliveira’s Master Thesis (only in Portuguese).
SlaContract. If you want to get a contract from a JSON file, you shouldn’t call the constructor directly. Instead, use some methods of the class methods.
This constructor is just provided to enable the
Gsonobject to use reflection to instantiate a SlaContract.
Gets the maximum price a customer expects to pay hourly for all his/her running VMs.