SlaMax
Calculates maximum composite SLA for a list of sequentially provided cloud services or your custom-defined services.
Here are a few use-cases you can use SlaMax
for:
All SLA values are hosted in, and updated at, my other related project cloud-sla
.
Use maxslaofmy.systems
to get SlaMax
as an API.
Use getsla.cloud
to retrieve SLA data via API.
Since SlaMax
has to generalize any given SLA into a number, it doesn't concern itself with any details around, for example, what must be fulfilled on the customer side for the SLA to be applicable, or what exactly the SLA number refers to: All SLAs have various types of conditions that need to be fulfilled.
Also note that, especially on the Azure side, certain services don't have their own SLAs, but instead they refer back to other services and their SLAs. This is because they're not unique serices, but rather composed of other services.
Run npm install slamax
or yarn install slamax
.
An example using both an AWS service (see below for all available services and their keys) and a custom service (must start with custom
). Custom items must include an sla
key with a numeric value.
import slamax from 'slamax'; // ES6+
//const slamax = require('slamax'); // ES5
const { SlaMax } = slamax;
const listOfSlas = [
{
"name": "aws-lambda"
},
{
"name": "custom-database",
"description": "Dev tier database on Heroku",
"sla": 95
}
]
const maxSla = SlaMax(listOfSlas);
console.log(`The maximum composite SLA is ${maxSla}%`);
Generated using TypeDoc