public class ContainerResource extends Object
Resource.| Modifier and Type | Field and Description |
|---|---|
static String |
IMAGE_NAME_KEY
Key for the container image name.
|
static String |
IMAGE_TAG_KEY
Key for the container image tag.
|
static String |
NAME_KEY
Key for the container name.
|
static String |
TYPE
Kubernetes resources key that represents a type of the resource.
|
| Modifier and Type | Method and Description |
|---|---|
static io.opencensus.resource.Resource |
create(String name,
String imageName,
String imageTag)
Returns a
Resource that describes a container. |
public static final String TYPE
public static final String NAME_KEY
public static final String IMAGE_NAME_KEY
public static final String IMAGE_TAG_KEY
public static io.opencensus.resource.Resource create(String name, String imageName, String imageTag)
Resource that describes a container.name - the container name.imageName - the container image name.imageTag - the container image tag.Resource that describes a k8s container.