public class K8sResource extends Object
Resource.| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_NAME_KEY
Key for the name of the cluster.
|
static String |
NAMESPACE_NAME_KEY
Key for the name of the namespace.
|
static String |
POD_NAME_KEY
Key for the name of the pod.
|
static String |
TYPE
The type of this
Resource. |
| Modifier and Type | Method and Description |
|---|---|
static io.opencensus.resource.Resource |
create(String clusterName,
String namespace,
String podName)
Returns a
Resource that describes Kubernetes deployment service. |
public static final String TYPE
Resource.public static final String CLUSTER_NAME_KEY
public static final String NAMESPACE_NAME_KEY
public static final String POD_NAME_KEY
public static io.opencensus.resource.Resource create(String clusterName, String namespace, String podName)
Resource that describes Kubernetes deployment service.clusterName - the k8s cluster name.namespace - the k8s namespace.podName - the k8s pod name.Resource that describes a k8s container.