Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
68 stars 23 forks source link

Cloud instances archetypes #67

Open da-ekchajzer opened 2 years ago

da-ekchajzer commented 2 years ago

Problem

To be agnostic to cloud providers, we should provide a route with typical cloud instances.

Solution

The available instances could be segmented by price per hours. An empirical approach from several cloud providers could be conducted to create the archetypes.

Additional context or elements

POST /v1/cloud/model?archetype="$0.1-$0.5"

{
"usage":{
    "usage_location": "BEL",
    "workload":{
        "10":{
          "time": 0.1
        },
        "50":{
          "time": 0.2
        },
        "100":{
          "time": 0.1
        },
        "idle":{
          "time": 0.5
        }
    }
  }
}