@spinnaker/kayenta 2025.4.0 → 2025.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/index-8a3ef7a0.js +2 -0
- package/build/dist/index-8a3ef7a0.js.map +1 -0
- package/{src/index.ts → build/dist/index.d.ts} +1 -0
- package/build/dist/index.d.ts.map +1 -0
- package/build/dist/index.js +2 -0
- package/build/dist/index.js.map +1 -0
- package/build/dist/kayenta/actions/creators.d.ts +416 -0
- package/build/dist/kayenta/actions/creators.d.ts.map +1 -0
- package/build/dist/kayenta/actions/index.d.ts +99 -0
- package/build/dist/kayenta/actions/index.d.ts.map +1 -0
- package/build/dist/kayenta/canary.d.ts +16 -0
- package/build/dist/kayenta/canary.d.ts.map +1 -0
- package/build/dist/kayenta/canary.dataSource.bridge.d.ts +2 -0
- package/build/dist/kayenta/canary.dataSource.bridge.d.ts.map +1 -0
- package/build/dist/kayenta/canary.dataSource.stub.d.ts +9 -0
- package/build/dist/kayenta/canary.dataSource.stub.d.ts.map +1 -0
- package/build/dist/kayenta/canary.help.d.ts +2 -0
- package/build/dist/kayenta/canary.help.d.ts.map +1 -0
- package/build/dist/kayenta/canary.settings.d.ts +24 -0
- package/build/dist/kayenta/canary.settings.d.ts.map +1 -0
- package/build/dist/kayenta/components/canaryScore.component.d.ts +2 -0
- package/build/dist/kayenta/components/canaryScore.component.d.ts.map +1 -0
- package/build/dist/kayenta/components/canaryScore.d.ts +23 -0
- package/build/dist/kayenta/components/canaryScore.d.ts.map +1 -0
- package/build/dist/kayenta/components/canaryScores.component.d.ts +2 -0
- package/build/dist/kayenta/components/canaryScores.component.d.ts.map +1 -0
- package/build/dist/kayenta/components/canaryScores.d.ts +21 -0
- package/build/dist/kayenta/components/canaryScores.d.ts.map +1 -0
- package/build/dist/kayenta/components/loadStates.d.ts +15 -0
- package/build/dist/kayenta/components/loadStates.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryConfig.d.ts +56 -0
- package/build/dist/kayenta/domain/ICanaryConfig.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryConfigSummary.d.ts +8 -0
- package/build/dist/kayenta/domain/ICanaryConfigSummary.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryConfigUpdateResponse.d.ts +4 -0
- package/build/dist/kayenta/domain/ICanaryConfigUpdateResponse.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryExecutionStatusResult.d.ts +69 -0
- package/build/dist/kayenta/domain/ICanaryExecutionStatusResult.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryJudgeResult.d.ts +48 -0
- package/build/dist/kayenta/domain/ICanaryJudgeResult.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryJudgeResultSummary.d.ts +6 -0
- package/build/dist/kayenta/domain/ICanaryJudgeResultSummary.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ICanaryScoreThresholds.d.ts +5 -0
- package/build/dist/kayenta/domain/ICanaryScoreThresholds.d.ts.map +1 -0
- package/build/dist/kayenta/domain/IJudge.d.ts +5 -0
- package/build/dist/kayenta/domain/IJudge.d.ts.map +1 -0
- package/build/dist/kayenta/domain/IKayentaAccount.d.ts +14 -0
- package/build/dist/kayenta/domain/IKayentaAccount.d.ts.map +1 -0
- package/build/dist/kayenta/domain/IKayentaStageConfig.d.ts +58 -0
- package/build/dist/kayenta/domain/IKayentaStageConfig.d.ts.map +1 -0
- package/build/dist/kayenta/domain/IMetricSetPair.d.ts +27 -0
- package/build/dist/kayenta/domain/IMetricSetPair.d.ts.map +1 -0
- package/build/dist/kayenta/domain/IMetricsServiceMetadata.d.ts +3 -0
- package/build/dist/kayenta/domain/IMetricsServiceMetadata.d.ts.map +1 -0
- package/{src/kayenta/domain/ISetupCanaryStage.ts → build/dist/kayenta/domain/ISetupCanaryStage.d.ts} +7 -7
- package/build/dist/kayenta/domain/ISetupCanaryStage.d.ts.map +1 -0
- package/build/dist/kayenta/domain/MetricClassificationLabel.d.ts +9 -0
- package/build/dist/kayenta/domain/MetricClassificationLabel.d.ts.map +1 -0
- package/build/dist/kayenta/domain/ScoreClassificationLabel.d.ts +8 -0
- package/build/dist/kayenta/domain/ScoreClassificationLabel.d.ts.map +1 -0
- package/{src/kayenta/domain/index.ts → build/dist/kayenta/domain/index.d.ts} +1 -0
- package/build/dist/kayenta/domain/index.d.ts.map +1 -0
- package/build/dist/kayenta/edit/changeMetricGroupModal.d.ts +18 -0
- package/build/dist/kayenta/edit/changeMetricGroupModal.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configDetail.d.ts +2 -0
- package/build/dist/kayenta/edit/configDetail.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configDetailActionButtons.d.ts +2 -0
- package/build/dist/kayenta/edit/configDetailActionButtons.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configDetailHeader.d.ts +11 -0
- package/build/dist/kayenta/edit/configDetailHeader.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configDetailLoadStates.d.ts +9 -0
- package/build/dist/kayenta/edit/configDetailLoadStates.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configDetailLoader.d.ts +17 -0
- package/build/dist/kayenta/edit/configDetailLoader.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configJsonModal.d.ts +28 -0
- package/build/dist/kayenta/edit/configJsonModal.d.ts.map +1 -0
- package/build/dist/kayenta/edit/configList.d.ts +12 -0
- package/build/dist/kayenta/edit/configList.d.ts.map +1 -0
- package/build/dist/kayenta/edit/copyConfigButton.d.ts +8 -0
- package/build/dist/kayenta/edit/copyConfigButton.d.ts.map +1 -0
- package/build/dist/kayenta/edit/createConfigButton.d.ts +8 -0
- package/build/dist/kayenta/edit/createConfigButton.d.ts.map +1 -0
- package/build/dist/kayenta/edit/deleteModal.d.ts +16 -0
- package/build/dist/kayenta/edit/deleteModal.d.ts.map +1 -0
- package/build/dist/kayenta/edit/edit.d.ts +2 -0
- package/build/dist/kayenta/edit/edit.d.ts.map +1 -0
- package/build/dist/kayenta/edit/editMetricEffectSizes.d.ts +16 -0
- package/build/dist/kayenta/edit/editMetricEffectSizes.d.ts.map +1 -0
- package/build/dist/kayenta/edit/editMetricModal.d.ts +27 -0
- package/build/dist/kayenta/edit/editMetricModal.d.ts.map +1 -0
- package/build/dist/kayenta/edit/editMetricModal.spec.d.ts +2 -0
- package/build/dist/kayenta/edit/editMetricModal.spec.d.ts.map +1 -0
- package/build/dist/kayenta/edit/editMetricValidation.d.ts +11 -0
- package/build/dist/kayenta/edit/editMetricValidation.d.ts.map +1 -0
- package/build/dist/kayenta/edit/editMetricValidation.spec.d.ts +2 -0
- package/build/dist/kayenta/edit/editMetricValidation.spec.d.ts.map +1 -0
- package/build/dist/kayenta/edit/filterTemplateSelector.d.ts +33 -0
- package/build/dist/kayenta/edit/filterTemplateSelector.d.ts.map +1 -0
- package/build/dist/kayenta/edit/filterTemplateSelector.spec.d.ts +2 -0
- package/build/dist/kayenta/edit/filterTemplateSelector.spec.d.ts.map +1 -0
- package/build/dist/kayenta/edit/filterTemplatesValidation.d.ts +29 -0
- package/build/dist/kayenta/edit/filterTemplatesValidation.d.ts.map +1 -0
- package/build/dist/kayenta/edit/filterTemplatesValidation.spec.d.ts +2 -0
- package/build/dist/kayenta/edit/filterTemplatesValidation.spec.d.ts.map +1 -0
- package/build/dist/kayenta/edit/footer.d.ts +6 -0
- package/build/dist/kayenta/edit/footer.d.ts.map +1 -0
- package/build/dist/kayenta/edit/groupName.d.ts +21 -0
- package/build/dist/kayenta/edit/groupName.d.ts.map +1 -0
- package/build/dist/kayenta/edit/groupTabs.d.ts +17 -0
- package/build/dist/kayenta/edit/groupTabs.d.ts.map +1 -0
- package/build/dist/kayenta/edit/groupWeight.d.ts +16 -0
- package/build/dist/kayenta/edit/groupWeight.d.ts.map +1 -0
- package/build/dist/kayenta/edit/groupWeights.d.ts +8 -0
- package/build/dist/kayenta/edit/groupWeights.d.ts.map +1 -0
- package/build/dist/kayenta/edit/inlineTemplateEditor.d.ts +14 -0
- package/build/dist/kayenta/edit/inlineTemplateEditor.d.ts.map +1 -0
- package/build/dist/kayenta/edit/inlineTemplateEditor.spec.d.ts +2 -0
- package/build/dist/kayenta/edit/inlineTemplateEditor.spec.d.ts.map +1 -0
- package/build/dist/kayenta/edit/judgeSelect.d.ts +19 -0
- package/build/dist/kayenta/edit/judgeSelect.d.ts.map +1 -0
- package/build/dist/kayenta/edit/metricConfigurerDelegator.d.ts +9 -0
- package/build/dist/kayenta/edit/metricConfigurerDelegator.d.ts.map +1 -0
- package/build/dist/kayenta/edit/metricList.d.ts +23 -0
- package/build/dist/kayenta/edit/metricList.d.ts.map +1 -0
- package/build/dist/kayenta/edit/metricStoreSelector.d.ts +12 -0
- package/build/dist/kayenta/edit/metricStoreSelector.d.ts.map +1 -0
- package/build/dist/kayenta/edit/nameAndDescription.d.ts +14 -0
- package/build/dist/kayenta/edit/nameAndDescription.d.ts.map +1 -0
- package/build/dist/kayenta/edit/openConfigJsonModalButton.d.ts +8 -0
- package/build/dist/kayenta/edit/openConfigJsonModalButton.d.ts.map +1 -0
- package/build/dist/kayenta/edit/openDeleteModalButton.d.ts +11 -0
- package/build/dist/kayenta/edit/openDeleteModalButton.d.ts.map +1 -0
- package/build/dist/kayenta/edit/ownedBy.d.ts +7 -0
- package/build/dist/kayenta/edit/ownedBy.d.ts.map +1 -0
- package/build/dist/kayenta/edit/save.d.ts +2 -0
- package/build/dist/kayenta/edit/save.d.ts.map +1 -0
- package/build/dist/kayenta/edit/saveConfigButton.d.ts +14 -0
- package/build/dist/kayenta/edit/saveConfigButton.d.ts.map +1 -0
- package/build/dist/kayenta/edit/saveConfigError.d.ts +13 -0
- package/build/dist/kayenta/edit/saveConfigError.d.ts.map +1 -0
- package/build/dist/kayenta/edit/scoring.d.ts +8 -0
- package/build/dist/kayenta/edit/scoring.d.ts.map +1 -0
- package/build/dist/kayenta/edit/selectConfig.d.ts +2 -0
- package/build/dist/kayenta/edit/selectConfig.d.ts.map +1 -0
- package/build/dist/kayenta/edit/validationErrors.d.ts +8 -0
- package/build/dist/kayenta/edit/validationErrors.d.ts.map +1 -0
- package/{src/kayenta/index.ts → build/dist/kayenta/index.d.ts} +1 -0
- package/build/dist/kayenta/index.d.ts.map +1 -0
- package/build/dist/kayenta/layout/addNewButton.d.ts +8 -0
- package/build/dist/kayenta/layout/addNewButton.d.ts.map +1 -0
- package/build/dist/kayenta/layout/centeredDetail.d.ts +5 -0
- package/build/dist/kayenta/layout/centeredDetail.d.ts.map +1 -0
- package/build/dist/kayenta/layout/deleteButton.d.ts +6 -0
- package/build/dist/kayenta/layout/deleteButton.d.ts.map +1 -0
- package/build/dist/kayenta/layout/disableable.d.ts +37 -0
- package/build/dist/kayenta/layout/disableable.d.ts.map +1 -0
- package/build/dist/kayenta/layout/formList.d.ts +5 -0
- package/build/dist/kayenta/layout/formList.d.ts.map +1 -0
- package/build/dist/kayenta/layout/formRow.d.ts +12 -0
- package/build/dist/kayenta/layout/formRow.d.ts.map +1 -0
- package/build/dist/kayenta/layout/formattedDate.d.ts +5 -0
- package/build/dist/kayenta/layout/formattedDate.d.ts.map +1 -0
- package/{src/kayenta/layout/index.ts → build/dist/kayenta/layout/index.d.ts} +1 -0
- package/build/dist/kayenta/layout/index.d.ts.map +1 -0
- package/build/dist/kayenta/layout/keyValueList.d.ts +29 -0
- package/build/dist/kayenta/layout/keyValueList.d.ts.map +1 -0
- package/build/dist/kayenta/layout/list.d.ts +21 -0
- package/build/dist/kayenta/layout/list.d.ts.map +1 -0
- package/build/dist/kayenta/layout/list.spec.d.ts +2 -0
- package/build/dist/kayenta/layout/list.spec.d.ts.map +1 -0
- package/build/dist/kayenta/layout/listDetail.d.ts +11 -0
- package/build/dist/kayenta/layout/listDetail.d.ts.map +1 -0
- package/build/dist/kayenta/layout/radioChoice.d.ts +9 -0
- package/build/dist/kayenta/layout/radioChoice.d.ts.map +1 -0
- package/build/dist/kayenta/layout/styleguide.d.ts +9 -0
- package/build/dist/kayenta/layout/styleguide.d.ts.map +1 -0
- package/{src/kayenta/layout/table/index.ts → build/dist/kayenta/layout/table/index.d.ts} +1 -0
- package/build/dist/kayenta/layout/table/index.d.ts.map +1 -0
- package/build/dist/kayenta/layout/table/nativeTable.d.ts +14 -0
- package/build/dist/kayenta/layout/table/nativeTable.d.ts.map +1 -0
- package/build/dist/kayenta/layout/table/nativeTableHeader.d.ts +8 -0
- package/build/dist/kayenta/layout/table/nativeTableHeader.d.ts.map +1 -0
- package/build/dist/kayenta/layout/table/table.d.ts +14 -0
- package/build/dist/kayenta/layout/table/table.d.ts.map +1 -0
- package/build/dist/kayenta/layout/table/tableColumn.d.ts +8 -0
- package/build/dist/kayenta/layout/table/tableColumn.d.ts.map +1 -0
- package/build/dist/kayenta/layout/table/tableHeader.d.ts +7 -0
- package/build/dist/kayenta/layout/table/tableHeader.d.ts.map +1 -0
- package/build/dist/kayenta/layout/tabs.d.ts +14 -0
- package/build/dist/kayenta/layout/tabs.d.ts.map +1 -0
- package/build/dist/kayenta/layout/titledSection.d.ts +7 -0
- package/build/dist/kayenta/layout/titledSection.d.ts.map +1 -0
- package/build/dist/kayenta/layout/titledSubsection.d.ts +8 -0
- package/build/dist/kayenta/layout/titledSubsection.d.ts.map +1 -0
- package/build/dist/kayenta/manualAnalysis/ManualAnalysisModal.d.ts +47 -0
- package/build/dist/kayenta/manualAnalysis/ManualAnalysisModal.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/atlas/atlasMetricConfigurer.d.ts +29 -0
- package/build/dist/kayenta/metricStore/atlas/atlasMetricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/atlas/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/atlas/index.d.ts.map +1 -0
- package/{src/kayenta/metricStore/datadog/domain/IDatadogMetricDescriptor.ts → build/dist/kayenta/metricStore/datadog/domain/IDatadogMetricDescriptor.d.ts} +2 -2
- package/build/dist/kayenta/metricStore/datadog/domain/IDatadogMetricDescriptor.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/datadog/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/datadog/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/datadog/metricConfigurer.d.ts +15 -0
- package/build/dist/kayenta/metricStore/datadog/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/datadog/metricTypeSelector.d.ts +29 -0
- package/build/dist/kayenta/metricStore/datadog/metricTypeSelector.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/datadog/metricTypeSelector.spec.d.ts +2 -0
- package/build/dist/kayenta/metricStore/datadog/metricTypeSelector.spec.d.ts.map +1 -0
- package/{src/kayenta/metricStore/graphite/domain/IGraphiteMetricDescriptor.ts → build/dist/kayenta/metricStore/graphite/domain/IGraphiteMetricDescriptor.d.ts} +2 -2
- package/build/dist/kayenta/metricStore/graphite/domain/IGraphiteMetricDescriptor.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/graphite/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/graphite/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/graphite/metricConfigurer.d.ts +13 -0
- package/build/dist/kayenta/metricStore/graphite/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/graphite/metricTypeSelector.d.ts +29 -0
- package/build/dist/kayenta/metricStore/graphite/metricTypeSelector.d.ts.map +1 -0
- package/{src/kayenta/metricStore/index.ts → build/dist/kayenta/metricStore/index.d.ts} +1 -0
- package/build/dist/kayenta/metricStore/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/metricStoreConfig.service.d.ts +11 -0
- package/build/dist/kayenta/metricStore/metricStoreConfig.service.d.ts.map +1 -0
- package/{src/kayenta/metricStore/newrelic/domain/INewRelicMetricDescriptor.ts → build/dist/kayenta/metricStore/newrelic/domain/INewRelicMetricDescriptor.d.ts} +2 -2
- package/build/dist/kayenta/metricStore/newrelic/domain/INewRelicMetricDescriptor.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/newrelic/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/newrelic/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/newrelic/metricConfigurer.d.ts +13 -0
- package/build/dist/kayenta/metricStore/newrelic/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.d.ts +13 -0
- package/build/dist/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.d.ts.map +1 -0
- package/{src/kayenta/metricStore/prometheus/domain/IPrometheusMetricDescriptor.ts → build/dist/kayenta/metricStore/prometheus/domain/IPrometheusMetricDescriptor.d.ts} +2 -2
- package/build/dist/kayenta/metricStore/prometheus/domain/IPrometheusMetricDescriptor.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/prometheus/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/metricConfigurer.d.ts +21 -0
- package/build/dist/kayenta/metricStore/prometheus/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/metricTypeSelector.d.ts +31 -0
- package/build/dist/kayenta/metricStore/prometheus/metricTypeSelector.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/metricTypeSelector.spec.d.ts +2 -0
- package/build/dist/kayenta/metricStore/prometheus/metricTypeSelector.spec.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/queryTypeSelectors.d.ts +10 -0
- package/build/dist/kayenta/metricStore/prometheus/queryTypeSelectors.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/prometheus/queryTypeSelectors.spec.d.ts +2 -0
- package/build/dist/kayenta/metricStore/prometheus/queryTypeSelectors.spec.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/signalfx/domain/ISignalFxCanaryMetricSetQueryConfig.d.ts +10 -0
- package/build/dist/kayenta/metricStore/signalfx/domain/ISignalFxCanaryMetricSetQueryConfig.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/signalfx/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/signalfx/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/signalfx/metricConfigurer.d.ts +28 -0
- package/build/dist/kayenta/metricStore/signalfx/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/domain/IStackdriverCanaryMetricSetQueryConfig.d.ts +9 -0
- package/build/dist/kayenta/metricStore/stackdriver/domain/IStackdriverCanaryMetricSetQueryConfig.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/domain/IStackdriverMetricDescriptor.d.ts +16 -0
- package/build/dist/kayenta/metricStore/stackdriver/domain/IStackdriverMetricDescriptor.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/index.d.ts +2 -0
- package/build/dist/kayenta/metricStore/stackdriver/index.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricConfigurer.d.ts +16 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricConfigurer.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricTypeSelector.d.ts +35 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricTypeSelector.d.ts.map +1 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricTypeSelector.spec.d.ts +2 -0
- package/build/dist/kayenta/metricStore/stackdriver/metricTypeSelector.spec.d.ts.map +1 -0
- package/build/dist/kayenta/middleware/actionInterceptor.d.ts +3 -0
- package/build/dist/kayenta/middleware/actionInterceptor.d.ts.map +1 -0
- package/build/dist/kayenta/middleware/asyncDispatch.d.ts +3 -0
- package/build/dist/kayenta/middleware/asyncDispatch.d.ts.map +1 -0
- package/build/dist/kayenta/middleware/epics.d.ts +14 -0
- package/build/dist/kayenta/middleware/epics.d.ts.map +1 -0
- package/{src/kayenta/middleware/index.ts → build/dist/kayenta/middleware/index.d.ts} +1 -0
- package/build/dist/kayenta/middleware/index.d.ts.map +1 -0
- package/build/dist/kayenta/navigation/canary.states.d.ts +6 -0
- package/build/dist/kayenta/navigation/canary.states.d.ts.map +1 -0
- package/build/dist/kayenta/navigation/canary.states.stub.d.ts +4 -0
- package/build/dist/kayenta/navigation/canary.states.stub.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/app.d.ts +11 -0
- package/build/dist/kayenta/reducers/app.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/asyncRequest.d.ts +6 -0
- package/build/dist/kayenta/reducers/asyncRequest.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/data.d.ts +30 -0
- package/build/dist/kayenta/reducers/data.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/editingTemplate.d.ts +8 -0
- package/build/dist/kayenta/reducers/editingTemplate.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/group.d.ts +11 -0
- package/build/dist/kayenta/reducers/group.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/index.d.ts +13 -0
- package/build/dist/kayenta/reducers/index.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/prometheusMetricConfig.d.ts +6 -0
- package/build/dist/kayenta/reducers/prometheusMetricConfig.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/prometheusMetricConfig.spec.d.ts +2 -0
- package/build/dist/kayenta/reducers/prometheusMetricConfig.spec.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/selectedConfig.d.ts +51 -0
- package/build/dist/kayenta/reducers/selectedConfig.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/selectedConfig.spec.d.ts +2 -0
- package/build/dist/kayenta/reducers/selectedConfig.spec.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/selectedRun.d.ts +20 -0
- package/build/dist/kayenta/reducers/selectedRun.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/signalFxMetricConfig.d.ts +22 -0
- package/build/dist/kayenta/reducers/signalFxMetricConfig.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/stackdriverMetricConfig.d.ts +6 -0
- package/build/dist/kayenta/reducers/stackdriverMetricConfig.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/stackdriverMetricConfig.spec.d.ts +2 -0
- package/build/dist/kayenta/reducers/stackdriverMetricConfig.spec.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/templates.spec.d.ts +2 -0
- package/build/dist/kayenta/reducers/templates.spec.d.ts.map +1 -0
- package/build/dist/kayenta/reducers/validators.d.ts +6 -0
- package/build/dist/kayenta/reducers/validators.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/allMetricResultsHeader.d.ts +10 -0
- package/build/dist/kayenta/report/detail/allMetricResultsHeader.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/clickableHeader.d.ts +11 -0
- package/build/dist/kayenta/report/detail/clickableHeader.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/colors.d.ts +5 -0
- package/build/dist/kayenta/report/detail/colors.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/detail.d.ts +10 -0
- package/build/dist/kayenta/report/detail/detail.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/detailLoader.d.ts +16 -0
- package/build/dist/kayenta/report/detail/detailLoader.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/graph.d.ts +13 -0
- package/build/dist/kayenta/report/detail/graph/graph.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/metricSetPairGraph.service.d.ts +19 -0
- package/build/dist/kayenta/report/detail/graph/metricSetPairGraph.service.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/boxplot.d.ts +19 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/boxplot.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/chartHeader.d.ts +6 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/chartHeader.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/chartLegend.d.ts +11 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/chartLegend.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/circleIcon.d.ts +6 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/circleIcon.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/config.d.ts +18 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/config.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/customAxisTickLabel.d.ts +6 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/customAxisTickLabel.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/differenceArea.d.ts +17 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/differenceArea.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/histogram.d.ts +19 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/histogram.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/index.d.ts +2 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/index.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/noValidDataSign.d.ts +4 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/noValidDataSign.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.d.ts +15 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.d.ts.map +1 -0
- package/{src/kayenta/report/detail/graph/semiotic/semiotic.service.ts → build/dist/kayenta/report/detail/graph/semiotic/semiotic.service.d.ts} +14 -19
- package/build/dist/kayenta/report/detail/graph/semiotic/semiotic.service.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/semioticGraph.d.ts +8 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/semioticGraph.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/timeSeries.d.ts +31 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/timeSeries.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/tooltip.d.ts +13 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/tooltip.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/utils.d.ts +6 -0
- package/build/dist/kayenta/report/detail/graph/semiotic/utils.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/graphTypeSelector.d.ts +13 -0
- package/build/dist/kayenta/report/detail/graphTypeSelector.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/groupScores.d.ts +18 -0
- package/build/dist/kayenta/report/detail/groupScores.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/header.d.ts +12 -0
- package/build/dist/kayenta/report/detail/header.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/headerArrow.d.ts +7 -0
- package/build/dist/kayenta/report/detail/headerArrow.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/loadStates.d.ts +9 -0
- package/build/dist/kayenta/report/detail/loadStates.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultActions.d.ts +12 -0
- package/build/dist/kayenta/report/detail/metricResultActions.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultClassification.d.ts +8 -0
- package/build/dist/kayenta/report/detail/metricResultClassification.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultDetail.d.ts +7 -0
- package/build/dist/kayenta/report/detail/metricResultDetail.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultDetailLayout.d.ts +3 -0
- package/build/dist/kayenta/report/detail/metricResultDetailLayout.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultDeviation.d.ts +7 -0
- package/build/dist/kayenta/report/detail/metricResultDeviation.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultStats.d.ts +15 -0
- package/build/dist/kayenta/report/detail/metricResultStats.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResults.d.ts +11 -0
- package/build/dist/kayenta/report/detail/metricResults.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultsClassificationFilters.d.ts +15 -0
- package/build/dist/kayenta/report/detail/metricResultsClassificationFilters.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultsColumns.d.ts +4 -0
- package/build/dist/kayenta/report/detail/metricResultsColumns.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricResultsList.d.ts +23 -0
- package/build/dist/kayenta/report/detail/metricResultsList.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/metricSetPairLoadStates.d.ts +10 -0
- package/build/dist/kayenta/report/detail/metricSetPairLoadStates.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/multipleResultsTable.d.ts +23 -0
- package/build/dist/kayenta/report/detail/multipleResultsTable.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/reportException.d.ts +10 -0
- package/build/dist/kayenta/report/detail/reportException.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/reportExplanation.d.ts +10 -0
- package/build/dist/kayenta/report/detail/reportExplanation.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/reportMetadata.d.ts +9 -0
- package/build/dist/kayenta/report/detail/reportMetadata.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/reportScores.d.ts +20 -0
- package/build/dist/kayenta/report/detail/reportScores.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/score.d.ts +9 -0
- package/build/dist/kayenta/report/detail/score.d.ts.map +1 -0
- package/build/dist/kayenta/report/detail/sourceLinks.d.ts +9 -0
- package/build/dist/kayenta/report/detail/sourceLinks.d.ts.map +1 -0
- package/build/dist/kayenta/report/list/configLink.d.ts +14 -0
- package/build/dist/kayenta/report/list/configLink.d.ts.map +1 -0
- package/build/dist/kayenta/report/list/loadStates.d.ts +9 -0
- package/build/dist/kayenta/report/list/loadStates.d.ts.map +1 -0
- package/build/dist/kayenta/report/list/pipelineLink.d.ts +7 -0
- package/build/dist/kayenta/report/list/pipelineLink.d.ts.map +1 -0
- package/build/dist/kayenta/report/list/reportLink.d.ts +16 -0
- package/build/dist/kayenta/report/list/reportLink.d.ts.map +1 -0
- package/build/dist/kayenta/report/list/table.d.ts +14 -0
- package/build/dist/kayenta/report/list/table.d.ts.map +1 -0
- package/build/dist/kayenta/report/report.d.ts +3 -0
- package/build/dist/kayenta/report/report.d.ts.map +1 -0
- package/build/dist/kayenta/selectors/filterTemplatesSelectors.d.ts +21 -0
- package/build/dist/kayenta/selectors/filterTemplatesSelectors.d.ts.map +1 -0
- package/build/dist/kayenta/selectors/index.d.ts +25 -0
- package/build/dist/kayenta/selectors/index.d.ts.map +1 -0
- package/build/dist/kayenta/service/canaryConfig.service.d.ts +13 -0
- package/build/dist/kayenta/service/canaryConfig.service.d.ts.map +1 -0
- package/build/dist/kayenta/service/canaryRun.service.d.ts +7 -0
- package/build/dist/kayenta/service/canaryRun.service.d.ts.map +1 -0
- package/build/dist/kayenta/service/delegateFactory.d.ts +9 -0
- package/build/dist/kayenta/service/delegateFactory.d.ts.map +1 -0
- package/build/dist/kayenta/service/metricsServiceMetadata.service.d.ts +3 -0
- package/build/dist/kayenta/service/metricsServiceMetadata.service.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/AnalysisType.d.ts +13 -0
- package/build/dist/kayenta/stages/kayentaStage/AnalysisType.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/AnalysisType.spec.d.ts +2 -0
- package/build/dist/kayenta/stages/kayentaStage/AnalysisType.spec.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/CanaryExecutionLabel.d.ts +6 -0
- package/build/dist/kayenta/stages/kayentaStage/CanaryExecutionLabel.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/analysisType.component.d.ts +2 -0
- package/build/dist/kayenta/stages/kayentaStage/analysisType.component.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/canaryRunSummaries.component.d.ts +2 -0
- package/build/dist/kayenta/stages/kayentaStage/canaryRunSummaries.component.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/canaryRunSummaries.d.ts +13 -0
- package/build/dist/kayenta/stages/kayentaStage/canaryRunSummaries.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/forAnalysisType.component.d.ts +2 -0
- package/build/dist/kayenta/stages/kayentaStage/forAnalysisType.component.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.controller.d.ts +100 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.controller.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.d.ts +29 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.transformer.d.ts +12 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStage.transformer.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStageConfigSection.component.d.ts +2 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStageConfigSection.component.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.controller.d.ts +3 -0
- package/build/dist/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.controller.d.ts.map +1 -0
- package/build/dist/kayenta/stages/kayentaStage/stageTypes.d.ts +6 -0
- package/build/dist/kayenta/stages/kayentaStage/stageTypes.d.ts.map +1 -0
- package/build/dist/kayenta/utils/duration.d.ts +12 -0
- package/build/dist/kayenta/utils/duration.d.ts.map +1 -0
- package/build/dist/kayenta/utils/duration.spec.d.ts +2 -0
- package/build/dist/kayenta/utils/duration.spec.d.ts.map +1 -0
- package/build/dist/lazy-b3700c07.js +2 -0
- package/build/dist/lazy-b3700c07.js.map +1 -0
- package/build/dist/lazy.d.ts +6 -0
- package/build/dist/lazy.d.ts.map +1 -0
- package/build/dist/semioticGraph-552b48d5.js +2 -0
- package/build/dist/semioticGraph-552b48d5.js.map +1 -0
- package/build/dist/stub.d.ts +15 -0
- package/build/dist/stub.d.ts.map +1 -0
- package/package.json +7 -4
- package/.eslintrc.js +0 -1
- package/.huskyrc +0 -5
- package/.lintstagedrc.json +0 -4
- package/.prettierignore +0 -4
- package/.prettierrc.js +0 -1
- package/__mocks__/styleMock.js +0 -1
- package/__mocks__/version.json +0 -4
- package/babel.config.js +0 -3
- package/build.gradle +0 -67
- package/build_scripts/checkLicenses.js +0 -79
- package/gradle.properties +0 -0
- package/jest.config.js +0 -204
- package/jest.setup.js +0 -5
- package/rollup-plugin-angularjs-template-loader.js +0 -82
- package/rollup.config.js +0 -30
- package/src/kayenta/actions/creators.ts +0 -163
- package/src/kayenta/actions/index.ts +0 -98
- package/src/kayenta/canary.dataSource.bridge.ts +0 -53
- package/src/kayenta/canary.dataSource.stub.ts +0 -64
- package/src/kayenta/canary.help.ts +0 -136
- package/src/kayenta/canary.less +0 -168
- package/src/kayenta/canary.settings.ts +0 -26
- package/src/kayenta/canary.tsx +0 -67
- package/src/kayenta/components/canaryScore.component.less +0 -77
- package/src/kayenta/components/canaryScore.component.ts +0 -12
- package/src/kayenta/components/canaryScore.tsx +0 -63
- package/src/kayenta/components/canaryScores.component.ts +0 -20
- package/src/kayenta/components/canaryScores.less +0 -22
- package/src/kayenta/components/canaryScores.tsx +0 -163
- package/src/kayenta/components/loadStates.tsx +0 -52
- package/src/kayenta/domain/ICanaryConfig.ts +0 -57
- package/src/kayenta/domain/ICanaryConfigSummary.ts +0 -7
- package/src/kayenta/domain/ICanaryConfigUpdateResponse.ts +0 -3
- package/src/kayenta/domain/ICanaryExecutionStatusResult.ts +0 -72
- package/src/kayenta/domain/ICanaryJudgeResult.ts +0 -51
- package/src/kayenta/domain/ICanaryJudgeResultSummary.ts +0 -5
- package/src/kayenta/domain/ICanaryScoreThresholds.ts +0 -4
- package/src/kayenta/domain/IJudge.ts +0 -5
- package/src/kayenta/domain/IKayentaAccount.ts +0 -14
- package/src/kayenta/domain/IKayentaStageConfig.ts +0 -58
- package/src/kayenta/domain/IMetricSetPair.ts +0 -17
- package/src/kayenta/domain/IMetricsServiceMetadata.ts +0 -2
- package/src/kayenta/domain/MetricClassificationLabel.ts +0 -8
- package/src/kayenta/domain/ScoreClassificationLabel.ts +0 -7
- package/src/kayenta/edit/changeMetricGroupModal.tsx +0 -107
- package/src/kayenta/edit/configDetail.tsx +0 -31
- package/src/kayenta/edit/configDetailActionButtons.tsx +0 -24
- package/src/kayenta/edit/configDetailHeader.tsx +0 -104
- package/src/kayenta/edit/configDetailLoadStates.tsx +0 -36
- package/src/kayenta/edit/configDetailLoader.tsx +0 -60
- package/src/kayenta/edit/configJson.less +0 -42
- package/src/kayenta/edit/configJsonModal.tsx +0 -158
- package/src/kayenta/edit/configList.less +0 -7
- package/src/kayenta/edit/configList.tsx +0 -57
- package/src/kayenta/edit/copyConfigButton.tsx +0 -34
- package/src/kayenta/edit/createConfigButton.tsx +0 -34
- package/src/kayenta/edit/deleteModal.tsx +0 -87
- package/src/kayenta/edit/edit.tsx +0 -24
- package/src/kayenta/edit/editMetricEffectSizes.tsx +0 -186
- package/src/kayenta/edit/editMetricModal.less +0 -9
- package/src/kayenta/edit/editMetricModal.spec.tsx +0 -129
- package/src/kayenta/edit/editMetricModal.tsx +0 -294
- package/src/kayenta/edit/editMetricValidation.spec.ts +0 -63
- package/src/kayenta/edit/editMetricValidation.ts +0 -50
- package/src/kayenta/edit/filterTemplateSelector.less +0 -15
- package/src/kayenta/edit/filterTemplateSelector.spec.tsx +0 -106
- package/src/kayenta/edit/filterTemplateSelector.tsx +0 -194
- package/src/kayenta/edit/filterTemplatesValidation.spec.ts +0 -108
- package/src/kayenta/edit/filterTemplatesValidation.ts +0 -95
- package/src/kayenta/edit/footer.less +0 -30
- package/src/kayenta/edit/footer.tsx +0 -12
- package/src/kayenta/edit/groupName.tsx +0 -80
- package/src/kayenta/edit/groupTabs.tsx +0 -106
- package/src/kayenta/edit/groupWeight.tsx +0 -80
- package/src/kayenta/edit/groupWeights.tsx +0 -38
- package/src/kayenta/edit/inlineTemplateEditor.spec.tsx +0 -42
- package/src/kayenta/edit/inlineTemplateEditor.tsx +0 -61
- package/src/kayenta/edit/judgeSelect.tsx +0 -82
- package/src/kayenta/edit/metricConfigurerDelegator.tsx +0 -30
- package/src/kayenta/edit/metricList.less +0 -21
- package/src/kayenta/edit/metricList.tsx +0 -215
- package/src/kayenta/edit/metricStoreSelector.tsx +0 -66
- package/src/kayenta/edit/nameAndDescription.tsx +0 -90
- package/src/kayenta/edit/openConfigJsonModalButton.tsx +0 -33
- package/src/kayenta/edit/openDeleteModalButton.tsx +0 -50
- package/src/kayenta/edit/ownedBy.tsx +0 -34
- package/src/kayenta/edit/save.tsx +0 -19
- package/src/kayenta/edit/saveConfigButton.tsx +0 -65
- package/src/kayenta/edit/saveConfigError.tsx +0 -59
- package/src/kayenta/edit/scoring.tsx +0 -35
- package/src/kayenta/edit/selectConfig.tsx +0 -10
- package/src/kayenta/edit/validationErrors.tsx +0 -39
- package/src/kayenta/layout/addNewButton.tsx +0 -20
- package/src/kayenta/layout/centeredDetail.tsx +0 -13
- package/src/kayenta/layout/deleteButton.tsx +0 -11
- package/src/kayenta/layout/disableable.tsx +0 -87
- package/src/kayenta/layout/formList.tsx +0 -26
- package/src/kayenta/layout/formRow.tsx +0 -36
- package/src/kayenta/layout/formattedDate.tsx +0 -14
- package/src/kayenta/layout/keyValueList.less +0 -20
- package/src/kayenta/layout/keyValueList.tsx +0 -114
- package/src/kayenta/layout/list.less +0 -9
- package/src/kayenta/layout/list.spec.tsx +0 -83
- package/src/kayenta/layout/list.tsx +0 -73
- package/src/kayenta/layout/listDetail.tsx +0 -33
- package/src/kayenta/layout/radioChoice.tsx +0 -29
- package/src/kayenta/layout/styleguide.tsx +0 -16
- package/src/kayenta/layout/table/nativeTable.tsx +0 -51
- package/src/kayenta/layout/table/nativeTableHeader.tsx +0 -26
- package/src/kayenta/layout/table/table.tsx +0 -56
- package/src/kayenta/layout/table/tableColumn.ts +0 -7
- package/src/kayenta/layout/table/tableHeader.tsx +0 -23
- package/src/kayenta/layout/tabs.tsx +0 -26
- package/src/kayenta/layout/titledSection.less +0 -16
- package/src/kayenta/layout/titledSection.tsx +0 -20
- package/src/kayenta/layout/titledSubsection.less +0 -11
- package/src/kayenta/layout/titledSubsection.tsx +0 -22
- package/src/kayenta/manualAnalysis/ManualAnalysisModal.tsx +0 -716
- package/src/kayenta/metricStore/atlas/atlasMetricConfigurer.tsx +0 -130
- package/src/kayenta/metricStore/atlas/index.ts +0 -8
- package/src/kayenta/metricStore/datadog/index.ts +0 -9
- package/src/kayenta/metricStore/datadog/metricConfigurer.tsx +0 -90
- package/src/kayenta/metricStore/datadog/metricTypeSelector.spec.tsx +0 -59
- package/src/kayenta/metricStore/datadog/metricTypeSelector.tsx +0 -73
- package/src/kayenta/metricStore/graphite/index.ts +0 -8
- package/src/kayenta/metricStore/graphite/metricConfigurer.tsx +0 -54
- package/src/kayenta/metricStore/graphite/metricTypeSelector.tsx +0 -80
- package/src/kayenta/metricStore/graphite/typeahead.less +0 -3
- package/src/kayenta/metricStore/metricStoreConfig.service.ts +0 -12
- package/src/kayenta/metricStore/newrelic/index.ts +0 -8
- package/src/kayenta/metricStore/newrelic/metricConfigurer.tsx +0 -58
- package/src/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.ts +0 -14
- package/src/kayenta/metricStore/prometheus/index.ts +0 -12
- package/src/kayenta/metricStore/prometheus/metricConfigurer.tsx +0 -157
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.less +0 -5
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.spec.tsx +0 -62
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.tsx +0 -144
- package/src/kayenta/metricStore/prometheus/queryTypeSelectors.spec.ts +0 -61
- package/src/kayenta/metricStore/prometheus/queryTypeSelectors.ts +0 -38
- package/src/kayenta/metricStore/signalfx/domain/ISignalFxCanaryMetricSetQueryConfig.ts +0 -7
- package/src/kayenta/metricStore/signalfx/index.ts +0 -8
- package/src/kayenta/metricStore/signalfx/metricConfigurer.less +0 -10
- package/src/kayenta/metricStore/signalfx/metricConfigurer.tsx +0 -187
- package/src/kayenta/metricStore/stackdriver/domain/IStackdriverCanaryMetricSetQueryConfig.ts +0 -9
- package/src/kayenta/metricStore/stackdriver/domain/IStackdriverMetricDescriptor.ts +0 -17
- package/src/kayenta/metricStore/stackdriver/index.ts +0 -12
- package/src/kayenta/metricStore/stackdriver/metricConfigurer.tsx +0 -144
- package/src/kayenta/metricStore/stackdriver/metricTypeSelector.spec.tsx +0 -92
- package/src/kayenta/metricStore/stackdriver/metricTypeSelector.tsx +0 -113
- package/src/kayenta/middleware/actionInterceptor.ts +0 -29
- package/src/kayenta/middleware/asyncDispatch.ts +0 -37
- package/src/kayenta/middleware/epics.ts +0 -211
- package/src/kayenta/navigation/canary.states.stub.ts +0 -28
- package/src/kayenta/navigation/canary.states.ts +0 -182
- package/src/kayenta/reducers/app.ts +0 -56
- package/src/kayenta/reducers/asyncRequest.ts +0 -5
- package/src/kayenta/reducers/data.ts +0 -169
- package/src/kayenta/reducers/editingTemplate.ts +0 -54
- package/src/kayenta/reducers/group.ts +0 -82
- package/src/kayenta/reducers/index.ts +0 -245
- package/src/kayenta/reducers/prometheusMetricConfig.spec.ts +0 -33
- package/src/kayenta/reducers/prometheusMetricConfig.ts +0 -56
- package/src/kayenta/reducers/selectedConfig.spec.ts +0 -190
- package/src/kayenta/reducers/selectedConfig.ts +0 -566
- package/src/kayenta/reducers/selectedRun.ts +0 -101
- package/src/kayenta/reducers/signalFxMetricConfig.ts +0 -36
- package/src/kayenta/reducers/stackdriverMetricConfig.spec.ts +0 -33
- package/src/kayenta/reducers/stackdriverMetricConfig.ts +0 -41
- package/src/kayenta/reducers/templates.spec.ts +0 -192
- package/src/kayenta/reducers/validators.ts +0 -118
- package/src/kayenta/report/detail/allMetricResultsHeader.tsx +0 -32
- package/src/kayenta/report/detail/clickableHeader.tsx +0 -21
- package/src/kayenta/report/detail/colors.ts +0 -47
- package/src/kayenta/report/detail/detail.less +0 -16
- package/src/kayenta/report/detail/detail.tsx +0 -48
- package/src/kayenta/report/detail/detailLoader.tsx +0 -55
- package/src/kayenta/report/detail/graph/graph.tsx +0 -37
- package/src/kayenta/report/detail/graph/metricSetPairGraph.service.ts +0 -35
- package/src/kayenta/report/detail/graph/semiotic/boxplot.less +0 -45
- package/src/kayenta/report/detail/graph/semiotic/boxplot.tsx +0 -283
- package/src/kayenta/report/detail/graph/semiotic/chartHeader.tsx +0 -19
- package/src/kayenta/report/detail/graph/semiotic/chartLegend.less +0 -26
- package/src/kayenta/report/detail/graph/semiotic/chartLegend.tsx +0 -42
- package/src/kayenta/report/detail/graph/semiotic/circleIcon.tsx +0 -16
- package/src/kayenta/report/detail/graph/semiotic/config.less +0 -5
- package/src/kayenta/report/detail/graph/semiotic/config.ts +0 -38
- package/src/kayenta/report/detail/graph/semiotic/customAxisTickLabel.tsx +0 -17
- package/src/kayenta/report/detail/graph/semiotic/declarations/labella.d.ts +0 -16
- package/src/kayenta/report/detail/graph/semiotic/declarations/react-container-dimensions.d.ts +0 -3
- package/src/kayenta/report/detail/graph/semiotic/declarations/semiotic.d.ts +0 -160
- package/src/kayenta/report/detail/graph/semiotic/differenceArea.less +0 -17
- package/src/kayenta/report/detail/graph/semiotic/differenceArea.tsx +0 -186
- package/src/kayenta/report/detail/graph/semiotic/histogram.less +0 -22
- package/src/kayenta/report/detail/graph/semiotic/histogram.tsx +0 -251
- package/src/kayenta/report/detail/graph/semiotic/index.tsx +0 -19
- package/src/kayenta/report/detail/graph/semiotic/noValidDataSign.less +0 -5
- package/src/kayenta/report/detail/graph/semiotic/noValidDataSign.tsx +0 -10
- package/src/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.less +0 -6
- package/src/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.tsx +0 -58
- package/src/kayenta/report/detail/graph/semiotic/semioticGraph.less +0 -53
- package/src/kayenta/report/detail/graph/semiotic/semioticGraph.tsx +0 -49
- package/src/kayenta/report/detail/graph/semiotic/timeSeries.less +0 -42
- package/src/kayenta/report/detail/graph/semiotic/timeSeries.tsx +0 -473
- package/src/kayenta/report/detail/graph/semiotic/tooltip.tsx +0 -55
- package/src/kayenta/report/detail/graph/semiotic/utils.ts +0 -90
- package/src/kayenta/report/detail/graphTypeSelector.less +0 -4
- package/src/kayenta/report/detail/graphTypeSelector.tsx +0 -50
- package/src/kayenta/report/detail/groupScores.tsx +0 -68
- package/src/kayenta/report/detail/header.less +0 -70
- package/src/kayenta/report/detail/header.tsx +0 -39
- package/src/kayenta/report/detail/headerArrow.tsx +0 -13
- package/src/kayenta/report/detail/loadStates.tsx +0 -31
- package/src/kayenta/report/detail/metricResultActions.less +0 -29
- package/src/kayenta/report/detail/metricResultActions.tsx +0 -87
- package/src/kayenta/report/detail/metricResultClassification.tsx +0 -22
- package/src/kayenta/report/detail/metricResultDetail.tsx +0 -20
- package/src/kayenta/report/detail/metricResultDetailLayout.tsx +0 -19
- package/src/kayenta/report/detail/metricResultDeviation.tsx +0 -25
- package/src/kayenta/report/detail/metricResultStats.less +0 -9
- package/src/kayenta/report/detail/metricResultStats.tsx +0 -120
- package/src/kayenta/report/detail/metricResults.less +0 -12
- package/src/kayenta/report/detail/metricResults.tsx +0 -52
- package/src/kayenta/report/detail/metricResultsClassificationFilters.tsx +0 -65
- package/src/kayenta/report/detail/metricResultsColumns.tsx +0 -27
- package/src/kayenta/report/detail/metricResultsList.less +0 -44
- package/src/kayenta/report/detail/metricResultsList.tsx +0 -120
- package/src/kayenta/report/detail/metricSetPairLoadStates.tsx +0 -22
- package/src/kayenta/report/detail/multipleResultsTable.tsx +0 -81
- package/src/kayenta/report/detail/reportException.tsx +0 -57
- package/src/kayenta/report/detail/reportExplanation.less +0 -12
- package/src/kayenta/report/detail/reportExplanation.tsx +0 -32
- package/src/kayenta/report/detail/reportMetadata.tsx +0 -167
- package/src/kayenta/report/detail/reportScores.less +0 -47
- package/src/kayenta/report/detail/reportScores.tsx +0 -80
- package/src/kayenta/report/detail/score.tsx +0 -33
- package/src/kayenta/report/detail/sourceLinks.tsx +0 -69
- package/src/kayenta/report/list/configLink.tsx +0 -32
- package/src/kayenta/report/list/executionList.less +0 -7
- package/src/kayenta/report/list/loadStates.tsx +0 -32
- package/src/kayenta/report/list/pipelineLink.tsx +0 -15
- package/src/kayenta/report/list/reportLink.tsx +0 -33
- package/src/kayenta/report/list/table.tsx +0 -309
- package/src/kayenta/report/report.tsx +0 -11
- package/src/kayenta/selectors/filterTemplatesSelectors.ts +0 -87
- package/src/kayenta/selectors/index.ts +0 -62
- package/src/kayenta/service/canaryConfig.service.ts +0 -122
- package/src/kayenta/service/canaryRun.service.ts +0 -60
- package/src/kayenta/service/delegateFactory.ts +0 -24
- package/src/kayenta/service/metricsServiceMetadata.service.ts +0 -9
- package/src/kayenta/stages/kayentaStage/AnalysisType.spec.tsx +0 -47
- package/src/kayenta/stages/kayentaStage/AnalysisType.tsx +0 -49
- package/src/kayenta/stages/kayentaStage/CanaryExecutionLabel.tsx +0 -26
- package/src/kayenta/stages/kayentaStage/analysisType.component.ts +0 -12
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.component.ts +0 -12
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.less +0 -5
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.tsx +0 -136
- package/src/kayenta/stages/kayentaStage/forAnalysisType.component.ts +0 -45
- package/src/kayenta/stages/kayentaStage/kayentaStage.controller.ts +0 -789
- package/src/kayenta/stages/kayentaStage/kayentaStage.html +0 -528
- package/src/kayenta/stages/kayentaStage/kayentaStage.less +0 -5
- package/src/kayenta/stages/kayentaStage/kayentaStage.transformer.ts +0 -179
- package/src/kayenta/stages/kayentaStage/kayentaStage.ts +0 -221
- package/src/kayenta/stages/kayentaStage/kayentaStageConfigSection.component.ts +0 -21
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.controller.ts +0 -88
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.html +0 -114
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.less +0 -6
- package/src/kayenta/stages/kayentaStage/stageTypes.ts +0 -5
- package/src/kayenta/utils/duration.spec.ts +0 -69
- package/src/kayenta/utils/duration.ts +0 -48
- package/src/lazy.ts +0 -29
- package/src/stub.ts +0 -60
- package/tsconfig.json +0 -11
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { mount } from 'enzyme';
|
|
2
|
-
import { ICanaryMetricConfig } from 'kayenta';
|
|
3
|
-
import * as Creators from 'kayenta/actions/creators';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Provider } from 'react-redux';
|
|
6
|
-
import { createMockStore } from 'redux-test-utils';
|
|
7
|
-
|
|
8
|
-
import EditMetricModal from './editMetricModal';
|
|
9
|
-
|
|
10
|
-
describe('EditMetricModal', () => {
|
|
11
|
-
const mockProps = {
|
|
12
|
-
metric: {
|
|
13
|
-
id: '1',
|
|
14
|
-
name: 'Test Metric',
|
|
15
|
-
groups: ['Test Group'],
|
|
16
|
-
type: 'Test Type',
|
|
17
|
-
analysisConfigurations: {
|
|
18
|
-
canary: {
|
|
19
|
-
direction: 'increase',
|
|
20
|
-
nanStrategy: 'default',
|
|
21
|
-
critical: false,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
groups: ['Group 1', 'Group 2'],
|
|
26
|
-
isTemplateValid: true,
|
|
27
|
-
useInlineTemplateEditor: false,
|
|
28
|
-
disableEdit: false,
|
|
29
|
-
validationErrors: {},
|
|
30
|
-
rename: jest.fn(),
|
|
31
|
-
changeGroup: jest.fn(),
|
|
32
|
-
updateDirection: jest.fn(),
|
|
33
|
-
updateNanStrategy: jest.fn(),
|
|
34
|
-
updateCriticality: jest.fn(),
|
|
35
|
-
updateDataRequired: jest.fn(),
|
|
36
|
-
confirm: jest.fn(),
|
|
37
|
-
cancel: jest.fn(),
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
const mockState = {
|
|
41
|
-
app: {
|
|
42
|
-
disableConfigEdit: false,
|
|
43
|
-
},
|
|
44
|
-
selectedConfig: {
|
|
45
|
-
editingMetric: {
|
|
46
|
-
name: 'Test Metric',
|
|
47
|
-
query: {
|
|
48
|
-
serviceType: 'prometheus',
|
|
49
|
-
},
|
|
50
|
-
groups: ['Group 1'],
|
|
51
|
-
},
|
|
52
|
-
editingTemplate: {},
|
|
53
|
-
group: {
|
|
54
|
-
list: ['Group 1', 'Group 2'],
|
|
55
|
-
},
|
|
56
|
-
metricList: [] as ICanaryMetricConfig[],
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const store = createMockStore(mockState);
|
|
61
|
-
store.dispatch = jest.fn();
|
|
62
|
-
|
|
63
|
-
const buildComponent = (props: object) =>
|
|
64
|
-
mount(
|
|
65
|
-
<Provider store={store}>
|
|
66
|
-
<EditMetricModal {...mockProps} {...props} />
|
|
67
|
-
</Provider>,
|
|
68
|
-
).find(EditMetricModal);
|
|
69
|
-
|
|
70
|
-
it('renders without crashing', () => {
|
|
71
|
-
const component = buildComponent({});
|
|
72
|
-
expect(component.exists()).toBe(true);
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it('calls cancel when the cancel button is clicked', () => {
|
|
76
|
-
const component = buildComponent({});
|
|
77
|
-
const cancelBtn = component
|
|
78
|
-
.find('button')
|
|
79
|
-
.filterWhere((btn) => btn.text().trim() === 'Cancel')
|
|
80
|
-
.at(0);
|
|
81
|
-
cancelBtn.simulate('click');
|
|
82
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.editMetricCancel());
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
it('calls confirm when the confirm button is clicked', () => {
|
|
86
|
-
const component = buildComponent({});
|
|
87
|
-
const confirmBtn = component
|
|
88
|
-
.find('button')
|
|
89
|
-
.filterWhere((btn) => btn.text().trim() === 'OK')
|
|
90
|
-
.at(0);
|
|
91
|
-
confirmBtn.simulate('click');
|
|
92
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.editMetricConfirm());
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
it('calls updateDirection when a direction radio button is clicked', () => {
|
|
96
|
-
const component = buildComponent({});
|
|
97
|
-
const changeDirectionEvent = { target: { value: 'increase', dataset: { id: '1' } } };
|
|
98
|
-
component.find('input[name="direction"][value="increase"]').simulate('change', changeDirectionEvent);
|
|
99
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.updateMetricDirection({ id: '1', direction: 'increase' }));
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
it('calls updateNanStrategy when the nan strategy is changed', () => {
|
|
103
|
-
const component = buildComponent({});
|
|
104
|
-
const changeNanStrategyEvent = { target: { value: 'replace', dataset: { id: '1' } } };
|
|
105
|
-
component.find('input[name="nanStrategy"][value="replace"]').simulate('change', changeNanStrategyEvent);
|
|
106
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.updateMetricNanStrategy({ id: '1', strategy: 'replace' }));
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
it('calls updateOutlierStrategy when the outlier strategy is changed', () => {
|
|
110
|
-
const component = buildComponent({});
|
|
111
|
-
const changeOutlierStrategyEvent = { target: { value: 'remove', dataset: { id: '1' } } };
|
|
112
|
-
component.find('input[name="outlierStrategy"][value="remove"]').simulate('change', changeOutlierStrategyEvent);
|
|
113
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.updateMetricOutlierStrategy({ id: '1', strategy: 'remove' }));
|
|
114
|
-
});
|
|
115
|
-
|
|
116
|
-
it('calls updateCriticality when the criticality checkbox is changed', () => {
|
|
117
|
-
const component = buildComponent({});
|
|
118
|
-
const changeCriticalityEvent = { target: { checked: true, dataset: { id: '1' } } };
|
|
119
|
-
component.find('input[type="checkbox"][name="criticality"]').simulate('change', changeCriticalityEvent);
|
|
120
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.updateMetricCriticality({ id: '1', critical: true }));
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it('calls updateDataRequired when the data required checkbox is changed', () => {
|
|
124
|
-
const component = buildComponent({ disableEdit: true });
|
|
125
|
-
const changeDataRequiredEvent = { target: { checked: true, dataset: { id: '1' } } };
|
|
126
|
-
component.find('input[type="checkbox"][name="dataRequired"]').simulate('change', changeDataRequiredEvent);
|
|
127
|
-
expect(store.dispatch).toHaveBeenCalledWith(Creators.updateMetricDataRequired({ id: '1', mustHaveData: true }));
|
|
128
|
-
});
|
|
129
|
-
});
|
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
import classNames from 'classnames';
|
|
2
|
-
import * as Creators from 'kayenta/actions/creators';
|
|
3
|
-
import { CanarySettings } from 'kayenta/canary.settings';
|
|
4
|
-
import { ICanaryMetricConfig } from 'kayenta/domain';
|
|
5
|
-
import { DISABLE_EDIT_CONFIG, DisableableInput, DisableableSelect } from 'kayenta/layout/disableable';
|
|
6
|
-
import FormRow from 'kayenta/layout/formRow';
|
|
7
|
-
import RadioChoice from 'kayenta/layout/radioChoice';
|
|
8
|
-
import Styleguide from 'kayenta/layout/styleguide';
|
|
9
|
-
import metricStoreConfigService from 'kayenta/metricStore/metricStoreConfig.service';
|
|
10
|
-
import { ICanaryState } from 'kayenta/reducers';
|
|
11
|
-
import { editingMetricValidationErrorsSelector } from 'kayenta/selectors';
|
|
12
|
-
import { isTemplateValidSelector, useInlineTemplateEditorSelector } from 'kayenta/selectors/filterTemplatesSelectors';
|
|
13
|
-
import { isNull, values } from 'lodash';
|
|
14
|
-
import * as React from 'react';
|
|
15
|
-
import { Modal } from 'react-bootstrap';
|
|
16
|
-
import { connect } from 'react-redux';
|
|
17
|
-
|
|
18
|
-
import { noop } from '@spinnaker/core';
|
|
19
|
-
|
|
20
|
-
import EditMetricEffectSizes from './editMetricEffectSizes';
|
|
21
|
-
import { ICanaryMetricValidationErrors } from './editMetricValidation';
|
|
22
|
-
import FilterTemplateSelector from './filterTemplateSelector';
|
|
23
|
-
import InlineTemplateEditor from './inlineTemplateEditor';
|
|
24
|
-
import MetricConfigurerDelegator from './metricConfigurerDelegator';
|
|
25
|
-
|
|
26
|
-
import './editMetricModal.less';
|
|
27
|
-
|
|
28
|
-
interface IEditMetricModalDispatchProps {
|
|
29
|
-
rename: (event: any) => void;
|
|
30
|
-
changeGroup: (event: any) => void;
|
|
31
|
-
updateDirection: (event: any) => void;
|
|
32
|
-
updateNanStrategy: (event: any) => void;
|
|
33
|
-
updateOutlierStrategy: (event: any) => void;
|
|
34
|
-
updateCriticality: (event: any) => void;
|
|
35
|
-
updateDataRequired: (event: any) => void;
|
|
36
|
-
confirm: () => void;
|
|
37
|
-
cancel: () => void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface IEditMetricModalStateProps {
|
|
41
|
-
metric: ICanaryMetricConfig;
|
|
42
|
-
groups: string[];
|
|
43
|
-
isTemplateValid: boolean;
|
|
44
|
-
useInlineTemplateEditor: boolean;
|
|
45
|
-
disableEdit: boolean;
|
|
46
|
-
validationErrors: ICanaryMetricValidationErrors;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/*
|
|
50
|
-
* Modal to edit metric details.
|
|
51
|
-
*/
|
|
52
|
-
function EditMetricModal({
|
|
53
|
-
metric,
|
|
54
|
-
rename,
|
|
55
|
-
changeGroup,
|
|
56
|
-
groups,
|
|
57
|
-
confirm,
|
|
58
|
-
cancel,
|
|
59
|
-
isTemplateValid,
|
|
60
|
-
updateDirection,
|
|
61
|
-
updateNanStrategy,
|
|
62
|
-
updateOutlierStrategy,
|
|
63
|
-
updateCriticality,
|
|
64
|
-
updateDataRequired,
|
|
65
|
-
useInlineTemplateEditor,
|
|
66
|
-
disableEdit,
|
|
67
|
-
validationErrors,
|
|
68
|
-
}: IEditMetricModalDispatchProps & IEditMetricModalStateProps) {
|
|
69
|
-
if (!metric) {
|
|
70
|
-
return null;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const direction = metric.analysisConfigurations?.canary?.direction ?? 'either';
|
|
74
|
-
const nanStrategy = metric.analysisConfigurations?.canary?.nanStrategy ?? 'default';
|
|
75
|
-
const outlierStrategy = metric.analysisConfigurations?.canary?.outliers?.strategy ?? 'default';
|
|
76
|
-
const critical = metric.analysisConfigurations?.canary?.critical ?? false;
|
|
77
|
-
const dataRequired = metric.analysisConfigurations?.canary?.mustHaveData ?? false;
|
|
78
|
-
const isConfirmDisabled =
|
|
79
|
-
!isTemplateValid ||
|
|
80
|
-
disableEdit ||
|
|
81
|
-
CanarySettings.disableConfigEdit ||
|
|
82
|
-
values(validationErrors).some((e) => !isNull(e));
|
|
83
|
-
|
|
84
|
-
const metricGroup = metric.groups.length ? metric.groups[0] : groups[0];
|
|
85
|
-
const templatesEnabled =
|
|
86
|
-
metricStoreConfigService.getDelegate(metric.query.type) &&
|
|
87
|
-
metricStoreConfigService.getDelegate(metric.query.type).useTemplates &&
|
|
88
|
-
CanarySettings.templatesEnabled;
|
|
89
|
-
return (
|
|
90
|
-
<Modal bsSize="large" show={true} onHide={noop} className={classNames('kayenta-edit-metric-modal')}>
|
|
91
|
-
<Styleguide>
|
|
92
|
-
<Modal.Header>
|
|
93
|
-
<Modal.Title>
|
|
94
|
-
{disableEdit || CanarySettings.disableConfigEdit ? 'Metric Details' : 'Configure Metric'}
|
|
95
|
-
</Modal.Title>
|
|
96
|
-
</Modal.Header>
|
|
97
|
-
<Modal.Body>
|
|
98
|
-
<FormRow label="Group" inputOnly={true}>
|
|
99
|
-
{metric.groups.length > 1 && (
|
|
100
|
-
<DisableableInput
|
|
101
|
-
type="text"
|
|
102
|
-
value={metric.groups}
|
|
103
|
-
data-id={metric.id}
|
|
104
|
-
onChange={changeGroup}
|
|
105
|
-
disabled={CanarySettings.disableConfigEdit}
|
|
106
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
107
|
-
/>
|
|
108
|
-
)}
|
|
109
|
-
{metric.groups.length < 2 && (
|
|
110
|
-
<DisableableSelect
|
|
111
|
-
value={metricGroup}
|
|
112
|
-
onChange={changeGroup}
|
|
113
|
-
className="form-control input-sm"
|
|
114
|
-
disabled={CanarySettings.disableConfigEdit}
|
|
115
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
116
|
-
>
|
|
117
|
-
{groups.map((g) => (
|
|
118
|
-
<option key={g} value={g}>
|
|
119
|
-
{g}
|
|
120
|
-
</option>
|
|
121
|
-
))}
|
|
122
|
-
</DisableableSelect>
|
|
123
|
-
)}
|
|
124
|
-
</FormRow>
|
|
125
|
-
<FormRow label="Name" error={validationErrors?.name?.message ?? null} inputOnly={true}>
|
|
126
|
-
<DisableableInput
|
|
127
|
-
type="text"
|
|
128
|
-
value={metric.name}
|
|
129
|
-
data-id={metric.id}
|
|
130
|
-
onChange={rename}
|
|
131
|
-
disabled={CanarySettings.disableConfigEdit}
|
|
132
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
133
|
-
/>
|
|
134
|
-
</FormRow>
|
|
135
|
-
<FormRow label="Fail on">
|
|
136
|
-
<RadioChoice
|
|
137
|
-
value="increase"
|
|
138
|
-
label="Increase"
|
|
139
|
-
name="direction"
|
|
140
|
-
current={direction}
|
|
141
|
-
action={updateDirection}
|
|
142
|
-
/>
|
|
143
|
-
<RadioChoice
|
|
144
|
-
value="decrease"
|
|
145
|
-
label="Decrease"
|
|
146
|
-
name="direction"
|
|
147
|
-
current={direction}
|
|
148
|
-
action={updateDirection}
|
|
149
|
-
/>
|
|
150
|
-
<RadioChoice value="either" label="Either" name="direction" current={direction} action={updateDirection} />
|
|
151
|
-
</FormRow>
|
|
152
|
-
<FormRow label="Criticality" checkbox={true}>
|
|
153
|
-
<label>
|
|
154
|
-
<DisableableInput
|
|
155
|
-
type="checkbox"
|
|
156
|
-
name="criticality"
|
|
157
|
-
checked={critical}
|
|
158
|
-
onChange={updateCriticality}
|
|
159
|
-
disabled={CanarySettings.disableConfigEdit}
|
|
160
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
161
|
-
/>
|
|
162
|
-
Fail the canary if this metric fails
|
|
163
|
-
</label>
|
|
164
|
-
</FormRow>
|
|
165
|
-
<FormRow label="Data Required" checkbox={true}>
|
|
166
|
-
<label>
|
|
167
|
-
<DisableableInput
|
|
168
|
-
type="checkbox"
|
|
169
|
-
name="dataRequired"
|
|
170
|
-
checked={dataRequired}
|
|
171
|
-
onChange={updateDataRequired}
|
|
172
|
-
disabled={CanarySettings.disableConfigEdit}
|
|
173
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
174
|
-
/>
|
|
175
|
-
Fail the metric if data is missing
|
|
176
|
-
</label>
|
|
177
|
-
</FormRow>
|
|
178
|
-
<FormRow label="NaN Strategy" helpId="canary.config.nanStrategy">
|
|
179
|
-
<RadioChoice
|
|
180
|
-
value="default"
|
|
181
|
-
label="Default (remove)"
|
|
182
|
-
name="nanStrategy"
|
|
183
|
-
current={nanStrategy}
|
|
184
|
-
action={updateNanStrategy}
|
|
185
|
-
/>
|
|
186
|
-
<RadioChoice
|
|
187
|
-
value="replace"
|
|
188
|
-
label="Replace with zero"
|
|
189
|
-
name="nanStrategy"
|
|
190
|
-
current={nanStrategy}
|
|
191
|
-
action={updateNanStrategy}
|
|
192
|
-
/>
|
|
193
|
-
<RadioChoice
|
|
194
|
-
value="remove"
|
|
195
|
-
label="Remove"
|
|
196
|
-
name="nanStrategy"
|
|
197
|
-
current={nanStrategy}
|
|
198
|
-
action={updateNanStrategy}
|
|
199
|
-
/>
|
|
200
|
-
</FormRow>
|
|
201
|
-
<FormRow label="Outlier Strategy" helpId="canary.config.outlierStrategy">
|
|
202
|
-
<RadioChoice
|
|
203
|
-
value="default"
|
|
204
|
-
label="Default (keep)"
|
|
205
|
-
name="outlierStrategy"
|
|
206
|
-
current={outlierStrategy}
|
|
207
|
-
action={updateOutlierStrategy}
|
|
208
|
-
/>
|
|
209
|
-
<RadioChoice
|
|
210
|
-
value="remove"
|
|
211
|
-
label="Remove"
|
|
212
|
-
name="outlierStrategy"
|
|
213
|
-
current={outlierStrategy}
|
|
214
|
-
action={updateOutlierStrategy}
|
|
215
|
-
/>
|
|
216
|
-
<RadioChoice
|
|
217
|
-
value="keep"
|
|
218
|
-
label="Keep"
|
|
219
|
-
name="outlierStrategy"
|
|
220
|
-
current={outlierStrategy}
|
|
221
|
-
action={updateOutlierStrategy}
|
|
222
|
-
/>
|
|
223
|
-
</FormRow>
|
|
224
|
-
<EditMetricEffectSizes />
|
|
225
|
-
<MetricConfigurerDelegator />
|
|
226
|
-
{templatesEnabled && !useInlineTemplateEditor && <FilterTemplateSelector />}
|
|
227
|
-
{templatesEnabled && useInlineTemplateEditor && <InlineTemplateEditor />}
|
|
228
|
-
</Modal.Body>
|
|
229
|
-
<Modal.Footer>
|
|
230
|
-
<ul className="list-inline pull-right">
|
|
231
|
-
<li>
|
|
232
|
-
<button className="passive" onClick={cancel}>
|
|
233
|
-
Cancel
|
|
234
|
-
</button>
|
|
235
|
-
</li>
|
|
236
|
-
<li>
|
|
237
|
-
<button className="primary" disabled={isConfirmDisabled} onClick={confirm}>
|
|
238
|
-
OK
|
|
239
|
-
</button>
|
|
240
|
-
</li>
|
|
241
|
-
</ul>
|
|
242
|
-
</Modal.Footer>
|
|
243
|
-
</Styleguide>
|
|
244
|
-
</Modal>
|
|
245
|
-
);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
function mapDispatchToProps(dispatch: any): IEditMetricModalDispatchProps {
|
|
249
|
-
return {
|
|
250
|
-
rename: (event: any) => {
|
|
251
|
-
dispatch(Creators.renameMetric({ id: event.target.dataset.id, name: event.target.value }));
|
|
252
|
-
},
|
|
253
|
-
changeGroup: (event: any) => {
|
|
254
|
-
dispatch(Creators.updateMetricGroup({ id: event.target.dataset.id, group: event.target.value }));
|
|
255
|
-
},
|
|
256
|
-
cancel: () => {
|
|
257
|
-
dispatch(Creators.editMetricCancel());
|
|
258
|
-
dispatch(Creators.editTemplateCancel());
|
|
259
|
-
},
|
|
260
|
-
confirm: () => {
|
|
261
|
-
dispatch(Creators.editMetricConfirm());
|
|
262
|
-
dispatch(Creators.editTemplateCancel());
|
|
263
|
-
},
|
|
264
|
-
updateDirection: ({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
265
|
-
dispatch(Creators.updateMetricDirection({ id: target.dataset.id, direction: target.value }));
|
|
266
|
-
},
|
|
267
|
-
updateNanStrategy: ({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
268
|
-
dispatch(Creators.updateMetricNanStrategy({ id: target.dataset.id, strategy: target.value }));
|
|
269
|
-
},
|
|
270
|
-
updateOutlierStrategy: ({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
271
|
-
dispatch(Creators.updateMetricOutlierStrategy({ id: target.dataset.id, strategy: target.value }));
|
|
272
|
-
},
|
|
273
|
-
updateCriticality: ({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
274
|
-
dispatch(Creators.updateMetricCriticality({ id: target.dataset.id, critical: Boolean(target.checked) }));
|
|
275
|
-
},
|
|
276
|
-
updateDataRequired: ({ target }: React.ChangeEvent<HTMLInputElement>) => {
|
|
277
|
-
dispatch(Creators.updateMetricDataRequired({ id: target.dataset.id, mustHaveData: Boolean(target.checked) }));
|
|
278
|
-
},
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
function mapStateToProps(state: ICanaryState): IEditMetricModalStateProps {
|
|
283
|
-
return {
|
|
284
|
-
metric: state.selectedConfig.editingMetric,
|
|
285
|
-
groups: state.selectedConfig.group.list.sort(),
|
|
286
|
-
isTemplateValid: isTemplateValidSelector(state),
|
|
287
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
288
|
-
useInlineTemplateEditor: useInlineTemplateEditorSelector(state),
|
|
289
|
-
disableEdit: state.app.disableConfigEdit || CanarySettings.disableConfigEdit,
|
|
290
|
-
validationErrors: editingMetricValidationErrorsSelector(state),
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
export default connect(mapStateToProps, mapDispatchToProps)(EditMetricModal);
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ICanaryMetricConfig } from '../domain';
|
|
2
|
-
import { ICanaryMetricValidationErrors, validateMetric, validateMetricName } from './editMetricValidation';
|
|
3
|
-
|
|
4
|
-
describe('Canary metric validation', () => {
|
|
5
|
-
let errors: ICanaryMetricValidationErrors;
|
|
6
|
-
let editingMetric: ICanaryMetricConfig;
|
|
7
|
-
let metricList: ICanaryMetricConfig[];
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
errors = createErrors();
|
|
11
|
-
editingMetric = createEditingMetric('A', 'a');
|
|
12
|
-
metricList = createMetricList();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
describe('validateMetricName', () => {
|
|
16
|
-
it('Does not update errors when metric name is valid', () => {
|
|
17
|
-
editingMetric.name = 'D';
|
|
18
|
-
expect(validateMetricName(errors, editingMetric, metricList).name).toBeNull();
|
|
19
|
-
});
|
|
20
|
-
it('Updates errors appropriately when metric name is empty', () => {
|
|
21
|
-
editingMetric.name = '';
|
|
22
|
-
expect(validateMetricName(errors, editingMetric, metricList).name).toEqual({
|
|
23
|
-
message: 'Name is required',
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
it('Updates errors appropriately when metric name is not unique', () => {
|
|
27
|
-
editingMetric.name = 'B';
|
|
28
|
-
expect(validateMetricName(errors, editingMetric, metricList).name).toEqual({
|
|
29
|
-
message: "Metric 'B' already exists",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
describe('validateMetric', () => {
|
|
35
|
-
it('Does not update errors when all fields are valid', () => {
|
|
36
|
-
expect(validateMetric(editingMetric, metricList)).toEqual(errors);
|
|
37
|
-
});
|
|
38
|
-
it('Reduces validation of all fields into one object', () => {
|
|
39
|
-
editingMetric.name = '';
|
|
40
|
-
expect(validateMetric(editingMetric, metricList)).toEqual({
|
|
41
|
-
name: { message: 'Name is required' },
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
function createErrors(): ICanaryMetricValidationErrors {
|
|
48
|
-
return {
|
|
49
|
-
name: null,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function createEditingMetric(name: string, id: string): ICanaryMetricConfig {
|
|
54
|
-
return {
|
|
55
|
-
name,
|
|
56
|
-
id,
|
|
57
|
-
scopeName: 'default',
|
|
58
|
-
} as ICanaryMetricConfig;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function createMetricList(): ICanaryMetricConfig[] {
|
|
62
|
-
return [createEditingMetric('A', 'a'), createEditingMetric('B', 'b'), createEditingMetric('C', 'c')];
|
|
63
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { get } from 'lodash';
|
|
2
|
-
import { ICanaryMetricConfig } from '../domain';
|
|
3
|
-
|
|
4
|
-
export interface ICanaryMetricValidationError {
|
|
5
|
-
message: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICanaryMetricValidationErrors {
|
|
9
|
-
[key: string]: ICanaryMetricValidationError;
|
|
10
|
-
}
|
|
11
|
-
export type MetricValidatorFunction = (
|
|
12
|
-
errors: ICanaryMetricValidationErrors,
|
|
13
|
-
editingMetric: ICanaryMetricConfig,
|
|
14
|
-
metricList?: ICanaryMetricConfig[],
|
|
15
|
-
) => ICanaryMetricValidationErrors;
|
|
16
|
-
|
|
17
|
-
export function validateMetricName(
|
|
18
|
-
errors: ICanaryMetricValidationErrors,
|
|
19
|
-
editingMetric: ICanaryMetricConfig,
|
|
20
|
-
metricList: ICanaryMetricConfig[],
|
|
21
|
-
): ICanaryMetricValidationErrors {
|
|
22
|
-
const nextErrors = { ...errors };
|
|
23
|
-
|
|
24
|
-
const editingMetricName = get(editingMetric, 'name', '');
|
|
25
|
-
if (!editingMetricName) {
|
|
26
|
-
nextErrors.name = { message: 'Name is required' };
|
|
27
|
-
return nextErrors;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const isNameUnique = metricList.every((m) => m.name !== editingMetricName || m.id === editingMetric.id);
|
|
31
|
-
if (!isNameUnique) {
|
|
32
|
-
nextErrors.name = { message: `Metric '${editingMetricName}' already exists` };
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return nextErrors;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function validateMetric(
|
|
39
|
-
editingMetric: ICanaryMetricConfig,
|
|
40
|
-
metricList: ICanaryMetricConfig[],
|
|
41
|
-
): ICanaryMetricValidationErrors {
|
|
42
|
-
const errors: ICanaryMetricValidationErrors = {
|
|
43
|
-
name: null,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
return [validateMetricName].reduce(
|
|
47
|
-
(reducedErrors, validator) => validator(reducedErrors, editingMetric, metricList),
|
|
48
|
-
errors,
|
|
49
|
-
);
|
|
50
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.template-editor-textarea {
|
|
2
|
-
// Prevent horizontal resizing
|
|
3
|
-
min-width: 100%;
|
|
4
|
-
max-width: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.template-editor-value-formatted {
|
|
8
|
-
margin: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.filter-template-option {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: space-between;
|
|
15
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { mount } from 'enzyme';
|
|
2
|
-
import { DisableableInput, DisableableTextarea } from 'kayenta/layout/disableable';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Provider } from 'react-redux';
|
|
5
|
-
import Select, { Option } from 'react-select';
|
|
6
|
-
import { createMockStore } from 'redux-test-utils';
|
|
7
|
-
|
|
8
|
-
import { noop, ValidationMessage } from '@spinnaker/core';
|
|
9
|
-
|
|
10
|
-
import { FilterTemplateSelector, IFilterTemplateSelectorProps } from './filterTemplateSelector';
|
|
11
|
-
|
|
12
|
-
const buildComponent = (props: IFilterTemplateSelectorProps) =>
|
|
13
|
-
mount(
|
|
14
|
-
<Provider store={createMockStore()}>
|
|
15
|
-
<FilterTemplateSelector {...props} />
|
|
16
|
-
</Provider>,
|
|
17
|
-
).find(FilterTemplateSelector);
|
|
18
|
-
|
|
19
|
-
describe('<FilterTemplateSelector />', () => {
|
|
20
|
-
let defaultProps: IFilterTemplateSelectorProps;
|
|
21
|
-
beforeEach(() => {
|
|
22
|
-
defaultProps = {
|
|
23
|
-
editedTemplateName: null,
|
|
24
|
-
editedTemplateValue: null,
|
|
25
|
-
selectedTemplateName: 'my-filter-template',
|
|
26
|
-
templates: {
|
|
27
|
-
'my-filter-template': 'metadata.user_labels."app"="${scope}"',
|
|
28
|
-
'my-other-filter-template': 'metadata.user_labels."app"="${location}"',
|
|
29
|
-
},
|
|
30
|
-
validation: { warnings: {}, errors: {} },
|
|
31
|
-
deleteTemplate: noop,
|
|
32
|
-
editTemplateBegin: noop,
|
|
33
|
-
editTemplateCancel: noop,
|
|
34
|
-
editTemplateConfirm: noop,
|
|
35
|
-
editTemplateName: noop,
|
|
36
|
-
editTemplateValue: noop,
|
|
37
|
-
selectTemplate: noop,
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
it('builds options from filter template map', () => {
|
|
41
|
-
const component = buildComponent(defaultProps);
|
|
42
|
-
const allProps: any = component.find(Select).first().props();
|
|
43
|
-
|
|
44
|
-
expect(allProps.options.map((o: Option) => o.value)).toEqual([
|
|
45
|
-
'my-filter-template',
|
|
46
|
-
'my-other-filter-template',
|
|
47
|
-
null,
|
|
48
|
-
]); // null is "Create new" option
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it('renders filter template', () => {
|
|
52
|
-
let component = buildComponent(defaultProps);
|
|
53
|
-
|
|
54
|
-
let pre = component.find('pre').first();
|
|
55
|
-
expect(pre.html()).toContain('${scope}');
|
|
56
|
-
|
|
57
|
-
component = buildComponent({
|
|
58
|
-
...defaultProps,
|
|
59
|
-
selectedTemplateName: 'my-other-filter-template',
|
|
60
|
-
});
|
|
61
|
-
pre = component.find('pre').first();
|
|
62
|
-
expect(pre.html()).toContain('${location}');
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
it('does not render filter template if not selected', () => {
|
|
66
|
-
const component = buildComponent({
|
|
67
|
-
...defaultProps,
|
|
68
|
-
selectedTemplateName: null,
|
|
69
|
-
});
|
|
70
|
-
expect(component.find('pre').length).toEqual(0);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it('renders errors when appropriate', () => {
|
|
74
|
-
let component = buildComponent(defaultProps);
|
|
75
|
-
expect(component.find(ValidationMessage).length).toEqual(0);
|
|
76
|
-
|
|
77
|
-
component = buildComponent({
|
|
78
|
-
...defaultProps,
|
|
79
|
-
editedTemplateName: '',
|
|
80
|
-
editedTemplateValue: 'metadata.user_labels."app"="${scope}"',
|
|
81
|
-
validation: {
|
|
82
|
-
warnings: {},
|
|
83
|
-
errors: {
|
|
84
|
-
templateName: {
|
|
85
|
-
message: 'Template name is required',
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
expect(component.find(ValidationMessage).first().props().message).toEqual('Template name is required');
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
it('renders input and textarea when editing template', () => {
|
|
94
|
-
let component = buildComponent(defaultProps);
|
|
95
|
-
expect(component.find(DisableableInput).length).toEqual(0);
|
|
96
|
-
expect(component.find(DisableableTextarea).length).toEqual(0);
|
|
97
|
-
|
|
98
|
-
component = buildComponent({
|
|
99
|
-
...defaultProps,
|
|
100
|
-
editedTemplateName: 'edited name',
|
|
101
|
-
editedTemplateValue: 'edited value',
|
|
102
|
-
});
|
|
103
|
-
expect(component.find(DisableableInput).length).toEqual(1);
|
|
104
|
-
expect(component.find(DisableableTextarea).length).toEqual(1);
|
|
105
|
-
});
|
|
106
|
-
});
|