Documentation ¶
Overview ¶
http://www.apache.org/licenses/LICENSE-2.0.txt
Copyright 2015-2016 Intel Corporation ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License 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 ¶
- Variables
- type ControlProxy
- func (c ControlProxy) CollectMetrics(taskID string, AllTags map[string]map[string]string) ([]core.Metric, []error)
- func (c ControlProxy) GetAutodiscoverPaths() []string
- func (c ControlProxy) ProcessMetrics(metrics []core.Metric, config map[string]ctypes.ConfigValue, taskId string, ...) ([]core.Metric, []error)
- func (c ControlProxy) PublishMetrics(metrics []core.Metric, config map[string]ctypes.ConfigValue, taskId string, ...) []error
- func (c ControlProxy) SubscribeDeps(taskID string, requested []core.RequestedMetric, ...) []serror.SnapError
- func (c ControlProxy) UnsubscribeDeps(taskID string) []serror.SnapError
- func (c ControlProxy) ValidateDeps(mts []core.RequestedMetric, plugins []core.SubscribedPlugin, ...) []serror.SnapError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MAX_CONNECTION_TIMEOUT = 10 * time.Second
)
Functions ¶
This section is empty.
Types ¶
type ControlProxy ¶
type ControlProxy struct {
Client rpc.MetricManagerClient
}
Implements managesMetrics interface provided by scheduler and proxies those calls to the grpc client.
func (ControlProxy) CollectMetrics ¶
func (ControlProxy) GetAutodiscoverPaths ¶
func (c ControlProxy) GetAutodiscoverPaths() []string
func (ControlProxy) ProcessMetrics ¶
func (ControlProxy) PublishMetrics ¶
func (c ControlProxy) PublishMetrics(metrics []core.Metric, config map[string]ctypes.ConfigValue, taskId string, pluginName string, pluginVersion int) []error
func (ControlProxy) SubscribeDeps ¶
func (c ControlProxy) SubscribeDeps(taskID string, requested []core.RequestedMetric, plugins []core.SubscribedPlugin, configTree *cdata.ConfigDataTree) []serror.SnapError
func (ControlProxy) UnsubscribeDeps ¶
func (c ControlProxy) UnsubscribeDeps(taskID string) []serror.SnapError
func (ControlProxy) ValidateDeps ¶
func (c ControlProxy) ValidateDeps(mts []core.RequestedMetric, plugins []core.SubscribedPlugin, _ *cdata.ConfigDataTree) []serror.SnapError
Click to show internal directories.
Click to hide internal directories.