cloudmunch_sdk_v3 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a12454b5abcfad54306154cf400343cb5306efe
4
- data.tar.gz: a70b23a1d101d1583ff64ad3acce05ca0474bd66
3
+ metadata.gz: e5afdbe3261329114edfed960aee4b410acc270c
4
+ data.tar.gz: 7adc6ef6d6579aed831b2ad8493e0216a4b6c924
5
5
  SHA512:
6
- metadata.gz: 8c9d956b4bd5c65b5163fdb18a2755fc2d7563431ccd5f9035f78dd707d3ac9091057bcc38b46a52cba81778b7fbb67705a71727a05a6a1a20dfd3c76dbc033b
7
- data.tar.gz: 2bdcc5bca05550bebb1cca37126353bfbd137a5763bfec45c29b8aa988c983dea477058e5ed1fbcc2c330325cd4f4865ce39f1317610d85d0c2002b14eb7d01c
6
+ metadata.gz: 7453f12639a6f567cf7dc338123440b32aced5d745f52025f53e3e27d197bef45ae83bb12811b83767baa9ab05e44cc0ae9a08d1cbdf88fe3ac0dc3b725f8d1a
7
+ data.tar.gz: 7326ac3be45931e0d536aeba93d6f4dc8950b09986dd3639ddc27b9e357f0a52d21b5e2c2096e64e88f5f45f9641987b4785ea58017e1cf64bf4fd0c4a3e41fd
@@ -12,6 +12,7 @@ module InsightHelper
12
12
  ### createInsight(insightName)
13
13
  ### createInsightDataStore(insightID, dataStoreName)
14
14
  ### createInsightDataStoreExtract(insightID, dataStoreID, extractName)
15
+ ### createInsightDataStoreExtractAndSaveData(insightID, dataStoreID, extractName, data)
15
16
  ### createInsightReport(insightID, reportName)
16
17
  ### createInsightReportCard(insightID, reportID, cardName)
17
18
  ### createInsightReportKeyMetric(insightID, reportID, keyMetricName)
@@ -146,6 +147,30 @@ module InsightHelper
146
147
  end
147
148
  end
148
149
 
150
+ ###################################################################################
151
+ #### createInsightDataStoreExtractAndSaveData(insightID, dataStoreID, extractName, data)
152
+ #### Creates An Insight DataStore Extract in Server Workspace and save the given data
153
+ #### Needed In Loader Plugins
154
+ ###################################################################################
155
+ def createInsightDataStoreExtractAndSaveData(insightID, dataStoreID, extractName, data)
156
+ if !extractName.nil? && !extractName.empty? && !insightID.nil? && !dataStoreID.nil? && !data.nil?
157
+ paramHash = Hash.new
158
+ paramHash["context"] = "resources"
159
+ paramHash["contextID"] = insightID
160
+ paramHash["subContext"] = "datastores"
161
+ paramHash["subContextID"] = dataStoreID
162
+ paramHash["leafContext"] = "extracts"
163
+ paramHash["data"] = data
164
+ paramHash["data"]["name"] = extractName
165
+
166
+ log("DEBUG", "Extract with name #{extractName} created and data is stored into it...")
167
+ return updateCloudmunchData(paramHash)
168
+ else
169
+ log("DEBUG", "Check if resourdID, dataStoreID, extractName and data are not nil...")
170
+ return nil
171
+ end
172
+ end
173
+
149
174
 
150
175
  ###################################################################################
151
176
  #### createInsightReport(insightID, reportName)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmunch_sdk_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ganesan krishnamurthy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-03-08 00:00:00.000000000 Z
14
+ date: 2017-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json