Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Monitoring the Dataset module you keep track of Database Connections to ensure your data is accessed and updated correctly.

On this page:

Table of Contents
maxLevel3


Monitoring Datasets

When monitoring the Dataset module, you will be monitoring monitor the bahavior behavior of connected DBs. The To execute the monitoring, you will use 3 three methods to ensure the Database is connected you have data access:

  • Is Started: Check if your Database is running.
  • Query Execution Time:
Evaluates
  • Evaluate the
Queries reponse
  • Query response time.
  • Connection String: Verifies if the
Dabase is connected.Each one of these methods are describe in more detail next
  • Database is correctly configured.

Is Started

This property indicates if the Dataset is initialized and connected to the databaseDatabase. You can use it to check if the dataset Dataset is currently running. The code block below shows an example of how to execute executing this method using Scripts.

Code Block
languagec#
titleExample
bool isStarted = @Dataset.DB.YourDatabaseName.IsStarted;

Note that the returning value is a boolean. If the received value is true, the Database is initialized and connected.

Query Execution Time

You can measure the execution time of a query by checking the time before and after executing the query. See the example The code below:block below shows an example of executing this method using Scripts.

Code Block
languagec#
titleExample
DateTime startTime = DateTime.Now; 
@Dataset.Query.YourQueryName.SelectCommand(); 
DateTime endTime = DateTime.Now; 
TimeSpan executionTime = endTime - startTime;

The total execution time will be available on the executionTime variable.

Connection String

You can check the connection string used for the database to ensure it is configured correctly. See Use the example code below:available below to execute this monitoring method.

Code Block
languagec#
titleExample
string connectionString = @Dataset.DB.YourDatabaseName.ConnectionString;


Note

Please note that these are just examples, and you will need to replace YourDatabaseName and YourQueryNamewith the actual names of the database and query you are working on within the platform.



In this section...

Page Tree
root@parent
spacesV10