Cloud Instance

Combiner for the basic information of a cloud instance. It combines the results of the following combiners and parsers:

class insights.combiners.cloud_instance.CloudInstance(cp, aws=None, azure_id=None, azure_type=None, gcp=None, facts=None)[source]

Bases: object

Class to provide the basic information of a cloud instance.

provider

The cloud provider, e.g. “aws”, “azure”, “ibm”, “google”, or “alibaba”. It’s from the value of insights.combiners.cloud_provider.CloudProvider.cloud_provider

Type:

str

id

The ID of the cloud instance

Type:

str

type

The type of the cloud instance. Different cloud providers have different illustration of the type and size, here for this Combiner, we treat the type and size as the same. E.g.:

- "Standard_L64s_v2" for Azure
- "x1.16xlarge" for AWS
- "m1-megamem-96" for GCP
Type:

str

size

Alias of the type

Type:

str

Examples

>>> ci.provider
'aws'
>>> ci.id == 'i-1234567890abcdef0'
True
>>> ci.type == 't2.micro'
True
>>> ci.size == 't2.micro'
True