Enabling QueryStore options to the database properties (#24255)

* Initial commit

* updated query capture policy props

* all done except, querydiskSpaceSection

* disabling capture policy options on off mode but with custom mode enabled

* adding query disk usage section with purge button

* fg table replace

* STS vbump to 4.9.0.34

* typo
This commit is contained in:
Sai Avishkar Sreerama
2023-09-07 21:37:24 -05:00
committed by GitHub
parent 594aabb835
commit aa006b9da7
9 changed files with 535 additions and 63 deletions

View File

@@ -458,6 +458,7 @@ export interface Database extends ObjectManagement.SqlObject {
isFilesTabSupported?: boolean;
files?: DatabaseFile[];
filegroups?: FileGroup[];
queryStoreOptions?: QueryStoreOptions;
}
export interface DatabaseViewInfo extends ObjectManagement.ObjectViewInfo<Database> {
@@ -481,6 +482,32 @@ export interface DatabaseViewInfo extends ObjectManagement.ObjectViewInfo<Databa
rowDataFileGroupsOptions?: string[];
fileStreamFileGroupsOptions?: string[];
fileTypesOptions?: string[];
operationModeOptions?: string[];
statisticsCollectionIntervalOptions?: string[];
queryStoreCaptureModeOptions?: string[];
sizeBasedCleanupModeOptions?: string[];
staleThresholdOptions?: string[];
}
export interface QueryStoreOptions {
actualMode: string;
dataFlushIntervalInMinutes: number;
statisticsCollectionInterval: string;
maxPlansPerQuery: number;
maxSizeInMB: number;
queryStoreCaptureMode: string;
sizeBasedCleanupMode: string;
staleQueryThresholdInDays: number;
waitStatisticsCaptureMode?: boolean;
capturePolicyOptions?: QueryStoreCapturePolicyOptions;
currentStorageSizeInMB: number;
}
export interface QueryStoreCapturePolicyOptions {
executionCount: number;
staleThreshold: string;
totalCompileCPUTimeInMS: number;
totalExecutionCPUTimeInMS: number;
}
export interface DatabaseScopedConfigurationsInfo {