cloudmunch_sdk_v3 4.5.0 → 4.7.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: d76400e8d7ef742f974176d97f65c5bfa2fdc860
4
- data.tar.gz: bfcaae70e998b06ffded808f429fda73514b9c8f
3
+ metadata.gz: 02a9e63252cd27e99a403fed162d6a28e79be119
4
+ data.tar.gz: b37bcb33c9216e83674ee8e89a945ccdd313c481
5
5
  SHA512:
6
- metadata.gz: 2045ffe288aaf1b54161690818982aa61dfb30cff71f84a5185b40297e30d8b9c5b5bdb43108a9e7e7a0494fa4751f78467c1d19927c05221f9d2a9f66776834
7
- data.tar.gz: faea41738c0be64e397770f2231e8c407c95837db068b9a3b8fc159225d3d1b51489785523af73eca8e0fedca2f129c17d0345a14d7bf863c7762a69c5cb0435
6
+ metadata.gz: 418c9f36276bed9cf3f10a70fea9c177ee54d5f8a87e168fdc6b7dfe29752801016ffc6e33a81d0dc7ce30295533a0819fb649f418187a5604d50e92c6e23aef
7
+ data.tar.gz: c6a54fcd288492005c969fdcbf71aedf271cee6a216dd13a7676a515b6f5d1db9faf4990781f5ab858699f2c82a086cdd66d70e8475ef5d96b65c09d48cf2aeb
@@ -167,7 +167,8 @@ module CloudmunchService
167
167
  paramData["method"] = "patch"
168
168
  responseJson = Net::HTTP.post_form(uri,"data" => paramData.to_json)
169
169
  elsif method.casecmp("put") == 0
170
- #code for put
170
+ paramData["method"] = "put"
171
+ responseJson = Net::HTTP.post_form(uri,"data" => paramData.to_json)
171
172
  end
172
173
  return parseResponse(responseJson.body)
173
174
  end
@@ -656,7 +656,7 @@ module InsightHelper
656
656
  #### Updates Insight Report In Server Workspace
657
657
  #### Needed In Reporter Plugins
658
658
  ###################################################################################
659
- def updateInsightReport(insightID, reportID, data)
659
+ def updateInsightReport(insightID, reportID, data, method = "POST")
660
660
  # /applications/{application_id}/insights/{insight_id}/insight_reports/{insight_report_id}
661
661
 
662
662
  if (insightID.nil? || insightID.empty?) && (reportID.nil? || reportID.empty?) && data.nil?
@@ -669,7 +669,7 @@ module InsightHelper
669
669
  paramHash["subContext"] = "insight_reports"
670
670
  paramHash["subContextID"] = reportID
671
671
  paramHash["data"] = data
672
- return updateCloudmunchData(paramHash)
672
+ return updateCloudmunchData(paramHash, method)
673
673
  end
674
674
 
675
675
 
@@ -678,7 +678,7 @@ module InsightHelper
678
678
  #### Updates Insight Report Card In Server Workspace
679
679
  #### Needed In Reporter Plugins
680
680
  ###################################################################################
681
- def updateInsightReportCard(insightID, reportID, cardID, data)
681
+ def updateInsightReportCard(insightID, reportID, cardID, data, method = "POST")
682
682
  # /applications/{application_id}/insights/{insight_id}/insight_reports/{insight_report_id}/insight_cards/{insight_card_id}
683
683
 
684
684
  if (insightID.nil? || insightID.empty?) && (reportID.nil? || reportID.empty?) && (cardID.nil? || cardID.empty?) && data.nil?
@@ -694,7 +694,7 @@ module InsightHelper
694
694
  paramHash["leafContext"] = "insight_cards"
695
695
  paramHash["leafContextID"] = cardID
696
696
  paramHash["data"] = data
697
- return updateCloudmunchData(paramHash)
697
+ return updateCloudmunchData(paramHash, method)
698
698
  end
699
699
 
700
700
  ###################################################################################
@@ -702,7 +702,7 @@ module InsightHelper
702
702
  #### Updates Insight Report KeyMetric In Server Workspace
703
703
  #### Needed In Reporter Plugins
704
704
  ###################################################################################
705
- def updateInsightReportKeyMetric(insightID, reportID, keyMetricID, data)
705
+ def updateInsightReportKeyMetric(insightID, reportID, keyMetricID, data, method = "POST")
706
706
  # /applications/{application_id}/insights/{insight_id}/insight_reports/{insight_report_id}/key_metrics/{key_metric_id}
707
707
 
708
708
  if (insightID.nil? || insightID.empty?) && (reportID.nil? || reportID.empty?) && (keyMetricID.nil? || keyMetricID.empty?) && data.nil?
@@ -718,7 +718,7 @@ module InsightHelper
718
718
  paramHash["leafContext"] = "key_metrics"
719
719
  paramHash["leafContextID"] = keyMetricID
720
720
  paramHash["data"] = data
721
- return updateCloudmunchData(paramHash)
721
+ return updateCloudmunchData(paramHash, method)
722
722
  end
723
723
 
724
724
  ###################################################################################
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.5.0
4
+ version: 4.7.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-17 00:00:00.000000000 Z
14
+ date: 2017-06-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: json