def list_ips
require "google/cloud/monitoring"
client = Google::Cloud::Monitoring.uptime_check_service
# Iterate over all results.
client.list_uptime_check_ips({}).each do |element|
puts "#{element.location} #{element.ip_address}"
end
end
Nächste Schritte
Informationen zum Suchen und Filtern von Codebeispielen für andere Google Cloud-Produkte finden Sie im Google Cloud-Beispielbrowser.