errors

package
v1.59.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomErrorRuleKeyMatchers = struct {
	BeginsWith CustomErrorRuleKeyMatcher
	Contains   CustomErrorRuleKeyMatcher
	EndsWith   CustomErrorRuleKeyMatcher
	Equals     CustomErrorRuleKeyMatcher
}{
	"BEGINS_WITH",
	"CONTAINS",
	"ENDS_WITH",
	"EQUALS",
}
View Source
var CustomErrorRuleValueMatchers = struct {
	BeginsWith CustomErrorRuleValueMatcher
	Contains   CustomErrorRuleValueMatcher
	EndsWith   CustomErrorRuleValueMatcher
	Equals     CustomErrorRuleValueMatcher
}{
	"BEGINS_WITH",
	"CONTAINS",
	"ENDS_WITH",
	"EQUALS",
}
View Source
var HTTPErrorRuleFilters = struct {
	BeginsWith HTTPErrorRuleFilter
	Contains   HTTPErrorRuleFilter
	EndsWith   HTTPErrorRuleFilter
	Equals     HTTPErrorRuleFilter
}{
	"BEGINS_WITH",
	"CONTAINS",
	"ENDS_WITH",
	"EQUALS",
}

Functions

This section is empty.

Types

type CustomErrorRule

type CustomErrorRule struct {
	KeyPattern     *string                      `json:"keyPattern,omitempty"`   // The key of the error to look for
	KeyMatcher     *CustomErrorRuleKeyMatcher   `json:"keyMatcher,omitempty"`   // The matching operation for the **keyPattern**. Possible values are `BEGINS_WITH`, `CONTAINS`, `ENDS_WITH` and `EQUALS`.
	ValuePattern   *string                      `json:"valuePattern,omitempty"` // The value of the error to look for
	ValueMatcher   *CustomErrorRuleValueMatcher `json:"valueMatcher,omitempty"` // The matching operation for the **valuePattern**. Possible values are `BEGINS_WITH`, `CONTAINS`, `ENDS_WITH` and `EQUALS`.
	Capture        bool                         `json:"capture"`                // Capture (`true`) or ignore (`false`) the error
	ImpactApdex    bool                         `json:"impactApdex"`            // Include (`true`) or exclude (`false`) the error in Apdex calculation
	CustomAlerting bool                         `json:"customAlerting"`         // Include (`true`) or exclude (`false`) the error in Davis AI [problem detection and analysis](https://dt-url.net/a963kd2)
}

CustomErrorRule represents configuration of the custom error in the web application

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 CustomErrorRuleKeyMatcher

type CustomErrorRuleKeyMatcher string

type CustomErrorRuleValueMatcher

type CustomErrorRuleValueMatcher string

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 HTTPErrorRule

type HTTPErrorRule struct {
	ConsiderUnknownErrorCode bool                 `json:"considerUnknownErrorCode"` // If `true`, match by errors that have unknown HTTP status code
	ConsiderBlockedRequests  bool                 `json:"considerBlockedRequests"`  // If `true`, match by errors that have CSP Rule violations
	ErrorCodes               *string              `json:"errorCodes,omitempty"`     // The HTTP status code or status code range to match by. \n\nThis field is required if **considerUnknownErrorCode** AND **considerBlockedRequests** are both set to `false`
	FilterByURL              bool                 `json:"filterByUrl"`              // If `true`, filter errors by URL
	Filter                   *HTTPErrorRuleFilter `json:"filter,omitempty"`         // The matching rule for the URL. Popssible values are `BEGINS_WITH`, `CONTAINS`, `ENDS_WITH` and `EQUALS`.
	URL                      *string              `json:"url,omitempty"`            // The URL to look for
	Capture                  bool                 `json:"capture"`                  // Capture (`true`) or ignore (`false`) the error
	ImpactApdex              bool                 `json:"impactApdex"`              // Include (`true`) or exclude (`false`) the error in Apdex calculation
	ConsiderForAI            bool                 `json:"considerForAi"`            // Include (`true`) or exclude (`false`) the error in Davis AI [problem detection and analysis](https://dt-url.net/a963kd2)
}

HTTPErrorRule represents configuration of the HTTP error in the web application

func (*HTTPErrorRule) MarshalHCL

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

func (*HTTPErrorRule) Schema

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

func (*HTTPErrorRule) UnmarshalHCL

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

type HTTPErrorRuleFilter

type HTTPErrorRuleFilter string

type HTTPErrorRules

type HTTPErrorRules []*HTTPErrorRule

func (HTTPErrorRules) MarshalHCL

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

func (*HTTPErrorRules) Schema

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

func (*HTTPErrorRules) UnmarshalHCL

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

type Rules

type Rules struct {
	WebApplicationID                         string           `json:"-"` // The EntityID of the the WebApplication
	Name                                     string           `json:"-"`
	IgnoreJavaScriptErrorsInApdexCalculation bool             `json:"ignoreJavaScriptErrorsInApdexCalculation"` // Exclude (`true`) or include (`false`) JavaScript errors in Apdex calculation
	IgnoreHttpErrorsInApdexCalculation       bool             `json:"ignoreHttpErrorsInApdexCalculation"`       // (Field has overlap with `dynatrace_web_app_request_errors`) Exclude (`true`) or include (`false`) HTTP errors listed in **httpErrorRules** in Apdex calculation
	IgnoreCustomErrorsInApdexCalculation     bool             `json:"ignoreCustomErrorsInApdexCalculation"`     // (Field has overlap with `dynatrace_web_app_custom_errors`) Exclude (`true`) or include (`false`) custom errors listed in **customErrorRules** in Apdex calculation
	HTTPErrors                               HTTPErrorRules   `json:"httpErrorRules"`                           // (Field has overlap with `dynatrace_web_app_request_errors`) An ordered list of HTTP errors.\n\n Rules are evaluated from top to bottom; the first matching rule applies
	CustomErrors                             CustomErrorRules `json:"customErrorRules"`                         // (Field has overlap with `dynatrace_web_app_custom_errors`) An ordered list of custom errors.\n\n Rules are evaluated from top to bottom; the first matching rule applies
}

Rules represents configuration of error rules in the web application

func (*Rules) Load added in v1.18.1

func (me *Rules) Load(data []byte) error

func (*Rules) MarshalHCL

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

func (*Rules) Schema

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

func (*Rules) Store added in v1.18.1

func (me *Rules) Store() ([]byte, error)

func (*Rules) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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