Documentation ¶
Index ¶
- Variables
- func JSONBytesEqual(b1, b2 []byte) bool
- func JSONStringsEqual(s1, s2 string) bool
- func SuppressEquivalent(k, old, new string, d *schema.ResourceData) bool
- type Click
- type Cookie
- type Credential
- type Event
- type EventBase
- type EventWrapper
- type Events
- type Javascript
- type KeyStrokes
- type ListOption
- type ListOptions
- type Locator
- type LocatorType
- type Locators
- type Navigate
- type SelectOption
- type Tap
- type Target
- type Type
- type Validation
- type ValidationType
- type Validations
- type WaitCondition
Constants ¶
This section is empty.
Variables ¶
View Source
var LocatorTypes = struct { ContentMatch LocatorType ElementMatch LocatorType }{ "css", "dom", }
LocatorTypes offers the known enum values
View Source
var Types = struct { KeyStrokes Type Cookie Type SelectOption Type Javascript Type Click Type Tap Type Navigate Type }{ "keystrokes", "cookie", "selectOption", "javascript", "click", "tap", "navigate", }
Types offers the known enum values
View Source
var ValidationTypes = struct { ContentMatch ValidationType ElementMatch ValidationType }{ `content_match`, `element_match`, }
ValidationTypes offers the known enum values
Functions ¶
func JSONBytesEqual ¶
func JSONStringsEqual ¶
func SuppressEquivalent ¶
func SuppressEquivalent(k, old, new string, d *schema.ResourceData) bool
Types ¶
type Click ¶
type Click struct { EventBase Button int `json:"button"` // the mouse button to be used for the click Wait *WaitCondition `json:"wait,omitempty"` // The wait condition for the event—defines how long Dynatrace should wait before the next action is executed Validate Validations `json:"validate,omitempty"` // The validation rule for the event—helps you verify that your browser monitor loads the expected page content or page element Target *Target `json:"target,omitempty"` // The tab on which the page should open }
func (*Click) MarshalHCL ¶
func (me *Click) MarshalHCL(properties hcl.Properties) error
type Cookie ¶
type Cookie struct { EventBase Cookies request.Cookies `json:"cookies"` // Every cookie must be unique within the list. However, you can use the same cookie again in other event }
func (*Cookie) MarshalHCL ¶
func (me *Cookie) MarshalHCL(properties hcl.Properties) error
type Credential ¶
func (*Credential) MarshalHCL ¶
func (me *Credential) MarshalHCL(properties hcl.Properties) error
func (*Credential) UnmarshalHCL ¶
func (me *Credential) UnmarshalHCL(decoder hcl.Decoder) error
type EventBase ¶
type EventBase struct { Type Type `json:"type"` // The type of synthetic event Description string `json:"description"` // A short description of the event to appear in the UI }
func (*EventBase) GetDescription ¶
func (*EventBase) SetDescription ¶
type EventWrapper ¶
type EventWrapper struct {
Event Event
}
func (*EventWrapper) MarshalHCL ¶
func (me *EventWrapper) MarshalHCL(properties hcl.Properties) error
func (*EventWrapper) UnmarshalHCL ¶
func (me *EventWrapper) UnmarshalHCL(decoder hcl.Decoder) error
type Events ¶
type Events []Event
func (Events) MarshalHCL ¶
func (me Events) MarshalHCL(properties hcl.Properties) error
func (*Events) UnmarshalJSON ¶
type Javascript ¶
type Javascript struct { EventBase Javascript string `json:"javaScript"` // The JavaScript code to be executed in this event Wait *WaitCondition `json:"wait,omitempty"` // The wait condition for the event—defines how long Dynatrace should wait before the next action is executed Target *Target `json:"target,omitempty"` // The tab on which the page should open }
func (*Javascript) GetType ¶
func (me *Javascript) GetType() Type
func (*Javascript) MarshalHCL ¶
func (me *Javascript) MarshalHCL(properties hcl.Properties) error
func (*Javascript) UnmarshalHCL ¶
func (me *Javascript) UnmarshalHCL(decoder hcl.Decoder) error
type KeyStrokes ¶
type KeyStrokes struct { EventBase TextValue *string `json:"textValue,omitempty"` // The text to enter Masked *bool `json:"masked,omitempty"` // Indicates whether the `textValue` is encrypted (`true`) or not (`false`) SimulateBlurEvent bool `json:"simulateBlurEvent"` // Defines whether to blur the text field when it loses focus.\nSet to `true` to trigger the blur the `textValue` Wait *WaitCondition `json:"wait,omitempty"` // The wait condition for the event—defines how long Dynatrace should wait before the next action is executed Validate Validations `json:"validate,omitempty"` // The validation rule for the event—helps you verify that your browser monitor loads the expected page content or page element Target *Target `json:"target,omitempty"` // The tab on which the page should open Credential *Credential `json:"credential,omitempty"` // Credentials for this event }
func (*KeyStrokes) GetType ¶
func (me *KeyStrokes) GetType() Type
func (*KeyStrokes) MarshalHCL ¶
func (me *KeyStrokes) MarshalHCL(properties hcl.Properties) error
func (*KeyStrokes) UnmarshalHCL ¶
func (me *KeyStrokes) UnmarshalHCL(decoder hcl.Decoder) error
type ListOption ¶
type ListOption struct { Index int `json:"index"` // The index of the option to be selected Value string `json:"value"` // The value of the option to be selected }
func (*ListOption) MarshalHCL ¶
func (me *ListOption) MarshalHCL(properties hcl.Properties) error
func (*ListOption) UnmarshalHCL ¶
func (me *ListOption) UnmarshalHCL(decoder hcl.Decoder) error
type ListOptions ¶
type ListOptions []*ListOption
func (ListOptions) MarshalHCL ¶
func (me ListOptions) MarshalHCL(properties hcl.Properties) error
func (*ListOptions) UnmarshalHCL ¶
func (me *ListOptions) UnmarshalHCL(decoder hcl.Decoder) error
type Locator ¶
type Locator struct { Type LocatorType `json:"type"` // Defines where to look for an element. `css` (CSS Selector) or `dom` (Javascript code) Value string `json:"value"` // The name of the element to be found }
func (*Locator) MarshalHCL ¶
func (me *Locator) MarshalHCL(properties hcl.Properties) error
type LocatorType ¶
type LocatorType string
LocatorType defines where to look for an element. `css` (CSS Selector) or `dom` (Javascript code)
type Locators ¶
type Locators []*Locator
Locators a list of locators identifying the desired element
func (Locators) MarshalHCL ¶
func (me Locators) MarshalHCL(properties hcl.Properties) error
type Navigate ¶
type Navigate struct {}
func (*Navigate) MarshalHCL ¶
func (me *Navigate) MarshalHCL(properties hcl.Properties) error
type SelectOption ¶
type SelectOption struct { EventBase Selections ListOptions `json:"selections"` // The options to be selected Wait *WaitCondition `json:"wait,omitempty"` // The wait condition for the event—defines how long Dynatrace should wait before the next action is executed Validate Validations `json:"validate,omitempty"` // The validation rule for the event—helps you verify that your browser monitor loads the expected page content or page element Target *Target `json:"target,omitempty"` // The tab on which the page should open }
func (*SelectOption) GetType ¶
func (me *SelectOption) GetType() Type
func (*SelectOption) MarshalHCL ¶
func (me *SelectOption) MarshalHCL(properties hcl.Properties) error
func (*SelectOption) UnmarshalHCL ¶
func (me *SelectOption) UnmarshalHCL(decoder hcl.Decoder) error
type Tap ¶
type Tap struct { EventBase Button int `json:"button"` // the mouse button to be used for the click Wait *WaitCondition `json:"wait,omitempty"` // The wait condition for the event—defines how long Dynatrace should wait before the next action is executed Validate Validations `json:"validate,omitempty"` // The validation rule for the event—helps you verify that your browser monitor loads the expected page content or page element Target *Target `json:"target,omitempty"` // The tab on which the page should open }
func (*Tap) MarshalHCL ¶
func (me *Tap) MarshalHCL(properties hcl.Properties) error
type Target ¶
type Target struct { Window *string `json:"window,omitempty"` // The tab of the target Locators Locators `json:"locators,omitempty"` // The list of locators identifying the desired element }
func (*Target) MarshalHCL ¶
func (me *Target) MarshalHCL(properties hcl.Properties) error
type Validation ¶
type Validation struct { Type ValidationType `json:"type"` // The goal of the validation. `content_match` (check page for the specific content. Not allowed for validation inside of wait condition), `element_match` (check page for the specific element) Match string `json:"match"` // The content to look for on the page.\nRegular expressions are allowed. In that case set `isRegex` as `true`. Required for `content_match`, optional for `element_match`. IsRegex bool `json:"isRegex,omitempty"` // Defines whether `match` is plain text (`false`) of a regular expression (`true`) FailIfFound bool `json:"failIfFound"` // The condition of the validation. `false` means the validation succeeds if the specified content/element is found. `true` means the validation fails if the specified content/element is found Target *Target `json:"target,omitempty"` // The elemnt to look for on the page }
func (*Validation) MarshalHCL ¶
func (me *Validation) MarshalHCL(properties hcl.Properties) error
func (*Validation) UnmarshalHCL ¶
func (me *Validation) UnmarshalHCL(decoder hcl.Decoder) error
type ValidationType ¶
type ValidationType string
ValidationType The goal of the validation. `content_match` (check page for the specific content. Not allowed for validation inside of wait condition), `element_match` (check page for the specific element)
type Validations ¶
type Validations []*Validation
func (Validations) MarshalHCL ¶
func (me Validations) MarshalHCL(properties hcl.Properties) error
func (*Validations) UnmarshalHCL ¶
func (me *Validations) UnmarshalHCL(decoder hcl.Decoder) error
type WaitCondition ¶
type WaitCondition struct { WaitFor string `json:"waitFor"` // The time to wait before the next event is triggered. Possible values are `page_complete` (wait for the page to load completely), `network` (wait for background network activity to complete), `next_action` (wait for the next action), `time` (wait for a specified periodof time) and `validation` (wait for a specific element to appear) Milliseconds *int `json:"milliseconds,omitempty"` // The time to wait, in millisencods. The maximum allowed value is `60000`. Required for the type `time`, not applicable otherwise. TimeoutInMilliseconds *int `json:"timeoutInMilliseconds,omitempty"` // The maximum amount of time to wait for a certain element to appear, in milliseconds—if exceeded, the action is marked as failed.\nThe maximum allowed value is 60000. Required for the type `validation`, not applicable otherwise. Validation *Validation `json:"validation,omitempty"` // The element to wait for. Required for the `validation` type, not applicable otherwise. }
func (*WaitCondition) MarshalHCL ¶
func (me *WaitCondition) MarshalHCL(properties hcl.Properties) error
func (*WaitCondition) UnmarshalHCL ¶
func (me *WaitCondition) UnmarshalHCL(decoder hcl.Decoder) error
Click to show internal directories.
Click to hide internal directories.