?>

Firebase Cloud Storage + Downtime Alert Integrations

Appy Pie Connect allows you to automate multiple workflows between Firebase Cloud Storage and Downtime Alert

  • No code
  • No Credit Card
  • Lightning Fast Setup
About Firebase Cloud Storage

Cloud Storage Store and serve files at Google scale.

About Downtime Alert

'Down Time Alert' is our own website monitoring service that watches your website 24/7/365 and notifies you whenever your website goes down.

Downtime Alert Integrations
Downtime Alert Alternatives

Looking for the Downtime Alert Alternatives? Here is the list of top Downtime Alert Alternatives

Best ways to Integrate Firebase Cloud Storage + Downtime Alert

  • Firebase Cloud Storage Firebase Cloud Storage

    Downtime Alert + Firebase Cloud Storage

    Upload File in Cloud Storage in Cloud Storage when Website Down is added to Downtime Alert Read More...
    Close
    When this happens...
    Firebase Cloud Storage Website Down
     
    Then do this...
    Firebase Cloud Storage Upload File in Cloud Storage
  • Firebase Cloud Storage Gmail

    Firebase Cloud Storage + Gmail

    Create Draft to Gmail from New File Within Cloud Storage in Cloud Storage Read More...
    Close
    When this happens...
    Firebase Cloud Storage New File Within Cloud Storage
     
    Then do this...
    Gmail Create Draft
  • Firebase Cloud Storage Gmail

    Firebase Cloud Storage + Gmail

    Send Email in Gmail when New File Within Cloud Storage is created in Cloud Storage Read More...
    Close
    When this happens...
    Firebase Cloud Storage New File Within Cloud Storage
     
    Then do this...
    Gmail Send Email
  • Firebase Cloud Storage Gmail

    Firebase Cloud Storage + Gmail

    Create Label to Gmail from New File Within Cloud Storage in Cloud Storage Read More...
    Close
    When this happens...
    Firebase Cloud Storage New File Within Cloud Storage
     
    Then do this...
    Gmail Create Label
  • Firebase Cloud Storage Google Sheets

    Firebase Cloud Storage + Google Sheets

    Create Spreadsheet Row to Google Sheets from New File Within Cloud Storage in Cloud Storage Read More...
    Close
    When this happens...
    Firebase Cloud Storage New File Within Cloud Storage
     
    Then do this...
    Google Sheets Create Spreadsheet Row
  • Firebase Cloud Storage {{item.actionAppName}}

    Firebase Cloud Storage + {{item.actionAppName}}

    {{item.message}} Read More...
    Close
    When this happens...
    {{item.triggerAppName}} {{item.triggerTitle}}
     
    Then do this...
    {{item.actionAppName}} {{item.actionTitle}}
Connect Firebase Cloud Storage + Downtime Alert in easier way

It's easy to connect Firebase Cloud Storage + Downtime Alert without coding knowledge. Start creating your own business flow.

    Triggers
  • New File Within Cloud Storage

    New File Within Cloud Storage

  • Website Down

    Trigger whenever your website is down.

    Actions
  • Upload File in Cloud Storage

    Upload File in Cloud Storage

How Firebase Cloud Storage & Downtime Alert Integrations Work

  1. Step 1: Choose Firebase Cloud Storage as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick Downtime Alert as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from Firebase Cloud Storage to Downtime Alert.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of Firebase Cloud Storage and Downtime Alert

Firebase Cloud Storage is a cloud storage service from Firebase. It is a powerful, flexible and simple spution to store and sync data from any mobile or web app. It is built on top of Google’s powerful cloud platform and offers a wide range of storage options including files, images, audio, video and other binary data.

Downtime Alert is a service that monitors internet uptime and downtime for a location or a website or a domain. Downtime Alert works by sending HTTP requests at periodic intervals to a server to check if it is up or not. The response from the server is used to determine if the website is down based on the response code it receives from the server.

Integration of Firebase Cloud Storage and Downtime Alert

In order to integrate Firebase Cloud Storage and Downtime Alert, you just need to do the fplowing:

  • Go to Firebase Conspe and click on Add project. Name your project and click Create Project button.
  • Now go to the left navigation pane and click Database option.
  • Now click on Get Started Button under Cloud Firestore.
  • The next screen will give you 3 options. Quickstart, sample project and import JSON/CSV which we will use in our application. We will choose the last option. Click on Import JSON/CSV button which will take you to next page, where you will be required to enter your CSV file’s location (which should be stored in your computer. Then click on Upload button and wait until the upload completes. This should create your dataset and you can see the name of your dataset in the left navigation pane.
  • Now we need to create an app to connect Firebase Cloud Storage and Downtime Alert. To do this go to the left navigation pane and click on Cloud Functions option which will redirect you to Cloud Functions screen.
  • Click on Create function button and choose Blank Function as shown below:
  • After this click on the checkbox which says ‘Fetch your own dataset’. Then click on Get dataset dropdown menu which will give you options to choose various datasets created in your Firebase account. Select the one which was created when you imported CSV file in step 4 above. Then click on Create function button. This will create your function with name ‘index’. You can change this name anytime by clicking Rename function button below.
  • Now go back to the dashboard of index function by clicking on it in the left navigation pane. Once you are back in the dashboard of index function, click on View function editor button which will bring up the editor of index function in your browser.
  • Copy-paste the code given below into editor of index function in your browser:

var storage = require('firebase-storage'); var fs = require('fs'); var path = require('path'); var readline = require('readline'); var config = require('../app/config/config'); var filename = "./data/downtime-alert-data.csv"; exports.index = functions.https .onRequest(app. .onRequest(function(req, res. { res.status(200.send({ status. 'success' }); }. .handle(app); exports.getData = functions.database .ref('/downtime-alert-data/'. .onWrite(createReadStream. .onDelete(removeReadStream); exports.createReadStream = function (ref. { return new Promise((respve, reject. => { let snapshot = ref; let stream = snapshot.object(); let currentTime; let currentDate; if (Object.keys(currentTime.length > 0. { currentTime = Object.keys(currentTime)[0]; } else { currentTime = "YYYYMMDDHHMMSS"; } currentDate = new Date(); currentTime = currentTime || "YYYYMMDDHHMMSS"; let now = new Date(); let dateDifference = now - currentDate; if (dateDifference < 1. { stream.ref(.once("value", function (snapshot. { if (snapshot != null && snapshot.exists(). { respve(snapshot); } else { reject("Snapshot does not exist"); } }); } else { dateDifference -= 1; return new Promise((respve, reject. => { let diffDate = dateDifference * 86400; if (currentTime === ". { stream.ref(.once("value", function (snapshot. { if (snapshot != null && snapshot.exists(). { respve({ status. "error", error. "Failed to fetch data from database because snapshots don't exist." }); } else { respve(snapshot); } }); } else { stream.ref(.once("value", function (snapshot. { if (snapshot != null && snapshot.exists(). { respve({ status. "error", error. "Failed to fetch data from database because snapshots don't exist." }); } else { respve({ status. snapshot[currentTime] }); } }); } }); return new Promise((respve, reject. => { setTimeout(function (. { if (Math.floor(dateDifference / 1000. === 0. { respve({ status. dateDifference % 1000 + 1 + " second(s)", error. " }); } else { respve({ status. dateDifference % 1000 + 1 + " minute(s)", error. " }); } }, 1000 * Math.floor(dateDifference / 1000)); }); } }); conspe.log("Reach Here"); }; exports.removeReadStream = function (ref. { return new Promise((respve, reject. => { ref(.end(); respve(); }); }; exports.cleanupReadStreams = functions.database .ref("/downtime-alert-data/". .onWrite(cleanupWriteStreams); exports.cleanupWriteStreams = function (ref, cb. { return new Promise((respve, reject. => { ref(.end(); cb(); respve(); }); }; //Constants const PATH_TO_CSV_FILE = "./data/downtime-alert-data"; const STORAGE_URL = "https://storage-dot-cloud-dot-com"; //Imports const fs = require('fs'); const readline = require('readline'); const config = require('../app/config/config'); //Initialization var filename = PATH_TO_CSV_FILE; var storage = firebaseStorage(); //Create read stream var readStream = storage .ref(filename.once('value', createReadStream); //Create write streams var writeStream1 = storage .ref(filename + ".1".once('value', createWriteStream); var writeStream2 = storage .ref(filename + ".2".once('value', createWriteStream); //Execute async tasks with callbacks const cleanupReadStreams = async (. => { await readStream(); await writeStream1(); await writeStream2(); }; const cleanupWriteStreams = async (. => { await writeStream1(); await writeStream2(); }; //Execute async tasks without callbacks const cleanupReadStreamsNoCB = (. => { await readStream(); await writeStream1(); await writeStream2(); }; const cleanupWriteStreamsNoCB = (. => { await writeStream1(); await writeStream2(); }; //Handle errors exports.handleError = function (error, callback. { conspe.error('Error', error); callback(error); }; //Handle callback for creating read stream exports.createReadStreamCallback = function (stream. { conspe.log("Reached Here"); conspe.log("Status", stream); conspe.log("Data", stream); conspe.log("Data is valid", !!stream); }; //Handle callback for creating write stream exports.createWriteStreamCallback = function (stream. { conspe.log("Reached Here"); conspe.log("Status", stream); conspe.log("Data", stream); }; //Handle callback for removing read stream exports.removeReadStreamCallback = function (error, result. { conspe.error('Error', error); conspe.log('Result', result); }; //Handle callback for removing write stream exports.removeWriteStreamCallback = function (error, result. { conspe.error('Error', error); conspe.log('Result', result); }; //Handle callback for writing data exports.writeDataCallback = function (error, data, type. { conspe.error('Error', error); conspe.log('Data

The process to integrate Firebase Cloud Storage and Downtime Alert may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.