class Wavefront::Integration

Manage and query Wavefront integrations.

Public Instance Methods

describe(id) click to toggle source

GET /api/v2/integration/id Gets a single Wavefront integration by its id, along with its status

@param id [String] ID of the proxy @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 29
def describe(id)
  wf_integration_id?(id)
  api.get(id)
end
install(id) click to toggle source

POST /api/v2/integration/id/install Installs a Wavefront integration

@param id [String] ID of the integration @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 40
def install(id)
  wf_integration_id?(id)
  api.post([id, 'install'].uri_concat, nil)
end
install_all_alerts(id) click to toggle source

POST /api/v2/integration/{id}/install-all-alerts Enable all alerts associated with this integration

@param id [String] ID of the integration @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 51
def install_all_alerts(id)
  wf_integration_id?(id)
  api.post([id, 'install-all-alerts'].uri_concat, nil)
end
installed() click to toggle source

GET /api/v2/integration/installed Gets a flat list of all Integrations that are installed, along with their status

@param offset [Int] proxy at which the list begins @param limit [Int] the number of proxies to return @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 97
def installed
  api.get('installed')
end
list(offset = 0, limit = 100) click to toggle source

GET /api/v2/integration Gets a flat list of all Wavefront integrations available, along with their status

@param offset [Int] proxy at which the list begins @param limit [Int] the number of proxies to return @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 18
def list(offset = 0, limit = 100)
  api.get('', offset: offset, limit: limit)
end
manifests() click to toggle source

GET /api/v2/integration/manifests Gets all Wavefront integrations as structured in their integration manifests, along with their status

# File lib/wavefront-sdk/integration.rb, line 105
def manifests
  api.get('manifests')
end
status(id) click to toggle source

GET /api/v2/integration/id/status Gets the status of a single Wavefront integration

@param id [String] ID of the integration @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 62
def status(id)
  wf_integration_id?(id)
  api.get([id, 'status'].uri_concat)
end
statuses() click to toggle source

GET /api/v2/integration/status Gets the status of all Wavefront integrations

@return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 114
def statuses
  api.get('status')
end
uninstall(id) click to toggle source

POST /api/v2/integration/id/uninstall Uninstalls a Wavefront integration

@param id [String] ID of the integration @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 73
def uninstall(id)
  wf_integration_id?(id)
  api.post([id, 'uninstall'].uri_concat, nil)
end
uninstall_all_alerts(id) click to toggle source

POST /api/v2/integration/{id}/uninstall-all-alerts Disable all alerts associated with this integration

@param id [String] ID of the integration @return [Wavefront::Response]

# File lib/wavefront-sdk/integration.rb, line 84
def uninstall_all_alerts(id)
  wf_integration_id?(id)
  api.post([id, 'uninstall-all-alerts'].uri_concat, nil)
end