fullwebrequest

package
v1.68.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextRootTransformationTypes = struct {
	Before            ContextRootTransformationType
	RemoveCreditCards ContextRootTransformationType
	RemoveIbans       ContextRootTransformationType
	RemoveIps         ContextRootTransformationType
	RemoveNumbers     ContextRootTransformationType
	ReplaceBetween    ContextRootTransformationType
}{
	"BEFORE",
	"REMOVE_CREDIT_CARDS",
	"REMOVE_IBANS",
	"REMOVE_IPS",
	"REMOVE_NUMBERS",
	"REPLACE_BETWEEN",
}
View Source
var ContributionTypeWithOverrides = struct {
	Originalvalue  ContributionTypeWithOverride
	Overridevalue  ContributionTypeWithOverride
	Transformvalue ContributionTypeWithOverride
}{
	"OriginalValue",
	"OverrideValue",
	"TransformValue",
}
View Source
var ContributionTypes = struct {
	Originalvalue  ContributionType
	Overridevalue  ContributionType
	Transformurl   ContributionType
	Transformvalue ContributionType
}{
	"OriginalValue",
	"OverrideValue",
	"TransformURL",
	"TransformValue",
}
View Source
var FrameworkTypes = struct {
	Axis       FrameworkType
	Cxf        FrameworkType
	Hessian    FrameworkType
	JaxWsRi    FrameworkType
	Jboss      FrameworkType
	Jersey     FrameworkType
	Progress   FrameworkType
	Resteasy   FrameworkType
	Restlet    FrameworkType
	Spring     FrameworkType
	Tibco      FrameworkType
	Weblogic   FrameworkType
	Webmethods FrameworkType
	Websphere  FrameworkType
	Wink       FrameworkType
}{
	"AXIS",
	"CXF",
	"HESSIAN",
	"JAX_WS_RI",
	"JBOSS",
	"JERSEY",
	"PROGRESS",
	"RESTEASY",
	"RESTLET",
	"SPRING",
	"TIBCO",
	"WEBLOGIC",
	"WEBMETHODS",
	"WEBSPHERE",
	"WINK",
}
View Source
var TransformationTypes = struct {
	After             TransformationType
	Before            TransformationType
	Between           TransformationType
	RemoveCreditCards TransformationType
	RemoveIbans       TransformationType
	RemoveIps         TransformationType
	RemoveNumbers     TransformationType
	ReplaceBetween    TransformationType
	SplitSelect       TransformationType
	TakeSegments      TransformationType
}{
	"AFTER",
	"BEFORE",
	"BETWEEN",
	"REMOVE_CREDIT_CARDS",
	"REMOVE_IBANS",
	"REMOVE_IPS",
	"REMOVE_NUMBERS",
	"REPLACE_BETWEEN",
	"SPLIT_SELECT",
	"TAKE_SEGMENTS",
}

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Attribute            string          `json:"attribute"`             // Take the value of this attribute
	CompareOperationType string          `json:"compareOperationType"`  // Apply this operation
	Framework            []FrameworkType `json:"framework,omitempty"`   // Technology
	IgnoreCase           *bool           `json:"ignoreCase,omitempty"`  // Ignore case sensitivity for texts.
	IntValue             *int            `json:"intValue,omitempty"`    // Value
	IntValues            []int           `json:"intValues,omitempty"`   // Values
	IpRangeFrom          *string         `json:"ipRangeFrom,omitempty"` // From
	IpRangeTo            *string         `json:"ipRangeTo,omitempty"`   // To
	TagValues            []string        `json:"tagValues,omitempty"`   // If multiple values are specified, at least one of them must match for the condition to match
	TextValues           []string        `json:"textValues,omitempty"`  // If multiple values are specified, at least one of them must match for the condition to match
}

func (*Condition) HandlePreconditions added in v1.33.0

func (me *Condition) HandlePreconditions() error

func (*Condition) MarshalHCL

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

func (*Condition) Schema

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

func (*Condition) UnmarshalHCL

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

type Conditions

type Conditions []*Condition

func (Conditions) MarshalHCL

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

func (*Conditions) Schema

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

func (*Conditions) UnmarshalHCL

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

type ContextIdContributor

type ContextIdContributor struct {
	EnableIdContributor  bool         `json:"enableIdContributor"` // Transform this value before letting it contribute to the Service Id
	ServiceIdContributor *ContextRoot `json:"serviceIdContributor,omitempty"`
}

func (*ContextIdContributor) HandlePreconditions added in v1.33.0

func (me *ContextIdContributor) HandlePreconditions() error

func (*ContextIdContributor) MarshalHCL

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

func (*ContextIdContributor) Schema

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

func (*ContextIdContributor) UnmarshalHCL

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

type ContextRoot

type ContextRoot struct {
	ContributionType ContributionType       `json:"contributionType"`          // Possible Values: `OriginalValue`, `OverrideValue`, `TransformURL`, `TransformValue`
	SegmentCount     *int                   `json:"segmentCount,omitempty"`    // The number of segments of the URL to be kept. The URL is divided by slashes (/), the indexing starts with 1 at context root. For example, if you specify 2 for the `www.dynatrace.com/support/help/dynatrace-api/` URL, the value of `support/help` is used.
	Transformations  ReducedTransformations `json:"transformations,omitempty"` // Choose how to transform a value before it contributes to the Service Id. Note that all of the Transformations are always applied. Transformations are applied in the order they are specified, and the output of the previous transformation is the input for the next one. The resulting value contributes to the Service Id and can be found on the **Service overview page** under **Properties and tags**.
	ValueOverride    *ValueOverride         `json:"valueOverride,omitempty"`   // The value to be used instead of the detected value.
}

func (*ContextRoot) HandlePreconditions added in v1.33.0

func (me *ContextRoot) HandlePreconditions() error

func (*ContextRoot) MarshalHCL

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

func (*ContextRoot) Schema

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

func (*ContextRoot) UnmarshalHCL

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

type ContextRootTransformationType

type ContextRootTransformationType string

type ContributionType

type ContributionType string

type ContributionTypeWithOverride

type ContributionTypeWithOverride string

type FrameworkType

type FrameworkType string

type IdContributorsType

type IdContributorsType struct {
	ApplicationID *ServiceIdContributor `json:"applicationId"` // Application identifier
	ContextRoot   *ContextIdContributor `json:"contextRoot"`   // The context root is the first segment of the request URL after the Server name. For example, in the `www.dynatrace.com/support/help/dynatrace-api/` URL the context root is `/support`. The context root value can be found on the **Service overview page** under **Properties and tags**.
	ServerName    *ServiceIdContributor `json:"serverName"`    // Server Name
}

func (*IdContributorsType) MarshalHCL

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

func (*IdContributorsType) Schema

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

func (*IdContributorsType) UnmarshalHCL

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

type ReducedTransformation

type ReducedTransformation struct {
	IncludeHexNumbers  *bool                         `json:"includeHexNumbers,omitempty"` // include hexadecimal numbers
	MinDigitCount      *int                          `json:"minDigitCount,omitempty"`     // min digit count
	Prefix             *string                       `json:"prefix,omitempty"`
	ReplacementValue   *string                       `json:"replacementValue,omitempty"` // replacement
	Suffix             *string                       `json:"suffix,omitempty"`
	TransformationType ContextRootTransformationType `json:"transformationType"` // Possible Values: `BEFORE`, `REMOVE_CREDIT_CARDS`, `REMOVE_IBANS`, `REMOVE_IPS`, `REMOVE_NUMBERS`, `REPLACE_BETWEEN`
}

func (*ReducedTransformation) HandlePreconditions added in v1.33.0

func (me *ReducedTransformation) HandlePreconditions() error

func (*ReducedTransformation) MarshalHCL

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

func (*ReducedTransformation) Schema

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

func (*ReducedTransformation) UnmarshalHCL

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

type ReducedTransformations

type ReducedTransformations []*ReducedTransformation

func (ReducedTransformations) MarshalHCL

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

func (*ReducedTransformations) Schema

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

func (*ReducedTransformations) UnmarshalHCL

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

type ServiceIdContributor

type ServiceIdContributor struct {
	EnableIdContributor  bool               `json:"enableIdContributor"` // Transform this value before letting it contribute to the Service Id
	ServiceIdContributor *TransformationSet `json:"serviceIdContributor,omitempty"`
}

func (*ServiceIdContributor) HandlePreconditions added in v1.33.0

func (me *ServiceIdContributor) HandlePreconditions() error

func (*ServiceIdContributor) MarshalHCL

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

func (*ServiceIdContributor) Schema

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

func (*ServiceIdContributor) UnmarshalHCL

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

type Settings

type Settings struct {
	Conditions      Conditions          `json:"conditions,omitempty"`      // A list of conditions necessary for the rule to take effect. If multiple conditions are specified, they must **all** match a Request for the rule to apply. If there is no condition at all, the rule is always applied. Conditions are evaluated against attributes, but do not modify them.
	Description     *string             `json:"description,omitempty"`     // Description
	Enabled         bool                `json:"enabled"`                   // This setting is enabled (`true`) or disabled (`false`)
	IdContributors  *IdContributorsType `json:"idContributors"`            // Contributors to the Service Identifier calculation. All of the Contributors are always applied.
	ManagementZones []string            `json:"managementZones,omitempty"` // Define a management zone of the process group for which this service detection rule should be created.
	Name            string              `json:"name"`                      // Rule name
	InsertAfter     string              `json:"-"`
}

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 Transformation

type Transformation struct {
	IncludeHexNumbers  *bool              `json:"includeHexNumbers,omitempty"` // include hexadecimal numbers
	MinDigitCount      *int               `json:"minDigitCount,omitempty"`     // min digit count
	Prefix             *string            `json:"prefix,omitempty"`
	ReplacementValue   *string            `json:"replacementValue,omitempty"` // replacement
	SegmentCount       *int               `json:"segmentCount,omitempty"`     // How many segments should be taken.
	SelectIndex        *int               `json:"selectIndex,omitempty"`      // select index
	SplitDelimiter     *string            `json:"splitDelimiter,omitempty"`   // split by
	Suffix             *string            `json:"suffix,omitempty"`
	TakeFromEnd        *bool              `json:"takeFromEnd,omitempty"` // take from end
	TransformationType TransformationType `json:"transformationType"`    // Possible Values: `AFTER`, `BEFORE`, `BETWEEN`, `REMOVE_CREDIT_CARDS`, `REMOVE_IBANS`, `REMOVE_IPS`, `REMOVE_NUMBERS`, `REPLACE_BETWEEN`, `SPLIT_SELECT`, `TAKE_SEGMENTS`
}

func (*Transformation) HandlePreconditions added in v1.33.0

func (me *Transformation) HandlePreconditions() error

func (*Transformation) MarshalHCL

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

func (*Transformation) Schema

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

func (*Transformation) UnmarshalHCL

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

type TransformationSet

type TransformationSet struct {
	ContributionType ContributionTypeWithOverride `json:"contributionType"`          // Possible Values: `OriginalValue`, `OverrideValue`, `TransformValue`
	Transformations  Transformations              `json:"transformations,omitempty"` // Choose how to transform a value before it contributes to the Service Id. Note that all of the Transformations are always applied. Transformations are applied in the order they are specified, and the output of the previous transformation is the input for the next one. The resulting value contributes to the Service Id and can be found on the **Service overview page** under **Properties and tags**.
	ValueOverride    *ValueOverride               `json:"valueOverride,omitempty"`   // The value to be used instead of the detected value.
}

func (*TransformationSet) HandlePreconditions added in v1.33.0

func (me *TransformationSet) HandlePreconditions() error

func (*TransformationSet) MarshalHCL

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

func (*TransformationSet) Schema

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

func (*TransformationSet) UnmarshalHCL

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

type TransformationType

type TransformationType string

type Transformations

type Transformations []*Transformation

func (Transformations) MarshalHCL

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

func (*Transformations) Schema

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

func (*Transformations) UnmarshalHCL

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

type ValueOverride

type ValueOverride struct {
	Value string `json:"value"`
}

func (*ValueOverride) MarshalHCL

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

func (*ValueOverride) Schema

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

func (*ValueOverride) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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