public final class HostResource extends Object
Resource. A host is defined as a general computing instance.| Modifier and Type | Field and Description |
|---|---|
static String |
HOSTNAME_KEY
Key for the hostname of the host.
|
static String |
ID_KEY
Key for the unique host id (instance id in Cloud).
|
static String |
NAME_KEY
Key for the name of the host.
|
static String |
TYPE
The type of this
Resource. |
static String |
TYPE_KEY
Key for the type of the host (machine type).
|
| Modifier and Type | Method and Description |
|---|---|
static io.opencensus.resource.Resource |
create(String hostname,
String name,
String id,
String type)
Returns a
Resource that describes a k8s container. |
public static final String TYPE
Resource.public static final String HOSTNAME_KEY
It contains what the `hostname` command returns on the host machine.
public static final String NAME_KEY
It may contain what `hostname` returns on Unix systems, the fully qualified, or a name specified by the user.
public static final String ID_KEY
public static final String TYPE_KEY
public static io.opencensus.resource.Resource create(String hostname, String name, String id, String type)
Resource that describes a k8s container.hostname - the hostname of the host.name - the name of the host.id - the unique host id (instance id in Cloud).type - the type of the host (machine type).Resource that describes a k8s container.