{"modulePath":"github.com/dockerstack/amazon-ecs-agent","version":"v1.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package tcshandler\n\n## Functions\n\n```go\nfunc StartMetricsSession(params TelemetrySessionParams)\n```\nStartMetricsSession starts a metric session. It initializes the stats engine and invokes StartSession.\n\n```go\nfunc StartSession(params TelemetrySessionParams, statsEngine stats.Engine) error\n```\nStartSession creates a session with the backend and handles requests using the passed in arguments. The engine is expected to initialized and gathering container metrics by the time the websocket client starts using it.\n\n## Types\n\n```go\ntype TelemetrySessionParams struct {\n\tContainerInstanceArn string\n\tCredentialProvider   credentials.AWSCredentialProvider\n\tCfg                  *config.Config\n\tAcceptInvalidCert    bool\n\tEcsClient            api.ECSClient\n\tTaskEngine           engine.TaskEngine\n}\n```\n\n","path":"github.com/dockerstack/amazon-ecs-agent/agent/tcs/handler","name":"tcshandler","synopsis":"","isRedistributable":true}
