Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeout = 10 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func PrettyPrint ¶
func PrettyPrint(i interface{}) string
PrettyPrint to print struct in a readable way
Types ¶
type MetadataProcessor ¶
type MetadataProcessor struct { OpenstackTags []string `toml:"openstack_tags"` Timeout config.Duration `toml:"timeout"` Log telegraf.Logger `toml:"-"` }
func (*MetadataProcessor) Apply ¶
func (r *MetadataProcessor) Apply(in ...telegraf.Metric) []telegraf.Metric
func (*MetadataProcessor) Description ¶
func (r *MetadataProcessor) Description() string
func (*MetadataProcessor) Init ¶
func (r *MetadataProcessor) Init() error
func (*MetadataProcessor) SampleConfig ¶
func (r *MetadataProcessor) SampleConfig() string
type OpenstackMetadata ¶
type OpenstackMetadata struct {
Project string
}
type Response ¶
type Response struct { UUID string `json:"uuid"` Meta struct { Project string `json:"project"` Owner string `json:"owner"` ServiceName string `json:"service_name"` Group string `json:"group"` Groups string `json:"groups"` ExpireAt string `json:"expire_at"` WfExID string `json:"wf_ex_id"` OsType string `json:"os_type"` OsDistro string `json:"os_distro"` OsVersion string `json:"os_version"` SafeExpire string `json:"safe_expire"` Userdata string `json:"userdata"` EmailAlertsCc string `json:"email_alerts_cc"` Fqdn string `json:"fqdn"` } `json:"meta"` Keys []struct { Name string `json:"name"` Type string `json:"type"` Data string `json:"data"` } `json:"keys"` Hostname string `json:"hostname"` Name string `json:"name"` LaunchIndex int `json:"launch_index"` AvailabilityZone string `json:"availability_zone"` RandomSeed string `json:"random_seed"` ProjectID string `json:"project_id"` Devices []interface{} `json:"devices"` }
Click to show internal directories.
Click to hide internal directories.