Пример #1
0
        public static void StartCollector(CollectorPluginBase collector)
        {
            _collector = collector;

            CBridge.start_collector(
                CollectHandlerFn, LoadHandlerFn, UnloadHandlerFn, DefineHandlerFn,
                collector.Name, Convertions.ToSemanticVersion(collector.Version));
        }
Пример #2
0
 public void DefineInstancesLimit(int limit)
 {
     CBridge.define_instances_limit(limit);
 }
Пример #3
0
 public void DefineTaskPerInstanceLimit(int limit)
 {
     CBridge.define_tasks_per_instance_limit(limit);
 }
Пример #4
0
        public void DefineExampleConfig(string config)
        {
            var errPtr = CBridge.define_example_config(config);

            Exceptions.ThrowExceptionIfError(errPtr);
        }
Пример #5
0
 public void DefineGroup(string name, string description)
 {
     CBridge.define_group(name, description);
 }
Пример #6
0
 public void DefineMetric(string ns, string unit, bool isDefault, string description)
 {
     CBridge.define_metric(ns, unit, isDefault ? 1 : 0, description);
 }