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 +4 -4
- data/lib/cloudmunch_Ruby_sdk_v3/InsightHelper.rb +25 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5afdbe3261329114edfed960aee4b410acc270c
|
4
|
+
data.tar.gz: 7adc6ef6d6579aed831b2ad8493e0216a4b6c924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
14
|
+
date: 2017-03-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: json
|