notificationalertingprofile

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RiskLevels = struct {
	Critical RiskLevel
	High     RiskLevel
	Low      RiskLevel
	Medium   RiskLevel
}{
	"CRITICAL",
	"HIGH",
	"LOW",
	"MEDIUM",
}
View Source
var TriggerEvents = struct {
	NewManagementZoneAffected TriggerEvent
	SecurityProblemOpened     TriggerEvent
}{
	"NEW_MANAGEMENT_ZONE_AFFECTED",
	"SECURITY_PROBLEM_OPENED",
}

Functions

This section is empty.

Types

type RiskLevel

type RiskLevel string

type Settings

type Settings struct {
	Enabled              bool           `json:"enabled"`                        // Alerting profile is enabled (`true`) or disabled (`false`)
	EnabledRiskLevels    []RiskLevel    `json:"enabledRiskLevels,omitempty"`    // List of risk levels to alert
	EnabledTriggerEvents []TriggerEvent `json:"enabledTriggerEvents,omitempty"` // List of events to alert
	ManagementZone       *string        `json:"managementZone,omitempty"`       // Alert only if the following management zone is affected (optional)
	Name                 string         `json:"name"`                           // Alerting profile name
}

func (*Settings) MarshalHCL

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

func (*Settings) Schema

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

func (*Settings) UnmarshalHCL

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

type TriggerEvent

type TriggerEvent string

Jump to

Keyboard shortcuts

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