Documentation ¶
Index ¶
Constants ¶
View Source
const SendStatsThreashhold = 5
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdCommand ¶
type CmdCommand struct { Name string `json:"name"` Flags []CmdFlag `json:"flags"` Args []string `json:"args"` Child *CmdCommand `json:"child"` }
func WrapCmdCommand ¶
func WrapCmdCommand(command *cobra.Command) *CmdCommand
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
func (*Collector) LogCobraCommandExecuted ¶
func (*Collector) MaybeSendStats ¶ added in v0.1.7
Send all stats saved in queue file (only if there are more then SendStatsThreashhold events)
type Event ¶
type Event struct { Id string `json:"id"` UserTime string `json:"user_time"` Name string `json:"name"` MifyVersion string `json:"mify_version"` OS string `json:"os"` Arch string `json:"arch"` MifyInstanceID string `json:"mify_instance_id"` WorkspaceName string `json:"workspace_name"` ProjectName string `json:"project_name"` Payload string `json:"payload"` }
type RunPayload ¶
type RunPayload struct {
CmdInfo []CmdCommand `json:"cmd_info"`
}
type SendStatsReq ¶
type SendStatsReq struct {
Events []Event `json:"events"`
}
Click to show internal directories.
Click to hide internal directories.