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 |
DEPLOYMENT_NAME_KEY
Key for the name of the deployment.
|
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)
Deprecated.
in favor of
create(String, String, String, String). |
static io.opencensus.resource.Resource |
create(String clusterName,
String namespace,
String podName,
String deploymentName)
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 final String DEPLOYMENT_NAME_KEY
@Deprecated public static io.opencensus.resource.Resource create(String clusterName, String namespace, String podName)
create(String, String, String, String).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.public static io.opencensus.resource.Resource create(String clusterName, String namespace, String podName, String deploymentName)
Resource that describes Kubernetes deployment service.clusterName - the k8s cluster name.namespace - the k8s namespace.podName - the k8s pod name.deploymentName - the k8s deployment name.Resource that describes a k8s container.