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
- func GetPubProcReq(contentType string, content []byte, pluginName string, pluginVersion int, ...) *rpc.PubProcMetricsRequest
- type ControlProxy
- func (c ControlProxy) CollectMetrics(mts []core.Metric, deadline time.Time, taskID string, ...) ([]core.Metric, []error)
- func (c ControlProxy) ExpandWildcards(namespace core.Namespace) ([]core.Namespace, serror.SnapError)
- func (c ControlProxy) GetAutodiscoverPaths() []string
- func (c ControlProxy) GetPluginContentTypes(n string, t core.PluginType, v int) ([]string, []string, error)
- func (c ControlProxy) MatchQueryToNamespaces(namespace core.Namespace) ([]core.Namespace, serror.SnapError)
- func (c ControlProxy) ProcessMetrics(contentType string, content []byte, pluginName string, pluginVersion int, ...) (string, []byte, []error)
- func (c ControlProxy) PublishMetrics(contentType string, content []byte, pluginName string, pluginVersion int, ...) []error
- func (c ControlProxy) SubscribeDeps(taskID string, mts []core.Metric, plugins []core.Plugin) []serror.SnapError
- func (c ControlProxy) UnsubscribeDeps(taskID string, mts []core.Metric, plugins []core.Plugin) []serror.SnapError
- func (c ControlProxy) ValidateDeps(mts []core.Metric, plugins []core.SubscribedPlugin) []serror.SnapError
Constants ¶
This section is empty.
Variables ¶
var (
MAX_CONNECTION_TIMEOUT = 10 * time.Second
)
Functions ¶
func GetPubProcReq ¶
func GetPubProcReq(contentType string, content []byte, pluginName string, pluginVersion int, config map[string]ctypes.ConfigValue, taskID string) *rpc.PubProcMetricsRequest
Constructs a protobuf message for publish/process given the relevant information
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) ExpandWildcards ¶
func (ControlProxy) GetAutodiscoverPaths ¶
func (c ControlProxy) GetAutodiscoverPaths() []string
func (ControlProxy) GetPluginContentTypes ¶
func (c ControlProxy) GetPluginContentTypes(n string, t core.PluginType, v int) ([]string, []string, error)
func (ControlProxy) MatchQueryToNamespaces ¶
func (ControlProxy) ProcessMetrics ¶
func (ControlProxy) PublishMetrics ¶
func (c ControlProxy) PublishMetrics(contentType string, content []byte, pluginName string, pluginVersion int, config map[string]ctypes.ConfigValue, taskID string) []error
func (ControlProxy) SubscribeDeps ¶
func (ControlProxy) UnsubscribeDeps ¶
func (ControlProxy) ValidateDeps ¶
func (c ControlProxy) ValidateDeps(mts []core.Metric, plugins []core.SubscribedPlugin) []serror.SnapError