Esempio n. 1
0
        public static void StartCollector(CollectorPluginBase collector)
        {
            _collector = collector;

            CBridge.start_collector(
                CollectHandlerFn, LoadHandlerFn, UnloadHandlerFn, DefineHandlerFn,
                collector.Name, Convertions.ToSemanticVersion(collector.Version));
        }
 public void DefineInstancesLimit(int limit)
 {
     CBridge.define_instances_limit(limit);
 }
 public void DefineTaskPerInstanceLimit(int limit)
 {
     CBridge.define_tasks_per_instance_limit(limit);
 }
        public void DefineExampleConfig(string config)
        {
            var errPtr = CBridge.define_example_config(config);

            Exceptions.ThrowExceptionIfError(errPtr);
        }
 public void DefineGroup(string name, string description)
 {
     CBridge.define_group(name, description);
 }
 public void DefineMetric(string ns, string unit, bool isDefault, string description)
 {
     CBridge.define_metric(ns, unit, isDefault ? 1 : 0, description);
 }