gql

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GetSamplingConfig_Operation = `` /* 727-byte string literal not displayed */

The query executed by GetSamplingConfig.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetSamplingConfigResponse

type GetSamplingConfigResponse struct {
	Sampling GetSamplingConfigSamplingSamplingConfig `json:"sampling"`
}

GetSamplingConfigResponse is returned by GetSamplingConfig on success.

func GetSamplingConfig

func GetSamplingConfig(
	ctx_ context.Context,
	client_ graphql.Client,
	organization_verbose_id string,
) (data_ *GetSamplingConfigResponse, err_ error)

func (*GetSamplingConfigResponse) GetSampling

GetSampling returns GetSamplingConfigResponse.Sampling, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfig

type GetSamplingConfigSamplingSamplingConfig struct {
	Spans []GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig `json:"spans"`
	Logs  []GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig   `json:"logs"`
}

GetSamplingConfigSamplingSamplingConfig includes the requested fields of the GraphQL type SamplingConfig.

func (*GetSamplingConfigSamplingSamplingConfig) GetLogs

GetLogs returns GetSamplingConfigSamplingSamplingConfig.Logs, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfig) GetSpans

GetSpans returns GetSamplingConfigSamplingSamplingConfig.Spans, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig struct {
	// Matches against the log message.
	Message GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig `json:"message"`
	// Matches against the severity of the log.
	SeverityText GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig `json:"severityText"`
	// A list of attribute match configs.
	// In order to match each attribute listed must match. This is an implicit AND operation.
	Attributes []GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig `json:"attributes"`
	// The ratio of logs to sample. Expressed in the form 1/n. So if the ratio is 10, then 1 out of
	// every 10 logs will be sampled. Setting the ratio to 0 will disable sampling for the log.
	SamplingRatio int `json:"samplingRatio"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig includes the requested fields of the GraphQL type LogSamplingConfig. The GraphQL type's documentation follows.

A match based log sampling configuration. A log matches if each specified matching configuration matches. If no matching configuration is specified, then all spans will match. The sampling ratio will be applied to all matching spans.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig) GetAttributes

GetAttributes returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig.Attributes, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig) GetMessage

GetMessage returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig.Message, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig) GetSamplingRatio

GetSamplingRatio returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig.SamplingRatio, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig) GetSeverityText

GetSeverityText returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfig.SeverityText, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig struct {
	Key       GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig       `json:"key"`
	Attribute GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig `json:"attribute"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig includes the requested fields of the GraphQL type AttributeMatchConfig. The GraphQL type's documentation follows.

An attribute match configuration which can match an attribute key and value.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig) GetAttribute

GetAttribute returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig.Attribute, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig) GetKey

GetKey returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfig.Key, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigMessageMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig

type GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigLogsLogSamplingConfigSeverityTextMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig struct {
	Name GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig `json:"name"`
	// A list of attribute match configs.
	// In order to match each attribute listed must match. This is an implicit AND operation.
	Attributes []GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig `json:"attributes"`
	// A list of span event match configs.
	Events []GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig `json:"events"`
	// The ratio of spans to sample. Expressed in the form 1/n. So if the ratio is 10, then 1 out of
	// every 10 spans will be sampled. Setting the ratio to 0 will disable sampling for the span.
	SamplingRatio int `json:"samplingRatio"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig includes the requested fields of the GraphQL type SpanSamplingConfig. The GraphQL type's documentation follows.

A match based span sampling configuration. A span matches if each specified matching configuration matches. If no matching configuration is specified, then all spans will match. The sampling ratio will be applied to all matching spans.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig) GetAttributes

GetAttributes returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig.Attributes, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig) GetEvents

GetEvents returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig.Events, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig) GetName

GetName returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig.Name, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig) GetSamplingRatio

GetSamplingRatio returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfig.SamplingRatio, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig struct {
	Key       GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig       `json:"key"`
	Attribute GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig `json:"attribute"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig includes the requested fields of the GraphQL type AttributeMatchConfig. The GraphQL type's documentation follows.

An attribute match configuration which can match an attribute key and value.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig) GetAttribute

GetAttribute returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig.Attribute, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig) GetKey

GetKey returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfig.Key, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigAttributeMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigAttributesAttributeMatchConfigKeyMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig struct {
	Name       GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig                  `json:"name"`
	Attributes []GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig `json:"attributes"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig includes the requested fields of the GraphQL type SpanEventMatchConfig. The GraphQL type's documentation follows.

An event matcher configuration which matches span events within a span.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig) GetAttributes

GetAttributes returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig.Attributes, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig) GetName

GetName returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfig.Name, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig struct {
	Key       GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig       `json:"key"`
	Attribute GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig `json:"attribute"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig includes the requested fields of the GraphQL type AttributeMatchConfig. The GraphQL type's documentation follows.

An attribute match configuration which can match an attribute key and value.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig) GetAttribute

GetAttribute returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig.Attribute, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig) GetKey

GetKey returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfig.Key, and is useful for accessing the field via an interface.

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigAttributeMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigAttributesAttributeMatchConfigKeyMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigEventsSpanEventMatchConfigNameMatchConfig) UnmarshalJSON

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig

type GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig struct {
	MatchParts `json:"-"`
}

GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig includes the requested fields of the GraphQL type MatchConfig. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig) GetMatchValue

GetMatchValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig.MatchValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig) GetRegexValue

GetRegexValue returns GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig.RegexValue, and is useful for accessing the field via an interface.

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig) MarshalJSON

func (*GetSamplingConfigSamplingSamplingConfigSpansSpanSamplingConfigNameMatchConfig) UnmarshalJSON

type MatchParts

type MatchParts struct {
	// A match configuration which matches against a regular expression.
	// Can only match string attributes.
	RegexValue string `json:"regexValue"`
	// A match configuration which does an exact match against any value.
	MatchValue interface{} `json:"matchValue"`
}

MatchParts includes the GraphQL fields of MatchConfig requested by the fragment MatchParts. The GraphQL type's documentation follows.

A match configuration. Each field of this type represents a different type of match configuration. One and only 1 field should be populated.

This is effectively a sum type/discriminated union, but isn't implemented as such to avoid this bug: https://github.com/99designs/gqlgen/issues/2741

func (*MatchParts) GetMatchValue

func (v *MatchParts) GetMatchValue() interface{}

GetMatchValue returns MatchParts.MatchValue, and is useful for accessing the field via an interface.

func (*MatchParts) GetRegexValue

func (v *MatchParts) GetRegexValue() string

GetRegexValue returns MatchParts.RegexValue, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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