parameters

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokenLinks struct {
	BrokenLinkDomains       []string `json:"brokenLinkDomains,omitempty"` // If your application relies on other hosts at other domains, add the associated domain names here. Once configured, Dynatrace will consider 404s thrown by hosts at these domains to be service failures related to your application.
	Http404NotFoundFailures bool     `json:"http404NotFoundFailures"`     // Consider 404 HTTP response codes as failures
}

func (*BrokenLinks) HandlePreconditions

func (me *BrokenLinks) HandlePreconditions()

func (*BrokenLinks) MarshalHCL

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

func (*BrokenLinks) Schema

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

func (*BrokenLinks) UnmarshalHCL

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

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) HandlePreconditions

func (me *CompareOperation) HandlePreconditions()

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) HandlePreconditions

func (me *ExceptionRules) HandlePreconditions()

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 HttpResponseCodes

type HttpResponseCodes struct {
	ClientSideErrors                    string `json:"clientSideErrors"`                    // HTTP response codes which indicate client side errors
	FailOnMissingResponseCodeClientSide bool   `json:"failOnMissingResponseCodeClientSide"` // Treat missing HTTP response code as client side error
	FailOnMissingResponseCodeServerSide bool   `json:"failOnMissingResponseCodeServerSide"` // Treat missing HTTP response code as server side errors
	ServerSideErrors                    string `json:"serverSideErrors"`                    // HTTP response codes which indicate an error on the server side
}

func (*HttpResponseCodes) MarshalHCL

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

func (*HttpResponseCodes) Schema

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

func (*HttpResponseCodes) UnmarshalHCL

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

type Settings

type Settings struct {
	BrokenLinks       *BrokenLinks       `json:"brokenLinks"`           // HTTP 404 response codes are thrown when a web server can't find a certain page. 404s are classified as broken links on the client side and therefore aren't considered to be service failures. By enabling this setting, you can have 404s treated as server-side service failures.
	Description       *string            `json:"description,omitempty"` // Description
	ExceptionRules    *ExceptionRules    `json:"exceptionRules"`        // Customize failure detection for specific exceptions and errors
	HttpResponseCodes *HttpResponseCodes `json:"httpResponseCodes"`     // HTTP response codes
	Name              string             `json:"name"`                  // 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

Jump to

Keyboard shortcuts

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