Documentation ¶
Index ¶
Constants ¶
View Source
const ( LogTypeAnnotation = "logz.io/application_type" InstrumentationAnnotation = "logz.io/traces_instrument" ServiceNameAnnotation = "logz.io/service-name" )
Variables ¶
This section is empty.
Functions ¶
func UpdateResourceAnnotations ¶
func UpdateResourceAnnotations(w http.ResponseWriter, r *http.Request)
Types ¶
type ResourceAnnotateRequest ¶
type ResourceAnnotateRequest struct { Name string `json:"name"` Namespace string `json:"namespace"` ControllerKind string `json:"controller_kind"` LogType string `json:"log_type,omitempty"` ContainerName string `json:"container_name"` ServiceName string `json:"service_name,omitempty"` }
ResourceAnnotateRequest is the JSON body of the POST request It contains the name, controller_kind, namespace, and log type of the resource name: name of the resource controller_kind: kind of the resource (deployment or statefulset) namespace: namespace of the resource log_type: desired log type container_name: name of the container associated with the request service_name: the desired service name for the application, should delete instrumentation if this filed is empty
Click to show internal directories.
Click to hide internal directories.