Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { RequiredVersion string `yaml:"required_version" json:"required_version"` Targets []*TargetConfig `yaml:"targets" json:"targets"` // contains filtered or unexported fields }
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
NewDefaultConfig creates a default configuration.
func (*Config) ValidateVersion ¶
ValidateVersion validates a version satisfies required_version.
type DryRunMackerelClient ¶
type DryRunMackerelClient struct {
MackerelClient
}
func (DryRunMackerelClient) PostServiceMetricValues ¶
func (c DryRunMackerelClient) PostServiceMetricValues(serviceName string, metricValues []*mackerel.MetricValue) error
type MackerelClient ¶
type MackerelClient interface { FetchServiceMetricValues(serviceName string, metricName string, from int64, to int64) ([]mackerel.MetricValue, error) PostServiceMetricValues(serviceName string, metricValues []*mackerel.MetricValue) error }
func NewMackerelClient ¶
func NewMackerelClient(apikey string, deploy bool) MackerelClient
type ServiceMetric ¶
type TargetConfig ¶
type TargetConfig struct { Service string `yaml:"service" json:"service"` MetricName string `yaml:"metric_name" json:"metric_name"` Value interface{} `yaml:"value" json:"value"` DelaySeconds int64 `yaml:"delay_seconds" json:"delay_seconds"` }
func (*TargetConfig) Restrict ¶
func (c *TargetConfig) Restrict() error
Click to show internal directories.
Click to hide internal directories.