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,omitempty"` // 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
type Cookie ¶
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
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
type Header ¶
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
type Headers ¶
type Headers []*Header
Headers is a list of request headers
func (Headers) MarshalHCL ¶
func (me Headers) MarshalHCL(properties hcl.Properties) 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) UnmarshalHCL ¶
func (me *HeadersSection) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.