common

package
v0.0.0-...-a1d7b1b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLevel

func GetLevel(s string) log.Level

Types

type Analyze

type Analyze struct {
	PluginName string      `json:"plugin"`
	Config     snap.Config `json:"config"`
	Publish    *[]string   `json:"publish"`
}

type Collect

type Collect struct {
	PluginName string                       `json:"plugin"`
	Metrics    map[string]metricInfo        `json:"metrics"`
	Config     snap.Config                  `json:"config"`
	Tags       map[string]map[string]string `json:"tags,omitempty"`
}

type NodeTask

type NodeTask struct {
	Id       string    `json:"id"`
	Schedule Schedule  `json:"schedule"`
	Collect  *Collect  `json:"collect"`
	Process  *Process  `json:"process"`
	Analyze  *Analyze  `json:"analyze"`
	Publish  *[]string `json:"publish"`
}

type Process

type Process struct {
	PluginName string      `json:"plugin"`
	Config     snap.Config `json:"config"`
}

type Publish

type Publish struct {
	PluginName string      `json:"plugin"`
	Id         string      `json:"id"`
	Config     snap.Config `json:"config"`
}

type PublisherReport

type PublisherReport struct {
	Id            string `json:"Id,omitempty"`
	Plugin        string `json:"Plugin"`
	LastErrorMsg  string `json:"LastErrorMessage"`
	LastErrorTime int64  `json:"LastErrorTimestamp"`
	FailureCount  int64  `json:"FailureCount"`
}

type Report

type Report struct {
	Tasks     map[string]TaskReport      `json:"tasks"`
	Publisher map[string]PublisherReport `json:"publishers"`
}

type Schedule

type Schedule struct {
	Interval string `json:"interval"`
}

type TaskReport

type TaskReport struct {
	Id            string `json:"Id,omitempty"`
	Plugin        string `json:"Plugin"`
	LastErrorMsg  string `json:"LastErrorMessage"`
	LastErrorTime int64  `json:"LastErrorTimestamp"`
	FailureCount  int64  `json:"FailureCount"`
}

type TasksDefinition

type TasksDefinition struct {
	Tasks   []*NodeTask `json:"tasks"`
	Publish []*Publish  `json:"publish"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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