workload

package
v1.46.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerRestarts

type ContainerRestarts struct {
	Configuration *ContainerRestartsConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                     `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*ContainerRestarts) HandlePreconditions added in v1.28.0

func (me *ContainerRestarts) HandlePreconditions() error

func (*ContainerRestarts) MarshalHCL

func (me *ContainerRestarts) MarshalHCL(properties hcl.Properties) error

func (*ContainerRestarts) Schema

func (me *ContainerRestarts) Schema() map[string]*schema.Schema

func (*ContainerRestarts) UnmarshalHCL

func (me *ContainerRestarts) UnmarshalHCL(decoder hcl.Decoder) error

type ContainerRestartsConfig

type ContainerRestartsConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // per minute, for any
	Threshold                  int `json:"threshold"`                  // there is at least
}

func (*ContainerRestartsConfig) MarshalHCL

func (me *ContainerRestartsConfig) MarshalHCL(properties hcl.Properties) error

func (*ContainerRestartsConfig) Schema

func (me *ContainerRestartsConfig) Schema() map[string]*schema.Schema

func (*ContainerRestartsConfig) UnmarshalHCL

func (me *ContainerRestartsConfig) UnmarshalHCL(decoder hcl.Decoder) error

type DeploymentStuck

type DeploymentStuck struct {
	Configuration *DeploymentStuckConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                   `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*DeploymentStuck) HandlePreconditions added in v1.28.0

func (me *DeploymentStuck) HandlePreconditions() error

func (*DeploymentStuck) MarshalHCL

func (me *DeploymentStuck) MarshalHCL(properties hcl.Properties) error

func (*DeploymentStuck) Schema

func (me *DeploymentStuck) Schema() map[string]*schema.Schema

func (*DeploymentStuck) UnmarshalHCL

func (me *DeploymentStuck) UnmarshalHCL(decoder hcl.Decoder) error

type DeploymentStuckConfig

type DeploymentStuckConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // workload stops progressing for at least
}

func (*DeploymentStuckConfig) MarshalHCL

func (me *DeploymentStuckConfig) MarshalHCL(properties hcl.Properties) error

func (*DeploymentStuckConfig) Schema

func (me *DeploymentStuckConfig) Schema() map[string]*schema.Schema

func (*DeploymentStuckConfig) UnmarshalHCL

func (me *DeploymentStuckConfig) UnmarshalHCL(decoder hcl.Decoder) error

type HighCpuThrottling added in v1.28.0

type HighCpuThrottling struct {
	Configuration *HighCpuThrottlingConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                     `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*HighCpuThrottling) HandlePreconditions added in v1.28.0

func (me *HighCpuThrottling) HandlePreconditions() error

func (*HighCpuThrottling) MarshalHCL added in v1.28.0

func (me *HighCpuThrottling) MarshalHCL(properties hcl.Properties) error

func (*HighCpuThrottling) Schema added in v1.28.0

func (me *HighCpuThrottling) Schema() map[string]*schema.Schema

func (*HighCpuThrottling) UnmarshalHCL added in v1.28.0

func (me *HighCpuThrottling) UnmarshalHCL(decoder hcl.Decoder) error

type HighCpuThrottlingConfig added in v1.28.0

type HighCpuThrottlingConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // of CPU usage for at least
	Threshold                  int `json:"threshold"`                  // amount of CPU throttling is above
}

func (*HighCpuThrottlingConfig) MarshalHCL added in v1.28.0

func (me *HighCpuThrottlingConfig) MarshalHCL(properties hcl.Properties) error

func (*HighCpuThrottlingConfig) Schema added in v1.28.0

func (me *HighCpuThrottlingConfig) Schema() map[string]*schema.Schema

func (*HighCpuThrottlingConfig) UnmarshalHCL added in v1.28.0

func (me *HighCpuThrottlingConfig) UnmarshalHCL(decoder hcl.Decoder) error

type HighCpuUsage added in v1.28.0

type HighCpuUsage struct {
	Configuration *HighCpuUsageConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*HighCpuUsage) HandlePreconditions added in v1.28.0

func (me *HighCpuUsage) HandlePreconditions() error

func (*HighCpuUsage) MarshalHCL added in v1.28.0

func (me *HighCpuUsage) MarshalHCL(properties hcl.Properties) error

func (*HighCpuUsage) Schema added in v1.28.0

func (me *HighCpuUsage) Schema() map[string]*schema.Schema

func (*HighCpuUsage) UnmarshalHCL added in v1.28.0

func (me *HighCpuUsage) UnmarshalHCL(decoder hcl.Decoder) error

type HighCpuUsageConfig added in v1.28.0

type HighCpuUsageConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // of defined CPU limits for at least
	Threshold                  int `json:"threshold"`                  // amount of utilized workload CPU is above
}

func (*HighCpuUsageConfig) MarshalHCL added in v1.28.0

func (me *HighCpuUsageConfig) MarshalHCL(properties hcl.Properties) error

func (*HighCpuUsageConfig) Schema added in v1.28.0

func (me *HighCpuUsageConfig) Schema() map[string]*schema.Schema

func (*HighCpuUsageConfig) UnmarshalHCL added in v1.28.0

func (me *HighCpuUsageConfig) UnmarshalHCL(decoder hcl.Decoder) error

type HighMemoryUsage added in v1.28.0

type HighMemoryUsage struct {
	Configuration *HighMemoryUsageConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                   `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*HighMemoryUsage) HandlePreconditions added in v1.28.0

func (me *HighMemoryUsage) HandlePreconditions() error

func (*HighMemoryUsage) MarshalHCL added in v1.28.0

func (me *HighMemoryUsage) MarshalHCL(properties hcl.Properties) error

func (*HighMemoryUsage) Schema added in v1.28.0

func (me *HighMemoryUsage) Schema() map[string]*schema.Schema

func (*HighMemoryUsage) UnmarshalHCL added in v1.28.0

func (me *HighMemoryUsage) UnmarshalHCL(decoder hcl.Decoder) error

type HighMemoryUsageConfig added in v1.28.0

type HighMemoryUsageConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // of defined memory limits for at least
	Threshold                  int `json:"threshold"`                  // amount of utilized workload memory is above
}

func (*HighMemoryUsageConfig) MarshalHCL added in v1.28.0

func (me *HighMemoryUsageConfig) MarshalHCL(properties hcl.Properties) error

func (*HighMemoryUsageConfig) Schema added in v1.28.0

func (me *HighMemoryUsageConfig) Schema() map[string]*schema.Schema

func (*HighMemoryUsageConfig) UnmarshalHCL added in v1.28.0

func (me *HighMemoryUsageConfig) UnmarshalHCL(decoder hcl.Decoder) error

type JobFailureEvents added in v1.32.1

type JobFailureEvents struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*JobFailureEvents) MarshalHCL added in v1.32.1

func (me *JobFailureEvents) MarshalHCL(properties hcl.Properties) error

func (*JobFailureEvents) Schema added in v1.32.1

func (me *JobFailureEvents) Schema() map[string]*schema.Schema

func (*JobFailureEvents) UnmarshalHCL added in v1.32.1

func (me *JobFailureEvents) UnmarshalHCL(decoder hcl.Decoder) error

type NotAllPodsReady

type NotAllPodsReady struct {
	Configuration *NotAllPodsReadyConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                   `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*NotAllPodsReady) HandlePreconditions added in v1.28.0

func (me *NotAllPodsReady) HandlePreconditions() error

func (*NotAllPodsReady) MarshalHCL

func (me *NotAllPodsReady) MarshalHCL(properties hcl.Properties) error

func (*NotAllPodsReady) Schema

func (me *NotAllPodsReady) Schema() map[string]*schema.Schema

func (*NotAllPodsReady) UnmarshalHCL

func (me *NotAllPodsReady) UnmarshalHCL(decoder hcl.Decoder) error

type NotAllPodsReadyConfig

type NotAllPodsReadyConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // some workload pods are not ready for at least
}

func (*NotAllPodsReadyConfig) MarshalHCL

func (me *NotAllPodsReadyConfig) MarshalHCL(properties hcl.Properties) error

func (*NotAllPodsReadyConfig) Schema

func (me *NotAllPodsReadyConfig) Schema() map[string]*schema.Schema

func (*NotAllPodsReadyConfig) UnmarshalHCL

func (me *NotAllPodsReadyConfig) UnmarshalHCL(decoder hcl.Decoder) error

type OOMKills added in v1.32.1

type OOMKills struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*OOMKills) MarshalHCL added in v1.32.1

func (me *OOMKills) MarshalHCL(properties hcl.Properties) error

func (*OOMKills) Schema added in v1.32.1

func (me *OOMKills) Schema() map[string]*schema.Schema

func (*OOMKills) UnmarshalHCL added in v1.32.1

func (me *OOMKills) UnmarshalHCL(decoder hcl.Decoder) error

type PendingPods

type PendingPods struct {
	Configuration *PendingPodsConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool               `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*PendingPods) HandlePreconditions added in v1.28.0

func (me *PendingPods) HandlePreconditions() error

func (*PendingPods) MarshalHCL

func (me *PendingPods) MarshalHCL(properties hcl.Properties) error

func (*PendingPods) Schema

func (me *PendingPods) Schema() map[string]*schema.Schema

func (*PendingPods) UnmarshalHCL

func (me *PendingPods) UnmarshalHCL(decoder hcl.Decoder) error

type PendingPodsConfig

type PendingPodsConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // stuck in pending state for at least
	Threshold                  int `json:"threshold"`                  // there is at least
}

func (*PendingPodsConfig) MarshalHCL

func (me *PendingPodsConfig) MarshalHCL(properties hcl.Properties) error

func (*PendingPodsConfig) Schema

func (me *PendingPodsConfig) Schema() map[string]*schema.Schema

func (*PendingPodsConfig) UnmarshalHCL

func (me *PendingPodsConfig) UnmarshalHCL(decoder hcl.Decoder) error

type PodBackoffEvents added in v1.32.1

type PodBackoffEvents struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*PodBackoffEvents) MarshalHCL added in v1.32.1

func (me *PodBackoffEvents) MarshalHCL(properties hcl.Properties) error

func (*PodBackoffEvents) Schema added in v1.32.1

func (me *PodBackoffEvents) Schema() map[string]*schema.Schema

func (*PodBackoffEvents) UnmarshalHCL added in v1.32.1

func (me *PodBackoffEvents) UnmarshalHCL(decoder hcl.Decoder) error

type PodEvictionEvents added in v1.32.1

type PodEvictionEvents struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*PodEvictionEvents) MarshalHCL added in v1.32.1

func (me *PodEvictionEvents) MarshalHCL(properties hcl.Properties) error

func (*PodEvictionEvents) Schema added in v1.32.1

func (me *PodEvictionEvents) Schema() map[string]*schema.Schema

func (*PodEvictionEvents) UnmarshalHCL added in v1.32.1

func (me *PodEvictionEvents) UnmarshalHCL(decoder hcl.Decoder) error

type PodPreemptionEvents added in v1.32.1

type PodPreemptionEvents struct {
	Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`)
}

func (*PodPreemptionEvents) MarshalHCL added in v1.32.1

func (me *PodPreemptionEvents) MarshalHCL(properties hcl.Properties) error

func (*PodPreemptionEvents) Schema added in v1.32.1

func (me *PodPreemptionEvents) Schema() map[string]*schema.Schema

func (*PodPreemptionEvents) UnmarshalHCL added in v1.32.1

func (me *PodPreemptionEvents) UnmarshalHCL(decoder hcl.Decoder) error

type PodStuckInTerminating

type PodStuckInTerminating struct {
	Configuration *PodStuckInTerminatingConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                         `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*PodStuckInTerminating) HandlePreconditions added in v1.28.0

func (me *PodStuckInTerminating) HandlePreconditions() error

func (*PodStuckInTerminating) MarshalHCL

func (me *PodStuckInTerminating) MarshalHCL(properties hcl.Properties) error

func (*PodStuckInTerminating) Schema

func (me *PodStuckInTerminating) Schema() map[string]*schema.Schema

func (*PodStuckInTerminating) UnmarshalHCL

func (me *PodStuckInTerminating) UnmarshalHCL(decoder hcl.Decoder) error

type PodStuckInTerminatingConfig

type PodStuckInTerminatingConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // pod termination stops progressing for at least
}

func (*PodStuckInTerminatingConfig) MarshalHCL

func (me *PodStuckInTerminatingConfig) MarshalHCL(properties hcl.Properties) error

func (*PodStuckInTerminatingConfig) Schema

func (me *PodStuckInTerminatingConfig) Schema() map[string]*schema.Schema

func (*PodStuckInTerminatingConfig) UnmarshalHCL

func (me *PodStuckInTerminatingConfig) UnmarshalHCL(decoder hcl.Decoder) error

type Settings

type Settings struct {
	ContainerRestarts        *ContainerRestarts        `json:"containerRestarts"`
	DeploymentStuck          *DeploymentStuck          `json:"deploymentStuck"`
	HighCpuThrottling        *HighCpuThrottling        `json:"highCpuThrottling"`
	HighCpuUsage             *HighCpuUsage             `json:"highCpuUsage"`
	HighMemoryUsage          *HighMemoryUsage          `json:"highMemoryUsage"`
	JobFailureEvents         *JobFailureEvents         `json:"jobFailureEvents"`
	NotAllPodsReady          *NotAllPodsReady          `json:"notAllPodsReady"`
	OomKills                 *OOMKills                 `json:"oomKills"`
	PendingPods              *PendingPods              `json:"pendingPods"`
	PodBackoffEvents         *PodBackoffEvents         `json:"podBackoffEvents"`
	PodEvictionEvents        *PodEvictionEvents        `json:"podEvictionEvents"`
	PodPreemptionEvents      *PodPreemptionEvents      `json:"podPreemptionEvents"`
	PodStuckInTerminating    *PodStuckInTerminating    `json:"podStuckInTerminating"`
	Scope                    *string                   `json:"-" scope:"scope"` // The scope of this setting (CLOUD_APPLICATION_NAMESPACE, KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
	WorkloadWithoutReadyPods *WorkloadWithoutReadyPods `json:"workloadWithoutReadyPods"`
}

func (*Settings) MarshalHCL

func (me *Settings) MarshalHCL(properties hcl.Properties) error

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

func (me *Settings) Schema() map[string]*schema.Schema

func (*Settings) UnmarshalHCL

func (me *Settings) UnmarshalHCL(decoder hcl.Decoder) error

type WorkloadWithoutReadyPods

type WorkloadWithoutReadyPods struct {
	Configuration *WorkloadWithoutReadyPodsConfig `json:"configuration,omitempty"` // Alert if
	Enabled       bool                            `json:"enabled"`                 // This setting is enabled (`true`) or disabled (`false`)
}

func (*WorkloadWithoutReadyPods) HandlePreconditions added in v1.28.0

func (me *WorkloadWithoutReadyPods) HandlePreconditions() error

func (*WorkloadWithoutReadyPods) MarshalHCL

func (me *WorkloadWithoutReadyPods) MarshalHCL(properties hcl.Properties) error

func (*WorkloadWithoutReadyPods) Schema

func (me *WorkloadWithoutReadyPods) Schema() map[string]*schema.Schema

func (*WorkloadWithoutReadyPods) UnmarshalHCL

func (me *WorkloadWithoutReadyPods) UnmarshalHCL(decoder hcl.Decoder) error

type WorkloadWithoutReadyPodsConfig

type WorkloadWithoutReadyPodsConfig struct {
	ObservationPeriodInMinutes int `json:"observationPeriodInMinutes"` // within the last
	SamplePeriodInMinutes      int `json:"samplePeriodInMinutes"`      // workload has no ready pods for at least
}

func (*WorkloadWithoutReadyPodsConfig) MarshalHCL

func (me *WorkloadWithoutReadyPodsConfig) MarshalHCL(properties hcl.Properties) error

func (*WorkloadWithoutReadyPodsConfig) Schema

func (*WorkloadWithoutReadyPodsConfig) UnmarshalHCL

func (me *WorkloadWithoutReadyPodsConfig) UnmarshalHCL(decoder hcl.Decoder) error

Jump to

Keyboard shortcuts

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