The Uptime Robot API allows you to monitor the uptime of your websites and services from a central hub. On Pipedream, you can harness this API to create automated workflows that trigger on events like downtime, maintenance, or performance issues. This enables real-time alerts, auto-generated reports, and seamless integration with other tools for incident management or data analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uptime_robot: {
type: "app",
app: "uptime_robot",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.uptime_robot.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://api.uptimerobot.com/v2/getAlertContacts`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
Downtime Alert to Slack: Trigger a Pipedream workflow when Uptime Robot detects that a site is down. The workflow sends a custom alert to a designated Slack channel, ensuring your team responds swiftly to downtime incidents.
Scheduled Performance Reports to Email: Use Pipedream's built-in cron scheduler to regularly retrieve performance data from Uptime Robot. Format the data and automatically send a daily or weekly performance report to a list of stakeholders through email.
Incident Management with Jira: Create a Pipedream workflow that opens a new Jira ticket when Uptime Robot flags a site outage. Include details like the time of the incident and the affected URL, streamlining your incident response process.
Uptime Robot uses API keys for authentication. When you connect your Uptime Robot account, Pipedream securely stores the keys so you can easily authenticate to Uptime Robot APIs in both code and no-code steps.
In order to find the API key in Uptime Robot, go to the My Settings page.