Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LinuxServiceProps = struct { Servicename LinuxServiceProp Startuptype LinuxServiceProp }{ "ServiceName", "StartupType", }
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 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`. Property LinuxServiceProp `json:"property"` // Possible Values: `ServiceName`, `StartupType` 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) 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) 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) UnmarshalHCL ¶
func (me *MetadataItems) UnmarshalHCL(decoder hcl.Decoder) error
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 consume custom metrics (DDUs). Refer to [documentation](https://dt-url.net/vl03xzk) for DDU 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` }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
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`. Property WindowsServiceProps `json:"property"` // Possible Values: `DisplayName`, `Manufacturer`, `Path`, `ServiceName`, `StartupType` 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) 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
Click to show internal directories.
Click to hide internal directories.