warningtype

package
v0.0.0-...-288c4de Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Severities = map[Severity]string{
	SeverityLow:      "low",
	SeverityModerate: "moderate",
	SeverityHigh:     "high",
}

Severities associates a severity code to its name.

View Source
var SeverityTypes = map[string]Severity{}

SeverityTypes associates a warning severity to its type code.

View Source
var StatusTypes = map[string]Status{}

StatusTypes associates a warning status to its type code.

View Source
var Statuses = map[Status]string{
	StatusNew:          "new",
	StatusAcknowledged: "acknowledged",
	StatusResolved:     "resolved",
}

Statuses associates a warning code to its name.

View Source
var TypeNames = map[Type]string{
	Undefined:                              "Undefined warning",
	MissingCGroupBlkio:                     "Couldn't find the CGroup blkio",
	MissingCGroupBlkioWeight:               "Couldn't find the CGroup blkio.weight",
	MissingCGroupCPUController:             "Couldn't find the CGroup CPU controller",
	MissingCGroupCPUsetController:          "Couldn't find the CGroup CPUset controller",
	MissingCGroupCPUacctController:         "Couldn't find the CGroup CPUacct controller",
	MissingCGroupDevicesController:         "Couldn't find the CGroup devices controller",
	MissingCGroupFreezerController:         "Couldn't find the CGroup freezer controller",
	MissingCGroupHugetlbController:         "Couldn't find the CGroup hugetlb controller",
	MissingCGroupMemoryController:          "Couldn't find the CGroup memory controller",
	MissingCGroupNetworkPriorityController: "Couldn't find the CGroup network priority controller",
	MissingCGroupPidsController:            "Couldn't find the CGroup pids controller",
	MissingCGroupMemorySwapAccounting:      "Couldn't find the CGroup memory swap accounting",
	ClusterTimeSkew:                        "Time skew detected between leader and local",
	AppArmorNotAvailable:                   "AppArmor support has been disabled",
	MissingVirtiofsd:                       "Missing virtiofsd",
	UnableToConnectToMAAS:                  "Unable to connect to MAAS",
	AppArmorDisabledDueToRawDnsmasq:        "Skipping AppArmor for dnsmasq due to raw.dnsmasq being set",
	LargerIPv6PrefixThanSupported:          "IPv6 networks with a prefix larger than 64 aren't properly supported by dnsmasq",
	ProxyBridgeNetfilterNotEnabled:         "Proxy bridge netfilter not enabled",
	NetworkUnvailable:                      "Network unavailable",
	OfflineClusterMember:                   "Offline cluster member",
	InstanceAutostartFailure:               "Failed to autostart instance",
	InstanceTypeNotOperational:             "Instance type not operational",
	StoragePoolUnvailable:                  "Storage pool unavailable",
	UnableToUpdateClusterCertificate:       "Unable to update cluster certificate",
}

TypeNames associates a warning code to its name.

Functions

This section is empty.

Types

type Severity

type Severity int

Severity represents the warning severity.

const (
	// SeverityLow represents the low Severity.
	SeverityLow Severity = 1
	// SeverityModerate represents the moderate Severity.
	SeverityModerate Severity = 2
	// SeverityHigh represents the high Severity.
	SeverityHigh Severity = 3
)

type Status

type Status int

Status represents the warning status.

const (
	// StatusNew represents the New WarningStatus.
	StatusNew Status = 1
	// StatusAcknowledged represents the Acknowledged WarningStatus.
	StatusAcknowledged Status = 2
	// StatusResolved represents the Resolved WarningStatus.
	StatusResolved Status = 3
)

type Type

type Type int

Type is a numeric code indentifying the type of warning.

const (
	// Undefined represents an undefined warning.
	Undefined Type = iota
	// MissingCGroupBlkio represents the missing CGroup blkio warning.
	MissingCGroupBlkio
	// MissingCGroupBlkioWeight represents the missing CGroup blkio.weight warning.
	MissingCGroupBlkioWeight
	// MissingCGroupCPUController represents the missing CGroup CPU controller warning.
	MissingCGroupCPUController
	// MissingCGroupCPUsetController represents the missing GCgroup CPUset controller warning.
	MissingCGroupCPUsetController
	// MissingCGroupCPUacctController represents the missing GCgroup CPUacct controller warning.
	MissingCGroupCPUacctController
	// MissingCGroupDevicesController represents the missing GCgroup devices controller warning.
	MissingCGroupDevicesController
	// MissingCGroupFreezerController represents the missing GCgroup freezer controller warning.
	MissingCGroupFreezerController
	// MissingCGroupHugetlbController represents the missing GCgroup hugetlb controller warning.
	MissingCGroupHugetlbController
	// MissingCGroupMemoryController represents the missing GCgroup memory controller warning.
	MissingCGroupMemoryController
	// MissingCGroupNetworkPriorityController represents the missing GCgroup network priority controller warning.
	MissingCGroupNetworkPriorityController
	// MissingCGroupPidsController represents the missing GCgroup pids controller warning.
	MissingCGroupPidsController
	// MissingCGroupMemorySwapAccounting represents the missing GCgroup memory swap accounting warning.
	MissingCGroupMemorySwapAccounting
	// ClusterTimeSkew represents the cluster time skew warning.
	ClusterTimeSkew
	// AppArmorNotAvailable represents the AppArmor not available warning.
	AppArmorNotAvailable
	// MissingVirtiofsd represents the missing virtiofsd warning.
	MissingVirtiofsd
	// UnableToConnectToMAAS represents the unable to connect to MAAS warning.
	UnableToConnectToMAAS
	// AppArmorDisabledDueToRawDnsmasq represents the disabled AppArmor due to raw.dnsmasq warning.
	AppArmorDisabledDueToRawDnsmasq
	// LargerIPv6PrefixThanSupported represents the larger IPv6 prefix than supported warning.
	LargerIPv6PrefixThanSupported
	// ProxyBridgeNetfilterNotEnabled represents the proxy bridge netfilter not enable warning.
	ProxyBridgeNetfilterNotEnabled
	// NetworkUnvailable represents a network that cannot be initialized on the local server.
	NetworkUnvailable
	// OfflineClusterMember represents the offline cluster members warning.
	OfflineClusterMember
	// InstanceAutostartFailure represents the failure of instance autostart process after three retries.
	InstanceAutostartFailure
	// InstanceTypeNotOperational represents the lack of support for an instance driver.
	InstanceTypeNotOperational
	// StoragePoolUnvailable represents a storage pool that cannot be initialized on the local server.
	StoragePoolUnvailable
	// UnableToUpdateClusterCertificate represents the unable to update cluster certificate warning.
	UnableToUpdateClusterCertificate
)

func (Type) Severity

func (t Type) Severity() Severity

Severity returns the severity of the warning type.

Jump to

Keyboard shortcuts

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