MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / shipLogData

Function shipLogData

cmd/exec.go:370–377  ·  view source on GitHub ↗
(tempFile *os.File, series string, wg *sync.WaitGroup)

Source from the content-addressed store, hash-verified

368}
369
370func shipLogData(tempFile *os.File, series string, wg *sync.WaitGroup) {
371 outputForLogs := gatherOutput(tempFile, false)
372 _, err := lib.SendLogData(viper.GetString(varApiKey), monitorCode, series, string(outputForLogs))
373 if err != nil {
374 log(fmt.Sprintf("%v", err))
375 }
376 wg.Done()
377}

Callers 1

RunCommandFunction · 0.85

Calls 3

SendLogDataFunction · 0.92
gatherOutputFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected