Schema reference for the objects the v2 API returns.
Alert
Describes an alert type available for querying.
| Attribute | Type | Nullable | Description |
id | string | NO | Opaque identifier for this alert type. Pass this value in the alertIds query parameter of GET /alerts/data to retrieve alert instances. |
name | string | NO | Human-readable display name of the alert type. |
description | string | NO | Description of the condition this alert type detects. |
supportedServerTypes | string array | NO | Server types this alert type applies to (e.g. SqlServerInstance, WindowsMachine). See Entity types. |
AlertData
An alert instance that was active within the requested time range.
| Attribute | Type | Nullable | Description |
alertId | string | NO | ID of the alert type this instance belongs to (matches AlertDto.Id from GET /alerts). |
alertName | string | NO | Display name of the alert type. Empty string when the alert has no name. |
status | AlertStatus | NO | Current lifecycle state of the alert instance at the time of the response, regardless of the queried time range. An alert that was active during a past range may appear as Ended if it has since resolved. Does not reflect whether the alert has been cleared. |
cleared | boolean | NO | Whether the alert has been manually cleared. An alert can be cleared regardless of its status. |
severity | AlertSeverity | NO | Worst severity reached by the alert instance during its lifetime. |
raisedTime | string | NO | UTC timestamp when the alert was first raised. |
endTime | string | YES | UTC timestamp when the alert ended. null when the alert has not yet ended (i.e. status is Active or Event). |
entityId | string | NO | Opaque entity ID for the entity the alert was raised against. Pass this value as an entityId in GET /monitored-servers to retrieve the server's details. |
entityName | string | NO | Display name of the entity the alert was raised against. |
entityTypes | string array | NO | Types of the entity the alert was raised against. See Entity types. |
parentEntity | ParentEntity | YES | The parent entity in the server hierarchy (e.g. the cluster for a SQL Server instance). null for top-level entities with no parent. |
DiskUsage
A logical disk, its space usage and projected growth, and the servers that store data on it.
| Attribute | Type | Nullable | Description |
id | string | NO | Entity Id for the disk. |
name | string | NO | Name of the disk, e.g. the drive letter or mount point. |
label | string | NO | Volume label (Windows) or mount point (Linux) of the disk. |
parentEntity | ParentEntity | NO | The parent entity in the server hierarchy that owns this disk (e.g. the host machine). |
spaceUsedKilobytes | integer | NO | Space currently used on the disk, in kilobytes. |
capacityKilobytes | integer | NO | Total capacity of the disk, in kilobytes. |
projectedSpaceUsedInOneYearKilobytes | integer | YES | Projected space used on the disk in one year's time, in kilobytes. |
projectedDateForFullCapacityUsed | string | YES | UTC date the disk is projected to reach full capacity. |
servers | DiskUsageServer array | NO | Servers associated with the machine that owns this disk. For non-SQL Server instances, this does not guarantee that the instance stores data on this disk. |
DiskUsageServer
A server that stores data on a disk.
| Attribute | Type | Nullable | Description |
serverName | string | NO | Display name of the server. |
serverTypes | string array | NO | Types of the server, e.g. SqlServerInstance or LinuxMachine. See Entity types. |
serverEntityId | string | NO | Opaque entity ID for the server. Pass this value as an entityId in GET /monitored-servers to retrieve the server's details. |
JSendError
| Attribute | Type | Nullable | Description |
status | object | NO | |
message | string | NO | |
JSendFailure
| Attribute | Type | Nullable | Description |
status | object | NO | |
data | object | NO | |
JSendMessageOnlyError
| Attribute | Type | Nullable | Description |
status | object | NO | |
message | string | NO | |
Metric
Describes a metric available for querying.
| Attribute | Type | Nullable | Description |
id | string | NO | Opaque identifier for this metric. Pass this value as metricIds in GET /metrics/data to retrieve sampled data. |
name | string | NO | Human-readable display name of the metric. |
supportedServerTypes | string array | NO | Server types this metric applies to (e.g. WindowsMachine, SqlServerInstance). See Entity types. |
MetricDataPoint
A single sampled value at a point in time.
| Attribute | Type | Nullable | Description |
timestamp | string | NO | UTC timestamp of the sample. |
value | number | NO | The measured value. Units are specified by MetricSeriesDto.DataUnit. |
MetricSeries
A time series of data points for one metric and one monitored entity.
| Attribute | Type | Nullable | Description |
metricId | string | NO | ID of the metric this series belongs to (matches MetricV2Dto.Id). |
metricName | string | NO | Display name of the metric. |
entityTypes | string array | NO | Types of the entity this series belongs to. See Entity types. |
entityId | string | NO | Opaque entity ID for the entity directly attached to metric. Pass this value or any entity id in the server hierarchy as entityIds in GET /metrics/data to restrict future queries to this entity. |
entityName | string | NO | Display name of the entity. |
dataUnit | string | NO | Unit of measurement for the data values (e.g. Milliseconds, Percent). Dimensionless metrics use Number. |
dataPoints | MetricDataPoint array | NO | Ordered list of sampled values over the requested time range. Empty when no data exists for the range. |
parentEntity | ParentEntity | YES | The parent entity in the server hierarchy (e.g. the host machine for a SQL Server instance). null for top-level entities. |
MonitoredServer
Represents a monitored server (server, cluster, or cloud instance).
| Attribute | Type | Nullable | Description |
entityId | string | NO | Opaque, URL-safe identifier for this server. Pass this value to GET /monitored-servers/{entityId} to retrieve the server directly, or as an entityIds filter on other v2 endpoints (e.g. GET /metrics/data). |
name | string | NO | The display name of the server. |
alias | string | YES | Optional user-defined alias for the server. null when no alias has been set. |
entityTypes | string array | NO | The types of the server (e.g. SqlServerInstance, LinuxMachine). A server that is both a host and a database engine has one type for each. See Entity types. |
group | string | NO | The top-level group this server belongs to. |
status | MonitoredEntityStatusCategory | NO | The current monitoring status of the server. |
tags | string array | NO | User-defined tags attached to this server. |
parentEntityId | string | YES | ID of the parent server, if this server is nested (e.g. a SQL Server under a host machine). null for top-level servers. |
ParentEntity
Identifies an entity in the server hierarchy, together with an optional chain of parent entities up to the root.
| Attribute | Type | Nullable | Description |
entityId | string | NO | Opaque entity ID. |
entityName | string | NO | Display name of the entity. |
entityTypes | string array | NO | Types of the entity. An entity that is both a host and a database engine has one type for each. See Entity types. |
parentEntity | ParentEntity | YES | Further ancestor in the hierarchy, if any. null at the top of the hierarchy; the chain terminates when this field is null. |
ProblemDetails
| Attribute | Type | Nullable | Description |
type | string | YES | |
title | string | YES | |
status | integer | YES | |
detail | string | YES | |
instance | string | YES | |
QueryPlanGroup
The work one query plan did over the requested time range. Every figure covers that range only; none of them are the lifetime totals SQL Server holds in its plan cache.
| Attribute | Type | Nullable | Description |
planHandle | string | NO | Handle of the cached plan, as a hexadecimal string. Empty when the plan had already left the plan cache when the sample was taken. |
databaseObjectName | string | YES | Stored procedure, function or trigger the statement belongs to. null for ad-hoc statements and for batches sent by a client. |
executionCount | integer | NO | Executions under this plan during the requested time range. |
averageDurationMilliseconds | number | NO | Mean wall-clock time of one execution, in milliseconds. |
averageCpuTimeMilliseconds | number | NO | Mean CPU time of one execution, in milliseconds. |
averageLogicalReads | number | NO | Mean number of pages read from the buffer cache per execution. |
averageLogicalWrites | number | NO | Mean number of pages written to the buffer cache per execution. |
averagePhysicalReads | number | NO | Mean number of pages read from disk per execution. |
averageMemoryGrantKilobytes | number | NO | Mean memory granted to one execution, in kilobytes. |
averageUsedMemoryGrantKilobytes | number | NO | Mean amount of the granted memory that one execution used, in kilobytes. |
impactScore | number | NO | Load this plan put on the server over the requested time range, as a base-10 logarithm of the total CPU time, logical reads and logical writes. A higher score means more load. The scale is comparative only. |
TopQueriesMongoDb
One query sampled on one server over the requested time range.
| Attribute | Type | Nullable | Description |
serverEntityId | string | NO | Entity Id of the MongoDB instance that ran the query. |
serverEntityTypes | string array | NO | The types of the server that ran the query. See Entity types. |
serverEntityName | string | NO | Display name of the server that ran the query. |
databaseName | string | NO | Database the query ran against. |
queryText | string | NO | Text of the query, on one line. |
queryHash | string | NO | Hash MongoDB assigns to the query shape, as a hexadecimal string. |
planCacheKey | string | NO | Key of the cached query plan MongoDB used to run the query. |
executionCount | integer | NO | Executions of this query during the requested time range. |
averageDurationMilliseconds | number | NO | Mean wall-clock time of one execution, in milliseconds. |
averageKeysExamined | number | NO | Mean number of index keys examined per execution. |
averageDocsExamined | number | NO | Mean number of documents examined per execution. |
TopQueriesMySql
One statement digest sampled on one server over the requested time range.
| Attribute | Type | Nullable | Description |
serverEntityId | string | NO | Entity Id of the MySQL instance that ran the statement. |
serverEntityTypes | string array | NO | The types of the server that ran the statement. See Entity types. |
serverEntityName | string | NO | Display name of the server that ran the statement. |
schemaName | string | NO | Schema the statement ran against. Empty when MySQL reported no schema for the statement. |
queryText | string | NO | Text of the normalized statement digest, on one line. Literal values are replaced with ?. |
digest | string | NO | Hash MySQL assigns to the statement digest, as a hexadecimal string. |
executionCount | integer | NO | Executions of this digest during the requested time range. |
averageDurationMilliseconds | number | NO | Mean wall-clock time of one execution, in milliseconds. |
averageCpuTimeMilliseconds | number | NO | Mean CPU time of one execution, in milliseconds. |
averageRowsRead | number | NO | Mean number of rows examined per execution. |
averageRowsWritten | number | NO | Mean number of rows affected per execution. |
TopQueriesOracle
One statement sampled on one Oracle instance over the requested time range.
| Attribute | Type | Nullable | Description |
serverEntityId | string | NO | Entity Id of the Oracle instance that ran the statement. |
serverEntityTypes | string array | NO | The types of the server that ran the statement. See Entity types. |
serverEntityName | string | NO | Display name of the server that ran the statement. |
containerName | string | NO | Container the statement ran in. |
sqlId | string | NO | SQL ID Oracle assigns to the statement text. |
planHashValue | integer | NO | Hash of the execution plan the statement ran under. |
queryText | string | NO | Text of the statement, on one line. |
executionCount | integer | NO | Executions of this statement during the requested time range. |
averageElapsedTimeMilliseconds | number | NO | Mean wall-clock time of one execution, in milliseconds. |
averageCpuTimeMilliseconds | number | NO | Mean CPU time of one execution, in milliseconds. |
averageUserIoWaitMilliseconds | number | NO | Mean time one execution waited on user I/O, in milliseconds. |
averageShareableMemoryBytes | number | NO | Shared pool memory held by the statement, in bytes, per execution in the range. |
TopQueriesPostgresql
One statement on one database on one server, over the requested time range.
| Attribute | Type | Nullable | Description |
serverEntityId | string | NO | Entity Id of the PostgreSQL server that ran the statement. |
serverEntityTypes | string array | NO | The types of the server that ran the statement. See Entity types. |
serverEntityName | string | NO | Display name of the server that ran the statement. |
databaseName | string | NO | Database the statement ran against. |
queryHash | string | NO | SHA-256 hash Redgate Monitor computes from the statement's normalized text. |
queryText | string | NO | Full text of the statement. |
executionCount | integer | NO | Executions of this statement during the requested time range. |
averageDurationMilliseconds | number | NO | Mean wall-clock time of one execution, in milliseconds. |
averageIoTimeMilliseconds | number | NO | Mean time one execution spent reading or writing blocks from the filesystem, in milliseconds. |
averageBlocksRead | number | NO | Mean number of blocks one execution requested from the operating system because they were not available in shared buffers. |
averageCacheBlocksHit | number | NO | Mean number of blocks one execution read from the buffer cache. |
averageBlocksWritten | number | NO | Mean number of blocks one execution wrote. |
TopQueriesSqlServer
One statement shape on one server and database, together with the query plans SQL Server ran it under. Statements that share a query hash are reported as a single entry.
| Attribute | Type | Nullable | Description |
serverEntityId | string | NO | Entity Id of the SQL Server instance that ran the statement. |
serverEntityTypes | string array | NO | The types of the server that ran the statement. See Entity types. |
serverEntityName | string | NO | Display name of the server that ran the statement. |
databaseName | string | NO | Database the statement ran against. |
queryHash | string | NO | Hash SQL Server assigns to the shape of the statement, as a hexadecimal string. Statements that differ only in their literal values share a hash. Empty when SQL Server reported no hash for the statement. |
queryText | string | NO | Text of the statement, on one line. Long statements are truncated. Where several statements share a query hash, the text of one of them is reported. |
queryPlanGroups | QueryPlanGroup array | NO | One entry per query plan. Statements that share a query hash can each run under a different plan, so an entry reports the figures of the statements that used that plan. |
AlertSeverity
The severity level of an alert instance.
AlertStatus
The lifecycle state of an alert instance.
MonitoredEntityStatusCategory
| Value |
Monitoring |
Suspended |
NotMonitoring |
CredentialDecryptionFailed |
Entity types
The values the entity type fields (Alert.supportedServerTypes, AlertData.entityTypes, DiskUsageServer.serverTypes, Metric.supportedServerTypes, MetricSeries.entityTypes, MonitoredServer.entityTypes, ParentEntity.entityTypes, TopQueriesMongoDb.serverEntityTypes, TopQueriesMySql.serverEntityTypes, TopQueriesOracle.serverEntityTypes, TopQueriesPostgresql.serverEntityTypes, TopQueriesSqlServer.serverEntityTypes) and the supportedServerTypes / entityTypes query parameters can take.
| Value | Description |
AmazonRdsHost | Amazon Web Services RDS host |
AzureFlexHost | Azure Database flexible server host |
AzureManagedInstanceHost | Azure SQL Managed Instance host |
AzureSqlDatabase | Azure SQL database on a logical server |
AzureSqlServer | Azure SQL logical server |
Cluster | Windows Server failover cluster |
GoogleCloudHost | Google Cloud SQL host |
LinuxMachine | Linux host machine |
MongoDbInstance | MongoDB database instance |
MySqlInstance | MySQL database instance |
OracleDataGuard | Oracle Data Guard configuration |
OracleInstance | Oracle Database instance |
OracleRacCluster | Oracle Real Application Clusters database |
PostgresInstance | PostgreSQL instance |
SqlServerInstance | SQL Server instance, on any platform |
WindowsMachine | Windows host machine |