kubernetes

package
v1.44.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointStates = struct {
	Assigned                 EndpointStatus
	Disabled                 EndpointStatus
	FastcheckAuthError       EndpointStatus
	FastcheckAuthLocked      EndpointStatus
	FastcheckInvalidEndpoint EndpointStatus
	FastcheckLowMemoryError  EndpointStatus
	FastcheckNoResponse      EndpointStatus
	FastcheckTlsError        EndpointStatus
	Unassigned               EndpointStatus
	Unknown                  EndpointStatus
}{
	"ASSIGNED",
	"DISABLED",
	"FASTCHECK_AUTH_ERROR",
	"FASTCHECK_AUTH_LOCKED",
	"FASTCHECK_INVALID_ENDPOINT",
	"FASTCHECK_LOW_MEMORY_ERROR",
	"FASTCHECK_NO_RESPONSE",
	"FASTCHECK_TLS_ERROR",
	"UNASSIGNED",
	"UNKNOWN",
}

EndpointStatuss offers the known enum values

Functions

This section is empty.

Types

type EndpointStatus

type EndpointStatus string

EndpointStatus The status of the configured endpoint. ASSIGNED: The credentials are assigned to an ActiveGate which is responsible for processing. UNASSIGNED: The credentials are not yet assigned to an ActiveGate so there is currently no processing. DISABLED: The credentials have been disabled by the user. FASTCHECK_AUTH_ERROR: The credentials are invalid. FASTCHECK_TLS_ERROR: The endpoint TLS certificate is invalid. FASTCHECK_NO_RESPONSE: The endpoint did not return a result until the timeout was reached. FASTCHECK_INVALID_ENDPOINT: The endpoint URL was invalid. FASTCHECK_AUTH_LOCKED: The credentials seem to be locked. UNKNOWN: An unknown error occured.

type KubernetesCredentials

type KubernetesCredentials struct {
	EventsIntegrationEnabled              *bool                      `json:"eventsIntegrationEnabled,omitempty"`        // The monitoring of events is enabled (`true`) or disabled (`false`) for the Kubernetes cluster. Event monitoring depends on the active state of this configuration to be true.  If not set on creation, the `false` value is used.  If the field is omitted during an update, the old value remains unaffected.
	AuthToken                             *string                    `json:"authToken,omitempty"`                       // The service account bearer token for the Kubernetes API server.  Submit your token on creation or update of the configuration. For security reasons, GET requests return this field as `null`.  If the field is omitted during an update, the old value remains unaffected.
	Active                                *bool                      `json:"active,omitempty"`                          // The monitoring is enabled (`true`) or disabled (`false`) for given credentials configuration.  If not set on creation, the `true` value is used.  If the field is omitted during an update, the old value remains unaffected.
	EndpointStatusInfo                    *string                    `json:"endpointStatusInfo,omitempty"`              // The detailed status info of the configured endpoint.
	WorkloadIntegrationEnabled            *bool                      `json:"workloadIntegrationEnabled,omitempty"`      // Workload and cloud application processing is enabled (`true`) or disabled (`false`) for the Kubernetes cluster. If the field is omitted during an update, the old value remains unaffected.
	EndpointStatus                        *EndpointStatus            `json:"endpointStatus,omitempty"`                  // The status of the configured endpoint. ASSIGNED: The credentials are assigned to an ActiveGate which is responsible for processing. UNASSIGNED: The credentials are not yet assigned to an ActiveGate so there is currently no processing. DISABLED: The credentials have been disabled by the user. FASTCHECK_AUTH_ERROR: The credentials are invalid. FASTCHECK_TLS_ERROR: The endpoint TLS certificate is invalid. FASTCHECK_NO_RESPONSE: The endpoint did not return a result until the timeout was reached. FASTCHECK_INVALID_ENDPOINT: The endpoint URL was invalid. FASTCHECK_AUTH_LOCKED: The credentials seem to be locked. UNKNOWN: An unknown error occured.
	Label                                 string                     `json:"label"`                                     // The name of the Kubernetes credentials configuration.  Allowed characters are letters, numbers, whitespaces, and the following characters: `.+-_`. Leading or trailing whitespace is not allowed.
	CertificateCheckEnabled               *bool                      `json:"certificateCheckEnabled,omitempty"`         // The check of SSL certificates is enabled (`true`) or disabled (`false`) for the Kubernetes cluster.  If not set on creation, the `true` value is used.  If the field is omitted during an update, the old value remains unaffected.
	EndpointURL                           string                     `json:"endpointUrl"`                               // The URL of the Kubernetes API server.  It must be unique within a Dynatrace environment.  The URL must valid according to RFC 2396. Leading or trailing whitespaces are not allowed.
	HostnameVerificationEnabled           *bool                      `json:"hostnameVerificationEnabled"`               // Verify hostname in certificate against Kubernetes API URL
	PrometheusExportersIntegrationEnabled *bool                      `json:"prometheusExportersIntegrationEnabled"`     // Prometheus exporters integration is enabled (`true`) or disabled (`false`) for the Kubernetes cluster.If the field is omitted during an update, the old value remains unaffected
	EventsFieldSelectors                  []*KubernetesEventPattern  `json:"eventsFieldSelectors,omitempty"`            // Kubernetes event filters based on field-selectors. If set to `null` on creation, no events field selectors are subscribed. If set to `null` on update, no change of stored events field selectors is applied. Set an empty list to clear all events field selectors.
	DavisEventsIntegrationEnabled         *bool                      `json:"davisEventsIntegrationEnabled,omitempty"`   // Inclusion of all Davis relevant events is enabled (`true`) or disabled (`false`) for the Kubernetes cluster. If the field is omitted during an update, the old value remains unaffected
	EventAnalysisAndAlertingEnabled       *bool                      `json:"eventAnalysisAndAlertingEnabled,omitempty"` // Event analysis and alerting is (`true`) or disabled (`false`) for the Kubernetes cluster. If the field is omitted during an update, the old value remains unaffected
	ActiveGateGroup                       string                     `json:"activeGateGroup,omitempty"`                 // Active Gate group to filter active gates for this credentials
	Unknowns                              map[string]json.RawMessage `json:"-"`
}

KubernetesCredentials Configuration for specific Kubernetes credentials.

func (*KubernetesCredentials) Deprecated added in v1.36.0

func (me *KubernetesCredentials) Deprecated() string

func (*KubernetesCredentials) FillDemoValues

func (kc *KubernetesCredentials) FillDemoValues() []string

func (*KubernetesCredentials) MarshalHCL

func (kc *KubernetesCredentials) MarshalHCL(properties hcl.Properties) error

func (*KubernetesCredentials) MarshalJSON

func (kc *KubernetesCredentials) MarshalJSON() ([]byte, error)

func (*KubernetesCredentials) Name

func (kc *KubernetesCredentials) Name() string

func (*KubernetesCredentials) Schema

func (kc *KubernetesCredentials) Schema() map[string]*schema.Schema

func (*KubernetesCredentials) UnmarshalHCL

func (kc *KubernetesCredentials) UnmarshalHCL(decoder hcl.Decoder) error

func (*KubernetesCredentials) UnmarshalJSON

func (kc *KubernetesCredentials) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type KubernetesEventPattern

type KubernetesEventPattern struct {
	Active        bool                       `json:"active"`        // Whether subscription to this events field selector is enabled (value set to `true`). If disabled (value set to `false`), Dynatrace will stop fetching events from the Kubernetes API for this events field selector
	FieldSelector string                     `json:"fieldSelector"` // The field selector string (url decoding is applied) when storing it.
	Label         string                     `json:"label"`         // A label of the events field selector.
	Unknowns      map[string]json.RawMessage `json:"-"`
}

KubernetesEventPattern Represents a single Kubernetes events field selector (=event filter based on the K8s field selector).

func (*KubernetesEventPattern) MarshalHCL

func (kep *KubernetesEventPattern) MarshalHCL(properties hcl.Properties) error

func (*KubernetesEventPattern) MarshalJSON

func (kep *KubernetesEventPattern) MarshalJSON() ([]byte, error)

func (*KubernetesEventPattern) Schema

func (kep *KubernetesEventPattern) Schema() map[string]*schema.Schema

func (*KubernetesEventPattern) UnmarshalHCL

func (kep *KubernetesEventPattern) UnmarshalHCL(decoder hcl.Decoder) error

func (*KubernetesEventPattern) UnmarshalJSON

func (kep *KubernetesEventPattern) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL