Documentation
¶
Overview ¶
Package report implements reporting on client runs and node changes. See http://docs.opscode.com/reporting.html for details. CURRENTLY EXPERIMENTAL.
Index ¶
- Constants
- func GetList() []string
- type Report
- func AllReports() []*Report
- func Get(runId string) (*Report, util.Gerror)
- func GetNodeList(nodeName string, from, until time.Time, rows int) ([]*Report, error)
- func GetReportList(from, until time.Time, rows int) ([]*Report, error)
- func New(runId string, nodeName string) (*Report, util.Gerror)
- func NewFromJson(node_name string, json_report map[string]interface{}) (*Report, util.Gerror)
Constants ¶
View Source
const ReportTimeFormat = "2006-01-02 15:04:05 -0700"
The format for reporting start and end times in JSON. Of course, subtly different from MySQL's time format, but only subtly.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Report ¶
type Report struct {
RunId string `json:"run_id"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
TotalResCount int `json:"total_res_count"`
Status string `json:"status"`
RunList string `json:"run_list"`
Resources []interface{} `json:"resources"`
Data map[string]interface{} `json:"data"` // I think this is right
NodeName string `json:"node_name"`
// contains filtered or unexported fields
}
func AllReports ¶ added in v0.5.2
func AllReports() []*Report
Return all run reports currently on the server for export.
func GetNodeList ¶
func NewFromJson ¶
Click to show internal directories.
Click to hide internal directories.