Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Patterns = struct { Contains Pattern Equals Pattern Startswith Pattern }{ "CONTAINS", "EQUALS", "STARTSWITH", }
Functions ¶
This section is empty.
Types ¶
type AllowRule ¶
type AllowRule struct { Enabled bool `json:"enabled"` // This setting is enabled (`true`) or disabled (`false`) MetricKey string `json:"metricKey"` // Metric key Pattern Pattern `json:"pattern"` // Possible Values: `CONTAINS`, `EQUALS`, `STARTSWITH` }
func (*AllowRule) MarshalHCL ¶
func (me *AllowRule) MarshalHCL(properties hcl.Properties) error
type AllowRules ¶
type AllowRules []*AllowRule
func (AllowRules) MarshalHCL ¶
func (me AllowRules) MarshalHCL(properties hcl.Properties) error
func (*AllowRules) UnmarshalHCL ¶
func (me *AllowRules) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct {
AllowRules AllowRules `json:"allowRules,omitempty"` // Specify rules for forwarding metrics
}
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.