@spinnaker/kayenta 0.0.0-main-2
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/.editorconfig +9 -0
- package/.eslintrc.js +1 -0
- package/.huskyrc +5 -0
- package/.lintstagedrc.json +4 -0
- package/.prettierignore +4 -0
- package/.prettierrc.js +1 -0
- package/LICENSE.txt +203 -0
- package/README.md +81 -0
- package/__mocks__/styleMock.js +1 -0
- package/__mocks__/version.json +4 -0
- package/babel.config.js +3 -0
- package/build/dist/index-70b2ac83.js +2 -0
- package/build/dist/index-70b2ac83.js.map +1 -0
- package/build/dist/index.d.ts +3 -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 +402 -0
- package/build/dist/kayenta/actions/creators.d.ts.map +1 -0
- package/build/dist/kayenta/actions/index.d.ts +97 -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/build/dist/kayenta/domain/ISetupCanaryStage.d.ts +11 -0
- package/build/dist/kayenta/domain/ISetupCanaryStage.d.ts.map +1 -0
- package/build/dist/kayenta/domain/MetricClassificationLabel.d.ts +8 -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/build/dist/kayenta/domain/index.d.ts +16 -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 +25 -0
- package/build/dist/kayenta/edit/editMetricModal.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/build/dist/kayenta/index.d.ts +7 -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/build/dist/kayenta/layout/index.d.ts +3 -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/build/dist/kayenta/layout/table/index.d.ts +6 -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/build/dist/kayenta/metricStore/datadog/domain/IDatadogMetricDescriptor.d.ts +5 -0
- 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/build/dist/kayenta/metricStore/graphite/domain/IGraphiteMetricDescriptor.d.ts +5 -0
- 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/build/dist/kayenta/metricStore/index.d.ts +9 -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/build/dist/kayenta/metricStore/newrelic/domain/INewRelicMetricDescriptor.d.ts +5 -0
- 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/build/dist/kayenta/metricStore/prometheus/domain/IPrometheusMetricDescriptor.d.ts +5 -0
- 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/build/dist/kayenta/middleware/index.d.ts +4 -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/build/dist/kayenta/report/detail/graph/semiotic/semiotic.service.d.ts +27 -0
- 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-1f6a42b8.js +2 -0
- package/build/dist/lazy-1f6a42b8.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-d687462f.js +2 -0
- package/build/dist/semioticGraph-d687462f.js.map +1 -0
- package/build/dist/stub.d.ts +15 -0
- package/build/dist/stub.d.ts.map +1 -0
- package/build.gradle +67 -0
- package/build_scripts/checkLicenses.js +79 -0
- package/gradle.properties +0 -0
- package/jest.config.js +204 -0
- package/jest.setup.js +5 -0
- package/package.json +166 -0
- package/rollup-plugin-angularjs-template-loader.js +82 -0
- package/rollup.config.js +30 -0
- package/src/index.ts +2 -0
- package/src/kayenta/actions/creators.ts +157 -0
- package/src/kayenta/actions/index.ts +96 -0
- package/src/kayenta/canary.dataSource.bridge.ts +53 -0
- package/src/kayenta/canary.dataSource.stub.ts +64 -0
- package/src/kayenta/canary.help.ts +132 -0
- package/src/kayenta/canary.less +168 -0
- package/src/kayenta/canary.settings.ts +26 -0
- package/src/kayenta/canary.tsx +67 -0
- package/src/kayenta/components/canaryScore.component.less +77 -0
- package/src/kayenta/components/canaryScore.component.ts +12 -0
- package/src/kayenta/components/canaryScore.tsx +63 -0
- package/src/kayenta/components/canaryScores.component.ts +20 -0
- package/src/kayenta/components/canaryScores.less +22 -0
- package/src/kayenta/components/canaryScores.tsx +163 -0
- package/src/kayenta/components/loadStates.tsx +52 -0
- package/src/kayenta/domain/ICanaryConfig.ts +57 -0
- package/src/kayenta/domain/ICanaryConfigSummary.ts +7 -0
- package/src/kayenta/domain/ICanaryConfigUpdateResponse.ts +3 -0
- package/src/kayenta/domain/ICanaryExecutionStatusResult.ts +72 -0
- package/src/kayenta/domain/ICanaryJudgeResult.ts +51 -0
- package/src/kayenta/domain/ICanaryJudgeResultSummary.ts +5 -0
- package/src/kayenta/domain/ICanaryScoreThresholds.ts +4 -0
- package/src/kayenta/domain/IJudge.ts +5 -0
- package/src/kayenta/domain/IKayentaAccount.ts +14 -0
- package/src/kayenta/domain/IKayentaStageConfig.ts +58 -0
- package/src/kayenta/domain/IMetricSetPair.ts +17 -0
- package/src/kayenta/domain/IMetricsServiceMetadata.ts +2 -0
- package/src/kayenta/domain/ISetupCanaryStage.ts +11 -0
- package/src/kayenta/domain/MetricClassificationLabel.ts +7 -0
- package/src/kayenta/domain/ScoreClassificationLabel.ts +7 -0
- package/src/kayenta/domain/index.ts +15 -0
- package/src/kayenta/edit/changeMetricGroupModal.tsx +107 -0
- package/src/kayenta/edit/configDetail.tsx +31 -0
- package/src/kayenta/edit/configDetailActionButtons.tsx +24 -0
- package/src/kayenta/edit/configDetailHeader.tsx +104 -0
- package/src/kayenta/edit/configDetailLoadStates.tsx +36 -0
- package/src/kayenta/edit/configDetailLoader.tsx +60 -0
- package/src/kayenta/edit/configJson.less +42 -0
- package/src/kayenta/edit/configJsonModal.tsx +158 -0
- package/src/kayenta/edit/configList.less +7 -0
- package/src/kayenta/edit/configList.tsx +57 -0
- package/src/kayenta/edit/copyConfigButton.tsx +34 -0
- package/src/kayenta/edit/createConfigButton.tsx +34 -0
- package/src/kayenta/edit/deleteModal.tsx +87 -0
- package/src/kayenta/edit/edit.tsx +24 -0
- package/src/kayenta/edit/editMetricEffectSizes.tsx +186 -0
- package/src/kayenta/edit/editMetricModal.less +9 -0
- package/src/kayenta/edit/editMetricModal.tsx +245 -0
- package/src/kayenta/edit/editMetricValidation.spec.ts +63 -0
- package/src/kayenta/edit/editMetricValidation.ts +50 -0
- package/src/kayenta/edit/filterTemplateSelector.less +15 -0
- package/src/kayenta/edit/filterTemplateSelector.spec.tsx +106 -0
- package/src/kayenta/edit/filterTemplateSelector.tsx +194 -0
- package/src/kayenta/edit/filterTemplatesValidation.spec.ts +108 -0
- package/src/kayenta/edit/filterTemplatesValidation.ts +95 -0
- package/src/kayenta/edit/footer.less +30 -0
- package/src/kayenta/edit/footer.tsx +12 -0
- package/src/kayenta/edit/groupName.tsx +80 -0
- package/src/kayenta/edit/groupTabs.tsx +106 -0
- package/src/kayenta/edit/groupWeight.tsx +80 -0
- package/src/kayenta/edit/groupWeights.tsx +38 -0
- package/src/kayenta/edit/inlineTemplateEditor.spec.tsx +42 -0
- package/src/kayenta/edit/inlineTemplateEditor.tsx +61 -0
- package/src/kayenta/edit/judgeSelect.tsx +82 -0
- package/src/kayenta/edit/metricConfigurerDelegator.tsx +30 -0
- package/src/kayenta/edit/metricList.less +21 -0
- package/src/kayenta/edit/metricList.tsx +215 -0
- package/src/kayenta/edit/metricStoreSelector.tsx +66 -0
- package/src/kayenta/edit/nameAndDescription.tsx +90 -0
- package/src/kayenta/edit/openConfigJsonModalButton.tsx +33 -0
- package/src/kayenta/edit/openDeleteModalButton.tsx +50 -0
- package/src/kayenta/edit/ownedBy.tsx +34 -0
- package/src/kayenta/edit/save.tsx +19 -0
- package/src/kayenta/edit/saveConfigButton.tsx +65 -0
- package/src/kayenta/edit/saveConfigError.tsx +59 -0
- package/src/kayenta/edit/scoring.tsx +35 -0
- package/src/kayenta/edit/selectConfig.tsx +10 -0
- package/src/kayenta/edit/validationErrors.tsx +39 -0
- package/src/kayenta/index.ts +6 -0
- package/src/kayenta/layout/addNewButton.tsx +20 -0
- package/src/kayenta/layout/centeredDetail.tsx +13 -0
- package/src/kayenta/layout/deleteButton.tsx +11 -0
- package/src/kayenta/layout/disableable.tsx +87 -0
- package/src/kayenta/layout/formList.tsx +26 -0
- package/src/kayenta/layout/formRow.tsx +36 -0
- package/src/kayenta/layout/formattedDate.tsx +14 -0
- package/src/kayenta/layout/index.ts +2 -0
- package/src/kayenta/layout/keyValueList.less +20 -0
- package/src/kayenta/layout/keyValueList.tsx +114 -0
- package/src/kayenta/layout/list.less +9 -0
- package/src/kayenta/layout/list.spec.tsx +83 -0
- package/src/kayenta/layout/list.tsx +73 -0
- package/src/kayenta/layout/listDetail.tsx +33 -0
- package/src/kayenta/layout/radioChoice.tsx +29 -0
- package/src/kayenta/layout/styleguide.tsx +16 -0
- package/src/kayenta/layout/table/index.ts +5 -0
- package/src/kayenta/layout/table/nativeTable.tsx +51 -0
- package/src/kayenta/layout/table/nativeTableHeader.tsx +26 -0
- package/src/kayenta/layout/table/table.tsx +56 -0
- package/src/kayenta/layout/table/tableColumn.ts +7 -0
- package/src/kayenta/layout/table/tableHeader.tsx +23 -0
- package/src/kayenta/layout/tabs.tsx +26 -0
- package/src/kayenta/layout/titledSection.less +16 -0
- package/src/kayenta/layout/titledSection.tsx +20 -0
- package/src/kayenta/layout/titledSubsection.less +11 -0
- package/src/kayenta/layout/titledSubsection.tsx +22 -0
- package/src/kayenta/manualAnalysis/ManualAnalysisModal.tsx +716 -0
- package/src/kayenta/metricStore/atlas/atlasMetricConfigurer.tsx +130 -0
- package/src/kayenta/metricStore/atlas/index.ts +8 -0
- package/src/kayenta/metricStore/datadog/domain/IDatadogMetricDescriptor.ts +5 -0
- package/src/kayenta/metricStore/datadog/index.ts +8 -0
- package/src/kayenta/metricStore/datadog/metricConfigurer.tsx +90 -0
- package/src/kayenta/metricStore/datadog/metricTypeSelector.spec.tsx +59 -0
- package/src/kayenta/metricStore/datadog/metricTypeSelector.tsx +73 -0
- package/src/kayenta/metricStore/graphite/domain/IGraphiteMetricDescriptor.ts +5 -0
- package/src/kayenta/metricStore/graphite/index.ts +8 -0
- package/src/kayenta/metricStore/graphite/metricConfigurer.tsx +54 -0
- package/src/kayenta/metricStore/graphite/metricTypeSelector.tsx +80 -0
- package/src/kayenta/metricStore/graphite/typeahead.less +3 -0
- package/src/kayenta/metricStore/index.ts +8 -0
- package/src/kayenta/metricStore/metricStoreConfig.service.ts +12 -0
- package/src/kayenta/metricStore/newrelic/domain/INewRelicMetricDescriptor.ts +5 -0
- package/src/kayenta/metricStore/newrelic/index.ts +8 -0
- package/src/kayenta/metricStore/newrelic/metricConfigurer.tsx +58 -0
- package/src/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.ts +14 -0
- package/src/kayenta/metricStore/prometheus/domain/IPrometheusMetricDescriptor.ts +5 -0
- package/src/kayenta/metricStore/prometheus/index.ts +12 -0
- package/src/kayenta/metricStore/prometheus/metricConfigurer.tsx +157 -0
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.less +5 -0
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.spec.tsx +62 -0
- package/src/kayenta/metricStore/prometheus/metricTypeSelector.tsx +144 -0
- package/src/kayenta/metricStore/prometheus/queryTypeSelectors.spec.ts +61 -0
- package/src/kayenta/metricStore/prometheus/queryTypeSelectors.ts +38 -0
- package/src/kayenta/metricStore/signalfx/domain/ISignalFxCanaryMetricSetQueryConfig.ts +7 -0
- package/src/kayenta/metricStore/signalfx/index.ts +8 -0
- package/src/kayenta/metricStore/signalfx/metricConfigurer.less +10 -0
- package/src/kayenta/metricStore/signalfx/metricConfigurer.tsx +187 -0
- package/src/kayenta/metricStore/stackdriver/domain/IStackdriverCanaryMetricSetQueryConfig.ts +9 -0
- package/src/kayenta/metricStore/stackdriver/domain/IStackdriverMetricDescriptor.ts +17 -0
- package/src/kayenta/metricStore/stackdriver/index.ts +12 -0
- package/src/kayenta/metricStore/stackdriver/metricConfigurer.tsx +144 -0
- package/src/kayenta/metricStore/stackdriver/metricTypeSelector.spec.tsx +92 -0
- package/src/kayenta/metricStore/stackdriver/metricTypeSelector.tsx +113 -0
- package/src/kayenta/middleware/actionInterceptor.ts +29 -0
- package/src/kayenta/middleware/asyncDispatch.ts +37 -0
- package/src/kayenta/middleware/epics.ts +211 -0
- package/src/kayenta/middleware/index.ts +3 -0
- package/src/kayenta/navigation/canary.states.stub.ts +28 -0
- package/src/kayenta/navigation/canary.states.ts +182 -0
- package/src/kayenta/reducers/app.ts +56 -0
- package/src/kayenta/reducers/asyncRequest.ts +5 -0
- package/src/kayenta/reducers/data.ts +169 -0
- package/src/kayenta/reducers/editingTemplate.ts +54 -0
- package/src/kayenta/reducers/group.ts +82 -0
- package/src/kayenta/reducers/index.ts +245 -0
- package/src/kayenta/reducers/prometheusMetricConfig.spec.ts +33 -0
- package/src/kayenta/reducers/prometheusMetricConfig.ts +56 -0
- package/src/kayenta/reducers/selectedConfig.spec.ts +190 -0
- package/src/kayenta/reducers/selectedConfig.ts +549 -0
- package/src/kayenta/reducers/selectedRun.ts +101 -0
- package/src/kayenta/reducers/signalFxMetricConfig.ts +36 -0
- package/src/kayenta/reducers/stackdriverMetricConfig.spec.ts +33 -0
- package/src/kayenta/reducers/stackdriverMetricConfig.ts +41 -0
- package/src/kayenta/reducers/templates.spec.ts +192 -0
- package/src/kayenta/reducers/validators.ts +118 -0
- package/src/kayenta/report/detail/allMetricResultsHeader.tsx +32 -0
- package/src/kayenta/report/detail/clickableHeader.tsx +21 -0
- package/src/kayenta/report/detail/colors.ts +46 -0
- package/src/kayenta/report/detail/detail.less +16 -0
- package/src/kayenta/report/detail/detail.tsx +48 -0
- package/src/kayenta/report/detail/detailLoader.tsx +55 -0
- package/src/kayenta/report/detail/graph/graph.tsx +37 -0
- package/src/kayenta/report/detail/graph/metricSetPairGraph.service.ts +35 -0
- package/src/kayenta/report/detail/graph/semiotic/boxplot.less +45 -0
- package/src/kayenta/report/detail/graph/semiotic/boxplot.tsx +283 -0
- package/src/kayenta/report/detail/graph/semiotic/chartHeader.tsx +19 -0
- package/src/kayenta/report/detail/graph/semiotic/chartLegend.less +26 -0
- package/src/kayenta/report/detail/graph/semiotic/chartLegend.tsx +42 -0
- package/src/kayenta/report/detail/graph/semiotic/circleIcon.tsx +16 -0
- package/src/kayenta/report/detail/graph/semiotic/config.less +5 -0
- package/src/kayenta/report/detail/graph/semiotic/config.ts +38 -0
- package/src/kayenta/report/detail/graph/semiotic/customAxisTickLabel.tsx +17 -0
- package/src/kayenta/report/detail/graph/semiotic/declarations/labella.d.ts +16 -0
- package/src/kayenta/report/detail/graph/semiotic/declarations/react-container-dimensions.d.ts +3 -0
- package/src/kayenta/report/detail/graph/semiotic/declarations/semiotic.d.ts +160 -0
- package/src/kayenta/report/detail/graph/semiotic/differenceArea.less +17 -0
- package/src/kayenta/report/detail/graph/semiotic/differenceArea.tsx +186 -0
- package/src/kayenta/report/detail/graph/semiotic/histogram.less +22 -0
- package/src/kayenta/report/detail/graph/semiotic/histogram.tsx +251 -0
- package/src/kayenta/report/detail/graph/semiotic/index.tsx +19 -0
- package/src/kayenta/report/detail/graph/semiotic/noValidDataSign.less +5 -0
- package/src/kayenta/report/detail/graph/semiotic/noValidDataSign.tsx +10 -0
- package/src/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.less +6 -0
- package/src/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.tsx +58 -0
- package/src/kayenta/report/detail/graph/semiotic/semiotic.service.ts +32 -0
- package/src/kayenta/report/detail/graph/semiotic/semioticGraph.less +53 -0
- package/src/kayenta/report/detail/graph/semiotic/semioticGraph.tsx +49 -0
- package/src/kayenta/report/detail/graph/semiotic/timeSeries.less +42 -0
- package/src/kayenta/report/detail/graph/semiotic/timeSeries.tsx +473 -0
- package/src/kayenta/report/detail/graph/semiotic/tooltip.tsx +55 -0
- package/src/kayenta/report/detail/graph/semiotic/utils.ts +90 -0
- package/src/kayenta/report/detail/graphTypeSelector.less +4 -0
- package/src/kayenta/report/detail/graphTypeSelector.tsx +50 -0
- package/src/kayenta/report/detail/groupScores.tsx +68 -0
- package/src/kayenta/report/detail/header.less +70 -0
- package/src/kayenta/report/detail/header.tsx +39 -0
- package/src/kayenta/report/detail/headerArrow.tsx +13 -0
- package/src/kayenta/report/detail/loadStates.tsx +31 -0
- package/src/kayenta/report/detail/metricResultActions.less +29 -0
- package/src/kayenta/report/detail/metricResultActions.tsx +87 -0
- package/src/kayenta/report/detail/metricResultClassification.tsx +22 -0
- package/src/kayenta/report/detail/metricResultDetail.tsx +20 -0
- package/src/kayenta/report/detail/metricResultDetailLayout.tsx +19 -0
- package/src/kayenta/report/detail/metricResultDeviation.tsx +25 -0
- package/src/kayenta/report/detail/metricResultStats.less +9 -0
- package/src/kayenta/report/detail/metricResultStats.tsx +120 -0
- package/src/kayenta/report/detail/metricResults.less +12 -0
- package/src/kayenta/report/detail/metricResults.tsx +52 -0
- package/src/kayenta/report/detail/metricResultsClassificationFilters.tsx +65 -0
- package/src/kayenta/report/detail/metricResultsColumns.tsx +27 -0
- package/src/kayenta/report/detail/metricResultsList.less +44 -0
- package/src/kayenta/report/detail/metricResultsList.tsx +120 -0
- package/src/kayenta/report/detail/metricSetPairLoadStates.tsx +22 -0
- package/src/kayenta/report/detail/multipleResultsTable.tsx +81 -0
- package/src/kayenta/report/detail/reportException.tsx +57 -0
- package/src/kayenta/report/detail/reportExplanation.less +12 -0
- package/src/kayenta/report/detail/reportExplanation.tsx +32 -0
- package/src/kayenta/report/detail/reportMetadata.tsx +167 -0
- package/src/kayenta/report/detail/reportScores.less +47 -0
- package/src/kayenta/report/detail/reportScores.tsx +80 -0
- package/src/kayenta/report/detail/score.tsx +33 -0
- package/src/kayenta/report/detail/sourceLinks.tsx +69 -0
- package/src/kayenta/report/list/configLink.tsx +32 -0
- package/src/kayenta/report/list/executionList.less +7 -0
- package/src/kayenta/report/list/loadStates.tsx +32 -0
- package/src/kayenta/report/list/pipelineLink.tsx +15 -0
- package/src/kayenta/report/list/reportLink.tsx +33 -0
- package/src/kayenta/report/list/table.tsx +309 -0
- package/src/kayenta/report/report.tsx +11 -0
- package/src/kayenta/selectors/filterTemplatesSelectors.ts +87 -0
- package/src/kayenta/selectors/index.ts +62 -0
- package/src/kayenta/service/canaryConfig.service.ts +122 -0
- package/src/kayenta/service/canaryRun.service.ts +60 -0
- package/src/kayenta/service/delegateFactory.ts +24 -0
- package/src/kayenta/service/metricsServiceMetadata.service.ts +9 -0
- package/src/kayenta/stages/kayentaStage/AnalysisType.spec.tsx +47 -0
- package/src/kayenta/stages/kayentaStage/AnalysisType.tsx +49 -0
- package/src/kayenta/stages/kayentaStage/CanaryExecutionLabel.tsx +26 -0
- package/src/kayenta/stages/kayentaStage/analysisType.component.ts +12 -0
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.component.ts +12 -0
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.less +5 -0
- package/src/kayenta/stages/kayentaStage/canaryRunSummaries.tsx +136 -0
- package/src/kayenta/stages/kayentaStage/forAnalysisType.component.ts +45 -0
- package/src/kayenta/stages/kayentaStage/kayentaStage.controller.ts +789 -0
- package/src/kayenta/stages/kayentaStage/kayentaStage.html +528 -0
- package/src/kayenta/stages/kayentaStage/kayentaStage.less +5 -0
- package/src/kayenta/stages/kayentaStage/kayentaStage.transformer.ts +179 -0
- package/src/kayenta/stages/kayentaStage/kayentaStage.ts +221 -0
- package/src/kayenta/stages/kayentaStage/kayentaStageConfigSection.component.ts +21 -0
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.controller.ts +88 -0
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.html +114 -0
- package/src/kayenta/stages/kayentaStage/kayentaStageExecutionDetails.less +6 -0
- package/src/kayenta/stages/kayentaStage/stageTypes.ts +5 -0
- package/src/kayenta/utils/duration.spec.ts +69 -0
- package/src/kayenta/utils/duration.ts +48 -0
- package/src/lazy.ts +29 -0
- package/src/stub.ts +60 -0
- package/tsconfig.json +11 -0
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { IComponentController, ILogService, IScope } from 'angular';
|
|
2
|
+
import { IModalService } from 'angular-ui-bootstrap';
|
|
3
|
+
import { CanarySettings } from 'kayenta/canary.settings';
|
|
4
|
+
import {
|
|
5
|
+
ICanaryConfig,
|
|
6
|
+
ICanaryConfigSummary,
|
|
7
|
+
IKayentaAccount,
|
|
8
|
+
IKayentaServerGroupPair,
|
|
9
|
+
IKayentaStage,
|
|
10
|
+
IKayentaStageCanaryConfigScope,
|
|
11
|
+
KayentaAccountType,
|
|
12
|
+
KayentaAnalysisType,
|
|
13
|
+
} from 'kayenta/domain';
|
|
14
|
+
import { getCanaryConfigById, listKayentaAccounts } from 'kayenta/service/canaryConfig.service';
|
|
15
|
+
import { getDurationString, parseDurationString } from 'kayenta/utils/duration';
|
|
16
|
+
import { cloneDeep, first, get, has, isEmpty, isFinite, isString, map, set, uniq, unset } from 'lodash';
|
|
17
|
+
|
|
18
|
+
import {
|
|
19
|
+
AccountService,
|
|
20
|
+
AppListExtractor,
|
|
21
|
+
CloudProviderRegistry,
|
|
22
|
+
IAccountDetails,
|
|
23
|
+
NameUtils,
|
|
24
|
+
ProviderSelectionService,
|
|
25
|
+
ServerGroupCommandBuilderService,
|
|
26
|
+
} from '@spinnaker/core';
|
|
27
|
+
|
|
28
|
+
import './kayentaStage.less';
|
|
29
|
+
|
|
30
|
+
// TODO: Open up to all providers.
|
|
31
|
+
const REAL_TIME_AUTOMATIC_PROVIDERS = ['gce', 'aws', 'titus'];
|
|
32
|
+
|
|
33
|
+
export class KayentaStageController implements IComponentController {
|
|
34
|
+
public static $inject = [
|
|
35
|
+
'$scope',
|
|
36
|
+
'$uibModal',
|
|
37
|
+
'$log',
|
|
38
|
+
'serverGroupCommandBuilder',
|
|
39
|
+
'serverGroupTransformer',
|
|
40
|
+
'stage',
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
public state = {
|
|
44
|
+
useLookback: false,
|
|
45
|
+
backingDataLoading: false,
|
|
46
|
+
lifetimeHoursUpdatedToDuration: false,
|
|
47
|
+
lifetime: { hours: 0, minutes: 0 },
|
|
48
|
+
showAdvancedSettings: false,
|
|
49
|
+
useAtlasGlobalDataset: false,
|
|
50
|
+
atlasScopeType: 'cluster',
|
|
51
|
+
legacySiteLocalRecipients: '',
|
|
52
|
+
showLegacySiteLocalRecipients: CanarySettings.legacySiteLocalFieldsEnabled,
|
|
53
|
+
showAllLocations: {
|
|
54
|
+
control: false,
|
|
55
|
+
experiment: false,
|
|
56
|
+
},
|
|
57
|
+
delayBeforeCleanup: { hours: 0, minutes: 0 },
|
|
58
|
+
analysisTypes: [
|
|
59
|
+
KayentaAnalysisType.RealTimeAutomatic,
|
|
60
|
+
KayentaAnalysisType.RealTime,
|
|
61
|
+
KayentaAnalysisType.Retrospective,
|
|
62
|
+
],
|
|
63
|
+
};
|
|
64
|
+
public canaryConfigSummaries: ICanaryConfigSummary[] = [];
|
|
65
|
+
public selectedCanaryConfigDetails: ICanaryConfig;
|
|
66
|
+
public scopeNames: string[] = [];
|
|
67
|
+
public kayentaAccounts = new Map<KayentaAccountType, IKayentaAccount[]>();
|
|
68
|
+
public metricStore: string;
|
|
69
|
+
public providers: string[];
|
|
70
|
+
public accounts: IAccountDetails[];
|
|
71
|
+
public clusterList: string[];
|
|
72
|
+
|
|
73
|
+
constructor(
|
|
74
|
+
private $scope: IScope,
|
|
75
|
+
private $uibModal: IModalService,
|
|
76
|
+
private $log: ILogService,
|
|
77
|
+
private serverGroupCommandBuilder: ServerGroupCommandBuilderService,
|
|
78
|
+
private serverGroupTransformer: any,
|
|
79
|
+
public stage: IKayentaStage,
|
|
80
|
+
) {
|
|
81
|
+
'ngInject';
|
|
82
|
+
this.initialize();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
private initialize = async (): Promise<void> => {
|
|
86
|
+
await this.loadBackingData();
|
|
87
|
+
|
|
88
|
+
const firstStorageAccount = first(this.kayentaAccounts.get(KayentaAccountType.ObjectStore));
|
|
89
|
+
const firstMetricsAccount = first(this.kayentaAccounts.get(KayentaAccountType.MetricsStore));
|
|
90
|
+
|
|
91
|
+
this.stage.canaryConfig = {
|
|
92
|
+
storageAccountName: (firstStorageAccount && firstStorageAccount.name) || CanarySettings.storageAccountName,
|
|
93
|
+
metricsAccountName: (firstMetricsAccount && firstMetricsAccount.name) || CanarySettings.metricsAccountName,
|
|
94
|
+
...this.stage.canaryConfig,
|
|
95
|
+
scoreThresholds: {
|
|
96
|
+
marginal: null,
|
|
97
|
+
pass: null,
|
|
98
|
+
...get(this.stage, 'canaryConfig.scoreThresholds'),
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
this.stage.analysisType = this.stage.analysisType || this.state.analysisTypes[0];
|
|
103
|
+
|
|
104
|
+
if (!this.stage.canaryConfig.scopes || !this.stage.canaryConfig.scopes.length) {
|
|
105
|
+
this.stage.canaryConfig.scopes = [{ scopeName: 'default' } as IKayentaStageCanaryConfigScope];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (!this.stage.isNew) {
|
|
109
|
+
const stageLifetimeDuration: string = get(this.stage, 'canaryConfig.lifetimeDuration');
|
|
110
|
+
this.state.lifetime = parseDurationString(stageLifetimeDuration);
|
|
111
|
+
|
|
112
|
+
const stageDelayBeforeCleanupDuration: string = get(this.stage, 'deployments.delayBeforeCleanup');
|
|
113
|
+
this.state.delayBeforeCleanup = parseDurationString(stageDelayBeforeCleanupDuration);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (this.stage.canaryConfig.lookbackMins) {
|
|
117
|
+
this.state.useLookback = true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
this.populateScopeNameChoices();
|
|
121
|
+
this.setMetricStore();
|
|
122
|
+
this.setLocations();
|
|
123
|
+
this.setShowAdvancedSettings();
|
|
124
|
+
this.setClusterList();
|
|
125
|
+
this.deleteConfigAccountsIfMissing();
|
|
126
|
+
this.updateLifetimeFromHoursToDuration();
|
|
127
|
+
this.deleteCanaryConfigIdIfMissing();
|
|
128
|
+
|
|
129
|
+
if (CanarySettings.legacySiteLocalFieldsEnabled) {
|
|
130
|
+
this.setLegacySiteLocalRecipients();
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (this.stage.isNew && this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic) {
|
|
134
|
+
await this.initializeRealTimeAutomaticAnalysisType();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
private loadBackingData = async (): Promise<void> => {
|
|
139
|
+
this.state.backingDataLoading = true;
|
|
140
|
+
try {
|
|
141
|
+
await this.$scope.application.ready();
|
|
142
|
+
[
|
|
143
|
+
this.selectedCanaryConfigDetails,
|
|
144
|
+
this.kayentaAccounts,
|
|
145
|
+
this.providers,
|
|
146
|
+
this.accounts,
|
|
147
|
+
this.canaryConfigSummaries,
|
|
148
|
+
] = await Promise.all([
|
|
149
|
+
this.loadCanaryConfigDetails(),
|
|
150
|
+
this.loadKayentaAccounts(),
|
|
151
|
+
this.loadProviders(),
|
|
152
|
+
this.loadAccounts(),
|
|
153
|
+
Promise.resolve(this.$scope.application.getDataSource('canaryConfigs').data),
|
|
154
|
+
]);
|
|
155
|
+
} catch (e) {
|
|
156
|
+
this.$log.warn('Error loading backing data for Kayenta stage: ', e);
|
|
157
|
+
} finally {
|
|
158
|
+
this.state.backingDataLoading = false;
|
|
159
|
+
|
|
160
|
+
// This is the price we pay for async/await, since we're not using $q.
|
|
161
|
+
this.$scope.$applyAsync();
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
public onUseLookbackChange = (): void => {
|
|
166
|
+
if (!this.state.useLookback) {
|
|
167
|
+
delete this.stage.canaryConfig.lookbackMins;
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
public onCanaryConfigSelect = async (): Promise<void> => {
|
|
172
|
+
this.selectedCanaryConfigDetails = await this.loadCanaryConfigDetails();
|
|
173
|
+
this.populateScopeNameChoices();
|
|
174
|
+
this.setMetricStore();
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
public isExpression = (val: number | string): boolean => {
|
|
178
|
+
return isString(val) && val.includes('${');
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
public handleScoreThresholdChange = (scoreThresholds: { successfulScore: string; unhealthyScore: string }): void => {
|
|
182
|
+
// Called from a React component.
|
|
183
|
+
this.$scope.$applyAsync(() => {
|
|
184
|
+
this.stage.canaryConfig.scoreThresholds.pass = scoreThresholds.successfulScore;
|
|
185
|
+
this.stage.canaryConfig.scoreThresholds.marginal = scoreThresholds.unhealthyScore;
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
public handleAnalysisTypeChange = async (type: KayentaAnalysisType): Promise<void> => {
|
|
190
|
+
this.stage.analysisType = type;
|
|
191
|
+
|
|
192
|
+
switch (this.stage.analysisType) {
|
|
193
|
+
case KayentaAnalysisType.RealTime:
|
|
194
|
+
delete this.stage.canaryConfig.scopes[0].startTimeIso;
|
|
195
|
+
delete this.stage.canaryConfig.scopes[0].endTimeIso;
|
|
196
|
+
delete this.stage.deployments;
|
|
197
|
+
|
|
198
|
+
if (this.metricStore === 'atlas') {
|
|
199
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
200
|
+
unset(scope, 'extendedScopeParams.dataset');
|
|
201
|
+
unset(scope, 'extendedScopeParams.environment');
|
|
202
|
+
});
|
|
203
|
+
this.setAtlasScopeParams();
|
|
204
|
+
}
|
|
205
|
+
break;
|
|
206
|
+
case KayentaAnalysisType.RealTimeAutomatic:
|
|
207
|
+
delete this.stage.canaryConfig.scopes[0].startTimeIso;
|
|
208
|
+
delete this.stage.canaryConfig.scopes[0].endTimeIso;
|
|
209
|
+
delete this.stage.canaryConfig.scopes[0].controlLocation;
|
|
210
|
+
delete this.stage.canaryConfig.scopes[0].experimentLocation;
|
|
211
|
+
this.initializeRealTimeAutomaticAnalysisType();
|
|
212
|
+
break;
|
|
213
|
+
case KayentaAnalysisType.Retrospective:
|
|
214
|
+
delete this.stage.canaryConfig.beginCanaryAnalysisAfterMins;
|
|
215
|
+
delete this.stage.canaryConfig.lifetimeDuration;
|
|
216
|
+
delete this.stage.deployments;
|
|
217
|
+
|
|
218
|
+
if (this.metricStore === 'atlas') {
|
|
219
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
220
|
+
unset(scope, 'extendedScopeParams.dataset');
|
|
221
|
+
unset(scope, 'extendedScopeParams.environment');
|
|
222
|
+
});
|
|
223
|
+
this.setAtlasScopeParams();
|
|
224
|
+
}
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
// Called from React.
|
|
228
|
+
this.$scope.$applyAsync();
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
private initializeRealTimeAutomaticAnalysisType = async (): Promise<void> => {
|
|
232
|
+
this.stage.deployments = {
|
|
233
|
+
...this.stage.deployments,
|
|
234
|
+
baseline: {
|
|
235
|
+
...get(this.stage, 'deployments.baseline'),
|
|
236
|
+
cloudProvider: this.providers[0],
|
|
237
|
+
application: this.$scope.application.name,
|
|
238
|
+
cluster: null,
|
|
239
|
+
account: null,
|
|
240
|
+
},
|
|
241
|
+
serverGroupPairs: [],
|
|
242
|
+
};
|
|
243
|
+
this.accounts = await this.loadAccounts();
|
|
244
|
+
this.setClusterList();
|
|
245
|
+
this.setMetricStore();
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
private loadCanaryConfigDetails = async (): Promise<ICanaryConfig> => {
|
|
249
|
+
if (!has(this.stage, 'canaryConfig.canaryConfigId')) {
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
const id = this.stage.canaryConfig.canaryConfigId;
|
|
253
|
+
|
|
254
|
+
try {
|
|
255
|
+
return getCanaryConfigById(id);
|
|
256
|
+
} catch (e) {
|
|
257
|
+
this.$log.warn(`Could not load canary config with id ${id}: `, e);
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
private setMetricStore = (): void => {
|
|
263
|
+
this.metricStore = get(this.selectedCanaryConfigDetails, 'metrics[0].query.type');
|
|
264
|
+
|
|
265
|
+
if (this.metricStore === 'atlas') {
|
|
266
|
+
this.setAtlasScopeParams();
|
|
267
|
+
this.$scope.$applyAsync();
|
|
268
|
+
} else {
|
|
269
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
270
|
+
unset(scope, 'extendedScopeParams.type');
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
private setAtlasScopeParams = (): void => {
|
|
276
|
+
const isRealTimeAutomatic = this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic;
|
|
277
|
+
|
|
278
|
+
const existingScopeType = get(this.stage.canaryConfig.scopes[0], 'extendedScopeParams.type') as string;
|
|
279
|
+
if (!isRealTimeAutomatic) {
|
|
280
|
+
this.state.atlasScopeType = existingScopeType !== 'asg' ? existingScopeType : 'cluster';
|
|
281
|
+
}
|
|
282
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
283
|
+
set(scope, 'extendedScopeParams.type', isRealTimeAutomatic ? 'asg' : this.state.atlasScopeType);
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
if (isRealTimeAutomatic) {
|
|
287
|
+
this.state.useAtlasGlobalDataset =
|
|
288
|
+
get(this.stage.canaryConfig.scopes[0], 'extendedScopeParams.dataset') === 'global';
|
|
289
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
290
|
+
set(scope, 'extendedScopeParams.dataset', this.state.useAtlasGlobalDataset ? 'global' : 'regional');
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
private setLocations = (): void => {
|
|
296
|
+
const { recommendedLocations, locations, hasChoices } = this.getLocationChoices();
|
|
297
|
+
|
|
298
|
+
if (!hasChoices) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
this.state.showAllLocations.control = this.state.showAllLocations.experiment =
|
|
303
|
+
recommendedLocations.length === 0 && locations.length > 0;
|
|
304
|
+
|
|
305
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
306
|
+
if (!recommendedLocations.includes(scope.controlLocation) && !locations.includes(scope.controlLocation)) {
|
|
307
|
+
delete scope.controlLocation;
|
|
308
|
+
} else if (!recommendedLocations.includes(scope.controlLocation)) {
|
|
309
|
+
this.state.showAllLocations.control = true;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (!recommendedLocations.includes(scope.experimentLocation) && !locations.includes(scope.experimentLocation)) {
|
|
313
|
+
delete scope.experimentLocation;
|
|
314
|
+
} else if (!recommendedLocations.includes(scope.experimentLocation)) {
|
|
315
|
+
this.state.showAllLocations.experiment = true;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
private setShowAdvancedSettings = (): void => {
|
|
321
|
+
this.state.showAdvancedSettings =
|
|
322
|
+
this.kayentaAccounts.get(KayentaAccountType.MetricsStore).length > 1 ||
|
|
323
|
+
this.kayentaAccounts.get(KayentaAccountType.ObjectStore).length > 1 ||
|
|
324
|
+
this.scopeNames.length > 1 ||
|
|
325
|
+
CanarySettings.legacySiteLocalFieldsEnabled;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
public getLocationChoices = (): {
|
|
329
|
+
combinedLocations: { control: string[]; experiment: string[] };
|
|
330
|
+
recommendedLocations: string[];
|
|
331
|
+
locations: string[];
|
|
332
|
+
hasChoices: boolean;
|
|
333
|
+
} => {
|
|
334
|
+
const accounts = this.kayentaAccounts.get(KayentaAccountType.MetricsStore);
|
|
335
|
+
const selectedAccount =
|
|
336
|
+
accounts && accounts.find(({ name }) => name === this.stage.canaryConfig.metricsAccountName);
|
|
337
|
+
if (!selectedAccount) {
|
|
338
|
+
return {
|
|
339
|
+
combinedLocations: { control: [], experiment: [] },
|
|
340
|
+
recommendedLocations: [],
|
|
341
|
+
locations: [],
|
|
342
|
+
hasChoices: false,
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const hasChoices = selectedAccount.locations.length > 0 || selectedAccount.recommendedLocations.length > 0;
|
|
347
|
+
const allLocations = selectedAccount.recommendedLocations.concat(selectedAccount.locations);
|
|
348
|
+
const control = uniq(
|
|
349
|
+
this.state.showAllLocations.control
|
|
350
|
+
? allLocations
|
|
351
|
+
: selectedAccount.recommendedLocations.length > 0
|
|
352
|
+
? selectedAccount.recommendedLocations
|
|
353
|
+
: selectedAccount.locations,
|
|
354
|
+
);
|
|
355
|
+
const experiment = uniq(
|
|
356
|
+
this.state.showAllLocations.experiment
|
|
357
|
+
? allLocations
|
|
358
|
+
: selectedAccount.recommendedLocations.length > 0
|
|
359
|
+
? selectedAccount.recommendedLocations
|
|
360
|
+
: selectedAccount.locations,
|
|
361
|
+
);
|
|
362
|
+
|
|
363
|
+
return {
|
|
364
|
+
combinedLocations: {
|
|
365
|
+
control,
|
|
366
|
+
experiment,
|
|
367
|
+
},
|
|
368
|
+
recommendedLocations: selectedAccount.recommendedLocations,
|
|
369
|
+
locations: selectedAccount.locations,
|
|
370
|
+
hasChoices,
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
public toggleAllLocations = (type: 'control' | 'experiment'): void => {
|
|
375
|
+
this.state.showAllLocations[type] = !this.state.showAllLocations[type];
|
|
376
|
+
|
|
377
|
+
const locationChoices = this.getLocationChoices();
|
|
378
|
+
|
|
379
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
380
|
+
if (!locationChoices.combinedLocations.control.includes(scope.controlLocation)) {
|
|
381
|
+
delete scope.controlLocation;
|
|
382
|
+
}
|
|
383
|
+
if (!locationChoices.combinedLocations.experiment.includes(scope.experimentLocation)) {
|
|
384
|
+
delete scope.experimentLocation;
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
private populateScopeNameChoices = (): void => {
|
|
390
|
+
if (!this.selectedCanaryConfigDetails) {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
const scopeNames = uniq(map(this.selectedCanaryConfigDetails.metrics, (metric) => metric.scopeName || 'default'));
|
|
395
|
+
this.scopeNames = !isEmpty(scopeNames) ? scopeNames : ['default'];
|
|
396
|
+
this.setShowAdvancedSettings();
|
|
397
|
+
|
|
398
|
+
if (!isEmpty(this.stage.canaryConfig.scopes) && !scopeNames.includes(this.stage.canaryConfig.scopes[0].scopeName)) {
|
|
399
|
+
delete this.stage.canaryConfig.scopes[0].scopeName;
|
|
400
|
+
} else if (isEmpty(this.stage.canaryConfig.scopes)) {
|
|
401
|
+
this.stage.canaryConfig.scopes = [{ scopeName: scopeNames[0] }] as IKayentaStageCanaryConfigScope[];
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
private loadKayentaAccounts = async (): Promise<Map<KayentaAccountType, IKayentaAccount[]>> => {
|
|
406
|
+
const mapped = new Map<KayentaAccountType, IKayentaAccount[]>();
|
|
407
|
+
const accounts = await listKayentaAccounts();
|
|
408
|
+
|
|
409
|
+
accounts.forEach((account) => {
|
|
410
|
+
account.supportedTypes.forEach((type) => {
|
|
411
|
+
if (mapped.has(type)) {
|
|
412
|
+
mapped.set(type, mapped.get(type).concat([account]));
|
|
413
|
+
} else {
|
|
414
|
+
mapped.set(type, [account]);
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
return mapped;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
private deleteConfigAccountsIfMissing = (): void => {
|
|
423
|
+
if (
|
|
424
|
+
(this.kayentaAccounts.get(KayentaAccountType.ObjectStore) || []).every(
|
|
425
|
+
(account) => account.name !== this.stage.canaryConfig.storageAccountName,
|
|
426
|
+
)
|
|
427
|
+
) {
|
|
428
|
+
delete this.stage.canaryConfig.storageAccountName;
|
|
429
|
+
}
|
|
430
|
+
if (
|
|
431
|
+
(this.kayentaAccounts.get(KayentaAccountType.MetricsStore) || []).every(
|
|
432
|
+
(account) => account.name !== this.stage.canaryConfig.metricsAccountName,
|
|
433
|
+
)
|
|
434
|
+
) {
|
|
435
|
+
delete this.stage.canaryConfig.metricsAccountName;
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
private deleteCanaryConfigIdIfMissing = (): void => {
|
|
440
|
+
if (this.canaryConfigSummaries.every((s) => s.id !== this.stage.canaryConfig.canaryConfigId)) {
|
|
441
|
+
delete this.stage.canaryConfig.canaryConfigId;
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
public populateScopeWithExpressions = (): void => {
|
|
446
|
+
this.stage.canaryConfig.scopes[0].controlScope =
|
|
447
|
+
"${ #stage('Clone Server Group')['context']['source']['serverGroupName'] }";
|
|
448
|
+
this.stage.canaryConfig.scopes[0].controlLocation = '${ deployedServerGroups[0].region }';
|
|
449
|
+
this.stage.canaryConfig.scopes[0].experimentScope = '${ deployedServerGroups[0].serverGroup }';
|
|
450
|
+
this.stage.canaryConfig.scopes[0].experimentLocation = '${ deployedServerGroups[0].region }';
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
public onLifetimeChange = (): void => {
|
|
454
|
+
this.stage.canaryConfig.lifetimeDuration = getDurationString(this.state.lifetime);
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
private updateLifetimeFromHoursToDuration = (): void => {
|
|
458
|
+
if (has(this.stage, ['canaryConfig', 'lifetimeHours'])) {
|
|
459
|
+
const hours = parseInt(this.stage.canaryConfig.lifetimeHours, 10);
|
|
460
|
+
if (isFinite(hours)) {
|
|
461
|
+
const fractional = parseFloat(this.stage.canaryConfig.lifetimeHours) - hours;
|
|
462
|
+
const minutes = Math.floor(fractional * 60);
|
|
463
|
+
this.stage.canaryConfig.lifetimeDuration = `PT${hours}H`;
|
|
464
|
+
if (isFinite(minutes)) {
|
|
465
|
+
this.stage.canaryConfig.lifetimeDuration += `${minutes}M`;
|
|
466
|
+
}
|
|
467
|
+
this.state.lifetimeHoursUpdatedToDuration = true;
|
|
468
|
+
}
|
|
469
|
+
delete this.stage.canaryConfig.lifetimeHours;
|
|
470
|
+
}
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
public getLifetimeClassnames = (): string => {
|
|
474
|
+
if (this.state.lifetimeHoursUpdatedToDuration) {
|
|
475
|
+
return 'alert alert-warning';
|
|
476
|
+
}
|
|
477
|
+
return '';
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
public getLifetimeInputClassnames = (): string => {
|
|
481
|
+
const { hours, minutes } = this.state.lifetime;
|
|
482
|
+
if (hours === 0 && minutes === 0) {
|
|
483
|
+
return 'ng-invalid ng-invalid-required';
|
|
484
|
+
}
|
|
485
|
+
return '';
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
private loadProviders = async (): Promise<string[]> => {
|
|
489
|
+
this.providers = (await AccountService.listProviders(this.$scope.application)).filter((p) =>
|
|
490
|
+
REAL_TIME_AUTOMATIC_PROVIDERS.includes(p),
|
|
491
|
+
);
|
|
492
|
+
// If none of the application's providers support real time automatic mode, don't show it!
|
|
493
|
+
if (!this.providers.length) {
|
|
494
|
+
this.state.analysisTypes = [KayentaAnalysisType.RealTime, KayentaAnalysisType.Retrospective];
|
|
495
|
+
}
|
|
496
|
+
return this.providers;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
public handleProviderChange = async (): Promise<void> => {
|
|
500
|
+
set(this.stage, 'deployments.baseline.account', null);
|
|
501
|
+
set(this.stage, 'deployments.baseline.cluster', null);
|
|
502
|
+
this.accounts = await this.loadAccounts();
|
|
503
|
+
this.setClusterList();
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
public loadAccounts = (): Promise<IAccountDetails[]> => {
|
|
507
|
+
if (!has(this.stage, 'deployments.baseline.cloudProvider')) {
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
return Promise.resolve(AccountService.listAccounts(this.stage.deployments.baseline.cloudProvider));
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
private setClusterList = (): void => {
|
|
515
|
+
this.clusterList = AppListExtractor.getClusters([this.$scope.application], (sg) =>
|
|
516
|
+
has(this.stage, 'deployments.baseline.account') ? sg.account === this.stage.deployments.baseline.account : true,
|
|
517
|
+
);
|
|
518
|
+
|
|
519
|
+
this.setAtlasEnvironment();
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
private setAtlasEnvironment = (): void => {
|
|
523
|
+
if (this.metricStore === 'atlas' && this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic) {
|
|
524
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
525
|
+
if (this.stage.deployments.baseline.account) {
|
|
526
|
+
const accountDetails = this.accounts.find(({ name }) => this.stage.deployments.baseline.account === name);
|
|
527
|
+
accountDetails && set(scope, 'extendedScopeParams.environment', accountDetails.environment);
|
|
528
|
+
} else {
|
|
529
|
+
unset(scope, 'extendedScopeParams.environment');
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
private setLegacySiteLocalRecipients = (): void => {
|
|
536
|
+
const recipients = get(this.stage.canaryConfig, 'siteLocal.notificationEmail');
|
|
537
|
+
|
|
538
|
+
if (Array.isArray(recipients)) {
|
|
539
|
+
this.state.legacySiteLocalRecipients = recipients.join(',');
|
|
540
|
+
} else {
|
|
541
|
+
this.state.legacySiteLocalRecipients = isString(recipients) ? recipients : '';
|
|
542
|
+
}
|
|
543
|
+
};
|
|
544
|
+
|
|
545
|
+
public handleLegacySiteLocalRecipientsChange = (): void => {
|
|
546
|
+
if (this.state.legacySiteLocalRecipients.includes('${')) {
|
|
547
|
+
set(this.stage.canaryConfig, 'siteLocal.notificationEmail', this.state.legacySiteLocalRecipients);
|
|
548
|
+
} else if (this.state.legacySiteLocalRecipients.length) {
|
|
549
|
+
set(
|
|
550
|
+
this.stage.canaryConfig,
|
|
551
|
+
'siteLocal.notificationEmail',
|
|
552
|
+
this.state.legacySiteLocalRecipients.split(',').map((email) => email.trim()),
|
|
553
|
+
);
|
|
554
|
+
} else {
|
|
555
|
+
delete this.stage.canaryConfig.siteLocal;
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
public getRegion = (serverGroup: any): string => {
|
|
560
|
+
if (serverGroup.region) {
|
|
561
|
+
return serverGroup.region;
|
|
562
|
+
}
|
|
563
|
+
const availabilityZones = serverGroup.availabilityZones;
|
|
564
|
+
return availabilityZones
|
|
565
|
+
? Object.keys(availabilityZones).length
|
|
566
|
+
? Object.keys(availabilityZones)[0]
|
|
567
|
+
: 'n/a'
|
|
568
|
+
: 'n/a';
|
|
569
|
+
};
|
|
570
|
+
|
|
571
|
+
public getServerGroupName = (serverGroup: any): string => {
|
|
572
|
+
return NameUtils.getClusterName(serverGroup.application, serverGroup.stack, serverGroup.freeFormDetails);
|
|
573
|
+
};
|
|
574
|
+
|
|
575
|
+
public addPair = async (): Promise<void> => {
|
|
576
|
+
this.stage.deployments.serverGroupPairs = this.stage.deployments.serverGroupPairs || [];
|
|
577
|
+
const provider = await (has(this.stage, 'deployments.baseline.cloudProvider')
|
|
578
|
+
? Promise.resolve(this.stage.deployments.baseline.cloudProvider)
|
|
579
|
+
: Promise.resolve(ProviderSelectionService.selectProvider(this.$scope.application, 'serverGroup')));
|
|
580
|
+
this.stage.deployments.baseline.cloudProvider = provider;
|
|
581
|
+
const config = CloudProviderRegistry.getValue(provider, 'serverGroup');
|
|
582
|
+
|
|
583
|
+
const command: any = await this.serverGroupCommandBuilder.buildNewServerGroupCommandForPipeline(
|
|
584
|
+
provider,
|
|
585
|
+
null,
|
|
586
|
+
null,
|
|
587
|
+
);
|
|
588
|
+
|
|
589
|
+
command.viewState = {
|
|
590
|
+
...command.viewState,
|
|
591
|
+
requiresTemplateSelection: true,
|
|
592
|
+
disableStrategySelection: true,
|
|
593
|
+
hideClusterNamePreview: true,
|
|
594
|
+
readOnlyFields: {
|
|
595
|
+
credentials: true,
|
|
596
|
+
region: true,
|
|
597
|
+
subnet: true,
|
|
598
|
+
useSourceCapacity: true,
|
|
599
|
+
},
|
|
600
|
+
overrides: {
|
|
601
|
+
capacity: {
|
|
602
|
+
min: 1,
|
|
603
|
+
max: 1,
|
|
604
|
+
desired: 1,
|
|
605
|
+
},
|
|
606
|
+
useSourceCapacity: false,
|
|
607
|
+
},
|
|
608
|
+
imageSourceText: `
|
|
609
|
+
<p>This dialogue will configure two server groups.</p>
|
|
610
|
+
<p>
|
|
611
|
+
The <b>Baseline</b> server group's image will be resolved
|
|
612
|
+
from the <b>Newest</b> server group
|
|
613
|
+
in the <b>Baseline Version</b> cluster defined in this stage.
|
|
614
|
+
</p>
|
|
615
|
+
<p>
|
|
616
|
+
The <b>Canary</b> server group's image will be resolved from
|
|
617
|
+
an upstream <b>Bake</b> or <b>Find Image</b> stage.
|
|
618
|
+
</p>`,
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
delete command.strategy;
|
|
622
|
+
try {
|
|
623
|
+
const title = 'Add Baseline + Canary Pair';
|
|
624
|
+
const application = this.$scope.application;
|
|
625
|
+
|
|
626
|
+
let result;
|
|
627
|
+
if (config.CloneServerGroupModal) {
|
|
628
|
+
// react
|
|
629
|
+
result = await config.CloneServerGroupModal.show({
|
|
630
|
+
title,
|
|
631
|
+
application,
|
|
632
|
+
command,
|
|
633
|
+
});
|
|
634
|
+
} else {
|
|
635
|
+
// angular
|
|
636
|
+
result = await this.$uibModal.open({
|
|
637
|
+
templateUrl: config.cloneServerGroupTemplateUrl,
|
|
638
|
+
controller: `${config.cloneServerGroupController} as ctrl`,
|
|
639
|
+
size: 'lg',
|
|
640
|
+
resolve: {
|
|
641
|
+
title: () => title,
|
|
642
|
+
application: () => application,
|
|
643
|
+
serverGroupCommand: () => command,
|
|
644
|
+
},
|
|
645
|
+
}).result;
|
|
646
|
+
}
|
|
647
|
+
const control = this.serverGroupTransformer.convertServerGroupCommandToDeployConfiguration(result);
|
|
648
|
+
const experiment = cloneDeep(control);
|
|
649
|
+
|
|
650
|
+
const cleanup = (serverGroup: any, type: string) => {
|
|
651
|
+
delete serverGroup.backingData;
|
|
652
|
+
if (serverGroup.freeFormDetails && serverGroup.freeFormDetails.split('-').pop() === type) {
|
|
653
|
+
return;
|
|
654
|
+
}
|
|
655
|
+
serverGroup.freeFormDetails = `${serverGroup.freeFormDetails ? `${serverGroup.freeFormDetails}-` : ''}${type}`;
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
cleanup(control, 'baseline');
|
|
659
|
+
cleanup(experiment, 'canary');
|
|
660
|
+
this.stage.deployments.serverGroupPairs = [{ control, experiment }];
|
|
661
|
+
this.$scope.$applyAsync();
|
|
662
|
+
} catch (e) {
|
|
663
|
+
this.$log.warn('Error creating server group pair for Kayenta stage: ', e);
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
public editServerGroup = async (
|
|
668
|
+
serverGroup: any,
|
|
669
|
+
index: number,
|
|
670
|
+
type: keyof IKayentaServerGroupPair,
|
|
671
|
+
): Promise<void> => {
|
|
672
|
+
serverGroup.provider = serverGroup.provider || serverGroup.cloudProvider;
|
|
673
|
+
const config = CloudProviderRegistry.getValue(serverGroup.cloudProvider, 'serverGroup');
|
|
674
|
+
try {
|
|
675
|
+
const title = `Configure ${type[0].toUpperCase() + type.substring(1)} Server Group`;
|
|
676
|
+
const application = this.$scope.application;
|
|
677
|
+
|
|
678
|
+
const command = await this.serverGroupCommandBuilder.buildServerGroupCommandFromPipeline(
|
|
679
|
+
application,
|
|
680
|
+
serverGroup,
|
|
681
|
+
null,
|
|
682
|
+
null,
|
|
683
|
+
);
|
|
684
|
+
command.viewState = {
|
|
685
|
+
...command.viewState,
|
|
686
|
+
disableStrategySelection: true,
|
|
687
|
+
hideClusterNamePreview: true,
|
|
688
|
+
readOnlyFields: {
|
|
689
|
+
credentials: true,
|
|
690
|
+
region: true,
|
|
691
|
+
subnet: true,
|
|
692
|
+
useSourceCapacity: true,
|
|
693
|
+
},
|
|
694
|
+
imageSourceText: this.resolveImageSourceText(type),
|
|
695
|
+
};
|
|
696
|
+
delete command.strategy;
|
|
697
|
+
|
|
698
|
+
let result;
|
|
699
|
+
if (config.CloneServerGroupModal) {
|
|
700
|
+
// react
|
|
701
|
+
result = await config.CloneServerGroupModal.show({
|
|
702
|
+
title,
|
|
703
|
+
application,
|
|
704
|
+
command,
|
|
705
|
+
});
|
|
706
|
+
} else {
|
|
707
|
+
// angular
|
|
708
|
+
result = await this.$uibModal.open({
|
|
709
|
+
templateUrl: config.cloneServerGroupTemplateUrl,
|
|
710
|
+
controller: `${config.cloneServerGroupController} as ctrl`,
|
|
711
|
+
size: 'lg',
|
|
712
|
+
resolve: {
|
|
713
|
+
title: () => title,
|
|
714
|
+
application: () => application,
|
|
715
|
+
serverGroupCommand: () => command,
|
|
716
|
+
},
|
|
717
|
+
}).result;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
this.stage.deployments.serverGroupPairs[index][
|
|
721
|
+
type
|
|
722
|
+
] = this.serverGroupTransformer.convertServerGroupCommandToDeployConfiguration(result);
|
|
723
|
+
} catch (e) {
|
|
724
|
+
this.$log.warn('Error editing server group pair for Kayenta stage: ', e);
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
|
|
728
|
+
public deletePair = (index: number): void => {
|
|
729
|
+
(this.stage.deployments.serverGroupPairs || []).splice(index, 1);
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
private resolveImageSourceText(type: keyof IKayentaServerGroupPair): string {
|
|
733
|
+
if (type === 'experiment') {
|
|
734
|
+
return `This server group's image will be resolved from an upstream
|
|
735
|
+
<b>Bake</b> or <b>Find Image</b> stage.`;
|
|
736
|
+
} else {
|
|
737
|
+
return `This server group's image will be resolved from the <b>Newest</b>
|
|
738
|
+
server group in the <b>Baseline Version</b> cluster defined in this stage.`;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
public handleAtlasDatasetChange = (event: Event): void => {
|
|
743
|
+
const { checked } = event.target as HTMLInputElement;
|
|
744
|
+
this.$scope.$applyAsync(() => {
|
|
745
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
746
|
+
set(scope, 'extendedScopeParams.dataset', checked ? 'global' : 'regional');
|
|
747
|
+
set(
|
|
748
|
+
scope,
|
|
749
|
+
'extendedScopeParams.type',
|
|
750
|
+
this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic ? 'asg' : this.state.atlasScopeType,
|
|
751
|
+
);
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
public onAtlasScopeTypeChange = (): void => {
|
|
757
|
+
this.$scope.$applyAsync(() => {
|
|
758
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
759
|
+
set(scope, 'extendedScopeParams.type', this.state.atlasScopeType);
|
|
760
|
+
});
|
|
761
|
+
});
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
public handleExtendedScopeParamsChange = (): void => {
|
|
765
|
+
if (this.metricStore !== 'atlas') {
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
770
|
+
set(
|
|
771
|
+
scope,
|
|
772
|
+
'extendedScopeParams.type',
|
|
773
|
+
this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic ? 'asg' : this.state.atlasScopeType,
|
|
774
|
+
);
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
if (this.stage.analysisType === KayentaAnalysisType.RealTimeAutomatic) {
|
|
778
|
+
this.stage.canaryConfig.scopes.forEach((scope) => {
|
|
779
|
+
set(scope, 'extendedScopeParams.dataset', this.state.useAtlasGlobalDataset ? 'global' : 'regional');
|
|
780
|
+
});
|
|
781
|
+
this.setAtlasEnvironment();
|
|
782
|
+
}
|
|
783
|
+
this.$scope.$applyAsync();
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
public onDelayBeforeCleanupChange = (): void => {
|
|
787
|
+
this.stage.deployments.delayBeforeCleanup = getDurationString(this.state.delayBeforeCleanup);
|
|
788
|
+
};
|
|
789
|
+
}
|