Class HostResource
java.lang.Object
io.opencensus.contrib.resource.util.HostResource
Helper class for Host
Resource
. A host is defined as a general computing instance.- Since:
- 0.20
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key for the hostname of the host.static final String
Key for the unique host id (instance id in Cloud).static final String
Key for the name of the host.static final String
The type of thisResource
.static final String
Key for the type of the host (machine type). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE
The type of thisResource
.- Since:
- 0.20
- See Also:
-
HOSTNAME_KEY
Key for the hostname of the host.It contains what the `hostname` command returns on the host machine.
- Since:
- 0.20
- See Also:
-
NAME_KEY
Key for the name of the host.It may contain what `hostname` returns on Unix systems, the fully qualified, or a name specified by the user.
- Since:
- 0.20
- See Also:
-
ID_KEY
Key for the unique host id (instance id in Cloud).- Since:
- 0.20
- See Also:
-
TYPE_KEY
Key for the type of the host (machine type).- Since:
- 0.20
- See Also:
-
-
Constructor Details
-
HostResource
private HostResource()
-
-
Method Details