incoming

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ComparisonEnums = struct {
	Contains    ComparisonEnum
	EndsWith    ComparisonEnum
	Equals      ComparisonEnum
	Exists      ComparisonEnum
	NContains   ComparisonEnum
	NEndsWith   ComparisonEnum
	NEquals     ComparisonEnum
	NExists     ComparisonEnum
	NStartsWith ComparisonEnum
	StartsWith  ComparisonEnum
}{
	"CONTAINS",
	"ENDS_WITH",
	"EQUALS",
	"EXISTS",
	"N_CONTAINS",
	"N_ENDS_WITH",
	"N_EQUALS",
	"N_EXISTS",
	"N_STARTS_WITH",
	"STARTS_WITH",
}
View Source
var DataSourceEnums = struct {
	RequestBody        DataSourceEnum
	RequestHeaders     DataSourceEnum
	RequestMethod      DataSourceEnum
	RequestParameters  DataSourceEnum
	RequestPath        DataSourceEnum
	ResponseBody       DataSourceEnum
	ResponseHeaders    DataSourceEnum
	ResponseStatuscode DataSourceEnum
}{
	"request.body",
	"request.headers",
	"request.method",
	"request.parameters",
	"request.path",
	"response.body",
	"response.headers",
	"response.statusCode",
}
View Source
var DataSourceWithStaticStringEnums = struct {
	ConstantString     DataSourceWithStaticStringEnum
	RequestBody        DataSourceWithStaticStringEnum
	RequestHeaders     DataSourceWithStaticStringEnum
	RequestMethod      DataSourceWithStaticStringEnum
	RequestParameters  DataSourceWithStaticStringEnum
	RequestPath        DataSourceWithStaticStringEnum
	ResponseBody       DataSourceWithStaticStringEnum
	ResponseHeaders    DataSourceWithStaticStringEnum
	ResponseStatuscode DataSourceWithStaticStringEnum
}{
	"constant.string",
	"request.body",
	"request.headers",
	"request.method",
	"request.parameters",
	"request.path",
	"response.body",
	"response.headers",
	"response.statusCode",
}

Functions

This section is empty.

Types

type ComparisonEnum

type ComparisonEnum string

type DataSourceComplex

type DataSourceComplex struct {
	DataSource DataSourceEnum `json:"dataSource"`     // Possible Values: `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Response_body`, `Response_headers`, `Response_statusCode`
	Path       *string        `json:"path,omitempty"` // [See our documentation](https://dt-url.net/ei034bx)
}

func (*DataSourceComplex) HandlePreconditions

func (me *DataSourceComplex) HandlePreconditions() error

func (*DataSourceComplex) MarshalHCL

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

func (*DataSourceComplex) Schema

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

func (*DataSourceComplex) UnmarshalHCL

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

type DataSourceEnum

type DataSourceEnum string

type DataSourceWithStaticStringEnum

type DataSourceWithStaticStringEnum string

type EventAttributeComplex

type EventAttributeComplex struct {
	Path       *string                        `json:"path,omitempty"`   // [See our documentation](https://dt-url.net/ei034bx)
	Source     *string                        `json:"source,omitempty"` // Fixed value
	SourceType DataSourceWithStaticStringEnum `json:"sourceType"`       // Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Response_body`, `Response_headers`, `Response_statusCode`
}

func (*EventAttributeComplex) HandlePreconditions

func (me *EventAttributeComplex) HandlePreconditions() error

func (*EventAttributeComplex) MarshalHCL

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

func (*EventAttributeComplex) Schema

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

func (*EventAttributeComplex) UnmarshalHCL

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

type EventCategoryAttributeComplex

type EventCategoryAttributeComplex struct {
	Path       *string                        `json:"path,omitempty"`   // [See our documentation](https://dt-url.net/ei034bx)
	Source     *string                        `json:"source,omitempty"` // Fixed value
	SourceType DataSourceWithStaticStringEnum `json:"sourceType"`       // Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Response_body`, `Response_headers`, `Response_statusCode`
}

func (*EventCategoryAttributeComplex) HandlePreconditions

func (me *EventCategoryAttributeComplex) HandlePreconditions() error

func (*EventCategoryAttributeComplex) MarshalHCL

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

func (*EventCategoryAttributeComplex) Schema

func (*EventCategoryAttributeComplex) UnmarshalHCL

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

type EventComplex

type EventComplex struct {
	Category *EventCategoryAttributeComplex `json:"category"`       // Event category
	Data     EventDataFieldComplexes        `json:"data,omitempty"` // Additional attributes for the business event.
	Provider *EventAttributeComplex         `json:"provider"`       // Event provider
	Type     *EventAttributeComplex         `json:"type"`           // Event type
}

func (*EventComplex) MarshalHCL

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

func (*EventComplex) Schema

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

func (*EventComplex) UnmarshalHCL

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

type EventDataAttributeComplex

type EventDataAttributeComplex struct {
	Path       *string                        `json:"path,omitempty"`   // [See our documentation](https://dt-url.net/ei034bx)
	Source     *string                        `json:"source,omitempty"` // Fixed value
	SourceType DataSourceWithStaticStringEnum `json:"sourceType"`       // Possible Values: `Constant_string`, `Request_body`, `Request_headers`, `Request_method`, `Request_parameters`, `Request_path`, `Response_body`, `Response_headers`, `Response_statusCode`
}

func (*EventDataAttributeComplex) HandlePreconditions

func (me *EventDataAttributeComplex) HandlePreconditions() error

func (*EventDataAttributeComplex) MarshalHCL

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

func (*EventDataAttributeComplex) Schema

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

func (*EventDataAttributeComplex) UnmarshalHCL

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

type EventDataFieldComplex

type EventDataFieldComplex struct {
	Name   string                     `json:"name"` // Field name to be added to data.
	Source *EventDataAttributeComplex `json:"source"`
}

func (*EventDataFieldComplex) MarshalHCL

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

func (*EventDataFieldComplex) Schema

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

func (*EventDataFieldComplex) UnmarshalHCL

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

type EventDataFieldComplexes

type EventDataFieldComplexes []*EventDataFieldComplex

func (EventDataFieldComplexes) MarshalHCL

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

func (*EventDataFieldComplexes) Schema

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

func (*EventDataFieldComplexes) UnmarshalHCL

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

type MatcherComplex

type MatcherComplex struct {
	CaseSensitive *bool              `json:"caseSensitive,omitempty"` // Case sensitive
	Source        *DataSourceComplex `json:"source"`
	Type          ComparisonEnum     `json:"type"` // Possible Values: `CONTAINS`, `ENDS_WITH`, `EQUALS`, `EXISTS`, `N_CONTAINS`, `N_ENDS_WITH`, `N_EQUALS`, `N_EXISTS`, `N_STARTS_WITH`, `STARTS_WITH`
	Value         *string            `json:"value,omitempty"`
}

Matcher. Rule must match

func (*MatcherComplex) HandlePreconditions

func (me *MatcherComplex) HandlePreconditions() error

func (*MatcherComplex) MarshalHCL

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

func (*MatcherComplex) Schema

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

func (*MatcherComplex) UnmarshalHCL

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

type MatcherComplexes

type MatcherComplexes []*MatcherComplex

func (MatcherComplexes) MarshalHCL

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

func (*MatcherComplexes) Schema

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

func (*MatcherComplexes) UnmarshalHCL

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

type Settings

type Settings struct {
	Enabled  bool             `json:"enabled"`         // This setting is enabled (`true`) or disabled (`false`)
	Event    *EventComplex    `json:"event"`           // Event meta data
	RuleName string           `json:"ruleName"`        // Rule name
	Scope    *string          `json:"-" scope:"scope"` // The scope of this setting (HOST, HOST_GROUP). Omit this property if you want to cover the whole environment.
	Triggers MatcherComplexes `json:"triggers"`        // Define conditions to trigger business events from incoming web requests. Whenever one condition applies the event gets captured.
}

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