Models

Schema reference for the objects the v2 API returns.

Alert

Describes an alert type available for querying.

AttributeTypeNullableDescription
idstringNOOpaque identifier for this alert type. Pass this value in the alertIds query parameter of GET /alerts/data to retrieve alert instances.
namestringNOHuman-readable display name of the alert type.
descriptionstringNODescription of the condition this alert type detects.
supportedServerTypesstring arrayNOServer 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.

AttributeTypeNullableDescription
alertIdstringNOID of the alert type this instance belongs to (matches AlertDto.Id from GET /alerts).
alertNamestringNODisplay name of the alert type. Empty string when the alert has no name.
statusAlertStatusNOCurrent 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.
clearedbooleanNOWhether the alert has been manually cleared. An alert can be cleared regardless of its status.
severityAlertSeverityNOWorst severity reached by the alert instance during its lifetime.
raisedTimestringNOUTC timestamp when the alert was first raised.
endTimestringYESUTC timestamp when the alert ended. null when the alert has not yet ended (i.e. status is Active or Event).
entityIdstringNOOpaque 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.
entityNamestringNODisplay name of the entity the alert was raised against.
entityTypesstring arrayNOTypes of the entity the alert was raised against. See Entity types.
parentEntityParentEntityYESThe 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.

AttributeTypeNullableDescription
idstringNOEntity Id for the disk.
namestringNOName of the disk, e.g. the drive letter or mount point.
labelstringNOVolume label (Windows) or mount point (Linux) of the disk.
parentEntityParentEntityNOThe parent entity in the server hierarchy that owns this disk (e.g. the host machine).
spaceUsedKilobytesintegerNOSpace currently used on the disk, in kilobytes.
capacityKilobytesintegerNOTotal capacity of the disk, in kilobytes.
projectedSpaceUsedInOneYearKilobytesintegerYESProjected space used on the disk in one year's time, in kilobytes.
projectedDateForFullCapacityUsedstringYESUTC date the disk is projected to reach full capacity.
serversDiskUsageServer arrayNOServers 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.

AttributeTypeNullableDescription
serverNamestringNODisplay name of the server.
serverTypesstring arrayNOTypes of the server, e.g. SqlServerInstance or LinuxMachine. See Entity types.
serverEntityIdstringNOOpaque entity ID for the server. Pass this value as an entityId in GET /monitored-servers to retrieve the server's details.

JSendError

AttributeTypeNullableDescription
statusobjectNO
messagestringNO

JSendFailure

AttributeTypeNullableDescription
statusobjectNO
dataobjectNO

JSendMessageOnlyError

AttributeTypeNullableDescription
statusobjectNO
messagestringNO

Metric

Describes a metric available for querying.

AttributeTypeNullableDescription
idstringNOOpaque identifier for this metric. Pass this value as metricIds in GET /metrics/data to retrieve sampled data.
namestringNOHuman-readable display name of the metric.
supportedServerTypesstring arrayNOServer types this metric applies to (e.g. WindowsMachine, SqlServerInstance). See Entity types.

MetricDataPoint

A single sampled value at a point in time.

AttributeTypeNullableDescription
timestampstringNOUTC timestamp of the sample.
valuenumberNOThe measured value. Units are specified by MetricSeriesDto.DataUnit.

MetricSeries

A time series of data points for one metric and one monitored entity.

AttributeTypeNullableDescription
metricIdstringNOID of the metric this series belongs to (matches MetricV2Dto.Id).
metricNamestringNODisplay name of the metric.
entityTypesstring arrayNOTypes of the entity this series belongs to. See Entity types.
entityIdstringNOOpaque 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.
entityNamestringNODisplay name of the entity.
dataUnitstringNOUnit of measurement for the data values (e.g. Milliseconds, Percent). Dimensionless metrics use Number.
dataPointsMetricDataPoint arrayNOOrdered list of sampled values over the requested time range. Empty when no data exists for the range.
parentEntityParentEntityYESThe 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).

AttributeTypeNullableDescription
entityIdstringNOOpaque, 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).
namestringNOThe display name of the server.
aliasstringYESOptional user-defined alias for the server. null when no alias has been set.
entityTypesstring arrayNOThe 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.
groupstringNOThe top-level group this server belongs to.
statusMonitoredEntityStatusCategoryNOThe current monitoring status of the server.
tagsstring arrayNOUser-defined tags attached to this server.
parentEntityIdstringYESID 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.

AttributeTypeNullableDescription
entityIdstringNOOpaque entity ID.
entityNamestringNODisplay name of the entity.
entityTypesstring arrayNOTypes of the entity. An entity that is both a host and a database engine has one type for each. See Entity types.
parentEntityParentEntityYESFurther ancestor in the hierarchy, if any. null at the top of the hierarchy; the chain terminates when this field is null.

ProblemDetails

AttributeTypeNullableDescription
typestringYES
titlestringYES
statusintegerYES
detailstringYES
instancestringYES

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.

AttributeTypeNullableDescription
planHandlestringNOHandle of the cached plan, as a hexadecimal string. Empty when the plan had already left the plan cache when the sample was taken.
databaseObjectNamestringYESStored procedure, function or trigger the statement belongs to. null for ad-hoc statements and for batches sent by a client.
executionCountintegerNOExecutions under this plan during the requested time range.
averageDurationMillisecondsnumberNOMean wall-clock time of one execution, in milliseconds.
averageCpuTimeMillisecondsnumberNOMean CPU time of one execution, in milliseconds.
averageLogicalReadsnumberNOMean number of pages read from the buffer cache per execution.
averageLogicalWritesnumberNOMean number of pages written to the buffer cache per execution.
averagePhysicalReadsnumberNOMean number of pages read from disk per execution.
averageMemoryGrantKilobytesnumberNOMean memory granted to one execution, in kilobytes.
averageUsedMemoryGrantKilobytesnumberNOMean amount of the granted memory that one execution used, in kilobytes.
impactScorenumberNOLoad 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.

AttributeTypeNullableDescription
serverEntityIdstringNOEntity Id of the MongoDB instance that ran the query.
serverEntityTypesstring arrayNOThe types of the server that ran the query. See Entity types.
serverEntityNamestringNODisplay name of the server that ran the query.
databaseNamestringNODatabase the query ran against.
queryTextstringNOText of the query, on one line.
queryHashstringNOHash MongoDB assigns to the query shape, as a hexadecimal string.
planCacheKeystringNOKey of the cached query plan MongoDB used to run the query.
executionCountintegerNOExecutions of this query during the requested time range.
averageDurationMillisecondsnumberNOMean wall-clock time of one execution, in milliseconds.
averageKeysExaminednumberNOMean number of index keys examined per execution.
averageDocsExaminednumberNOMean number of documents examined per execution.

TopQueriesMySql

One statement digest sampled on one server over the requested time range.

AttributeTypeNullableDescription
serverEntityIdstringNOEntity Id of the MySQL instance that ran the statement.
serverEntityTypesstring arrayNOThe types of the server that ran the statement. See Entity types.
serverEntityNamestringNODisplay name of the server that ran the statement.
schemaNamestringNOSchema the statement ran against. Empty when MySQL reported no schema for the statement.
queryTextstringNOText of the normalized statement digest, on one line. Literal values are replaced with ?.
digeststringNOHash MySQL assigns to the statement digest, as a hexadecimal string.
executionCountintegerNOExecutions of this digest during the requested time range.
averageDurationMillisecondsnumberNOMean wall-clock time of one execution, in milliseconds.
averageCpuTimeMillisecondsnumberNOMean CPU time of one execution, in milliseconds.
averageRowsReadnumberNOMean number of rows examined per execution.
averageRowsWrittennumberNOMean number of rows affected per execution.

TopQueriesOracle

One statement sampled on one Oracle instance over the requested time range.

AttributeTypeNullableDescription
serverEntityIdstringNOEntity Id of the Oracle instance that ran the statement.
serverEntityTypesstring arrayNOThe types of the server that ran the statement. See Entity types.
serverEntityNamestringNODisplay name of the server that ran the statement.
containerNamestringNOContainer the statement ran in.
sqlIdstringNOSQL ID Oracle assigns to the statement text.
planHashValueintegerNOHash of the execution plan the statement ran under.
queryTextstringNOText of the statement, on one line.
executionCountintegerNOExecutions of this statement during the requested time range.
averageElapsedTimeMillisecondsnumberNOMean wall-clock time of one execution, in milliseconds.
averageCpuTimeMillisecondsnumberNOMean CPU time of one execution, in milliseconds.
averageUserIoWaitMillisecondsnumberNOMean time one execution waited on user I/O, in milliseconds.
averageShareableMemoryBytesnumberNOShared 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.

AttributeTypeNullableDescription
serverEntityIdstringNOEntity Id of the PostgreSQL server that ran the statement.
serverEntityTypesstring arrayNOThe types of the server that ran the statement. See Entity types.
serverEntityNamestringNODisplay name of the server that ran the statement.
databaseNamestringNODatabase the statement ran against.
queryHashstringNOSHA-256 hash Redgate Monitor computes from the statement's normalized text.
queryTextstringNOFull text of the statement.
executionCountintegerNOExecutions of this statement during the requested time range.
averageDurationMillisecondsnumberNOMean wall-clock time of one execution, in milliseconds.
averageIoTimeMillisecondsnumberNOMean time one execution spent reading or writing blocks from the filesystem, in milliseconds.
averageBlocksReadnumberNOMean number of blocks one execution requested from the operating system because they were not available in shared buffers.
averageCacheBlocksHitnumberNOMean number of blocks one execution read from the buffer cache.
averageBlocksWrittennumberNOMean 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.

AttributeTypeNullableDescription
serverEntityIdstringNOEntity Id of the SQL Server instance that ran the statement.
serverEntityTypesstring arrayNOThe types of the server that ran the statement. See Entity types.
serverEntityNamestringNODisplay name of the server that ran the statement.
databaseNamestringNODatabase the statement ran against.
queryHashstringNOHash 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.
queryTextstringNOText 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.
queryPlanGroupsQueryPlanGroup arrayNOOne 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.

Value
Low
Medium
High

AlertStatus

The lifecycle state of an alert instance.

Value
Event
Active
Ended

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.

ValueDescription
AmazonRdsHostAmazon Web Services RDS host
AzureFlexHostAzure Database flexible server host
AzureManagedInstanceHostAzure SQL Managed Instance host
AzureSqlDatabaseAzure SQL database on a logical server
AzureSqlServerAzure SQL logical server
ClusterWindows Server failover cluster
GoogleCloudHostGoogle Cloud SQL host
LinuxMachineLinux host machine
MongoDbInstanceMongoDB database instance
MySqlInstanceMySQL database instance
OracleDataGuardOracle Data Guard configuration
OracleInstanceOracle Database instance
OracleRacClusterOracle Real Application Clusters database
PostgresInstancePostgreSQL instance
SqlServerInstanceSQL Server instance, on any platform
WindowsMachineWindows host machine

This documentation contains proprietary information and is protected by copyright law.
Copyright © 2026 Red Gate Software Limited. All rights reserved


Didn't find what you were looking for?