package webagent

type agentRuntimeStatus struct {
	Status   string
	Activity string
	Detail   string
}

func (fake *fakeRuntime) AgentRuntimeStatus(machineID string, agentID string) (string, string, string, bool) {
	fake.mu.Lock()
	defer fake.mu.Unlock()
	status, ok := fake.runtimeStatuses[agentCall{machineID, agentID}]
	if !ok {
		return "", "", "", false
	}
	return status.Status, status.Activity, status.Detail, true
}
