with Grafana and Power Automate?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
grafana: {
type: "app",
app: "grafana",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.grafana.$auth.domain}/api/org/`,
headers: {
Authorization: `Bearer ${this.grafana.$auth.service_account_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
power_automate: {
type: "app",
app: "power_automate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments?api-version=2016-11-01`,
headers: {
Authorization: `Bearer ${this.power_automate.$auth.oauth_access_token}`,
},
})
},
})