aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2015-02-04 04:37:57 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2015-02-04 04:37:57 +0100
commit1b39bfb30e338c3d6c8284ae1276fb0c7eae7cc7 (patch)
tree976571668b87ebb5d767bfae6ece925ab93c28c1
parentd670d1c96614202809c583d30e1b334d00710f8e (diff)
downloadKamon-1b39bfb30e338c3d6c8284ae1276fb0c7eae7cc7.tar.gz
Kamon-1b39bfb30e338c3d6c8284ae1276fb0c7eae7cc7.tar.bz2
Kamon-1b39bfb30e338c3d6c8284ae1276fb0c7eae7cc7.zip
+ core: add create methods for Entity.
-rw-r--r--kamon-core/src/main/scala/kamon/metric/Entity.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/Entity.scala b/kamon-core/src/main/scala/kamon/metric/Entity.scala
index 962626e0..8d328f83 100644
--- a/kamon-core/src/main/scala/kamon/metric/Entity.scala
+++ b/kamon-core/src/main/scala/kamon/metric/Entity.scala
@@ -49,4 +49,10 @@ object Entity {
def apply(name: String, category: String, metadata: Map[String, String]): Entity =
new Entity(name, category, metadata)
+
+ def create(name: String, category: String): Entity =
+ apply(name, category, Map.empty)
+
+ def create(name: String, category: String, metadata: Map[String, String]): Entity =
+ new Entity(name, category, metadata)
} \ No newline at end of file