Examples of MetricTemplate


Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

        this.metricsRegistry = metricsRegistry;
    }


    public MetricTemplate metric(String name, String units) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.RAW_DATA, name, units));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.RAW_DATA, name, units));
    }


    public MetricTemplate timedDelta(String name, String units) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.TIMED_DELTA, name, units));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.TIMED_DELTA, name, units));
    }


    public MetricTemplate delta(String name, String units) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.RAW_DELTA, name, units));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.RAW_DELTA, name, units));
    }


    public MetricTemplate rate(String name, String units, String nom, String div) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.WINDOWED_RATE, name, units, nom, div));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

    public MetricTemplate rate(String name, String units, String nom, String div) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.WINDOWED_RATE, name, units, nom, div));
    }

    public MetricTemplate util(String name, String units, String nom, String div) {
        return metricsRegistry.getTemplate(new MetricTemplate(MetricTemplate.UTILIZATION, name, units, nom, div));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.tracedata.MetricTemplate

                Number val = sample.getValue();
                rdata.put("LVAL"+i, val.longValue());
                rdata.put("DVAL"+i, val.doubleValue());
                QueryResult rslt = (QueryResult)sample.getResult();
                if (!rdata.containsKey("ATTR")) { rdata.put("ATTR", rslt.getAttrs()); }
                MetricTemplate mt = sample.getMetric().getTemplate();
                rdata.put("UNIT"+i, mt.getUnits());
            } else {
                rdata.put("LVAL"+i, 0L);
                rdata.put("DVAL"+i, 0.0);
            }
        }
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        });

        MetricTemplateImporter importer =
            new MetricTemplateImporter(null, prereqs.getEntityManager(), prereqs.getMeasurementScheduleManager());

        MetricTemplate nonMatching = new MetricTemplate();
        nonMatching.setResourceTypeName("asf");
        nonMatching.setResourceTypePlugin("asfd");
        nonMatching.setMetricName("asf");
       
        MetricTemplate matching = new MetricTemplate(def);

        importer.configure(null);

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        importer.configure(null);

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        MetricTemplate match1 = new MetricTemplate(defToEnable);
        MetricTemplate match2 = new MetricTemplate(defToDisable);

        assertSame(matcher.findMatch(match1), defToEnable,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(match2), defToDisable,
            "The matching metric template should have found the defined measurement definition");
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        importer.configure(importConfig);

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        MetricTemplate template = new MetricTemplate(def);

        assertSame(matcher.findMatch(template), def,
            "The matching metric template should have found the defined measurement definition");

        importer.update(def, template);
View Full Code Here

Examples of org.rhq.core.domain.sync.entity.MetricTemplate

        importer.configure(importConfig);

        ExportedEntityMatcher<MeasurementDefinition, MetricTemplate> matcher = importer.getExportedEntityMatcher();

        MetricTemplate template1 = new MetricTemplate(updatedDef);
        MetricTemplate template2 = new MetricTemplate(notUpdatedDef);

        assertSame(matcher.findMatch(template1), updatedDef,
            "The matching metric template should have found the defined measurement definition");
        assertSame(matcher.findMatch(template2), notUpdatedDef,
            "The matching metric template should have found the defined measurement definition");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.