class PassiveTotal::Client::Monitor

Public Instance Methods

alerts(project: nil, artifact: nil, start_at: nil, end_at: nil) click to toggle source

Retrieve all alerts associated with an artifact or project. api.passivetotal.org/api/docs/#api-Monitor-GetV2Monitor

@param [String, nil] project the project to filter on @param [String, nil] artifact the artifact to filter on @param [String, nll] start filter results to after this datetime @param [String, nil] end filter results to before this datetime

@return [Hash]

# File lib/passivetotal/clients/monitor.rb, line 17
def alerts(project: nil, artifact: nil, start_at: nil, end_at: nil)
  params = {
    project: project,
    artifact: artifact,
    start: start_at,
    end: end_at,
  }.compact

  _get("/monitor", params) { |json| json }
end