Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ResourceTypeKnativeRevision is the Stackdriver resource type for Knative revision ResourceTypeKnativeRevision = "knative_revision" // LabelProject is the label for project (e.g. GCP GAIA ID, AWS project name) LabelProject = "project" // LabelLocation is the label for location (e.g. GCE zone, AWS region) where the service is deployed LabelLocation = "location" // LabelClusterName is the label for immutable name of the cluster LabelClusterName = "cluster_name" // LabelNamespaceName is the label for immutable name of the namespace that the service is deployed LabelNamespaceName = "namespace_name" // LabelServiceName is the label for the deployed service name LabelServiceName = "service_name" // LabelConfigurationName is the label for the configuration which created the monitored revision LabelConfigurationName = "configuration_name" // LabelRevisionName is the label for the monitored revision LabelRevisionName = "revision_name" // ValueUnknown is the default value if the field is unknown, e.g. project will be unknown if Knative // is not running on GKE. ValueUnknown = "unknown" )
Variables ¶
View Source
var ( // KnativeRevisionLabels stores the set of resource labels for resource type knative_revision KnativeRevisionLabels = map[string]struct{}{ LabelProject: {}, LabelLocation: {}, LabelClusterName: {}, LabelNamespaceName: {}, LabelServiceName: {}, LabelConfigurationName: {}, LabelRevisionName: {}, } // ResourceTypeToLabelsMap maps resource type to the set of resource labels ResourceTypeToLabelsMap = map[string]map[string]struct{}{ ResourceTypeKnativeRevision: KnativeRevisionLabels, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.