maintenance

package
v1.31.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Contexts = struct {
	AWS          Context
	AWSGeneric   Context
	Azure        Context
	CloudFoundry Context
	Contextless  Context
	Environment  Context
	GoogleCloud  Context
	Kubernetes   Context
}{
	"AWS",
	"AWS_GENERIC",
	"AZURE",
	"CLOUD_FOUNDRY",
	"CONTEXTLESS",
	"ENVIRONMENT",
	"GOOGLE_CLOUD",
	"KUBERNETES",
}

Contexts offers the known enum values

View Source
var DayOfWeeks = struct {
	Friday    DayOfWeek
	Monday    DayOfWeek
	Saturday  DayOfWeek
	Sunday    DayOfWeek
	Thursday  DayOfWeek
	Tuesday   DayOfWeek
	Wednesday DayOfWeek
}{
	"FRIDAY",
	"MONDAY",
	"SATURDAY",
	"SUNDAY",
	"THURSDAY",
	"TUESDAY",
	"WEDNESDAY",
}

DayOfWeeks offers the known enum values

View Source
var FilterTypes = struct {
	ApmSecurityGateway           FilterType
	Application                  FilterType
	ApplicationMethod            FilterType
	ApplicationMethodGroup       FilterType
	AppMonServer                 FilterType
	AppMonSystemProfile          FilterType
	AutoScalingGroup             FilterType
	AuxiliarySyntheticTest       FilterType
	AWSApplicationLoadBalancer   FilterType
	AWSAvailabilityZone          FilterType
	AWSCredentials               FilterType
	AWSLambdaFunction            FilterType
	AWSNetworkLoadBalancer       FilterType
	AzureAPIManagementService    FilterType
	AzureApplicationGateway      FilterType
	AzureCosmosDB                FilterType
	AzureCredentials             FilterType
	AzureEventHub                FilterType
	AzureEventHubNamespace       FilterType
	AzureFunctionApp             FilterType
	AzureIotHub                  FilterType
	AzureLoadBalancer            FilterType
	AzureMgmtGroup               FilterType
	AzureRedisCache              FilterType
	AzureRegion                  FilterType
	AzureServiceBusNamespace     FilterType
	AzureServiceBusQueue         FilterType
	AzureServiceBusTopic         FilterType
	AzureSQLDatabase             FilterType
	AzureSQLElasticPool          FilterType
	AzureSQLServer               FilterType
	AzureStorageAccount          FilterType
	AzureSubscription            FilterType
	AzureTenant                  FilterType
	AzureVM                      FilterType
	AzureVMScaleSet              FilterType
	AzureWebApp                  FilterType
	CfApplication                FilterType
	CfFoundation                 FilterType
	CinderVolume                 FilterType
	CloudApplication             FilterType
	CloudApplicationInstance     FilterType
	CloudApplicationNamespace    FilterType
	ContainerGroup               FilterType
	ContainerGroupInstance       FilterType
	CustomApplication            FilterType
	CustomDevice                 FilterType
	CustomDeviceGroup            FilterType
	DCRumApplication             FilterType
	DCRumService                 FilterType
	DCRumServiceInstance         FilterType
	DeviceApplicationMethod      FilterType
	Disk                         FilterType
	DockerContainerGroup         FilterType
	DockerContainerGroupInstance FilterType
	DynamoDBTable                FilterType
	EbsVolume                    FilterType
	EC2Instance                  FilterType
	ElasticLoadBalancer          FilterType
	Environment                  FilterType
	ExternalSyntheticTestStep    FilterType
	GcpZone                      FilterType
	Geolocation                  FilterType
	GeolocSite                   FilterType
	GoogleComputeEngine          FilterType
	Host                         FilterType
	HostGroup                    FilterType
	HTTPCheck                    FilterType
	HTTPCheckStep                FilterType
	Hypervisor                   FilterType
	KubernetesCluster            FilterType
	KubernetesNode               FilterType
	MobileApplication            FilterType
	NetworkInterface             FilterType
	NeutronSubnet                FilterType
	OpenStackProject             FilterType
	OpenStackRegion              FilterType
	OpenStackVM                  FilterType
	OS                           FilterType
	ProcessGroup                 FilterType
	ProcessGroupInstance         FilterType
	RelationalDatabaseService    FilterType
	Service                      FilterType
	ServiceInstance              FilterType
	ServiceMethod                FilterType
	ServiceMethodGroup           FilterType
	SwiftContainer               FilterType
	SyntheticLocation            FilterType
	SyntheticTest                FilterType
	SyntheticTestStep            FilterType
	Virtualmachine               FilterType
	VmwareDatacenter             FilterType
}{
	"APM_SECURITY_GATEWAY",
	"APPLICATION",
	"APPLICATION_METHOD",
	"APPLICATION_METHOD_GROUP",
	"APPMON_SERVER",
	"APPMON_SYSTEM_PROFILE",
	"AUTO_SCALING_GROUP",
	"AUXILIARY_SYNTHETIC_TEST",
	"AWS_APPLICATION_LOAD_BALANCER",
	"AWS_AVAILABILITY_ZONE",
	"AWS_CREDENTIALS",
	"AWS_LAMBDA_FUNCTION",
	"AWS_NETWORK_LOAD_BALANCER",
	"AZURE_API_MANAGEMENT_SERVICE",
	"AZURE_APPLICATION_GATEWAY",
	"AZURE_COSMOS_DB",
	"AZURE_CREDENTIALS",
	"AZURE_EVENT_HUB",
	"AZURE_EVENT_HUB_NAMESPACE",
	"AZURE_FUNCTION_APP",
	"AZURE_IOT_HUB",
	"AZURE_LOAD_BALANCER",
	"AZURE_MGMT_GROUP",
	"AZURE_REDIS_CACHE",
	"AZURE_REGION",
	"AZURE_SERVICE_BUS_NAMESPACE",
	"AZURE_SERVICE_BUS_QUEUE",
	"AZURE_SERVICE_BUS_TOPIC",
	"AZURE_SQL_DATABASE",
	"AZURE_SQL_ELASTIC_POOL",
	"AZURE_SQL_SERVER",
	"AZURE_STORAGE_ACCOUNT",
	"AZURE_SUBSCRIPTION",
	"AZURE_TENANT",
	"AZURE_VM",
	"AZURE_VM_SCALE_SET",
	"AZURE_WEB_APP",
	"CF_APPLICATION",
	"CF_FOUNDATION",
	"CINDER_VOLUME",
	"CLOUD_APPLICATION",
	"CLOUD_APPLICATION_INSTANCE",
	"CLOUD_APPLICATION_NAMESPACE",
	"CONTAINER_GROUP",
	"CONTAINER_GROUP_INSTANCE",
	"CUSTOM_APPLICATION",
	"CUSTOM_DEVICE",
	"CUSTOM_DEVICE_GROUP",
	"DCRUM_APPLICATION",
	"DCRUM_SERVICE",
	"DCRUM_SERVICE_INSTANCE",
	"DEVICE_APPLICATION_METHOD",
	"DISK",
	"DOCKER_CONTAINER_GROUP",
	"DOCKER_CONTAINER_GROUP_INSTANCE",
	"DYNAMO_DB_TABLE",
	"EBS_VOLUME",
	"EC2_INSTANCE",
	"ELASTIC_LOAD_BALANCER",
	"ENVIRONMENT",
	"EXTERNAL_SYNTHETIC_TEST_STEP",
	"GCP_ZONE",
	"GEOLOCATION",
	"GEOLOC_SITE",
	"GOOGLE_COMPUTE_ENGINE",
	"HOST",
	"HOST_GROUP",
	"HTTP_CHECK",
	"HTTP_CHECK_STEP",
	"HYPERVISOR",
	"KUBERNETES_CLUSTER",
	"KUBERNETES_NODE",
	"MOBILE_APPLICATION",
	"NETWORK_INTERFACE",
	"NEUTRON_SUBNET",
	"OPENSTACK_PROJECT",
	"OPENSTACK_REGION",
	"OPENSTACK_VM",
	"OS",
	"PROCESS_GROUP",
	"PROCESS_GROUP_INSTANCE",
	"RELATIONAL_DATABASE_SERVICE",
	"SERVICE",
	"SERVICE_INSTANCE",
	"SERVICE_METHOD",
	"SERVICE_METHOD_GROUP",
	"SWIFT_CONTAINER",
	"SYNTHETIC_LOCATION",
	"SYNTHETIC_TEST",
	"SYNTHETIC_TEST_STEP",
	"VIRTUALMACHINE",
	"VMWARE_DATACENTER",
}

FilterTypes offers the known enum values

View Source
var MaintenanceWindowTypes = struct {
	Planned   WindowType
	Unplanned WindowType
}{
	"PLANNED",
	"UNPLANNED",
}

MaintenanceWindowTypes offers the known enum values

View Source
var RecurrenceTypes = struct {
	Daily   RecurrenceType
	Monthly RecurrenceType
	Once    RecurrenceType
	Weekly  RecurrenceType
}{
	"DAILY",
	"MONTHLY",
	"ONCE",
	"WEEKLY",
}

RecurrenceTypes offers the known enum values

View Source
var Suppressions = struct {
	DetectProblemsAndAlert  Suppression
	DetectProblemsDontAlert Suppression
	DontDetectProblems      Suppression
}{
	"DETECT_PROBLEMS_AND_ALERT",
	"DETECT_PROBLEMS_DONT_ALERT",
	"DONT_DETECT_PROBLEMS",
}

Suppressions offers the known enum values

View Source
var TagCombinations = struct {
	And TagCombination
	Or  TagCombination
}{
	"AND",
	"OR",
}

TagCombinations offers the known enum values

Functions

This section is empty.

Types

type Context

type Context string

Context The origin of the tag, such as AWS or Cloud Foundry.

Custom tags use the `CONTEXTLESS` value.

type DayOfWeek

type DayOfWeek string

DayOfWeek The day of the week for weekly maintenance. The format is the full name of the day in upper case, for example `THURSDAY`.

func (DayOfWeek) Ref

func (me DayOfWeek) Ref() *DayOfWeek

type Filter

type Filter struct {
	Type           *FilterType                `json:"type,omitempty"`           // The type of the Dynatrace entities (for example, hosts or services) you want to pick up by matching.
	MzID           *string                    `json:"mzId,omitempty"`           // The ID of a management zone to which the matched entities must belong.
	TagCombination *TagCombination            `json:"tagCombination,omitempty"` // The logic that applies when several tags are specified: AND/OR.  If not set, the OR logic is used.
	Tags           TagInfos                   `json:"tags"`                     // The tag you want to use for matching.  You can use custom tags from the UI, AWS tags, Cloud Foundry tags, OpenShift/Kubernetes, and tags based on environment variables.
	Unknowns       map[string]json.RawMessage `json:"-"`
}

Filter A matching rule for Dynatrace entities.

func (*Filter) MarshalHCL

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

func (*Filter) MarshalJSON

func (me *Filter) MarshalJSON() ([]byte, error)

func (*Filter) Schema

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

func (*Filter) UnmarshalHCL

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

func (*Filter) UnmarshalJSON

func (me *Filter) UnmarshalJSON(data []byte) error

type FilterType

type FilterType string

FilterType The type of the Dynatrace entities (for example, hosts or services) you want to pick up by matching.

func (FilterType) Ref

func (me FilterType) Ref() *FilterType

type Recurrence

type Recurrence struct {
	DayOfMonth      *int32                     `json:"dayOfMonth,omitempty"` // The day of the month for monthly maintenance.  The value of `31` is treated as the last day of the month for months that don't have a 31st day. The value of `30` is also treated as the last day of the month for February.
	DayOfWeek       *DayOfWeek                 `json:"dayOfWeek,omitempty"`  // The day of the week for weekly maintenance.  The format is the full name of the day in upper case, for example `THURSDAY`.
	DurationMinutes int32                      `json:"durationMinutes"`      // The duration of the maintenance window in minutes.
	StartTime       string                     `json:"startTime"`            // The start time of the maintenance window in HH:mm format.
	Unknowns        map[string]json.RawMessage `json:"-"`
}

Recurrence The recurrence of the maintenance window.

func (*Recurrence) MarshalHCL

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

func (*Recurrence) MarshalJSON

func (me *Recurrence) MarshalJSON() ([]byte, error)

func (*Recurrence) Schema

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

func (*Recurrence) UnmarshalHCL

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

func (*Recurrence) UnmarshalJSON

func (me *Recurrence) UnmarshalJSON(data []byte) error

type RecurrenceType

type RecurrenceType string

RecurrenceType The type of the schedule recurrence.

type Schedule

type Schedule struct {
	Start          string                     `json:"start"`                // The start date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format.
	End            string                     `json:"end"`                  // The end date and time of the maintenance window validity period in yyyy-mm-dd HH:mm format.
	ZoneID         string                     `json:"zoneId"`               // The time zone of the start and end time. Default time zone is UTC.  You can use either UTC offset `UTC+01:00` format or the IANA Time Zone Database format (for example, `Europe/Vienna`).
	Recurrence     *Recurrence                `json:"recurrence,omitempty"` // The recurrence of the maintenance window.
	RecurrenceType RecurrenceType             `json:"recurrenceType"`       // The type of the schedule recurrence.
	Unknowns       map[string]json.RawMessage `json:"-"`
}

Schedule The schedule of the maintenance window.

func (*Schedule) MarshalHCL

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

func (*Schedule) MarshalJSON

func (me *Schedule) MarshalJSON() ([]byte, error)

func (*Schedule) Schema

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

func (*Schedule) UnmarshalHCL

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

func (*Schedule) UnmarshalJSON

func (me *Schedule) UnmarshalJSON(data []byte) error

type Scope

type Scope struct {
	Entities []string                   `json:"entities"` // A list of Dynatrace entities (for example, hosts or services) to be included in the scope.  Allowed values are Dynatrace entity IDs.
	Matches  []*Filter                  `json:"matches"`  // A list of matching rules for dynamic scope formation.  If several rules are set, the OR logic applies.
	Unknowns map[string]json.RawMessage `json:"-"`
}

Scope The scope of the maintenance window.

The scope restricts the alert/problem detection suppression to certain Dynatrace entities. It can contain a list of entities and/or matching rules for dynamic formation of the scope.
If no scope is specified, the alert/problem detection suppression applies to the entire environment.

func (*Scope) IsEmpty

func (me *Scope) IsEmpty() bool

func (*Scope) MarshalHCL

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

func (*Scope) MarshalJSON

func (me *Scope) MarshalJSON() ([]byte, error)

func (*Scope) Schema

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

func (*Scope) UnmarshalHCL

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

func (*Scope) UnmarshalJSON

func (me *Scope) UnmarshalJSON(data []byte) error

type Suppression

type Suppression string

Suppression The type of suppression of alerting and problem detection during the maintenance.

type TagCombination

type TagCombination string

TagCombination The logic that applies when several tags are specified: AND/OR. If not set, the OR logic is used.

func (TagCombination) Ref

func (me TagCombination) Ref() *TagCombination

type TagInfo

type TagInfo struct {
	Context  Context                    `json:"context"`         // The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the `CONTEXTLESS` value.
	Key      string                     `json:"key"`             // The key of the tag. Custom tags have the tag value here.
	Value    *string                    `json:"value,omitempty"` // The value of the tag. Not applicable to custom tags.
	Unknowns map[string]json.RawMessage `json:"-"`
}

TagInfo Tag of a Dynatrace entity.

func (*TagInfo) Equals

func (me *TagInfo) Equals(other any) bool

func (*TagInfo) MarshalHCL

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

func (*TagInfo) MarshalJSON

func (me *TagInfo) MarshalJSON() ([]byte, error)

func (*TagInfo) Schema

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

func (*TagInfo) UnmarshalHCL

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

func (*TagInfo) UnmarshalJSON

func (me *TagInfo) UnmarshalJSON(data []byte) error

type TagInfos

type TagInfos []*TagInfo

func (TagInfos) Equals

func (me TagInfos) Equals(other any) bool

type Window

type Window struct {
	Name                               string      `json:"name"`                                         // The name of the maintenance window, displayed in the UI.
	Description                        string      `json:"description"`                                  // A short description of the maintenance purpose.
	Schedule                           *Schedule   `json:"schedule"`                                     // The schedule of the maintenance window.
	Scope                              *Scope      `json:"scope,omitempty"`                              // The scope of the maintenance window.   The scope restricts the alert/problem detection suppression to certain Dynatrace entities. It can contain a list of entities and/or matching rules for dynamic formation of the scope.   If no scope is specified, the alert/problem detection suppression applies to the entire environment.
	Suppression                        Suppression `json:"suppression"`                                  // The type of suppression of alerting and problem detection during the maintenance.
	Type                               WindowType  `json:"type"`                                         // The type of the maintenance: planned or unplanned
	SuppressSyntheticMonitorsExecution *bool       `json:"suppressSyntheticMonitorsExecution,omitempty"` // Suppress execution of synthetic monitors during the maintenance
	Enabled                            bool        `json:"enabled"`

	Unknowns map[string]json.RawMessage `json:"-"`
}

Window Configuration of a maintenance window.

func (*Window) MarshalHCL

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

func (*Window) MarshalJSON

func (me *Window) MarshalJSON() ([]byte, error)

func (*Window) Schema

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

func (*Window) UnmarshalHCL

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

func (*Window) UnmarshalJSON

func (me *Window) UnmarshalJSON(data []byte) error

type WindowType

type WindowType string

WindowType The type of the maintenance: planned or unplanned.

Jump to

Keyboard shortcuts

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