mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-24 04:04:13 +00:00
* 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
18 lines
604 B
TypeScript
18 lines
604 B
TypeScript
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,
|
|
},
|
|
};
|