Package com.streamreduce.analytics

Examples of com.streamreduce.analytics.MetricName


     * @param metadata the event's metadata
     */
    private void handleObjectCounts(String id, Long timestamp, EventId eventId, String accountId, String userId,
                                    String targetId, String targetType, Map<String, Object> metadata) {
        Float eventValue = getEventValue(eventId);
        MetricName metricName = getEventMetricName(eventId, targetType);

        // Nothing we can do if we cannot figure out the event type or there is no value
        if (Float.isNaN(eventValue) || metricName == null) {
            LOGGER.debug("Unable to calculate built-in metrics: (eventValue=" + eventValue +
                                 ", metricName=" + metricName + ")");
View Full Code Here


            String hashtagsKey = targetType.equals("SobaMessage") ? "messageHashtags" : "targetHashtags";
            Map<String, Float> hashtagChanges = getHashtagChanges(eventId, targetId, metadata, hashtagsKey);

            for (Map.Entry<String, Float> hashtagChange : hashtagChanges.entrySet()) {
                for (Values metric : metrics) {
                    MetricName metricName = MetricName.valueOf(metric.get(1).toString());
                    Values metricWithHashtag = (Values)metric.clone();
                    Map<String, String> criteria = (Map<String, String>)metric.get(3);
                    String theHashtag = hashtagChange.getKey();

                    if (criteria.keySet().contains(MetricCriteria.CONNECTION_ID.toString())) {
View Full Code Here

TOP

Related Classes of com.streamreduce.analytics.MetricName

Copyright © 2018 www.massapicom. 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.