You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/05/22 22:19:38 UTC
[47/50] [abbrv] git commit: Core: Backported the 'metrics' collection
from current Deltacloud
Core: Backported the 'metrics' collection from current Deltacloud
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/5d2b743c
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/5d2b743c
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/5d2b743c
Branch: refs/heads/master
Commit: 5d2b743c59c14a0cd431d848a2b150a940db89fe
Parents: 6c4efc4
Author: Michal Fojtik <mf...@redhat.com>
Authored: Mon Apr 30 14:40:28 2012 +0200
Committer: Michal fojtik <mf...@redhat.com>
Committed: Tue May 22 22:17:35 2012 +0200
----------------------------------------------------------------------
server/lib/deltacloud/collections/metrics.rb | 27 +++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/5d2b743c/server/lib/deltacloud/collections/metrics.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/collections/metrics.rb b/server/lib/deltacloud/collections/metrics.rb
new file mode 100644
index 0000000..acc951d
--- /dev/null
+++ b/server/lib/deltacloud/collections/metrics.rb
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+module Deltacloud::Collections
+ class Metrics < Base
+
+ collection :metrics do
+ description 'Metrics provide monitoring for the cloud resources'
+
+ standard_index_operation
+ standard_show_operation
+
+ end
+ end
+end