class Shodan::Clients::Alert

Public Instance Methods

create(name:, ip:) click to toggle source
# File lib/shodan/clients/alert.rb, line 6
def create(name:, ip:)
  params = {
    name: name,
    filters: {
      ip: ip
    }
  }
  post("/shodan/alert", **params)
end
delete_by_id(id) click to toggle source
# File lib/shodan/clients/alert.rb, line 16
def delete_by_id(id)
  delete("/shodan/alert/#{id}")
end
get_by_id(id) click to toggle source
# File lib/shodan/clients/alert.rb, line 20
def get_by_id(id)
  get("/shodan/alert/#{id}/info")
end
info() click to toggle source
# File lib/shodan/clients/alert.rb, line 24
def info
  get("/shodan/alert/info")
end
triggers() click to toggle source
# File lib/shodan/clients/alert.rb, line 28
def triggers
  get("/shodan/alert/triggers")
end