MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / NewExecutionMonitor

Function NewExecutionMonitor

commands/execution_monitor.go:49–58  ·  view source on GitHub ↗

NewExecutionMonitor creates a new execution monitor

(commandName, operationID, embed string, retries uint, reportedOperationMessages []*models.Message, mtaClient mtaclient.MtaClientOperations)

Source from the content-addressed store, hash-verified

47
48// NewExecutionMonitor creates a new execution monitor
49func NewExecutionMonitor(commandName, operationID, embed string, retries uint, reportedOperationMessages []*models.Message, mtaClient mtaclient.MtaClientOperations) *ExecutionMonitor {
50 return &ExecutionMonitor{
51 mtaClient: mtaClient,
52 reportedMessages: getAlreadyReportedOperationMessages(reportedOperationMessages),
53 commandName: commandName,
54 operationID: operationID,
55 embed: embed,
56 retries: retries,
57 }
58}
59
60func getAlreadyReportedOperationMessages(reportedOperationMessages []*models.Message) map[int64]bool {
61 result := make(map[int64]bool)

Callers 3

ExecuteMethod · 0.85
ExecuteMethod · 0.85

Tested by

no test coverage detected