generalparameters

package
v1.57.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareOperation

type CompareOperation struct {
	CaseSensitive        *bool    `json:"caseSensitive,omitempty"` // Case sensitive
	CompareOperationType string   `json:"compareOperationType"`    // Apply this comparison
	DoubleValue          *float64 `json:"doubleValue,omitempty"`   // Value
	IntValue             *int     `json:"intValue,omitempty"`      // Value
	TextValue            *string  `json:"textValue,omitempty"`     // Value
}

func (*CompareOperation) MarshalHCL

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

func (*CompareOperation) Schema

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

func (*CompareOperation) UnmarshalHCL

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

type CustomErrorRule

type CustomErrorRule struct {
	Condition        *CompareOperation `json:"condition"`        // Request attribute condition
	RequestAttribute string            `json:"requestAttribute"` // Request attribute
}

func (*CustomErrorRule) MarshalHCL

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

func (*CustomErrorRule) Schema

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

func (*CustomErrorRule) UnmarshalHCL

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

type CustomErrorRules

type CustomErrorRules []*CustomErrorRule

func (CustomErrorRules) MarshalHCL

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

func (*CustomErrorRules) Schema

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

func (*CustomErrorRules) UnmarshalHCL

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

type Exception

type Exception struct {
	ClassPattern   *string `json:"classPattern,omitempty"`   // The pattern will match if it is contained within the actual class name.
	MessagePattern *string `json:"messagePattern,omitempty"` // Optionally, define an exception message pattern. The pattern will match if the actual exception message contains the pattern.
}

func (*Exception) MarshalHCL

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

func (*Exception) Schema

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

func (*Exception) UnmarshalHCL

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

type ExceptionRules

type ExceptionRules struct {
	CustomErrorRules           CustomErrorRules `json:"customErrorRules,omitempty"`         // Some custom error situations are only detectable via a return value or other means. To support such cases, [define a request attribute](https://dt-url.net/ys5k0p4y) that captures the required data. Then define a custom error rule that determines if the request has failed based on the value of the request attribute.
	CustomHandledExceptions    Exceptions       `json:"customHandledExceptions,omitempty"`  // There may be situations where your application code handles exceptions gracefully in a manner that these failures aren't detected by Dynatrace. Use this setting to define specific gracefully-handled exceptions that should be treated as service failures.
	IgnoreAllExceptions        bool             `json:"ignoreAllExceptions"`                // Ignore all exceptions
	IgnoreSpanFailureDetection bool             `json:"ignoreSpanFailureDetection"`         // Ignore span failure detection
	IgnoredExceptions          Exceptions       `json:"ignoredExceptions,omitempty"`        // Some exceptions that are thrown by legacy or 3rd-party code indicate a specific response, not an error. Use this setting to instruct Dynatrace to treat such exceptions as non-failed requests.. If an exception matching any of the defined patterns occurs in a request, it will not be considered as a failure. Other exceptions occurring at the same request might still mark the request as failed.
	SuccessForcingExceptions   Exceptions       `json:"successForcingExceptions,omitempty"` // Define exceptions which indicate that a service call should not be considered as failed. E.g. an exception indicating that the client aborted the operation.. If an exception matching any of the defined patterns occurs on the entry node of the service, it will be considered successful. Compared to ignored exceptions, the request will be considered successful even if other exceptions occur in the same request.
}

func (*ExceptionRules) MarshalHCL

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

func (*ExceptionRules) Schema

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

func (*ExceptionRules) UnmarshalHCL

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

type Exceptions

type Exceptions []*Exception

func (Exceptions) MarshalHCL

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

func (*Exceptions) Schema

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

func (*Exceptions) UnmarshalHCL

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

type Settings

type Settings struct {
	Enabled        bool            `json:"enabled"`                  // This setting is enabled (`true`) or disabled (`false`)
	ExceptionRules *ExceptionRules `json:"exceptionRules,omitempty"` // Customize failure detection for specific exceptions and errors
	ServiceID      string          `json:"-" scope:"serviceId"`      // The scope of this settings. If the settings should cover the whole environment, just don't specify any scope.
}

func (*Settings) MarshalHCL

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

func (*Settings) Name

func (me *Settings) Name() string

func (*Settings) Schema

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

func (*Settings) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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