Method: CloudmunchService#updateInsight

Defined in:
lib/cloudmunch_Ruby_sdk_v2/CloudmunchService.rb

#updateInsight(insightID, data) ⇒ Object



402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/cloudmunch_Ruby_sdk_v2/CloudmunchService.rb', line 402

def updateInsight(insightID, data)
  # /applications/{application_id}/insights/{insight_id}

  if (insightID.nil? || insightID.empty?) && data.nil?
    log("DEBUG", "Insight id and data is needed to be update an existing data store")
    return nil
  end

  paramHash = {}
  paramHash["context"]   = "insights"
  paramHash["contextID"] = insightID
  paramHash["data"]      = data
  return updateCloudmunchData(paramHash)
end