eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject incubator-eagle git commit: EAGLE-224 Add default colomns "site", "application", "policyId" for eagle_metric table
Date Sat, 09 Apr 2016 09:05:07 GMT
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 <hao@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 <hao@apache.org>
Authored: Sat Apr 9 16:58:49 2016 +0800
Committer: Hao Chen <hao@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


Mime
View raw message