agent/stats/engine.go
func NewDockerStatsEngine(cfg *config.Config, client dockerapi.DockerClient, containerChangeEventStream *eventstream.EventStream) *DockerStatsEngine {
	return &DockerStatsEngine{
		client:                       client,
		resolver:                     nil,
		disableMetrics:               cfg.DisableMetrics,
		tasksToContainers:            make(map[string]map[string]*StatsContainer),
		tasksToHealthCheckContainers: make(map[string]map[string]*StatsContainer),
		tasksToDefinitions:           make(map[string]*taskDefinition),
		containerChangeEventStream:   containerChangeEventStream,
	}
}
func NewDockerStatsEngine(cfg *config.Config, client dockerapi.DockerClient, containerChangeEventStream *eventstream.EventStream) *DockerStatsEngine {
	return &DockerStatsEngine{
		client:                       client,
		resolver:                     nil,
		disableMetrics:               cfg.DisableMetrics,
		tasksToContainers:            make(map[string]map[string]*StatsContainer),
		tasksToHealthCheckContainers: make(map[string]map[string]*StatsContainer),
		tasksToDefinitions:           make(map[string]*taskDefinition),
		containerChangeEventStream:   containerChangeEventStream,
	}
}
func NewDockerStatsEngine ( cfg * config . Config , client dockerapi . DockerClient , containerChangeEventStream * eventstream . EventStream ) * DockerStatsEngine { return & DockerStatsEngine { client : client , resolver : nil , disableMetrics : cfg . DisableMetrics , tasksToContainers : make ( map [ string ] map [ string ] * StatsContainer ) , tasksToHealthCheckContainers : make ( map [ string ] map [ string ] * StatsContainer ) , tasksToDefinitions : make ( map [ string ] * taskDefinition ) , containerChangeEventStream : containerChangeEventStream , } }
// NewDockerStatsEngine creates a new instance of the DockerStatsEngine object.
// MustInit() must be called to initialize the fields of the new event listener.
NewDockerStatsEngine creates a new instance of the DockerStatsEngine object . MustInit () must be called to initialize the fields of the new event listener .