@spinnaker/kayenta 2025.3.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,157 +0,0 @@
|
|
|
1
|
-
import * as Creators from 'kayenta/actions/creators';
|
|
2
|
-
import { ICanaryMetricConfig } from 'kayenta/domain/ICanaryConfig';
|
|
3
|
-
import { DISABLE_EDIT_CONFIG, DisableableReactSelect } from 'kayenta/layout/disableable';
|
|
4
|
-
import FormRow from 'kayenta/layout/formRow';
|
|
5
|
-
import { IUpdateListPayload, List } from 'kayenta/layout/list';
|
|
6
|
-
import RadioChoice from 'kayenta/layout/radioChoice';
|
|
7
|
-
import { ICanaryState } from 'kayenta/reducers';
|
|
8
|
-
import { queryTypeSelector } from 'kayenta/selectors/filterTemplatesSelectors';
|
|
9
|
-
import { get } from 'lodash';
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
import { connect } from 'react-redux';
|
|
12
|
-
import { Option } from 'react-select';
|
|
13
|
-
import { Action } from 'redux';
|
|
14
|
-
import { createSelector } from 'reselect';
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
IPrometheusCanaryMetricSetQueryConfig,
|
|
18
|
-
PrometheusQueryType,
|
|
19
|
-
} from './domain/IPrometheusCanaryMetricSetQueryConfig';
|
|
20
|
-
import { ICanaryMetricValidationErrors } from '../../edit/editMetricValidation';
|
|
21
|
-
import PrometheusMetricTypeSelector from './metricTypeSelector';
|
|
22
|
-
import { editingMetricSelector } from '../../selectors';
|
|
23
|
-
|
|
24
|
-
interface IPrometheusMetricConfigurerStateProps {
|
|
25
|
-
editingMetric: ICanaryMetricConfig;
|
|
26
|
-
queryType: PrometheusQueryType;
|
|
27
|
-
validationErrors: ICanaryMetricValidationErrors;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface IPrometheusMetricConfigurerDispatchProps {
|
|
31
|
-
updateLabelBindings: (payload: IUpdateListPayload) => void;
|
|
32
|
-
updateGroupBy: (payload: IUpdateListPayload) => void;
|
|
33
|
-
updateFilterQueryType: (queryType: PrometheusQueryType) => void;
|
|
34
|
-
updatePrometheusMetricQueryField: <T extends keyof IPrometheusCanaryMetricSetQueryConfig>(
|
|
35
|
-
field: keyof IPrometheusCanaryMetricSetQueryConfig,
|
|
36
|
-
value: Option<IPrometheusCanaryMetricSetQueryConfig[T]>,
|
|
37
|
-
) => void;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const RESOURCE_TYPES = ['gce_instance', 'aws_ec2_instance'];
|
|
41
|
-
|
|
42
|
-
const toReactSelectOptions = (values: string[]): Array<Option<string>> =>
|
|
43
|
-
values.map((value) => ({ value, label: value }));
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
* Component for configuring a Prometheus metric.
|
|
47
|
-
* */
|
|
48
|
-
function PrometheusMetricConfigurer({
|
|
49
|
-
editingMetric,
|
|
50
|
-
queryType,
|
|
51
|
-
updateLabelBindings,
|
|
52
|
-
updateGroupBy,
|
|
53
|
-
updateFilterQueryType,
|
|
54
|
-
updatePrometheusMetricQueryField,
|
|
55
|
-
validationErrors,
|
|
56
|
-
}: IPrometheusMetricConfigurerStateProps & IPrometheusMetricConfigurerDispatchProps) {
|
|
57
|
-
return (
|
|
58
|
-
<>
|
|
59
|
-
<FormRow label="Query Type" helpId="canary.config.prometheus.queryType">
|
|
60
|
-
<RadioChoice
|
|
61
|
-
value={PrometheusQueryType.DEFAULT}
|
|
62
|
-
label="Default"
|
|
63
|
-
name="queryType"
|
|
64
|
-
current={queryType}
|
|
65
|
-
action={() => updateFilterQueryType(PrometheusQueryType.DEFAULT)}
|
|
66
|
-
/>
|
|
67
|
-
<RadioChoice
|
|
68
|
-
value={PrometheusQueryType.PROMQL}
|
|
69
|
-
label="PromQL"
|
|
70
|
-
name="queryType"
|
|
71
|
-
current={queryType}
|
|
72
|
-
action={() => updateFilterQueryType(PrometheusQueryType.PROMQL)}
|
|
73
|
-
/>
|
|
74
|
-
</FormRow>
|
|
75
|
-
{queryType === PrometheusQueryType.DEFAULT && (
|
|
76
|
-
<>
|
|
77
|
-
<FormRow label="Resource Type" inputOnly={true}>
|
|
78
|
-
<DisableableReactSelect
|
|
79
|
-
value={get(editingMetric, 'query.resourceType')}
|
|
80
|
-
options={toReactSelectOptions(RESOURCE_TYPES)}
|
|
81
|
-
onChange={(option: Option<string>) => updatePrometheusMetricQueryField('resourceType', option)}
|
|
82
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
83
|
-
/>
|
|
84
|
-
</FormRow>
|
|
85
|
-
<FormRow label="Metric Name" inputOnly={true} error={get(validationErrors, 'metricName.message', null)}>
|
|
86
|
-
<PrometheusMetricTypeSelector
|
|
87
|
-
value={get(editingMetric, 'query.metricName', '')}
|
|
88
|
-
onChange={(option: Option<string>) => updatePrometheusMetricQueryField('metricName', option)}
|
|
89
|
-
/>
|
|
90
|
-
</FormRow>
|
|
91
|
-
<FormRow label="Label Bindings">
|
|
92
|
-
<List list={editingMetric.query.labelBindings || []} actionCreator={updateLabelBindings} />
|
|
93
|
-
</FormRow>
|
|
94
|
-
<FormRow label="Group By">
|
|
95
|
-
<List list={editingMetric.query.groupByFields || []} actionCreator={updateGroupBy} />
|
|
96
|
-
</FormRow>
|
|
97
|
-
</>
|
|
98
|
-
)}
|
|
99
|
-
</>
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function mapStateToProps(state: ICanaryState): IPrometheusMetricConfigurerStateProps {
|
|
104
|
-
return {
|
|
105
|
-
editingMetric: state.selectedConfig.editingMetric,
|
|
106
|
-
queryType: queryTypeSelector(state),
|
|
107
|
-
validationErrors: prometheusMetricValidationSelector(state),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function mapDispatchToProps(dispatch: (action: Action & any) => void): IPrometheusMetricConfigurerDispatchProps {
|
|
112
|
-
return {
|
|
113
|
-
updateLabelBindings: (payload) => dispatch(Creators.updatePrometheusLabelBindings(payload)),
|
|
114
|
-
updateGroupBy: (payload) => dispatch(Creators.updatePrometheusGroupBy(payload)),
|
|
115
|
-
updatePrometheusMetricQueryField: (field, option) =>
|
|
116
|
-
dispatch(Creators.updatePrometheusMetricQueryField({ field, value: option && option.value })),
|
|
117
|
-
updateFilterQueryType: (value: PrometheusQueryType) => {
|
|
118
|
-
dispatch(Creators.updatePrometheusMetricQueryField({ field: 'queryType', value }));
|
|
119
|
-
dispatch(Creators.editTemplateCancel()); // clear template editing
|
|
120
|
-
dispatch(Creators.selectTemplate({ name: null })); // deselect template
|
|
121
|
-
dispatch(Creators.editInlineTemplate({ value: '' })); // clear inline template
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
const prometheusMetricValidationSelector = createSelector(editingMetricSelector, validateMetric);
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Validates Prometheus specific fields on the edit metric modal
|
|
130
|
-
*/
|
|
131
|
-
function validateMetric(editingMetric: ICanaryMetricConfig): ICanaryMetricValidationErrors {
|
|
132
|
-
const errors: ICanaryMetricValidationErrors = {
|
|
133
|
-
metricName: null,
|
|
134
|
-
};
|
|
135
|
-
return [validatePrometheusMetricName].reduce(
|
|
136
|
-
(reducedErrors, validator) => validator(reducedErrors, editingMetric),
|
|
137
|
-
errors,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Validates that the user has supplied a Prometheus metric.
|
|
143
|
-
*/
|
|
144
|
-
function validatePrometheusMetricName(
|
|
145
|
-
errors: ICanaryMetricValidationErrors,
|
|
146
|
-
editingMetric: ICanaryMetricConfig,
|
|
147
|
-
): ICanaryMetricValidationErrors {
|
|
148
|
-
const nextErrors = { ...errors };
|
|
149
|
-
const metricName = get(editingMetric, 'query.metricName', '');
|
|
150
|
-
if (!metricName) {
|
|
151
|
-
nextErrors.metricName = { message: 'The Prometheus metric is required.' };
|
|
152
|
-
return nextErrors;
|
|
153
|
-
}
|
|
154
|
-
return nextErrors;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export default connect(mapStateToProps, mapDispatchToProps)(PrometheusMetricConfigurer);
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { shallow } from 'enzyme';
|
|
2
|
-
import { DisableableReactSelect } from 'kayenta/layout/disableable';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
import { noop } from '@spinnaker/core';
|
|
6
|
-
|
|
7
|
-
import { IPrometheusMetricTypeSelectorProps, PrometheusMetricTypeSelector } from './metricTypeSelector';
|
|
8
|
-
|
|
9
|
-
describe('<PrometheusMetricTypeSelector />', () => {
|
|
10
|
-
let wrapper: any;
|
|
11
|
-
const defaultProps: IPrometheusMetricTypeSelectorProps = {
|
|
12
|
-
accountOptions: [
|
|
13
|
-
{
|
|
14
|
-
label: 'my-first-prometheus-account',
|
|
15
|
-
value: 'my-first-prometheus-account',
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: 'my-second-prometheus-account',
|
|
19
|
-
value: 'my-second-prometheus-account',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
load: noop,
|
|
23
|
-
loading: false,
|
|
24
|
-
metricOptions: [],
|
|
25
|
-
onChange: noop,
|
|
26
|
-
value: '',
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
it('renders a typeahead select to search for metrics', () => {
|
|
30
|
-
wrapper = shallow(<PrometheusMetricTypeSelector {...defaultProps} />);
|
|
31
|
-
expect(wrapper.find(DisableableReactSelect).length).toEqual(1);
|
|
32
|
-
expect(wrapper.find(DisableableReactSelect).props().placeholder).toEqual(
|
|
33
|
-
'Enter at least three characters to search.',
|
|
34
|
-
);
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
it('displays which account will populate the search when >1 account is configured, defaulting to the first account alphabetically', () => {
|
|
38
|
-
wrapper = shallow(<PrometheusMetricTypeSelector {...defaultProps} />);
|
|
39
|
-
expect(wrapper.find('.prometheus-metric-type-selector-account-hint span').at(0).text()).toEqual(
|
|
40
|
-
'Metric search is currently populating from my-first-prometheus-account.',
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
it('allows the user to switch which account populates the search when >1 account is configured', () => {
|
|
45
|
-
wrapper = shallow(<PrometheusMetricTypeSelector {...defaultProps} />);
|
|
46
|
-
expect(wrapper.find('.btn').text()).toEqual('Switch Account');
|
|
47
|
-
wrapper.find('.btn').simulate('click');
|
|
48
|
-
expect(wrapper.state('showAccountDropdown')).toEqual(true);
|
|
49
|
-
expect(wrapper.find(DisableableReactSelect).length).toEqual(2);
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('does not display account selection hint when there is only one account configured', () => {
|
|
53
|
-
wrapper = shallow(
|
|
54
|
-
<PrometheusMetricTypeSelector
|
|
55
|
-
{...defaultProps}
|
|
56
|
-
accountOptions={[{ label: 'my-only-prometheus-account', value: 'my-only-prometheus-account' }]}
|
|
57
|
-
/>,
|
|
58
|
-
);
|
|
59
|
-
expect(wrapper.find('.prometheus-metric-type-selector-account-hint').length).toEqual(0);
|
|
60
|
-
expect(wrapper.find('.btn').length).toEqual(0);
|
|
61
|
-
});
|
|
62
|
-
});
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as Creators from 'kayenta/actions/creators';
|
|
2
|
-
import { KayentaAccountType } from 'kayenta/domain';
|
|
3
|
-
import { DISABLE_EDIT_CONFIG, DisableableReactSelect } from 'kayenta/layout/disableable';
|
|
4
|
-
import { ICanaryState } from 'kayenta/reducers';
|
|
5
|
-
import { AsyncRequestState } from 'kayenta/reducers/asyncRequest';
|
|
6
|
-
import { chain, get } from 'lodash';
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
import { connect } from 'react-redux';
|
|
9
|
-
import { Option } from 'react-select';
|
|
10
|
-
import { Dispatch } from 'redux';
|
|
11
|
-
import { createSelector } from 'reselect';
|
|
12
|
-
|
|
13
|
-
import { IPrometheusMetricDescriptor } from './domain/IPrometheusMetricDescriptor';
|
|
14
|
-
|
|
15
|
-
import './metricTypeSelector.less';
|
|
16
|
-
|
|
17
|
-
interface IPrometheusMetricTypeSelectorDispatchProps {
|
|
18
|
-
load: (filter: string, metricsAccountName: string) => void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface IPrometheusMetricTypeSelectorStateProps {
|
|
22
|
-
accountOptions: Array<Option<string>>;
|
|
23
|
-
loading: boolean;
|
|
24
|
-
metricOptions: Array<Option<string>>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface IPrometheusMetricTypeSelectorOwnProps {
|
|
28
|
-
onChange: (option: Option<string>) => void;
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface IPrometheusMetricTypeSelectorState {
|
|
33
|
-
selectedAccount: string;
|
|
34
|
-
showAccountDropdown: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type IPrometheusMetricTypeSelectorProps = IPrometheusMetricTypeSelectorDispatchProps &
|
|
38
|
-
IPrometheusMetricTypeSelectorStateProps &
|
|
39
|
-
IPrometheusMetricTypeSelectorOwnProps;
|
|
40
|
-
|
|
41
|
-
export class PrometheusMetricTypeSelector extends React.Component<
|
|
42
|
-
IPrometheusMetricTypeSelectorProps,
|
|
43
|
-
IPrometheusMetricTypeSelectorState
|
|
44
|
-
> {
|
|
45
|
-
public constructor(props: IPrometheusMetricTypeSelectorProps) {
|
|
46
|
-
super(props);
|
|
47
|
-
this.state = {
|
|
48
|
-
showAccountDropdown: false,
|
|
49
|
-
selectedAccount: get(props, ['accountOptions', 0, 'value']),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public render() {
|
|
54
|
-
const { accountOptions, load, loading, metricOptions, onChange, value } = this.props;
|
|
55
|
-
|
|
56
|
-
const metricOptionsWithSelected =
|
|
57
|
-
value && metricOptions.every((o) => o.value !== value)
|
|
58
|
-
? metricOptions.concat({ label: value, value })
|
|
59
|
-
: metricOptions;
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<>
|
|
63
|
-
<DisableableReactSelect
|
|
64
|
-
isLoading={loading}
|
|
65
|
-
options={metricOptionsWithSelected}
|
|
66
|
-
onChange={onChange}
|
|
67
|
-
value={value}
|
|
68
|
-
placeholder={'Enter at least three characters to search.'}
|
|
69
|
-
onInputChange={(input) => {
|
|
70
|
-
load(input, this.state.selectedAccount);
|
|
71
|
-
return input;
|
|
72
|
-
}}
|
|
73
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
74
|
-
/>
|
|
75
|
-
{accountOptions.length > 1 && (
|
|
76
|
-
<div className="prometheus-metric-type-selector-account-hint">
|
|
77
|
-
<span>Metric search is currently populating from {this.state.selectedAccount}.</span>
|
|
78
|
-
<span className="btn btn-link" onClick={this.showAccountDropdown}>
|
|
79
|
-
{!this.state.showAccountDropdown && 'Switch Account'}
|
|
80
|
-
</span>
|
|
81
|
-
</div>
|
|
82
|
-
)}
|
|
83
|
-
{this.state.showAccountDropdown && (
|
|
84
|
-
<DisableableReactSelect
|
|
85
|
-
clearable={false}
|
|
86
|
-
options={accountOptions}
|
|
87
|
-
onChange={this.selectAccount}
|
|
88
|
-
value={this.state.selectedAccount}
|
|
89
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
90
|
-
/>
|
|
91
|
-
)}
|
|
92
|
-
</>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private showAccountDropdown = (): void => {
|
|
97
|
-
this.setState({
|
|
98
|
-
showAccountDropdown: true,
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
private selectAccount = (option: Option<string>): void => {
|
|
103
|
-
this.setState({
|
|
104
|
-
selectedAccount: option.value,
|
|
105
|
-
showAccountDropdown: false,
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const accountOptionsSelector = createSelector(
|
|
111
|
-
(state: ICanaryState) => state.data.kayentaAccounts.data,
|
|
112
|
-
(accounts): Array<Option<string>> => {
|
|
113
|
-
return chain(accounts)
|
|
114
|
-
.filter((a) => a.supportedTypes.includes(KayentaAccountType.MetricsStore) && a.type === 'prometheus')
|
|
115
|
-
.sortBy((a) => a.name)
|
|
116
|
-
.map((a) => ({ label: a.name, value: a.name }))
|
|
117
|
-
.value();
|
|
118
|
-
},
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
const metricOptionsSelector = createSelector(
|
|
122
|
-
(state: ICanaryState) => state.data.metricsServiceMetadata.data,
|
|
123
|
-
(descriptors: IPrometheusMetricDescriptor[]): Array<Option<string>> =>
|
|
124
|
-
descriptors.map((d) => ({ label: d.name, value: d.name })),
|
|
125
|
-
);
|
|
126
|
-
|
|
127
|
-
const mapStateToProps = (state: ICanaryState, ownProps: IPrometheusMetricTypeSelectorOwnProps) => {
|
|
128
|
-
return {
|
|
129
|
-
accountOptions: accountOptionsSelector(state),
|
|
130
|
-
metricOptions: metricOptionsSelector(state),
|
|
131
|
-
loading: state.data.metricsServiceMetadata.load === AsyncRequestState.Requesting,
|
|
132
|
-
...ownProps,
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
const mapDispatchToProps = (dispatch: Dispatch<ICanaryState>) => {
|
|
137
|
-
return {
|
|
138
|
-
load: (filter: string, metricsAccountName: string) => {
|
|
139
|
-
dispatch(Creators.updatePrometheusMetricDescriptorFilter({ filter, metricsAccountName }));
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export default connect(mapStateToProps, mapDispatchToProps)(PrometheusMetricTypeSelector);
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ICanaryMetricConfig } from '../../domain';
|
|
2
|
-
import { PrometheusQueryType } from './domain/IPrometheusCanaryMetricSetQueryConfig';
|
|
3
|
-
import { appendPromQLPrefix, getPrometheusQueryType, isQueryPromQL, removePromQLPrefix } from './queryTypeSelectors';
|
|
4
|
-
|
|
5
|
-
describe('Prometheus query type selectors', () => {
|
|
6
|
-
describe('isQueryPromQL', () => {
|
|
7
|
-
it('identifies PromQL queries by prefix', () => {
|
|
8
|
-
expect(isQueryPromQL('PromQL:count(prometheus_target_interval_length_seconds)')).toEqual(true);
|
|
9
|
-
expect(isQueryPromQL('metadata.user_labels."app"="${location}"')).toEqual(false);
|
|
10
|
-
});
|
|
11
|
-
});
|
|
12
|
-
describe('removePromQLPrefix', () => {
|
|
13
|
-
it('removes PromQL prefix from query', () => {
|
|
14
|
-
expect(removePromQLPrefix('PromQL:count(prometheus_target_interval_length_seconds)')).toEqual(
|
|
15
|
-
'count(prometheus_target_interval_length_seconds)',
|
|
16
|
-
);
|
|
17
|
-
});
|
|
18
|
-
it('does not modify queries not prefixed by the PromQL prefix', () => {
|
|
19
|
-
expect(removePromQLPrefix('Not a PromQL template')).toEqual('Not a PromQL template');
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
describe('appendPromQLPrefix', () => {
|
|
23
|
-
it('appends the PromQL prefix to the input', () => {
|
|
24
|
-
expect(appendPromQLPrefix('count(prometheus_target_interval_length_seconds)')).toEqual(
|
|
25
|
-
'PromQL:count(prometheus_target_interval_length_seconds)',
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
describe('getPrometheusQueryType', () => {
|
|
30
|
-
let editingMetric: ICanaryMetricConfig;
|
|
31
|
-
beforeEach(() => {
|
|
32
|
-
editingMetric = {
|
|
33
|
-
id: '#0',
|
|
34
|
-
name: 'my metric',
|
|
35
|
-
groups: ['group-1'],
|
|
36
|
-
analysisConfigurations: null,
|
|
37
|
-
scopeName: 'default',
|
|
38
|
-
query: {
|
|
39
|
-
customFilterTemplate: 'myDefaultTemplate',
|
|
40
|
-
queryType: PrometheusQueryType.DEFAULT,
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
it('reads query type from metric state if set', () => {
|
|
45
|
-
expect(getPrometheusQueryType(editingMetric)).toEqual(PrometheusQueryType.DEFAULT);
|
|
46
|
-
editingMetric.query.queryType = PrometheusQueryType.PROMQL;
|
|
47
|
-
expect(getPrometheusQueryType(editingMetric)).toEqual(PrometheusQueryType.PROMQL);
|
|
48
|
-
});
|
|
49
|
-
it('infers query type from custom inline template if query type not set on state', () => {
|
|
50
|
-
editingMetric.query.queryType = null;
|
|
51
|
-
expect(getPrometheusQueryType(editingMetric)).toEqual(PrometheusQueryType.DEFAULT);
|
|
52
|
-
editingMetric.query.customInlineTemplate = 'PromQL:count(prometheus_target_interval_length_seconds)';
|
|
53
|
-
expect(getPrometheusQueryType(editingMetric)).toEqual(PrometheusQueryType.PROMQL);
|
|
54
|
-
});
|
|
55
|
-
it('defaults to PrometheusQueryType.DEFAULT if query type not set on state and no inline template added', () => {
|
|
56
|
-
editingMetric.query.queryType = null;
|
|
57
|
-
editingMetric.query.customInlineTemplate = null;
|
|
58
|
-
expect(getPrometheusQueryType(editingMetric)).toEqual(PrometheusQueryType.DEFAULT);
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ICanaryMetricConfig } from '../../domain';
|
|
2
|
-
import { PrometheusQueryType } from './domain/IPrometheusCanaryMetricSetQueryConfig';
|
|
3
|
-
import { ITemplateTransformFunctions } from '../../selectors/filterTemplatesSelectors';
|
|
4
|
-
|
|
5
|
-
const PROMQL_PREFIX = 'PromQL:';
|
|
6
|
-
|
|
7
|
-
export function isQueryPromQL(template: string): boolean {
|
|
8
|
-
return template != null && template.startsWith(PROMQL_PREFIX);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function removePromQLPrefix(template: string): string {
|
|
12
|
-
if (isQueryPromQL(template)) {
|
|
13
|
-
return template.substring(PROMQL_PREFIX.length);
|
|
14
|
-
}
|
|
15
|
-
return template;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export function appendPromQLPrefix(template: string): string {
|
|
19
|
-
return `${PROMQL_PREFIX}${template}`;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const getPrometheusQueryType = (editingMetric: ICanaryMetricConfig) => {
|
|
23
|
-
if (editingMetric.query.queryType) {
|
|
24
|
-
return editingMetric.query.queryType;
|
|
25
|
-
}
|
|
26
|
-
const inlineTemplate = editingMetric.query.customInlineTemplate;
|
|
27
|
-
if (isQueryPromQL(inlineTemplate)) {
|
|
28
|
-
return PrometheusQueryType.PROMQL;
|
|
29
|
-
}
|
|
30
|
-
return PrometheusQueryType.DEFAULT;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export const prometheusQueryTypeToTransformFunction: { [queryType: string]: ITemplateTransformFunctions } = {
|
|
34
|
-
[PrometheusQueryType.PROMQL]: {
|
|
35
|
-
fromValue: removePromQLPrefix,
|
|
36
|
-
toValue: appendPromQLPrefix,
|
|
37
|
-
},
|
|
38
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import SignalFxMetricConfigurer, { queryFinder } from './metricConfigurer';
|
|
2
|
-
import metricStoreConfigStore from '../metricStoreConfig.service';
|
|
3
|
-
|
|
4
|
-
metricStoreConfigStore.register({
|
|
5
|
-
name: 'signalfx',
|
|
6
|
-
metricConfigurer: SignalFxMetricConfigurer,
|
|
7
|
-
queryFinder,
|
|
8
|
-
});
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import autoBindMethods from 'class-autobind-decorator';
|
|
2
|
-
import * as Creators from 'kayenta/actions/creators';
|
|
3
|
-
import { ICanaryMetricConfig } from 'kayenta/domain';
|
|
4
|
-
import { DISABLE_EDIT_CONFIG, DisableableInput } from 'kayenta/layout/disableable';
|
|
5
|
-
import FormRow from 'kayenta/layout/formRow';
|
|
6
|
-
import { ICanaryState } from 'kayenta/reducers';
|
|
7
|
-
import { get } from 'lodash';
|
|
8
|
-
import * as React from 'react';
|
|
9
|
-
import { connect } from 'react-redux';
|
|
10
|
-
import { Action } from 'redux';
|
|
11
|
-
import { createSelector } from 'reselect';
|
|
12
|
-
|
|
13
|
-
import { ICanaryMetricValidationErrors, MetricValidatorFunction } from '../../edit/editMetricValidation';
|
|
14
|
-
import KeyValueList, { IKeyValuePair, IUpdateKeyValueListPayload } from '../../layout/keyValueList';
|
|
15
|
-
import { editingMetricSelector } from '../../selectors';
|
|
16
|
-
|
|
17
|
-
import './metricConfigurer.less';
|
|
18
|
-
|
|
19
|
-
interface ISignalFxMetricConfigurerStateProps {
|
|
20
|
-
editingMetric: ICanaryMetricConfig;
|
|
21
|
-
validationErrors: ICanaryMetricValidationErrors;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface ISignalFxMetricConfigurerDispatchProps {
|
|
25
|
-
updateMetricName: (name: string) => void;
|
|
26
|
-
updateAggregationMethod: (method: string) => void;
|
|
27
|
-
updateQueryPairs: (payload: IUpdateKeyValueListPayload) => void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
type SignalFxMetricConfigurerProps = ISignalFxMetricConfigurerStateProps & ISignalFxMetricConfigurerDispatchProps;
|
|
31
|
-
|
|
32
|
-
export const queryFinder = (metric: ICanaryMetricConfig) => get(metric, 'query.metricName', '');
|
|
33
|
-
const getSignalFxMetric = queryFinder;
|
|
34
|
-
const getQueryPairs = (metric: ICanaryMetricConfig) => get(metric, 'query.queryPairs', []) as IKeyValuePair[];
|
|
35
|
-
const getAggregationMethod = (metric: ICanaryMetricConfig) => get(metric, 'query.aggregationMethod', '');
|
|
36
|
-
|
|
37
|
-
@autoBindMethods
|
|
38
|
-
class SignalFxMetricConfigurer extends React.Component<SignalFxMetricConfigurerProps> {
|
|
39
|
-
public onMetricNameChange(e: React.ChangeEvent<HTMLInputElement>) {
|
|
40
|
-
this.props.updateMetricName(e.target.value);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public onAggregationMethodChange(e: React.ChangeEvent<HTMLInputElement>) {
|
|
44
|
-
this.props.updateAggregationMethod(e.target.value);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public render() {
|
|
48
|
-
const { editingMetric, updateQueryPairs, validationErrors } = this.props;
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<section>
|
|
52
|
-
<FormRow label="SignalFx Metric" error={get(validationErrors, 'signalFxMetric.message', null)} inputOnly={true}>
|
|
53
|
-
<DisableableInput
|
|
54
|
-
type="text"
|
|
55
|
-
value={getSignalFxMetric(editingMetric)}
|
|
56
|
-
onChange={this.onMetricNameChange}
|
|
57
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
58
|
-
/>
|
|
59
|
-
</FormRow>
|
|
60
|
-
<FormRow
|
|
61
|
-
label="Aggregation Method"
|
|
62
|
-
inputOnly={true}
|
|
63
|
-
helpId="canary.config.signalFx.aggregationMethod"
|
|
64
|
-
error={get(validationErrors, 'aggregationMethod.message', null)}
|
|
65
|
-
>
|
|
66
|
-
<DisableableInput
|
|
67
|
-
type="text"
|
|
68
|
-
value={getAggregationMethod(editingMetric)}
|
|
69
|
-
onChange={this.onAggregationMethodChange}
|
|
70
|
-
disabledStateKeys={[DISABLE_EDIT_CONFIG]}
|
|
71
|
-
/>
|
|
72
|
-
</FormRow>
|
|
73
|
-
<FormRow
|
|
74
|
-
label="Query Pairs"
|
|
75
|
-
helpId="canary.config.signalFx.queryPairs"
|
|
76
|
-
error={get(validationErrors, 'queryPairs.message', null)}
|
|
77
|
-
>
|
|
78
|
-
<KeyValueList
|
|
79
|
-
className="signalfx-query-pairs"
|
|
80
|
-
list={getQueryPairs(editingMetric)}
|
|
81
|
-
actionCreator={updateQueryPairs}
|
|
82
|
-
/>
|
|
83
|
-
</FormRow>
|
|
84
|
-
</section>
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Validates SignalFx specific fields on the edit metric modal
|
|
91
|
-
*/
|
|
92
|
-
export function validateMetric(editingMetric: ICanaryMetricConfig): ICanaryMetricValidationErrors {
|
|
93
|
-
const errors: ICanaryMetricValidationErrors = {};
|
|
94
|
-
|
|
95
|
-
const validators: MetricValidatorFunction[] = [...getSignalFxValidators(editingMetric)];
|
|
96
|
-
|
|
97
|
-
return validators.reduce((reducedErrors, validator) => validator(reducedErrors, editingMetric), errors);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* returns the list of validators for the SignalFx edit metric form.
|
|
102
|
-
*/
|
|
103
|
-
export function getSignalFxValidators(editingMetric: ICanaryMetricConfig): MetricValidatorFunction[] {
|
|
104
|
-
if (!editingMetric || !editingMetric.query) {
|
|
105
|
-
return [];
|
|
106
|
-
}
|
|
107
|
-
return [validateSignalFxMetricName, validateAggregationMethod, validateQueryPairs];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Validates that the user has supplied a SignalFx metric.
|
|
112
|
-
*/
|
|
113
|
-
function validateSignalFxMetricName(
|
|
114
|
-
errors: ICanaryMetricValidationErrors,
|
|
115
|
-
editingMetric: ICanaryMetricConfig,
|
|
116
|
-
): ICanaryMetricValidationErrors {
|
|
117
|
-
const nextErrors = { ...errors };
|
|
118
|
-
|
|
119
|
-
const signalFxMetric = getSignalFxMetric(editingMetric);
|
|
120
|
-
|
|
121
|
-
if (!signalFxMetric) {
|
|
122
|
-
nextErrors.signalFxMetric = { message: 'The SignalFx metric is required.' };
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return nextErrors;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Validates that the user has supplied an aggregation method.
|
|
130
|
-
*/
|
|
131
|
-
function validateAggregationMethod(
|
|
132
|
-
errors: ICanaryMetricValidationErrors,
|
|
133
|
-
editingMetric: ICanaryMetricConfig,
|
|
134
|
-
): ICanaryMetricValidationErrors {
|
|
135
|
-
const nextErrors = { ...errors };
|
|
136
|
-
|
|
137
|
-
const aggregationMethod = getAggregationMethod(editingMetric);
|
|
138
|
-
|
|
139
|
-
if (!aggregationMethod) {
|
|
140
|
-
nextErrors.aggregationMethod = { message: 'The SignalFx SignalFlow stream aggregation method is required.' };
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return nextErrors;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Validates that if the user has supplied query pairs that all key value combos contain values.
|
|
148
|
-
*/
|
|
149
|
-
function validateQueryPairs(
|
|
150
|
-
errors: ICanaryMetricValidationErrors,
|
|
151
|
-
editingMetric: ICanaryMetricConfig,
|
|
152
|
-
): ICanaryMetricValidationErrors {
|
|
153
|
-
const nextErrors = { ...errors };
|
|
154
|
-
|
|
155
|
-
const queryPairs: IKeyValuePair[] = getQueryPairs(editingMetric);
|
|
156
|
-
|
|
157
|
-
queryPairs.forEach((qp) => {
|
|
158
|
-
if (!qp.key || !qp.value) {
|
|
159
|
-
nextErrors.queryPairs = { message: 'All query pairs must contain a non-blank key and value.' };
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
return nextErrors;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const sfxEditingMetricValidationErrorsSelector = createSelector(editingMetricSelector, validateMetric);
|
|
167
|
-
|
|
168
|
-
function mapStateToProps(state: ICanaryState): ISignalFxMetricConfigurerStateProps {
|
|
169
|
-
return {
|
|
170
|
-
editingMetric: state.selectedConfig.editingMetric,
|
|
171
|
-
validationErrors: sfxEditingMetricValidationErrorsSelector(state),
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function mapDispatchToProps(dispatch: (action: Action & any) => void): ISignalFxMetricConfigurerDispatchProps {
|
|
176
|
-
return {
|
|
177
|
-
updateMetricName: (metricName: string): void => {
|
|
178
|
-
dispatch(Creators.updateSignalFxMetricName({ metricName }));
|
|
179
|
-
},
|
|
180
|
-
updateAggregationMethod: (aggregationMethod: string): void => {
|
|
181
|
-
dispatch(Creators.updateSignalFxAggregationMethod({ aggregationMethod }));
|
|
182
|
-
},
|
|
183
|
-
updateQueryPairs: (payload) => dispatch(Creators.updateSignalFxQueryPairs(payload)),
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export default connect(mapStateToProps, mapDispatchToProps)(SignalFxMetricConfigurer);
|