Using Query to Show Recent Connection Trends

Use Soracom Query's AI (SQL Assistant) to display the trend of session creations over the past 24 hours.

Prerequisites

You must be subscribed to a Soracom Query plan. For details, see Plan Management.

Step 1: Access Soracom Query

  1. Login to the User Console.

  2. From the Menu, expand Soracom Query and select Soracom Query.

    https://console.soracom.io

    Screenshot of Soracom User Console navigation menu with Soracom Query option highlighted

  3. Click Launch Soracom Query Studio.

    https://console.soracom.io

    Screenshot of Soracom Query page with the Launch Soracom Query Studio button highlighted

  4. Click Advanced.

    https://console.soracom.io

    Screenshot of Soracom Query Studio interface with the Advanced button highlighted

Step 2: Create a Query with SQL Assistant

  1. Enter "Show the trend of session creation counts over the past 24 hours." in the input field at the bottom right of the screen and click Submit icon.

    https://query.soracom.io

    Screenshot of SQL Assistant interface with example query text and Submit button highlighted

    Note that when Agent Mode is enabled, the SQL Assistant will automatically execute the query and attempt to adjust it automatically until it determines the results are correct.

  2. When the SQL query is displayed, click Run Query.

    https://query.soracom.io

    Screenshot showing the generated SQL query with the Run Query button highlighted

    The maximum character limit for SQL queries is 3,000 characters.

    If your SQL query exceeds 3,000 characters, an error will be thrown. If you have exceeded the limit, reduce the number of characters in your SQL query within the allowable amount.

    The SQL execution results will be displayed.

    https://query.soracom.io

    Screenshot showing query results with a graph of session creation trends over the past 24 hours

  3. If you want to modify the displayed SQL query, enter your modifications and click Submit icon.

    https://query.soracom.io

    Screenshot showing the SQL query modification interface with the Submit button highlighted

  4. You can download the SQL execution results as a CSV file.

    https://query.soracom.io

    Screenshot showing the download options for exporting query results as CSV