Documentation ¶
Overview ¶
Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func ContainerMetadataHandler(agentState state.AgentState, metricsFactory metrics.EntryFactory) func(http.ResponseWriter, *http.Request)
- func ContainerMetadataPath() string
- func ContainerStatsHandler(agentState state.AgentState, metricsFactory metrics.EntryFactory) func(http.ResponseWriter, *http.Request)
- func ContainerStatsPath() string
- func TaskMetadataHandler(agentState state.AgentState, metricsFactory metrics.EntryFactory) func(http.ResponseWriter, *http.Request)
- func TaskMetadataPath() string
- func TaskMetadataWithTagsHandler(agentState state.AgentState, metricsFactory metrics.EntryFactory) func(http.ResponseWriter, *http.Request)
- func TaskMetadataWithTagsPath() string
- func TaskStatsHandler(agentState state.AgentState, metricsFactory metrics.EntryFactory) func(http.ResponseWriter, *http.Request)
- func TaskStatsPath() string
Constants ¶
const (
EndpointContainerIDMuxName = "endpointContainerIDMuxName"
)
v3EndpointIDMuxName is the key that's used in gorilla/mux to get the v3 endpoint ID.
Variables ¶
This section is empty.
Functions ¶
func ContainerMetadataHandler ¶
func ContainerMetadataHandler( agentState state.AgentState, metricsFactory metrics.EntryFactory, ) func(http.ResponseWriter, *http.Request)
ContainerMetadataHandler returns the HTTP handler function for handling container metadata requests.
func ContainerMetadataPath ¶
func ContainerMetadataPath() string
ContainerMetadataPath specifies the relative URI path for serving container metadata.
func ContainerStatsHandler ¶
func ContainerStatsHandler( agentState state.AgentState, metricsFactory metrics.EntryFactory, ) func(http.ResponseWriter, *http.Request)
Returns an HTTP handler for v4 container stats endpoint
func ContainerStatsPath ¶
func ContainerStatsPath() string
Returns a standard URI path for v4 container stats endpoint.
func TaskMetadataHandler ¶
func TaskMetadataHandler( agentState state.AgentState, metricsFactory metrics.EntryFactory, ) func(http.ResponseWriter, *http.Request)
TaskMetadataHandler returns the HTTP handler function for handling task metadata requests.
func TaskMetadataPath ¶
func TaskMetadataPath() string
Returns the standard URI path for task metadata endpoint.
func TaskMetadataWithTagsHandler ¶
func TaskMetadataWithTagsHandler( agentState state.AgentState, metricsFactory metrics.EntryFactory, ) func(http.ResponseWriter, *http.Request)
TaskMetadataHandler returns the HTTP handler function for handling task metadata with tags requests.
func TaskMetadataWithTagsPath ¶
func TaskMetadataWithTagsPath() string
Returns the standard URI path for task metadata with tags endpoint.
func TaskStatsHandler ¶
func TaskStatsHandler( agentState state.AgentState, metricsFactory metrics.EntryFactory, ) func(http.ResponseWriter, *http.Request)
Returns an HTTP handler for v4 task stats endpoint
func TaskStatsPath ¶
func TaskStatsPath() string
Returns a standard URI path for v4 task stats endpoint.
Types ¶
This section is empty.