public final class CloudResource extends Object
Resource environment.| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNT_ID_KEY
Key for the cloud account id used to identify different entities.
|
static String |
PROVIDER_AWS
The value of the provider when running in AWS.
|
static String |
PROVIDER_AZURE
The value of the provider when running in AZURE.
|
static String |
PROVIDER_GCP
The value of the provider when running in GCP.
|
static String |
PROVIDER_KEY
Key for the name of the cloud provider.
|
static String |
REGION_KEY
Key for the region in which entities are running.
|
static String |
TYPE
The type of this
Resource. |
static String |
ZONE_KEY
Key for the zone in which entities are running.
|
| Modifier and Type | Method and Description |
|---|---|
static io.opencensus.resource.Resource |
create(String provider,
String accountId,
String region,
String zone)
Returns a
Resource that describes a cloud environment. |
public static final String TYPE
Resource.public static final String PROVIDER_KEY
public static final String PROVIDER_AWS
public static final String PROVIDER_AZURE
public static final String PROVIDER_GCP
public static final String ACCOUNT_ID_KEY
public static final String REGION_KEY
public static final String ZONE_KEY
public static io.opencensus.resource.Resource create(String provider, String accountId, String region, String zone)
Resource that describes a cloud environment.provider - the name of the cloud provider.accountId - the cloud account id used to identify different entities.region - the region in which entities are running.zone - the zone in which entities are running.Resource that describes a aws ec2 instance.