urlbasedsampling

package
v1.57.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpMethods = struct {
	Get     HttpMethod
	Post    HttpMethod
	Put     HttpMethod
	Delete  HttpMethod
	Head    HttpMethod
	Connect HttpMethod
	Options HttpMethod
	Trace   HttpMethod
	Patch   HttpMethod
}{
	"GET",
	"POST",
	"PUT",
	"DELETE",
	"HEAD",
	"CONNECT",
	"OPTIONS",
	"TRACE",
	"PATCH",
}
View Source
var PathComparisonTypes = struct {
	Equals           PathComparisonType
	DoesNotEqual     PathComparisonType
	Contains         PathComparisonType
	DoesNotContain   PathComparisonType
	StartsWith       PathComparisonType
	DoesNotStartWith PathComparisonType
	EndsWith         PathComparisonType
	DoesNotEndWith   PathComparisonType
}{
	"EQUALS",
	"DOES_NOT_EQUAL",
	"CONTAINS",
	"DOES_NOT_CONTAIN",
	"STARTS_WITH",
	"DOES_NOT_START_WITH",
	"ENDS_WITH",
	"DOES_NOT_END_WITH",
}
View Source
var SamplingScaleFactorLookup = map[string]SamplingScaleFactor{
	"IncreaseCapturing128Times":  SamplingScaleFactors.IncreaseCapturing128Times,
	"IncreaseCapturing64Times":   SamplingScaleFactors.IncreaseCapturing64Times,
	"IncreaseCapturing32Times":   SamplingScaleFactors.IncreaseCapturing32Times,
	"IncreaseCapturing16Times":   SamplingScaleFactors.IncreaseCapturing16Times,
	"IncreaseCapturing8Times":    SamplingScaleFactors.IncreaseCapturing8Times,
	"IncreaseCapturing4Times":    SamplingScaleFactors.IncreaseCapturing4Times,
	"IncreaseCapturing2Times":    SamplingScaleFactors.IncreaseCapturing2Times,
	"ReduceCapturingByFactor2":   SamplingScaleFactors.ReduceCapturingByFactor2,
	"ReduceCapturingByFactor4":   SamplingScaleFactors.ReduceCapturingByFactor4,
	"ReduceCapturingByFactor8":   SamplingScaleFactors.ReduceCapturingByFactor8,
	"ReduceCapturingByFactor16":  SamplingScaleFactors.ReduceCapturingByFactor16,
	"ReduceCapturingByFactor32":  SamplingScaleFactors.ReduceCapturingByFactor32,
	"ReduceCapturingByFactor64":  SamplingScaleFactors.ReduceCapturingByFactor64,
	"ReduceCapturingByFactor128": SamplingScaleFactors.ReduceCapturingByFactor128,
}
View Source
var SamplingScaleFactors = struct {
	IncreaseCapturing128Times  SamplingScaleFactor
	IncreaseCapturing64Times   SamplingScaleFactor
	IncreaseCapturing32Times   SamplingScaleFactor
	IncreaseCapturing16Times   SamplingScaleFactor
	IncreaseCapturing8Times    SamplingScaleFactor
	IncreaseCapturing4Times    SamplingScaleFactor
	IncreaseCapturing2Times    SamplingScaleFactor
	ReduceCapturingByFactor2   SamplingScaleFactor
	ReduceCapturingByFactor4   SamplingScaleFactor
	ReduceCapturingByFactor8   SamplingScaleFactor
	ReduceCapturingByFactor16  SamplingScaleFactor
	ReduceCapturingByFactor32  SamplingScaleFactor
	ReduceCapturingByFactor64  SamplingScaleFactor
	ReduceCapturingByFactor128 SamplingScaleFactor
}{
	"0",
	"1",
	"2",
	"3",
	"4",
	"5",
	"6",
	"8",
	"9",
	"10",
	"11",
	"12",
	"13",
	"14",
}

Functions

This section is empty.

Types

type HttpMethod

type HttpMethod string

type PathComparisonType

type PathComparisonType string

type QueryParameter

type QueryParameter struct {
	Name             string  `json:"name"`                       // Query parameter name
	Value            *string `json:"value,omitempty"`            // Query parameter value
	ValueIsUndefined bool    `json:"valueIsUndefined,omitempty"` // Query parameter value is undefined
}

func (*QueryParameter) MarshalHCL

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

func (*QueryParameter) Schema

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

func (*QueryParameter) UnmarshalHCL

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

type QueryParameters

type QueryParameters []*QueryParameter

func (QueryParameters) MarshalHCL

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

func (*QueryParameters) Schema

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

func (*QueryParameters) UnmarshalHCL

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

type SamplingScaleFactor

type SamplingScaleFactor string

type Settings

type Settings struct {
	Enabled            bool                 `json:"enabled"`                      // This setting is enabled (`true`) or disabled (`false`)
	Factor             *SamplingScaleFactor `json:"factor,omitempty"`             // Select the scaling factor for the current sampling rate of the system. Possible values: `IncreaseCapturing128Times`, `IncreaseCapturing64Times`, `IncreaseCapturing32Times`, `IncreaseCapturing16Times`, `IncreaseCapturing8Times`, `IncreaseCapturing4Times`, `IncreaseCapturing2Times`, `ReduceCapturingByFactor2`, `ReduceCapturingByFactor4`, `ReduceCapturingByFactor8`, `ReduceCapturingByFactor16`, `ReduceCapturingByFactor32`, `ReduceCapturingByFactor64`, `ReduceCapturingByFactor128`
	HttpMethod         []HttpMethod         `json:"httpMethod,omitempty"`         // Possible values: `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH`
	HttpMethodAny      bool                 `json:"httpMethodAny"`                // The scaling factor for the defined URL will be applied to any HTTP method.
	Ignore             bool                 `json:"ignore"`                       // The matching URLs will always be ignored, also if Adaptive Traffic Management is not active.
	Path               *string              `json:"path,omitempty"`               // Path of the URL.
	PathComparisonType *PathComparisonType  `json:"pathComparisonType,omitempty"` // Path comparison condition. Possible values: `EQUALS`, `DOES_NOT_EQUAL`, `CONTAINS`, `DOES_NOT_CONTAIN`, `STARTS_WITH`, `DOES_NOT_START_WITH`, `ENDS_WITH`, `DOES_NOT_END_WITH`
	QueryParameters    QueryParameters      `json:"queryParameters,omitempty"`    // Add URL parameters in any order. **All** specified parameters must be present in the query of an URL to get a match.
	Scope              *string              `json:"-" scope:"scope"`              // The scope of this setting (PROCESS_GROUP_INSTANCE, PROCESS_GROUP). Omit this property if you want to cover the whole environment.
	InsertAfter        string               `json:"-"`
}

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