Connectors / Service / Logic Monitor

Artisan IMG > Logic Monitor (logicmonitor)

Logic Monitor

Logic Monitor builds workflows to automate performance monitoring.

Overview

Logic Monitor is the leading SaaS-based IT Infrastructure Monitoring Platform for enterprise IT. With it you can monitor on-premises, cloud and hybrid datacenters from a single platform.

Authentication

When using the Logic Monitor connector, the first thing you'll need to do is go to your Tray.io account page and select your workflow. Once in the workflow builder, on the LHS panel, search for and drag the Logic Monitor connector onto your workflow.

With the new connector step highlighted, in the properties panel on the right click on 'New Authentication' under the 'Settings' heading.

logicmonitor-auth

This will result in a Tray.io authentication pop-up window, that should look like this:

logicmonitor-popup

As you can see, besides from naming your authentication appropriately, you will need your 'Account Name', 'Access ID', and 'Access key' (please scroll down within the popup window in order to view the final required key).

In order to get these fields, head to your Logic Monitor dashboard.

Your account name can be viewed in your Logic Monitor URL. For example: https://ACCOUNTNAME.logicmonitor.com/santaba/rest, where ACCOUNTNAME is your assigned company name ie. "docsdemo". It should look something like this:

logicmonitor-account-name

In order to get your account ID & access key, navigate to the User & Roles panel (go to the left hand side menu, and click through: "Settings" -> "User Access" -> "User & Roles").

Select the "API Tokens" tab, and look for the small plus button in the right hand corner.

logicmonitor-dashboard

This will open up a new section that will allow you to find and create/ copy one of your User's account ID and access Key's. Using the search field, select your user from the dropdown options available:

logicmonitor-search-api

As you can see, the fields will auto-populate. Copy this information and paste it into you your original Tray.io authentication popup window.

logicmonitor-copy-api

Once you verify your account

Available Operations

The examples below show one or two of the available connector operations in use.

Please see the Full Operations Reference at the end of this page for details on all available operations for this connector.

Example usage

Below is an example of a way in which you could potentially use the Logic Monitor connector to programmatically manage the user roles in your account. In the example below we take the privileges from an existing role and assign them automatically to a new role.

TRAY POTENTIAL: Tray.io is extremely flexible. By design there is no fixed way of working with it - you can pull whatever data you need from other services and work with it using our core and helper connectors. This demo which follows shows only one possible way of working with Tray.io and the Logic Monitor connector. Once you've finished working through this example please see our Introduction to working with data and jsonpaths page and Data Guide for more details.

The steps will be as follows:

  1. List all current roles within your organization

  2. Get data for a specific role

  3. Use data from that role to create a new role

The final outcome should look like this:

logicmonitor-complete-workflow

1 - Setup manual trigger and List roles operation

Once you have clicked 'Create new workflow' on your main Tray.io dashboard (and named said new workflow), select the Manual trigger from the trigger options available:

logicmonitor-manual-trigger

Once you have been redirected to the Tray.io workflow dashboard, from the connectors panel the left, add a Logic Monitor connector to your second step. Set the operation to 'List roles'.

logicmonitor-list-roles

With the list operation you have the ability to customize the response you get back from Logic Monitor using the 'Filter', 'Sort', and 'Fields' input fields. In example above, we keep things simple and add no customization, which means it will return a standard response from the Logic Monitor API as opposed to a tailored one, but as always feel free to experiment with you own workflows.

2 - Get details for a specific role

Now that we have a list of roles, the next step in our workflow will be to get the details of a specific role. We do that by using the 'Get role' operation.

This operation requires an ID input that is taken from the previous step, via the connector snake. The output should be similar to this: $.steps.logicmonitor-1.items[0].id.

CONNECTOR-SNAKE: The simplest and easiest way to generate your jsonpaths is to use our feature called the Connector-snake. Please see the main page for more details.

logicmonitor-get-role

In the image above we select the first record returned from the output of the previous Logic Monitor step. The orange circle denotes that this input is the result of jsonpaths (you will note that the input type has also changed to the jsonpath symbol).

JSONPATHS: For more information on what jsonpaths are and how to use jsonpaths with Tray.io, please see our Intro page and Data Guide for more details.

.

3 - Create a new role

$.steps.logicmonitor-2.privileges

The final step of the workflow is to pull data from the previous step to create a new role, based on the settings from the role we singled out on the previous step (meaning we can replicate the privileges).

logicmonitor-create-role

And that's it. We've built a basic workflow that allows you to pull information from your Logic Monitor account in order to create a new role!

All Operations

Latest version:

1.0

Create collector

Creates a new collector

Create collector group

Creates a new collector group

Create dashboard

Creates a new dashboard

Create dashboard group

Creates a new dashboard group

Create device

Creates a new device

Create device group

Creates a new device group

Create device group property

Creates a new device group property

Create escalation chain

Create an escalation chain

Create role

Create a role

Create website group

Create a new website group

Create website ping check

Add a new website with a ping check

Create website service check

Add a new website with a web check

Delete escalation chain

Deletes an escalation chain

Delete role

Deletes a role

Delete website

Delete a website

Delete website group

Delete a website group

Get collector

Gets a specific collector

Get collector group

Gets a specific collector group

Get dashboard

Gets a specific dashboard

Get dashboard group

Gets a specific dashboard group

Get device

Gets a specific device

Get device group

Gets a specific device group

Get escalation chain

Gets a specific escalation chain

Get role

Gets a specific role

Get website

Gets a specific website

Get website group

Gets a specific website group

Update website service check

Update website

List Users

Get a list of all user

List collector groups

Get a list of all collector groups

List collectors

Get a list of all Collectors

List dashboard groups

Get a list of all dashboard groups

List dashboards

Get a list of all dashboards

List device group properties

Lists a specific device groups properties

List device groups

Get a list of all device groups

List device properties

Lists a specific device properties

List devices

Get a list of all devices

List escalation chains

Get a list of all escalation chains

List roles

Get a list of all roles

List website groups

Get a list of all website groups

List website properties

Returns inherited properties i.e. properties set at the group level by querying the properties sub-resource for a specific website

List websites

Get a list of all websites

Update collector

Updates a collector

Update collector group

Updates a collector group

Update dashboard

Updates a dashboard

Update dashboard group

Updates a dashboard group

Update device

Updates a device

Update device group

Updates a device group

Update device group property

Update a device group custom property.

Update escalation chain

Update an escalation chain

Update role

Update a role

Update website group

Update a website group

Update website ping check

Update website