Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Operators = struct { Equals Operator GreaterThan Operator GreaterThanOrEqualTo Operator In Operator IsNotNull Operator IsNull Operator LessThan Operator LessThanOrEqualTo Operator Like Operator NotEqual Operator NotLike Operator StartsWith Operator }{ "EQUALS", "GREATER_THAN", "GREATER_THAN_OR_EQUAL_TO", "IN", "IS_NOT_NULL", "IS_NULL", "LESS_THAN", "LESS_THAN_OR_EQUAL_TO", "LIKE", "NOT_EQUAL", "NOT_LIKE", "STARTS_WITH", }
View Source
var ValueTypes = struct { Counter ValueType Field ValueType }{ "COUNTER", "FIELD", }
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { FieldName string `json:"fieldName"` // Field name Operator Operator `json:"operator"` // Possible Values: `EQUALS`, `GREATER_THAN`, `GREATER_THAN_OR_EQUAL_TO`, `IN`, `IS_NOT_NULL`, `IS_NULL`, `LESS_THAN`, `LESS_THAN_OR_EQUAL_TO`, `LIKE`, `NOT_EQUAL`, `NOT_LIKE`, `STARTS_WITH` Value *string `json:"value,omitempty"` ValueIn []string `json:"valueIn,omitempty"` // Values }
func (*Filter) HandlePreconditions ¶
func (*Filter) MarshalHCL ¶
func (me *Filter) MarshalHCL(properties hcl.Properties) error
type Filters ¶
type Filters []*Filter
func (Filters) MarshalHCL ¶
func (me Filters) MarshalHCL(properties hcl.Properties) error
type MetricValue ¶
type MetricValue struct { FieldName *string `json:"fieldName,omitempty"` // Field name Type ValueType `json:"type"` // Possible Values: `COUNTER`, `FIELD` }
func (*MetricValue) HandlePreconditions ¶
func (me *MetricValue) HandlePreconditions() error
func (*MetricValue) MarshalHCL ¶
func (me *MetricValue) MarshalHCL(properties hcl.Properties) error
func (*MetricValue) UnmarshalHCL ¶
func (me *MetricValue) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { Dimensions []string `json:"dimensions,omitempty"` // Defines the fields that are used as dimensions. A dimension is a collection of reference information about a metric data point that is of interest to your business. Dimensions are parameters like \"application\", \"type\", \"name\". For example, using \"type\" as a dimension allows you to split chart data based on the user action type. Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`) Filters Filters `json:"filters,omitempty"` // Defines the filters for the user action. Filters apply at the moment of extracting the data and only sessions that satisfy the filtering criteria will be used to extract the custom metrics. You will not be able to modify these filters in the metric data explorer. For example, using \"type equals Xhr\" will give you only data from xhr actions, while forcing the rest of user actions of different types to be ignored. MetricKey string `json:"metricKey"` // Metric key Value *MetricValue `json:"value"` // Defines the type of value to be extracted from the user action. When using **user action counter**, the number of user actions is counted (similar to count(*) when using USQL). When using **user action field value**, the value of a user action field is extracted. }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.