Skip to main content

Getting started with Insights

Important

The GraphQL Insights API is currently in Early Availability status for customers on the AWS-US cluster. For more information, see GraphQL API policy.

To use Insights, you must first create a product on an AppDirect marketplace and register it with AppDirect.

You can then create an API client to communicate with the marketplace, and use GraphQL APIs to create and populate your dataset, define your metrics, and retrieve data so you can render it in visualizations.

Prerequisites

As prerequisites, you must register your product and create an API client:

Metrics use a variant of SQL, so you should also be familiar with writing SQL queries in order to create them. Once a metric has been created, however, users who do not know SQL can still modify the query indirectly by applying the filters that are available for that metric.

Using the Insights APIs

Once your product is registered and your API client is set up, you can define your data structure, add data to it, and retrieve data using the metrics you have defined:

  1. Create at least one dataset to store the data for your product. See Create a dataset.

  2. Create one or more metrics you can use to query the dataset. See Create a metric.

  3. Push rows of data from your product host to your dataset. See Push data to a dataset.

  4. Use your defined metrics to retrieve data from the dataset for presentation in your own front-end application. See Retrieve data for a metric.

Each time you have new product data, you can push it to the dataset so it will appear the next time you retrieve data.

Was this page helpful?