Cloudbrowser browser-hours checked every morning
Each morning this flow reads your Cloudbrowser plan's browser time for the period and posts it to Slack. Past your warning line, it also names every running browser with auto-pause off.
The prompt
Every morning at 8, read our Cloudbrowser usage for the period: the browser time our plan includes, how much we have used and have left, how many browsers are running against the concurrency limit, any estimated overage and whether starting browsers is blocked. Post a short summary to our team channel in Slack. If we are past 80 percent of the included time, also list the browsers that are running with auto-pause off, so we can see what is using the hours.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Read the usage Reads the workspace's plan and usage for the current period from Cloudbrowser: browser time included, used and remaining, running browsers against the concurrency limit, estimated overage and any block on starting browsers.
- Work out the hours Turns the seconds into hours and the share of the included time already used, and compares it with your warning line.
- Past the warning line? Below the line, the report is the summary alone. Past it, the run goes on to the browser list.
- List the browsers Lists the workspace's browsers with their status and auto-pause setting.
- Write the report Writes the summary, and past the warning line adds each running browser with auto-pause off, with its ID, open tabs and since when it has been running.
- Post the report to the team Posts the report to your team's channel in Slack.
Before you turn it on
- Create a personal API token on the API Tokens page of the Cloudbrowser Console with at least the rest:read scope and enter it in the Cloudbrowser settings.
- Connect your Slack account and pick your channel in Post the report to the team.
- The flow has no trigger. Give it a daily schedule for the morning, and it posts once a day.
- Change the flow setting Warning threshold percent if 80 is not your line.