You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2016/04/09 11:05:07 UTC

incubator-eagle git commit: EAGLE-224 Add default colomns "site", "application", "policyId" for eagle_metric table

Repository: incubator-eagle
Updated Branches:
  refs/heads/master f6aebe631 -> f311630fb


EAGLE-224 Add default colomns "site","application","policyId" for eagle_metric table

https://issues.apache.org/jira/browse/EAGLE-224

Sign-Off-By: @haoch <ha...@apache.org>

Closes #139.


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/f311630f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/f311630f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/f311630f

Branch: refs/heads/master
Commit: f311630fb8cb7a77d3543c01dd299bbc6f1e9090
Parents: f6aebe6
Author: Hao Chen <ha...@apache.org>
Authored: Sat Apr 9 16:58:49 2016 +0800
Committer: Hao Chen <ha...@apache.org>
Committed: Sat Apr 9 17:04:40 2016 +0800

----------------------------------------------------------------------
 .../apache/eagle/log/entity/GenericMetricEntity.java  | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/f311630f/eagle-core/eagle-query/eagle-entity-base/src/main/java/org/apache/eagle/log/entity/GenericMetricEntity.java
----------------------------------------------------------------------
diff --git a/eagle-core/eagle-query/eagle-entity-base/src/main/java/org/apache/eagle/log/entity/GenericMetricEntity.java b/eagle-core/eagle-query/eagle-entity-base/src/main/java/org/apache/eagle/log/entity/GenericMetricEntity.java
index a9a8c75..ef7d967 100755
--- a/eagle-core/eagle-query/eagle-entity-base/src/main/java/org/apache/eagle/log/entity/GenericMetricEntity.java
+++ b/eagle-core/eagle-query/eagle-entity-base/src/main/java/org/apache/eagle/log/entity/GenericMetricEntity.java
@@ -17,17 +17,9 @@
 package org.apache.eagle.log.entity;
 
 import org.apache.eagle.log.base.taggedlog.TaggedLogAPIEntity;
-import org.apache.eagle.log.entity.meta.Column;
-import org.apache.eagle.log.entity.meta.ColumnFamily;
-import org.apache.eagle.log.entity.meta.Service;
-import org.apache.eagle.log.entity.meta.ServicePath;
+import org.apache.eagle.log.entity.meta.*;
 import org.codehaus.jackson.map.annotate.JsonSerialize;
 
-import org.apache.eagle.log.entity.meta.Metric;
-import org.apache.eagle.log.entity.meta.Prefix;
-import org.apache.eagle.log.entity.meta.Table;
-import org.apache.eagle.log.entity.meta.TimeSeries;
-
 /**
  * GenericMetricEntity should use prefix field which is extended from TaggedLogAPIEntity as metric name
  * metric name is used to partition the metric tables
@@ -40,6 +32,8 @@ import org.apache.eagle.log.entity.meta.TimeSeries;
 @TimeSeries(true)
 @Metric(interval=60000)
 @ServicePath(path = "/metric")
+// TODO:
+@Tags({"site","application","policyId"})
 public class GenericMetricEntity extends TaggedLogAPIEntity {
 	public static final String GENERIC_METRIC_SERVICE = "GenericMetricService";
 	public static final String GENERIC_METRIC_PREFIX_PLACE_HOLDER = "GENERIC_METRIC_PREFIX_PLACEHODLER";
@@ -56,4 +50,4 @@ public class GenericMetricEntity extends TaggedLogAPIEntity {
 		this.value = value;
 		_pcs.firePropertyChange("value", null, null);
 	}
-}
+}
\ No newline at end of file