Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct { Certname string `json:"certname"` Deactivated string `json:"deactivated"` LatestReportStatus string `json:"latest_report_status"` ReportEnvironment string `json:"report_environment"` ReportTimestamp string `json:"report_timestamp"` LatestReportHash string `json:"latest_report_hash"` }
Node is a structure returned by a PuppetDB
type PuppetDB ¶
type PuppetDB struct {
// contains filtered or unexported fields
}
PuppetDB stores informations used to connect to a PuppetDB
func (*PuppetDB) ReportMetrics ¶
func (p *PuppetDB) ReportMetrics(reportHash string) (reportMetrics []ReportMetric, err error)
ReportMetrics returns the list of reportMetrics
type ReportMetric ¶
type ReportMetric struct { Name string `json:"name"` Value float64 `json:"value"` Category string `json:"category"` }
ReportMetric is a structure returned by a PuppetDB
Click to show internal directories.
Click to hide internal directories.