mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-02-01 08:04:07 +00:00
Added health metrics for application load and database load (#2257)
* Added health metrics for application load * Added health metrics for application load * Fix unit tests * Added more metrics * Added few comments * Added DatabaseLoad Scenario and address comments * Fix unit tests * fix unit tests * Fix unit tests * fix unit tests * fix the mock * Fix unit tests
This commit is contained in:
17
src/Metrics/MetricScenarioConfigs.ts
Normal file
17
src/Metrics/MetricScenarioConfigs.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import MetricScenario from "./MetricEvents";
|
||||
import { ApplicationMetricPhase, CommonMetricPhase, ScenarioConfig } from "./ScenarioConfig";
|
||||
|
||||
export const scenarioConfigs: Record<MetricScenario, ScenarioConfig> = {
|
||||
[MetricScenario.ApplicationLoad]: {
|
||||
requiredPhases: [ApplicationMetricPhase.ExplorerInitialized, CommonMetricPhase.Interactive],
|
||||
timeoutMs: 10000,
|
||||
},
|
||||
[MetricScenario.DatabaseLoad]: {
|
||||
requiredPhases: [
|
||||
ApplicationMetricPhase.DatabasesFetched,
|
||||
ApplicationMetricPhase.DatabaseTreeRendered,
|
||||
CommonMetricPhase.Interactive,
|
||||
],
|
||||
timeoutMs: 10000,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user