Useful Queries For Root Cause Analysis
1. Count of events from the previous day
In order to look at how many events were published from the previous/last publishing date, we can do it in two ways -
i. Jump from Monitor tab
This can be done in the following steps -
In the monitor tab, click on the 'jump to last event' button to get to the most recent event
Select the appropriate time bin, in this case, we can select 1D bin to get day-wise aggregated data
Once we have the data in the chart, we can select the most recent bin
Select 'Export bin and feature to analyze' to jump to analyze tab
In the analyze tab, query will be auto-populated based on the Monitor tab selection
Modify the query to count the number of events from the selection
ii. Using date
function in Analyze tab
date
function in Analyze tabTo know how many events were published on the last publishing day, we can use date
function of SQL
Use the following query to query number of events
2. Number of events on last day by output label
If we want to check how many events were published on the last day by the output class, we can use the following query
3. Check events with missing values
If you want to check events where one of the columns is has null values, you can use the isnull
function.
4. Frequency by Categorical column
We query w.r.t to a categorical field. For example, we can count the number of events by geography which is a categorical column using the following query
5. Frequency by Metadata
We can even query w.r.t to a metadata field. For example, if we consider gender to be a metadata column (specified in ModelInfo object), then we can obtain a frequency of events by the metadata field using the following query
Filter Events by Cluster_ID
You can query events with certain cluster_ids if you have custom features defined such as embedding vectors.
↪ Questions? Join our community Slack to talk to a product expert