Resources
Data Source Type: | REST/URL |
Authentication: | 2 Step Authentication |
Sample Query: | https://api.cloudmonitor.ca.com/1.6/rule_stats?nkey=[auth_token]&start_date=2009-10-01 |
API Documentation: | Cloud Monitor API documentation |
Date Ranges: | Klipfolio Date Ranges |
Step-by-Step
Creating a data source using Cloud Monitor
To create a data source using Cloud Monitor data, you need to accomplish 4 tasks:
- Start the data source creation process
- Authenticate with Cloud Monitor
- Craft a query and enter it in Klipfolio
- Edit the query date ranges
Note: This guide assumes that you already have an active Cloud Monitor account.
Step 1: Start the data source creation process
To create a data source using Cloud Monitor, go to the Service Connectors page in Klipfolio and select the REST/URL connector option.
Step 2: Authenticate with Cloud Monitor
- Click the Authentication (OAuth, 2-Step, or Basic) link.
- Select the 2-Step Authentication option.
- Enter the appropriate information and credentials in the field below.
More information: Using 2-Step Authentication
Step 3: Craft a query and enter it in Klipfolio
Cloud Monitor provides many query options through its API documentation.
Use the following URL to generate a session key
https://api.cloudmonitor.ca.com/1.6/acct_login?user=[username]&password=[password]
Enter your query URL in the URL field in the REST connector.
https://api.cloudmonitor.ca.com/1.6/rule_stats?nkey=[auth_token]&start_date=2009-10-01
Note: Replace username and password with your Cloud Monitor credentials.
Step 3: Edit the query date ranges
Many Klips that use Cloud Monitor data need a date range that is dynamic (for example, past 30 days). In this section we're going to change the query from a fixed range to a dynamic one.
- Enter
start-date={date.last30Days}
at the end of your query URL (after the?
). - Enter
&end-date={date.today}
at the end of your query URL (after thestart-date
parameter). - Click Get data.
Note: In addition to your unmodelled data source, you can create a modelled version of your data source at this stage. To create a modelled data source, ensure that the checkbox next to Model your data is selected before clicking Continue.
To learn more about creating a modelled data source, click here. - Click the Continue button once you verify you have retrieved the correct data.
- Save and name your data source.
Common date range expressions:
- {date.today}
- {date.last30Days}
- {date.startOfQuarter}
- And many more...