With the Freshping API, you can build a monitoring system for your website or application. You can use it to track the uptime and response time of your site or application, as well as to monitor the status of yourFreshping checks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
freshping: {
type: "app",
app: "freshping",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.freshping.io/api/v1/checks/`,
auth: {
username: `${this.freshping.$auth.api_key}`,
password: `${this.freshping.$auth.subdomain}`,
},
})
},
})
Freshping uses API keys for authentication. When you connect your Freshping account, Pipedream securely stores the keys so you can easily authenticate to Freshping APIs in both code and no-code steps.
Authentication is done over Basic Authentication using your organization API key as Username and Freshping subdomain as Password to authenticate the request. See documentation.