structs

package
v0.0.0-...-29e28e0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Name   string `mapstructure:"name"`
	Kind   string `mapstructure:"kind"`
	Region string `mapstructure:"region"`
	// Graphite-specific
	Host     string `mapstructure:"host"`
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

Backend struct

type Backender

type Backender interface {
	Info() *Backend
	GetValue(rule Rule) (float64, error)
}

Backender interface

type Rule

type Rule struct {
	Name            string
	Backend         string `hcl:"backend"`
	BackendInstance Backender
	Comparison      string  `hcl:"comparison"`
	ComparisonValue float64 `hcl:"comparison_value,float"`
	Action          string  `hcl:"action"`
	ActionValue     int     `hcl:"action_value,int"`
	MetricName      string  `hcl:"metric_name"`
	MetricNamespace string  `hcl:"metric_namespace"`
	DimensionName   string  `hcl:"dimension_name"`
	DimensionValue  string  `hcl:"dimension_value"`
	Period          string  `hcl:"cron"`
}

Rule struct

Jump to

Keyboard shortcuts

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