in internal/flags/flags.go [114:125]
func (af *AgentFlags) status() (string, bool) {
if af.logName == "" {
return "Please specify the name of the log -logname.", false
}
if af.logVersion == "" {
return "Please specify the version of the log -logversion.", false
}
ap := agentstatus.NewAgentProperties(af.logName, af.logVersion, internal.AgentUsageLogPrefix, true)
cp := agentstatus.NewCloudProperties(af.projectID, af.zone, af.instance, af.projectNumber, af.image)
agentstatus.NewUsageMetricsLogger(ap, cp, []string{}).LogStatus(agentstatus.Status(af.logStatus), "")
return "", false
}