DB24 LogoDB24 Docs_

    Integration

    Last updated: March 13, 2026

    DB24 Datastore – API Views Reference

    The api schema exposes a set of version-controlled views designed as the stable, supported interface for external integrations. These views provide safe, read-only access to curated DB24 data without risk of breaking changes.

    Use the synonym (without _vX suffix) to always target the latest version of each view.

    Customers building integrations should always consume data through these views. The contract of each version is guaranteed — columns and semantics will not change within a version.


    Overview

    ViewDescriptionSinceStatus
    AiQ_InstanceScoresOverall AiQ score per instance over time2026.1Active
    AiQ_InstanceScores_LatestMost recent AiQ instance scores2026.1Active
    AiQ_MainCategoryScoresAiQ scores by main category over time2026.1Active
    AiQ_MainCategoryScores_LatestMost recent main category scores2026.1Active
    AiQ_ParameterScoresGranular AiQ scores at parameter level2026.1Active
    AiQ_ParameterScores_LatestMost recent parameter scores2026.1Active
    AiQ_SubCategoryScoresAiQ scores by sub-category over time2026.1Active
    AiQ_SubCategoryScores_LatestMost recent sub-category scores2026.1Active
    AlertsRuntime warnings and errors from DB242026.1Active
    BackupsFull backup history across all vendors2026.1Active
    BackupStatusPer-database latest backup status2026.1Active
    ChangesDDL change tracking2026.1Active
    ConnectionsSampled connection info with activity metrics2026.2Active
    Connections_v1Per-snapshot connection details2026.1Deprecated (2026.2)
    DatabaseEngagementLast known data access per database2026.1Active
    DatabaseUsersDatabase-level users, roles and permissions2026.1Active
    DatabasesDatabase files and properties2026.1Active
    DB24BackupErrorsBackup errors captured by extended events2026.1Active
    InstancesComprehensive instance metadata2026.1Active
    JobsSQL Server Agent jobs and schedules2026.1Active
    JobRunsJob execution history2026.1Active
    KeyValueCustom key-value metadata on instances/databases2026.1Active
    LifeCycleAdvisorVersion lifecycle and Microsoft support status2026.1Active
    LoginsServer-level logins, roles and permissions2026.1Active
    MaintenanceLogsUnified maintenance operation log2026.1Active
    PatchAdvisorRecommended patch targets per instance2026.1Active
    SQLErrorLogsRaw SQL Server error log entries2026.1Active
    SQLErrorLogsByDayAggregated error log counts per day2026.1Active
    TagsTags assigned to instances and databases2026.1Active
    VolumesCurrent disk volume information2026.1Active
    VolumeHistoryHistorical volume capacity over time2026.1Active

    View Details

    api.AiQ_InstanceScores

    Overall AiQ score per instance over time. Use the _Latest variant for current scores only.

    VersionView nameStatusUsage
    v1api.AiQ_InstanceScores_v1ActiveSELECT * FROM api.AiQ_InstanceScores
    ColumnDescription
    InstanceIdInternal instance identifier
    InstanceNameDisplay name of the SQL Server instance
    ScoreCalculated AiQ instance score
    TimestampWhen the score was recorded

    api.AiQ_InstanceScores_Latest

    Convenience view returning only the most recent AiQ instance scores. Same columns as AiQ_InstanceScores (excluding Id).

    VersionView nameStatusUsage
    v1api.AiQ_InstanceScores_Latest_v1ActiveSELECT * FROM api.AiQ_InstanceScores_Latest

    api.AiQ_MainCategoryScores

    AiQ scores broken down by main category per instance over time.

    VersionView nameStatusUsage
    v1api.AiQ_MainCategoryScores_v1ActiveSELECT * FROM api.AiQ_MainCategoryScores
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    NameMain category name
    ScoreCategory score
    WeightCategory weight in the overall calculation
    DescriptionCategory description
    TimestampWhen the score was recorded

    api.AiQ_MainCategoryScores_Latest

    Most recent main category scores only. Same columns as AiQ_MainCategoryScores (excluding Id).

    VersionView nameStatusUsage
    v1api.AiQ_MainCategoryScores_Latest_v1ActiveSELECT * FROM api.AiQ_MainCategoryScores_Latest

    api.AiQ_ParameterScores

    Granular AiQ scores at the individual parameter level, including category hierarchy.

    VersionView nameStatusUsage
    v1api.AiQ_ParameterScores_v1ActiveSELECT * FROM api.AiQ_ParameterScores
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    MainCategoryNameParent main category
    SubCategoryNameParent sub category
    NameParameter name
    ScoreParameter score
    WeightParameter weight
    DescriptionParameter description
    InstructionsRemediation / improvement guidance
    CriticalWhether this parameter is flagged as critical
    ParameterId / MainCategoryId / SubCategoryIdForeign key references
    TimestampWhen the score was recorded

    api.AiQ_ParameterScores_Latest

    Most recent parameter scores only. Same columns as AiQ_ParameterScores (excluding Id).

    VersionView nameStatusUsage
    v1api.AiQ_ParameterScores_Latest_v1ActiveSELECT * FROM api.AiQ_ParameterScores_Latest

    api.AiQ_SubCategoryScores

    AiQ scores at the sub-category level per instance over time.

    VersionView nameStatusUsage
    v1api.AiQ_SubCategoryScores_v1ActiveSELECT * FROM api.AiQ_SubCategoryScores
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    MainCategoryNameParent main category
    NameSub category name
    ScoreSub category score
    WeightSub category weight
    DescriptionSub category description
    MainCategoryIdForeign key to main category
    TimestampWhen the score was recorded

    api.AiQ_SubCategoryScores_Latest

    Most recent sub-category scores only. Same columns as AiQ_SubCategoryScores (excluding Id).

    VersionView nameStatusUsage
    v1api.AiQ_SubCategoryScores_Latest_v1ActiveSELECT * FROM api.AiQ_SubCategoryScores_Latest

    api.Alerts

    Runtime alerts (warnings and errors) from the DB24 log.

    VersionView nameStatusUsage
    v1api.Alerts_v1ActiveSELECT * FROM api.Alerts
    ColumnDescription
    IdAlert identifier
    InstanceId / InstanceNameInstance identifiers
    TimestampWhen the alert was logged
    LogLevelWarning or Error
    ObjectNameSource object that raised the alert
    MessageAlert message text
    Severity / State / ErrorCodeSQL Server error metadata
    LineNumberLine number in the source object
    AdditionalInfoExtra context, if available

    api.Backups

    Full backup history across all vendors (native, third-party).

    VersionView nameStatusUsage
    v1api.Backups_v1ActiveSELECT * FROM api.Backups
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbNameDatabase name
    Vendor / VendorDescriptionBackup tool used
    BackupTypeFull, Differential, Log, etc.
    BackupStart / BackupFinishBackup time window
    DurationMinDuration in minutes
    BackupSizeMB / CompressedBackupSizeMBSize metrics
    BackupFileBackup file path
    IsCompressed / IsCopyOnly / IsSnapshot / IsEncrypted / IsDamagedBackup flags

    api.BackupStatus

    Per-database backup status showing the latest backup of any type and the latest full backup. Only includes online, non-tempdb databases seen within the last month.

    VersionView nameStatusUsage
    v1api.BackupStatus_v1ActiveSELECT * FROM api.BackupStatus
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers
    RecoveryModel / ReadOnlyDatabase properties
    IsExcludedWhether the database is excluded from backup monitoring
    BackupStart / DaysSinceLastBackupLatest backup (any type)
    BackupSize / CompressedBackupSize / BackupFile / BackupTypeLatest backup details
    LastFullBackupStart / DaysSinceLastFullBackupLatest full backup
    LastFullBackupSize / LastFullCompressedBackupSize / LastFullBackupFileFull backup details

    api.Changes

    DDL change tracking — schema and object changes captured from monitored instances.

    VersionView nameStatusUsage
    v1api.Changes_v1ActiveSELECT * FROM api.Changes
    ColumnDescription
    IdChange record identifier
    EventDateWhen the change occurred
    InstanceId / InstanceNameInstance identifiers
    DbNameDatabase where the change occurred
    ObjectType / ObjectNameChanged object
    EventTypeType of DDL event (e.g. ALTER_TABLE)
    LoginNameWho made the change
    CommandThe DDL command executed

    api.Connections

    Sampled connection information with activity metrics per connection over time.

    VersionView nameStatusUsage
    v1api.Connections_v1Deprecated (2026.2)SELECT * FROM api.Connections_v1
    v2api.Connections_v2ActiveSELECT * FROM api.Connections

    Connections_v1 was introduced in 2026.1 and is deprecated as of 2026.2. It exposed per-snapshot connection details including CommandType, CommandDetail, RowCount, Reads, Writes, CPUTimeMs, and TotalTimeMs. Migrate to Connections_v2 for the new sampling-based structure.

    ColumnDescription
    IdConnection record identifier
    InstanceId / InstanceNameInstance identifiers
    EventDateDayDate partition
    ConnectionId / SPIDSQL Server connection identifiers
    FirstSeenAt / LastSeenAtConnection lifetime window
    SampleCount / ActiveSampleCount / IdleSampleCount / ActiveSamplePctActivity sampling metrics
    IsSqlServerInternalWhether the connection is internal to SQL Server
    LoginLogin name (defaults to null / empty if blank)
    RemoteHostName / RemoteIPAddress / RemoteTCPPortRemote endpoint
    LocalIPAddress / LocalTCPPortLocal endpoint
    NetworkProtocol / AuthenticationScheme / EncryptedConnectionConnection properties
    DatabaseName / Program / JobNameSession context
    LastStatusLast observed connection status

    api.DatabaseEngagement

    Shows last known data access per database, useful for identifying unused databases. System databases are excluded.

    VersionView nameStatusUsage
    v1api.DatabaseEngagement_v1ActiveSELECT * FROM api.DatabaseEngagement
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbNameDatabase name
    StateDatabase state
    LastUsedTableSchema-qualified table name of last access (No activity recorded if none)
    LastDataAccessDate of last recorded data access
    NotUsedSinceDaysDays since last access (-1 if no activity recorded)

    api.DatabaseUsers

    Database-level users with their roles and permissions.

    VersionView nameStatusUsage
    v1api.DatabaseUsers_v1ActiveSELECT * FROM api.DatabaseUsers
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbNameDatabase name
    UserNameDatabase user name
    IsDBOwnerWhether the user is the database owner
    TypeDescUser type
    CreateDate / ModifyDateUser metadata
    DBUserRolesAssigned database roles
    GrantedPermissions / GrantedWithPermissions / DeniedPermissionsPermission sets
    TimestampData collection timestamp

    api.Databases

    Database files and properties across all monitored instances.

    VersionView nameStatusUsage
    v1api.Databases_v1ActiveSELECT * FROM api.Databases
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers
    LogicalFileName / PhysicalFileName / VolumeFile location
    Type / FileIdFile type (rows/log) and file ID
    State / UserAccess / RecoveryModel / CompatLevelDatabase settings
    FileSizeMB / SpaceUsedMB / SpaceFreeMB / SpaceFreePercentSpace metrics
    Collation / ReadOnly / AutoClose / AutoShrink / PageVerifyConfiguration flags
    IsEncryptionOn / EncryptionKey* / EncryptionCertificate*Encryption details
    TimestampData collection timestamp

    api.DB24BackupErrors

    Backup-related errors captured by DB24's extended events.

    VersionView nameStatusUsage
    v1api.DB24BackupErrors_v1ActiveSELECT * FROM api.DB24BackupErrors
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers
    EventName / EventTimeEvent metadata
    ErrorNumber / MessageError details
    SqlTextThe SQL statement that caused the error

    api.Instances

    Comprehensive instance-level information — the primary entry point for instance metadata.

    VersionView nameStatusUsage
    v1api.Instances_v1ActiveSELECT * FROM api.Instances
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    Status / LastSuccessfulPingMonitoring status
    ServerName / MachineName / PlatformHost information
    InstallationDate / LastRestartInstance lifecycle
    MajorVersion / ProductVersion / SQLServerVersion / EditionVersion info
    IsSupportedWhether the SQL Server version is currently supported
    VersionReleaseDate / DaysSinceReleasePatch age
    DatabaseCountNumber of databases on the instance
    InstanceSizeGBTotal instance size
    Cores / PhysCPU / MAXDOP / CostThresholdForParallellismCPU configuration
    MinMemMB / MaxMemMB / OSRAMMBMemory configuration
    IsClustered / ActiveNode / IsHADREnabledHigh availability
    AuthenticationMode / AuditLevel / IsSALoginEnabledSecurity settings
    InstanceScore / InstanceScore4WeeksAgo / InstanceScoreFirstAiQ score trend
    SystemVersionCodeDB24 agent version
    TimestampData collection timestamp

    This view includes many additional columns for detailed configuration and security posture. See the full column list in the SQL definition.


    api.Jobs

    SQL Server Agent jobs and their schedules. Returns the latest snapshot per job.

    VersionView nameStatusUsage
    v1api.Jobs_v1ActiveSELECT * FROM api.Jobs
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    JobNameJob name
    JobEnabled / ScheduleEnabledEnable flags
    ScheduleName / Frequency / SubnFrequencySchedule definition
    StartTime / EndTime / NextRunDate / NextRunTimeTiming
    MaxDurationMinutes / MinDurationMinutes / AvgDurationMinutesHistorical duration stats
    FailNotifyName / FailNotifyEmailFailure notification config
    TimestampData collection timestamp

    api.JobRuns

    Job execution history with run status and messages.

    VersionView nameStatusUsage
    v1api.JobRuns_v1ActiveSELECT * FROM api.JobRuns
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    JobName / JobIdJob identifiers
    EnabledWhether the job is enabled
    DescriptionJob description
    DateCreated / DateModifiedJob metadata
    LastRunDate / LastRunStatusMost recent run
    MessageRun result message

    api.KeyValue

    Custom key-value metadata attached to instances or databases.

    VersionView nameStatusUsage
    v1api.KeyValue_v1ActiveSELECT * FROM api.KeyValue
    ColumnDescription
    IdRecord identifier
    Key / ValueThe key-value pair
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers (nullable — instance-level if null)

    api.LifeCycleAdvisor

    SQL Server version lifecycle and Microsoft support status per instance.

    VersionView nameStatusUsage
    v1api.LifeCycleAdvisor_v1ActiveSELECT * FROM api.LifeCycleAdvisor
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    EditionSQL Server edition
    InstallationDateWhen SQL Server was installed
    SQLServerVersion / VersionReleasedInstalled version and its release date
    MicrosoftMainstreamSupportEndsEnd of Microsoft mainstream support
    MicrosoftSupported1 if currently supported, 0 otherwise

    api.Logins

    Server-level logins with roles, permissions, and password policy status.

    VersionView nameStatusUsage
    v1api.Logins_v1ActiveSELECT * FROM api.Logins
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    LoginName / TypeDescLogin name and type
    IsSysadmin / IsDisabledPrivilege and status flags
    ServerRolesAssigned server roles
    GrantedPermissions / GrantedWithPermissions / DeniedPermissionsPermission sets
    EnforcedPasswordPolicy / EnforcedPasswordExpirationPassword policy status
    TimestampData collection timestamp

    api.MaintenanceLogs

    Unified maintenance log combining index rebuilds/reorgs, integrity checks, statistics updates, and size protection operations.

    VersionView nameStatusUsage
    v1api.MaintenanceLogs_v1ActiveSELECT * FROM api.MaintenanceLogs
    ColumnDescription
    IdLog entry identifier
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers
    SchemaName / ObjectType / ObjectNameTarget object
    IndexType / IndexName / StatisticsNameIndex or statistics target
    PartitionPartition number
    MaintenanceTypeType of maintenance performed
    CommandThe maintenance command executed
    StartTime / EndTime / DurationMinutesTiming
    NotesAdditional info from the maintenance engine
    ErrorNumber / ErrorMessageError details (if failed)

    api.PatchAdvisor

    Recommended patch targets per instance based on the currently installed version.

    VersionView nameStatusUsage
    v1api.PatchAdvisor_v1ActiveSELECT * FROM api.PatchAdvisor
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    MajorVersionSQL Server major version
    InstalledPatch / InstalledPatchReleased / DaysLiveCurrently installed patch info
    TargetPatch / Description / WebLinkRecommended patch
    TargetPatchReleased / TargetDaysLiveTarget patch age

    api.SQLErrorLogs

    Raw SQL Server error log entries.

    VersionView nameStatusUsage
    v1api.SQLErrorLogs_v1ActiveSELECT * FROM api.SQLErrorLogs
    ColumnDescription
    IdRecord identifier
    InstanceId / InstanceNameInstance identifiers
    ErrProcessInfoProcess that generated the entry
    ErrLogEvtDateEvent date from the error log
    ErrLogTextError log message text
    TimestampData collection timestamp

    api.SQLErrorLogsByDay

    Aggregated SQL Server error log counts per day and filter category.

    VersionView nameStatusUsage
    v1api.SQLErrorLogsByDay_v1ActiveSELECT * FROM api.SQLErrorLogsByDay
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    FilterError category/filter
    CurrentDayDate (YYYYMMDD)
    MinEventDate / MaxEventDateEvent date range for the day
    CounterNumber of errors

    api.Tags

    Tags assigned to instances and databases for grouping and filtering.

    VersionView nameStatusUsage
    v1api.Tags_v1ActiveSELECT * FROM api.Tags
    ColumnDescription
    IdTag record identifier
    TagTag value
    InstanceId / InstanceNameInstance identifiers
    DbId / DbNameDatabase identifiers (nullable — instance-level tag if null)

    api.Volumes

    Current disk volume information including SQL file placement.

    VersionView nameStatusUsage
    v1api.Volumes_v1ActiveSELECT * FROM api.Volumes
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    Volume / VolumeMountPoint / LogicalVolumeName / FileSystemTypeVolume identification
    TotalSizeMB / UsedSpaceMB / AvailableSpaceMB / FreeSpacePctCapacity
    HasSqlFiles / HasDataFiles / HasLogFilesSQL file presence
    DataFileCount / LogFileCountFile counts
    DataFilesTotalSizeMB / LogFilesTotalSizeMBSQL file sizes
    TimestampData collection timestamp

    api.VolumeHistory

    Historical volume capacity over time — useful for growth trending and capacity planning.

    VersionView nameStatusUsage
    v1api.VolumeHistory_v1ActiveSELECT * FROM api.VolumeHistory
    ColumnDescription
    InstanceId / InstanceNameInstance identifiers
    VolumeVolume identifier
    TotalSizeMB / TotalSizeGBTotal capacity
    AvailableSpaceMB / AvailableSpaceGB / FreeSpacePctAvailable space
    TimestampData collection timestamp