osservicesmonitoring

package
v1.56.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LinuxServiceProps = struct {
	Servicename LinuxServiceProp
	Startuptype LinuxServiceProp
}{
	"ServiceName",
	"StartupType",
}
View Source
var RuleTypes = struct {
	Ruletypehost      RuleType
	Ruletypeosservice RuleType
}{
	"RuleTypeHost",
	"RuleTypeOsService",
}
View Source
var Systems = struct {
	Linux   System
	Windows System
}{
	"LINUX",
	"WINDOWS",
}
View Source
var WindowsServicePropss = struct {
	Displayname  WindowsServiceProps
	Manufacturer WindowsServiceProps
	Path         WindowsServiceProps
	Servicename  WindowsServiceProps
	Startuptype  WindowsServiceProps
}{
	"DisplayName",
	"Manufacturer",
	"Path",
	"ServiceName",
	"StartupType",
}

Functions

This section is empty.

Types

type HostMetadataCondition added in v1.44.1

type HostMetadataCondition struct {
	MetadataCondition string `json:"metadataCondition"` // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$contains(production)` – Matches if `production` appears anywhere in the host metadata value.\n- `$eq(production)` – Matches if `production` matches the host metadata value exactly.\n- `$prefix(production)` – Matches if `production` matches the prefix of the host metadata value.\n- `$suffix(production)` – Matches if `production` matches the suffix of the host metadata value.\n\nAvailable logic operations:\n- `$not($eq(production))` – Matches if the host metadata value is different from `production`.\n- `$and($prefix(production),$suffix(main))` – Matches if host metadata value starts with `production` and ends with `main`.\n- `$or($prefix(production),$suffix(main))` – Matches if host metadata value starts with `production` or ends with `main`.\n\nBrackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
	MetadataKey       string `json:"metadataKey"`       // Key
}

func (*HostMetadataCondition) MarshalHCL added in v1.44.1

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

func (*HostMetadataCondition) Schema added in v1.44.1

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

func (*HostMetadataCondition) UnmarshalHCL added in v1.44.1

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

type LinuxDetectionCondition

type LinuxDetectionCondition struct {
	Condition             *string                `json:"condition,omitempty"`             // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$contains(ssh)` – Matches if `ssh` appears anywhere in the service's property value.\n- `$eq(sshd)` – Matches if `sshd` matches the service's property value exactly.\n- `$prefix(ss)` – Matches if `ss` matches the prefix of the service's property value.\n- `$suffix(hd)` – Matches if `hd` matches the suffix of the service's property value.\n\nAvailable logic operations:\n- `$not($eq(sshd))` – Matches if the service's property value is different from `sshd`.\n- `$and($prefix(ss),$suffix(hd))` – Matches if service's property value starts with `ss` and ends with `hd`.\n- `$or($prefix(ss),$suffix(hd))` – Matches if service's property value starts with `ss` or ends with `hd`.\n\nBrackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
	HostMetadataCondition *HostMetadataCondition `json:"hostMetadataCondition,omitempty"` // Custom metadata
	Property              *LinuxServiceProp      `json:"property,omitempty"`              // Possible Values: `ServiceName`, `StartupType`
	RuleType              *RuleType              `json:"ruleType,omitempty"`              // Possible Values: `RuleTypeHost`, `RuleTypeOsService`
	StartupCondition      *string                `json:"startupCondition,omitempty"`      // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$eq(enabled)` – Matches services with startup type equal to enabled.\n\nAvailable logic operations:\n- `$not($eq(enabled))` – Matches services with startup type different from enabled.\n- `$or($eq(enabled),$eq(disabled))` - Matches services that are either enabled or disabled.\n\nUse one of the following values as a parameter for this condition:\n\n- `enabled`\n- `enabled-runtime`\n- `static`\n- `disabled`
}

func (*LinuxDetectionCondition) HandlePreconditions added in v1.44.1

func (me *LinuxDetectionCondition) HandlePreconditions() error

func (*LinuxDetectionCondition) MarshalHCL

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

func (*LinuxDetectionCondition) Schema

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

func (*LinuxDetectionCondition) UnmarshalHCL

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

type LinuxDetectionConditions

type LinuxDetectionConditions []*LinuxDetectionCondition

func (LinuxDetectionConditions) MarshalHCL

func (me LinuxDetectionConditions) MarshalHCL(properties hcl.Properties) error

func (*LinuxDetectionConditions) Schema

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

func (*LinuxDetectionConditions) UnmarshalHCL

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

type LinuxServiceProp

type LinuxServiceProp string

type MetadataItem

type MetadataItem struct {
	MetadataKey   string `json:"metadataKey"` // Type 'dt.' for key hints.
	MetadataValue string `json:"metadataValue"`
}

func (*MetadataItem) MarshalHCL

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

func (*MetadataItem) Schema

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

func (*MetadataItem) UnmarshalHCL

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

type MetadataItems

type MetadataItems []*MetadataItem

func (MetadataItems) MarshalHCL

func (me MetadataItems) MarshalHCL(properties hcl.Properties) error

func (*MetadataItems) Schema

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

func (*MetadataItems) UnmarshalHCL

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

type RuleType added in v1.44.1

type RuleType string

type Settings

type Settings struct {
	AlertActivationDuration    *int                       `json:"alertActivationDuration,omitempty"`    // The number of **10-second measurement cycles** before alerting is triggered
	Alerting                   bool                       `json:"alerting"`                             // Toggle the switch in order to enable or disable alerting for this policy
	DetectionConditionsLinux   LinuxDetectionConditions   `json:"detectionConditionsLinux,omitempty"`   // Detection rules
	DetectionConditionsWindows WindowsDetectionConditions `json:"detectionConditionsWindows,omitempty"` // Detection rules
	Enabled                    bool                       `json:"enabled"`                              // This setting is enabled (`true`) or disabled (`false`)
	Metadata                   MetadataItems              `json:"metadata,omitempty"`                   // Set of additional key-value properties to be attached to the triggered event.
	Monitoring                 bool                       `json:"monitoring"`                           // Toggle the switch in order to enable or disable availability metric monitoring for this policy. Availability metrics produce custom metrics. Refer to [documentation](https://dt-url.net/vl03xzk) for consumption examples. Each monitored service consumes one custom metric.
	Name                       string                     `json:"name"`                                 // Rule name
	NotInstalledAlerting       *bool                      `json:"notInstalledAlerting,omitempty"`       // By default, Dynatrace does not alert if the service is not installed. Toggle the switch to enable or disable this feature
	Scope                      *string                    `json:"-" scope:"scope"`                      // The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
	StatusConditionLinux       *string                    `json:"statusConditionLinux,omitempty"`       // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$eq(failed)` – Matches services that are in failed state.\n\nAvailable logic operations:\n- `$not($eq(active))` – Matches services with state different from active.\n- `$or($eq(inactive),$eq(failed))` – Matches services that are either in inactive or failed state.\n\nUse one of the following values as a parameter for this condition:\n\n- `reloading`\n- `activating`\n- `deactivating`\n- `failed`\n- `inactive`\n- `active`
	StatusConditionWindows     *string                    `json:"statusConditionWindows,omitempty"`     // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$eq(paused)` – Matches services that are in paused state.\n\nAvailable logic operations:\n- `$not($eq(paused))` – Matches services that are in state different from paused.\n- `$or($eq(paused),$eq(running))` – Matches services that are either in paused or running state.\n\nUse one of the following values as a parameter for this condition:\n\n- `running`\n- `stopped`\n- `start_pending`\n- `stop_pending`\n- `continue_pending`\n- `pause_pending`\n- `paused`
	System                     System                     `json:"system"`                               // Possible Values: `LINUX`, `WINDOWS`
	InsertAfter                string                     `json:"-"`
}

func (*Settings) HandlePreconditions added in v1.44.1

func (me *Settings) HandlePreconditions() error

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 System

type System string

type WindowsDetectionCondition

type WindowsDetectionCondition struct {
	Condition             *string                `json:"condition,omitempty"`             // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$contains(ssh)` – Matches if `ssh` appears anywhere in the service's property value.\n- `$eq(sshd)` – Matches if `sshd` matches the service's property value exactly.\n- `$prefix(ss)` – Matches if `ss` matches the prefix of the service's property value.\n- `$suffix(hd)` – Matches if `hd` matches the suffix of the service's property value.\n\nAvailable logic operations:\n- `$not($eq(sshd))` – Matches if the service's property value is different from `sshd`.\n- `$and($prefix(ss),$suffix(hd))` – Matches if service's property value starts with `ss` and ends with `hd`.\n- `$or($prefix(ss),$suffix(hd))` – Matches if service's property value starts with `ss` or ends with `hd`.\n\nBrackets **(** and **)** that are part of the matched property **must be escaped with a tilde (~)**
	HostMetadataCondition *HostMetadataCondition `json:"hostMetadataCondition,omitempty"` // Custom metadata
	Property              *WindowsServiceProps   `json:"property,omitempty"`              // Possible Values: `DisplayName`, `Manufacturer`, `Path`, `ServiceName`, `StartupType`
	RuleType              *RuleType              `json:"ruleType,omitempty"`              // Possible Values: `RuleTypeHost`, `RuleTypeOsService`
	StartupCondition      *string                `json:"startupCondition,omitempty"`      // This string has to match a required format. See [OS services monitoring](https://dt-url.net/vl03xzk).\n\n- `$eq(manual)` – Matches services that are started manually.\n\nAvailable logic operations:\n- `$not($eq(auto))` – Matches services with startup type different from Automatic.\n- `$or($eq(auto),$eq(manual))` – Matches if service's startup type is either Automatic or Manual.\n\nUse one of the following values as a parameter for this condition:\n\n- `manual` for Manual\n- `manual_trigger` for Manual (Trigger Start)\n- `auto` for Automatic\n- `auto_delay` for Automatic (Delayed Start)\n- `auto_trigger` for Automatic (Trigger Start)\n- `auto_delay_trigger` for Automatic (Delayed Start, Trigger Start)\n- `disabled` for Disabled
}

func (*WindowsDetectionCondition) HandlePreconditions added in v1.44.1

func (me *WindowsDetectionCondition) HandlePreconditions() error

func (*WindowsDetectionCondition) MarshalHCL

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

func (*WindowsDetectionCondition) Schema

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

func (*WindowsDetectionCondition) UnmarshalHCL

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

type WindowsDetectionConditions

type WindowsDetectionConditions []*WindowsDetectionCondition

func (WindowsDetectionConditions) MarshalHCL

func (me WindowsDetectionConditions) MarshalHCL(properties hcl.Properties) error

func (*WindowsDetectionConditions) Schema

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

func (*WindowsDetectionConditions) UnmarshalHCL

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

type WindowsServiceProps

type WindowsServiceProps string

Jump to

Keyboard shortcuts

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