request

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UserAgent            *string `json:"userAgent,omitempty"`                     // The User agent of the request
	AcceptAnyCertificate bool    `json:"acceptAnyCertificate"`                    // If set to `false`, then the monitor fails with invalid SSL certificates.\n\nIf not set, the `false` option is used
	FollowRedirects      bool    `json:"followRedirects"`                         // If set to `false`, redirects are reported as successful requests with response code 3xx.\n\nIf not set, the `false` option is used.
	RequestHeaders       Headers `json:"requestHeaders,omitempty"`                // By default, only the `User-Agent` header is set.\n\nYou can't set or modify this header here. Use the `userAgent` field for that.
	ClientCertificate    *string `json:"certStoreId,omitempty"`                   // The client certificate, if applicable - eg. CREDENTIALS_VAULT-XXXXXXXXXXXXXXXX
	SensitiveData        *bool   `json:"shouldNotPersistSensitiveData,omitempty"` // Option not to store and display request and response bodies and header values in execution details, `true` or `false`. If not set, `false`.
}

Config contains the setup of the monitor

func (*Config) MarshalHCL

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

func (*Config) Schema

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

func (*Config) UnmarshalHCL

func (me *Config) UnmarshalHCL(decoder hcl.Decoder) error
type Cookie struct {
	Name   string  `json:"name"`           // The name of the cookie. The following cookie names are now allowed: `dtCookie`, `dtLatC`, `dtPC`, `rxVisitor`, `rxlatency`, `rxpc`, `rxsession` and `rxvt`
	Value  string  `json:"value"`          // The value of the cookie. The following symbols are not allowed: `;`, `,`, `\` and `"`.
	Domain string  `json:"domain"`         // The domain of the cookie
	Path   *string `json:"path,omitempty"` // The path of the cookie
}

Cookie a request cookie

func (*Cookie) MarshalHCL

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

func (*Cookie) Schema

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

func (*Cookie) UnmarshalHCL

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

type Cookies

type Cookies []*Cookie

Cookies contains the list of cookies to be created for the monitor. Every cookie must be unique within the list. However, you can use the same cookie again in other event

func (Cookies) MarshalHCL

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

func (*Cookies) Schema

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

func (*Cookies) UnmarshalHCL

func (me *Cookies) UnmarshalHCL(decoder hcl.Decoder) error
type Header struct {
	Name  string `json:"name"`  // The key of the header
	Value string `json:"value"` // The value of the header
}

Header contains an HTTP header of the request

func (*Header) MarshalHCL

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

func (*Header) Schema

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

func (*Header) UnmarshalHCL

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

type Headers

type Headers []*Header

Headers is a list of request headers

func (Headers) MarshalHCL

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

func (*Headers) Schema

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

func (*Headers) UnmarshalHCL

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

type HeadersSection

type HeadersSection struct {
	Headers      Headers  `json:"addHeaders"`
	Restrictions []string `json:"toRequests,omitempty"`
}

func (*HeadersSection) MarshalHCL

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

func (*HeadersSection) Schema

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

func (*HeadersSection) UnmarshalHCL

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

Jump to

Keyboard shortcuts

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