@spinnaker/kayenta 2026.3.2 → 2026.4.0
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/dist/index.js +77 -1
- package/dist/index.js.map +1 -1
- package/dist/kayenta/actions/creators.d.ts +0 -30
- package/dist/kayenta/actions/index.d.ts +0 -8
- package/dist/kayenta/canary.d.ts +2 -2
- package/dist/kayenta/canary.help.d.ts +1 -1
- package/dist/kayenta/components/canaryScore.d.ts +1 -1
- package/dist/kayenta/components/canaryScores.d.ts +2 -2
- package/dist/kayenta/domain/ICanaryConfig.d.ts +1 -1
- package/dist/kayenta/domain/IMetricConfigMode.d.ts +9 -0
- package/dist/kayenta/domain/index.d.ts +1 -0
- package/dist/kayenta/edit/changeMetricGroupModal.d.ts +3 -3
- package/dist/kayenta/edit/configDetail.d.ts +2 -2
- package/dist/kayenta/edit/configDetailActionButtons.d.ts +2 -2
- package/dist/kayenta/edit/configDetailHeader.d.ts +3 -3
- package/dist/kayenta/edit/configDetailLoadStates.d.ts +3 -3
- package/dist/kayenta/edit/configDetailLoader.d.ts +8 -3
- package/dist/kayenta/edit/configJsonModal.d.ts +5 -5
- package/dist/kayenta/edit/configList.d.ts +3 -3
- package/dist/kayenta/edit/copyConfigButton.d.ts +3 -3
- package/dist/kayenta/edit/createConfigButton.d.ts +3 -3
- package/dist/kayenta/edit/deleteModal.d.ts +3 -3
- package/dist/kayenta/edit/edit.d.ts +2 -2
- package/dist/kayenta/edit/editMetricEffectSizes.d.ts +3 -5
- package/dist/kayenta/edit/editMetricModal.d.ts +5 -7
- package/dist/kayenta/edit/editMetricModal.stories.d.ts +12 -0
- package/dist/kayenta/edit/editMetricValidation.d.ts +5 -0
- package/dist/kayenta/edit/footer.d.ts +2 -2
- package/dist/kayenta/edit/groupName.d.ts +2 -3
- package/dist/kayenta/edit/groupTabs.d.ts +3 -3
- package/dist/kayenta/edit/groupWeight.d.ts +2 -3
- package/dist/kayenta/edit/groupWeights.d.ts +3 -3
- package/dist/kayenta/edit/judgeSelect.d.ts +3 -3
- package/dist/kayenta/edit/metricConfigModeToggle.d.ts +7 -0
- package/dist/kayenta/edit/metricConfigurerDelegator.d.ts +3 -3
- package/dist/kayenta/edit/metricList.d.ts +3 -3
- package/dist/kayenta/edit/metricQueryTemplateEditor.d.ts +17 -0
- package/dist/kayenta/edit/metricStoreSelector.d.ts +2 -3
- package/dist/kayenta/edit/nameAndDescription.d.ts +2 -3
- package/dist/kayenta/edit/openConfigJsonModalButton.d.ts +3 -3
- package/dist/kayenta/edit/openDeleteModalButton.d.ts +3 -3
- package/dist/kayenta/edit/ownedBy.d.ts +2 -2
- package/dist/kayenta/edit/save.d.ts +2 -2
- package/dist/kayenta/edit/saveConfigButton.d.ts +3 -3
- package/dist/kayenta/edit/saveConfigError.d.ts +3 -3
- package/dist/kayenta/edit/scoring.d.ts +3 -3
- package/dist/kayenta/edit/selectConfig.d.ts +2 -2
- package/dist/kayenta/edit/templateProviderVariables.d.ts +24 -0
- package/dist/kayenta/edit/useMetricConfigMode.d.ts +32 -0
- package/dist/kayenta/edit/validationErrors.d.ts +2 -3
- package/dist/kayenta/layout/addNewButton.d.ts +2 -2
- package/dist/kayenta/layout/centeredDetail.d.ts +2 -2
- package/dist/kayenta/layout/deleteButton.d.ts +2 -2
- package/dist/kayenta/layout/disableable.d.ts +7 -27
- package/dist/kayenta/layout/formList.d.ts +2 -2
- package/dist/kayenta/layout/formRow.d.ts +1 -1
- package/dist/kayenta/layout/formattedDate.d.ts +2 -2
- package/dist/kayenta/layout/keyValueList.d.ts +2 -2
- package/dist/kayenta/layout/list.d.ts +2 -2
- package/dist/kayenta/layout/listDetail.d.ts +2 -2
- package/dist/kayenta/layout/radioChoice.d.ts +3 -2
- package/dist/kayenta/layout/styleguide.d.ts +2 -2
- package/dist/kayenta/layout/table/nativeTable.d.ts +2 -2
- package/dist/kayenta/layout/table/nativeTableHeader.d.ts +2 -2
- package/dist/kayenta/layout/table/table.d.ts +2 -2
- package/dist/kayenta/layout/table/tableHeader.d.ts +2 -2
- package/dist/kayenta/layout/tabs.d.ts +2 -2
- package/dist/kayenta/layout/titledSection.d.ts +2 -2
- package/dist/kayenta/layout/titledSubsection.d.ts +2 -2
- package/dist/kayenta/manualAnalysis/ManualAnalysisModal.d.ts +1 -1
- package/dist/kayenta/metricStore/atlas/atlasMetricConfigurer.d.ts +4 -3
- package/dist/kayenta/metricStore/clickhouse/metricConfigurer.d.ts +4 -6
- package/dist/kayenta/metricStore/datadog/metricConfigurer.d.ts +5 -3
- package/dist/kayenta/metricStore/datadog/metricTypeSelector.d.ts +4 -6
- package/dist/kayenta/metricStore/graphite/metricConfigurer.d.ts +5 -3
- package/dist/kayenta/metricStore/graphite/metricTypeSelector.d.ts +4 -6
- package/dist/kayenta/metricStore/index.d.ts +2 -0
- package/dist/kayenta/metricStore/influxdb/index.d.ts +1 -0
- package/dist/kayenta/metricStore/influxdb/metricConfigurer.d.ts +10 -0
- package/dist/kayenta/metricStore/metricStoreConfig.service.d.ts +1 -1
- package/dist/kayenta/metricStore/newrelic/metricConfigurer.d.ts +5 -3
- package/dist/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.d.ts +0 -5
- package/dist/kayenta/metricStore/prometheus/metricConfigurer.d.ts +4 -6
- package/dist/kayenta/metricStore/prometheus/metricTypeSelector.d.ts +2 -4
- package/dist/kayenta/metricStore/signalfx/metricConfigurer.d.ts +8 -3
- package/dist/kayenta/metricStore/stackdriver/metricConfigurer.d.ts +4 -3
- package/dist/kayenta/metricStore/stackdriver/metricTypeSelector.d.ts +3 -5
- package/dist/kayenta/metricStore/wavefront/index.d.ts +1 -0
- package/dist/kayenta/metricStore/wavefront/metricConfigurer.d.ts +10 -0
- package/dist/kayenta/middleware/actionInterceptor.d.ts +2 -1
- package/dist/kayenta/middleware/asyncDispatch.d.ts +2 -1
- package/dist/kayenta/middleware/epics.d.ts +3 -2
- package/dist/kayenta/reducers/selectedConfig.d.ts +0 -2
- package/dist/kayenta/reducers/signalFxMetricConfig.d.ts +1 -1
- package/dist/kayenta/report/detail/allMetricResultsHeader.d.ts +2 -2
- package/dist/kayenta/report/detail/clickableHeader.d.ts +2 -2
- package/dist/kayenta/report/detail/detail.d.ts +3 -3
- package/dist/kayenta/report/detail/detailLoader.d.ts +8 -3
- package/dist/kayenta/report/detail/graph/graph.d.ts +2 -3
- package/dist/kayenta/report/detail/graph/semiotic/boxplot.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/chartHeader.d.ts +2 -2
- package/dist/kayenta/report/detail/graph/semiotic/chartLegend.d.ts +2 -2
- package/dist/kayenta/report/detail/graph/semiotic/circleIcon.d.ts +2 -2
- package/dist/kayenta/report/detail/graph/semiotic/customAxisTickLabel.d.ts +2 -2
- package/dist/kayenta/report/detail/graph/semiotic/differenceArea.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/histogram.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/noValidDataSign.d.ts +2 -2
- package/dist/kayenta/report/detail/graph/semiotic/secondaryTSXAxis.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/semioticGraph.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/timeSeries.d.ts +1 -1
- package/dist/kayenta/report/detail/graph/semiotic/tooltip.d.ts +1 -1
- package/dist/kayenta/report/detail/graphTypeSelector.d.ts +2 -3
- package/dist/kayenta/report/detail/groupScores.d.ts +2 -3
- package/dist/kayenta/report/detail/header.d.ts +2 -3
- package/dist/kayenta/report/detail/headerArrow.d.ts +2 -2
- package/dist/kayenta/report/detail/loadStates.d.ts +2 -3
- package/dist/kayenta/report/detail/metricResultActions.d.ts +2 -3
- package/dist/kayenta/report/detail/metricResultClassification.d.ts +2 -2
- package/dist/kayenta/report/detail/metricResultDetail.d.ts +2 -2
- package/dist/kayenta/report/detail/metricResultDetailLayout.d.ts +2 -2
- package/dist/kayenta/report/detail/metricResultDeviation.d.ts +2 -2
- package/dist/kayenta/report/detail/metricResultStats.d.ts +2 -3
- package/dist/kayenta/report/detail/metricResults.d.ts +2 -3
- package/dist/kayenta/report/detail/metricResultsClassificationFilters.d.ts +2 -3
- package/dist/kayenta/report/detail/metricResultsList.d.ts +2 -3
- package/dist/kayenta/report/detail/metricSetPairLoadStates.d.ts +5 -6
- package/dist/kayenta/report/detail/multipleResultsTable.d.ts +7 -16
- package/dist/kayenta/report/detail/reportException.d.ts +2 -3
- package/dist/kayenta/report/detail/reportExplanation.d.ts +2 -3
- package/dist/kayenta/report/detail/reportMetadata.d.ts +2 -3
- package/dist/kayenta/report/detail/reportScores.d.ts +2 -3
- package/dist/kayenta/report/detail/score.d.ts +2 -2
- package/dist/kayenta/report/detail/sourceLinks.d.ts +2 -3
- package/dist/kayenta/report/list/configLink.d.ts +3 -5
- package/dist/kayenta/report/list/loadStates.d.ts +2 -3
- package/dist/kayenta/report/list/pipelineLink.d.ts +2 -2
- package/dist/kayenta/report/list/reportLink.d.ts +2 -4
- package/dist/kayenta/report/list/table.d.ts +2 -3
- package/dist/kayenta/report/report.d.ts +2 -2
- package/dist/kayenta/selectors/filterTemplatesSelectors.d.ts +3 -18
- package/dist/kayenta/selectors/index.d.ts +0 -6
- package/dist/kayenta/stages/kayentaStage/AnalysisType.d.ts +4 -4
- package/dist/kayenta/stages/kayentaStage/CanaryExecutionLabel.d.ts +2 -2
- package/dist/kayenta/stages/kayentaStage/ForAnalysisType.d.ts +1 -1
- package/dist/kayenta/stages/kayentaStage/KayentaCanaryStageConfig.d.ts +2 -2
- package/dist/kayenta/stages/kayentaStage/KayentaStageConfigSection.d.ts +1 -1
- package/dist/kayenta/stages/kayentaStage/KayentaStageExecutionDetails.d.ts +3 -3
- package/dist/kayenta/stages/kayentaStage/canaryRunSummaries.d.ts +2 -2
- package/dist/kayenta/stages/kayentaStage/kayentaStage.d.ts +1 -1
- package/dist/lazy-BajpuB6R.js +80 -0
- package/dist/lazy-BajpuB6R.js.map +1 -0
- package/dist/semioticGraph-DZKeA54O.js +25 -0
- package/dist/semioticGraph-DZKeA54O.js.map +1 -0
- package/package.json +13 -13
- package/dist/index-CgBbcrGU.js +0 -4
- package/dist/index-CgBbcrGU.js.map +0 -1
- package/dist/kayenta/edit/filterTemplateSelector.d.ts +0 -32
- package/dist/kayenta/edit/filterTemplatesValidation.d.ts +0 -28
- package/dist/kayenta/edit/inlineTemplateEditor.d.ts +0 -14
- package/dist/kayenta/metricStore/clickhouse/domain/IClickhouseCanaryMetricSetQueryConfig.d.ts +0 -5
- package/dist/kayenta/metricStore/prometheus/queryTypeSelectors.d.ts +0 -9
- package/dist/kayenta/reducers/editingTemplate.d.ts +0 -7
- package/dist/lazy-ChZv0_Cn.js +0 -4
- package/dist/lazy-ChZv0_Cn.js.map +0 -1
- package/dist/semioticGraph-Ch95n-5Z.js +0 -2
- package/dist/semioticGraph-Ch95n-5Z.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { AsyncRequestState } from '../reducers/asyncRequest';
|
|
2
3
|
interface ISaveErrorStateProps {
|
|
3
4
|
saveConfigState: AsyncRequestState;
|
|
@@ -6,7 +7,6 @@ interface ISaveErrorStateProps {
|
|
|
6
7
|
interface ISaveErrorDispatchProps {
|
|
7
8
|
dismissError: () => void;
|
|
8
9
|
}
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
};
|
|
10
|
+
declare function SaveConfigError({ saveConfigState, saveConfigErrorMessage, dismissError, }: ISaveErrorStateProps & ISaveErrorDispatchProps): React.JSX.Element;
|
|
11
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof SaveConfigError, import("react-redux").Omit<ISaveErrorStateProps & ISaveErrorDispatchProps, "saveConfigState" | "saveConfigErrorMessage" | "dismissError">>;
|
|
12
12
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
interface IScoringStateProps {
|
|
2
3
|
renderJudgeSelect: boolean;
|
|
3
4
|
}
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
};
|
|
5
|
+
declare function Scoring({ renderJudgeSelect }: IScoringStateProps): React.JSX.Element;
|
|
6
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof Scoring, import("react-redux").Omit<IScoringStateProps, "renderJudgeSelect">>;
|
|
7
7
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export default function SelectConfig(): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export default function SelectConfig(): React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-provider hints shown alongside the unified query template editor (see
|
|
3
|
+
* `metricQueryTemplateEditor.tsx`), telling the user which `${variable}` bindings are implicitly
|
|
4
|
+
* available for that provider's `query.template`, plus a short illustrative (not necessarily
|
|
5
|
+
* byte-perfect) example query.
|
|
6
|
+
*
|
|
7
|
+
* The `example` is the single source of truth for starter text: it is the editor placeholder and is
|
|
8
|
+
* also rendered into the help popovers (canary.help.ts). Each provider's backend module has a test
|
|
9
|
+
* that runs its example through the real query builder, so keep them in sync.
|
|
10
|
+
*
|
|
11
|
+
* These come from each provider's backend `*MetricsService.java` (or equivalent) call to
|
|
12
|
+
* `QueryConfigUtils.expandCustomFilter(canaryConfig, queryConfig, canaryScope, baseScopeAttributes)`
|
|
13
|
+
* — `baseScopeAttributes` is the authoritative source of truth for a provider's variable names.
|
|
14
|
+
*/
|
|
15
|
+
export interface ITemplateProviderVariables {
|
|
16
|
+
serviceType: string;
|
|
17
|
+
variables: string[];
|
|
18
|
+
example: string;
|
|
19
|
+
note?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const templateProviderVariables: {
|
|
22
|
+
[serviceType: string]: ITemplateProviderVariables;
|
|
23
|
+
};
|
|
24
|
+
export default templateProviderVariables;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Dispatch } from 'redux';
|
|
2
|
+
import { MetricConfigMode } from '../domain/IMetricConfigMode';
|
|
3
|
+
/**
|
|
4
|
+
* Derives the mode a metric's query editor should open in, based on whatever data is already
|
|
5
|
+
* present: template data wins if present (it's the default going forward), otherwise guided data
|
|
6
|
+
* (for existing configs), otherwise Template (the default for brand-new, still-empty metrics).
|
|
7
|
+
*/
|
|
8
|
+
export declare function deriveMetricConfigMode(hasTemplateData: boolean, hasGuidedData: boolean): MetricConfigMode;
|
|
9
|
+
/**
|
|
10
|
+
* Tracks which of the Guided/Template forms should be shown for the metric currently being
|
|
11
|
+
* edited.
|
|
12
|
+
*
|
|
13
|
+
* The initial value is derived from whatever data is already present on the metric, so existing
|
|
14
|
+
* configs open showing whichever form matches their data. From then on the mode lives in local
|
|
15
|
+
* component state: pure derivation can't distinguish "brand-new metric, no data yet, but the user
|
|
16
|
+
* explicitly clicked Guided" from "brand-new metric, still defaulting to Template" once both
|
|
17
|
+
* guided and template fields are empty, so a click needs somewhere to record intent that isn't
|
|
18
|
+
* itself data. The mode re-derives from data whenever a different metric (by id) is loaded.
|
|
19
|
+
*
|
|
20
|
+
* Templates are on by default; operators can opt out by setting `CanarySettings.templatesEnabled` to
|
|
21
|
+
* `false`, which pins the mode to Guided and cannot be changed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useMetricConfigMode(metricId: string, hasTemplateData: boolean, hasGuidedData: boolean): [MetricConfigMode, (mode: MetricConfigMode) => void];
|
|
24
|
+
/**
|
|
25
|
+
* Clears the metric's template text. Dispatched whenever the mode toggle changes (in either
|
|
26
|
+
* direction), mirroring Prometheus's pre-existing `queryType` toggle behavior: guided fields are
|
|
27
|
+
* left untouched on switch (backend query builders already prefer a populated template over
|
|
28
|
+
* guided fields, and preserving guided input means nothing is lost if the user switches back),
|
|
29
|
+
* but stale template data is always cleared so it can't shadow fresh guided input after switching
|
|
30
|
+
* to Guided.
|
|
31
|
+
*/
|
|
32
|
+
export declare function clearTemplateState(dispatch: Dispatch<any>): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
interface IConfigValidationErrorsStateProps {
|
|
2
3
|
errors: string[];
|
|
3
4
|
}
|
|
4
|
-
declare const _default: import("react-redux").
|
|
5
|
-
WrappedComponent: import("react-redux").Component<IConfigValidationErrorsStateProps>;
|
|
6
|
-
};
|
|
5
|
+
declare const _default: import("react-redux").ConnectedComponent<({ errors }: IConfigValidationErrorsStateProps) => React.JSX.Element, import("react-redux").Omit<IConfigValidationErrorsStateProps, "errors">>;
|
|
7
6
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
interface IAddNewButtonProps {
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
className?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: ({ onClick, className, label }: IAddNewButtonProps) => JSX.Element;
|
|
7
|
+
declare const _default: ({ onClick, className, label }: IAddNewButtonProps) => React.JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface ICenteredDetailProps {
|
|
3
3
|
children: JSX.Element;
|
|
4
4
|
}
|
|
5
|
-
export default function CenteredDetail({ children }: ICenteredDetailProps): JSX.Element;
|
|
5
|
+
export default function CenteredDetail({ children }: ICenteredDetailProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IDeleteButtonProps {
|
|
3
3
|
onClick: () => void;
|
|
4
4
|
}
|
|
5
|
-
declare const _default: ({ onClick }: IDeleteButtonProps) => JSX.Element;
|
|
5
|
+
declare const _default: ({ onClick }: IDeleteButtonProps) => React.JSX.Element;
|
|
6
6
|
export default _default;
|
|
@@ -2,35 +2,15 @@ import * as React from 'react';
|
|
|
2
2
|
import type { TypeaheadProps } from 'react-bootstrap-typeahead';
|
|
3
3
|
import type { ReactSelectProps } from 'react-select';
|
|
4
4
|
export declare const DISABLE_EDIT_CONFIG = "app.disableConfigEdit";
|
|
5
|
-
interface IDisableable {
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface IDisableableStateProps {
|
|
9
|
-
disabledBecauseOfState: boolean;
|
|
10
|
-
}
|
|
11
5
|
interface IDisableableOwnProps {
|
|
12
6
|
disabledStateKeys: string[];
|
|
13
7
|
}
|
|
14
|
-
export declare const DisableableButton:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const DisableableReactSelect: import("react-redux").ComponentClass<import("react-redux").Omit<ReactSelectProps<import("react-select").OptionValues> & IDisableable & IDisableableStateProps, "disabledBecauseOfState" | "dispatch"> & IDisableableOwnProps> & {
|
|
21
|
-
WrappedComponent: import("react-redux").Component<ReactSelectProps<import("react-select").OptionValues> & IDisableable & IDisableableStateProps>;
|
|
22
|
-
};
|
|
23
|
-
export declare const DisableableReactTypeahead: import("react-redux").ComponentClass<import("react-redux").Omit<TypeaheadProps<any> & IDisableable & IDisableableStateProps, "disabledBecauseOfState" | "dispatch"> & IDisableableOwnProps> & {
|
|
24
|
-
WrappedComponent: import("react-redux").Component<TypeaheadProps<any> & IDisableable & IDisableableStateProps>;
|
|
25
|
-
};
|
|
26
|
-
export declare const DisableableSelect: import("react-redux").ComponentClass<import("react-redux").Omit<React.ClassAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & IDisableable & IDisableableStateProps, "disabledBecauseOfState" | "dispatch"> & IDisableableOwnProps> & {
|
|
27
|
-
WrappedComponent: import("react-redux").Component<React.ClassAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & IDisableable & IDisableableStateProps>;
|
|
28
|
-
};
|
|
29
|
-
export declare const DisableableTextarea: import("react-redux").ComponentClass<import("react-redux").Omit<React.ClassAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
8
|
+
export declare const DisableableButton: React.ComponentType<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & IDisableableOwnProps>;
|
|
9
|
+
export declare const DisableableInput: React.ComponentType<React.ClassAttributes<HTMLInputElement> & React.InputHTMLAttributes<HTMLInputElement> & IDisableableOwnProps>;
|
|
10
|
+
export declare const DisableableReactSelect: React.ComponentType<ReactSelectProps<import("react-select").OptionValues> & IDisableableOwnProps>;
|
|
11
|
+
export declare const DisableableReactTypeahead: React.ComponentType<TypeaheadProps<any> & IDisableableOwnProps>;
|
|
12
|
+
export declare const DisableableSelect: React.ComponentType<React.ClassAttributes<HTMLSelectElement> & React.InputHTMLAttributes<HTMLSelectElement> & IDisableableOwnProps>;
|
|
13
|
+
export declare const DisableableTextarea: React.ComponentType<React.ClassAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
30
14
|
rows?: number;
|
|
31
|
-
} &
|
|
32
|
-
WrappedComponent: import("react-redux").Component<React.ClassAttributes<HTMLTextAreaElement> & React.InputHTMLAttributes<HTMLTextAreaElement> & {
|
|
33
|
-
rows?: number;
|
|
34
|
-
} & IDisableable & IDisableableStateProps>;
|
|
35
|
-
};
|
|
15
|
+
} & IDisableableOwnProps>;
|
|
36
16
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IFormListProps {
|
|
3
3
|
children: JSX.Element[] | JSX.Element;
|
|
4
4
|
}
|
|
5
|
-
export default function FormList({ children }: IFormListProps): JSX.Element;
|
|
5
|
+
export default function FormList({ children }: IFormListProps): React.JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface IFormRowProps {
|
|
|
8
8
|
warning?: string;
|
|
9
9
|
inputOnly?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function FormRow({ label, helpId, children, checkbox, error, warning, inputOnly }: IFormRowProps): JSX.Element;
|
|
11
|
+
export default function FormRow({ label, helpId, children, checkbox, error, warning, inputOnly }: IFormRowProps): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IDateLabelProps {
|
|
3
3
|
dateIso: string;
|
|
4
4
|
}
|
|
5
|
-
export default function FormattedDate({ dateIso }: IDateLabelProps): JSX.Element;
|
|
5
|
+
export default function FormattedDate({ dateIso }: IDateLabelProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { IKayentaAction } from '../actions/creators';
|
|
3
3
|
import './keyValueList.less';
|
|
4
4
|
export declare enum KeyValueListAction {
|
|
@@ -26,4 +26,4 @@ export interface IKeyValueListProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
actionCreator: (action: IUpdateKeyValueListPayload) => void;
|
|
28
28
|
}
|
|
29
|
-
export default function KeyValueList({ list, className, actionCreator }: IKeyValueListProps): JSX.Element;
|
|
29
|
+
export default function KeyValueList({ list, className, actionCreator }: IKeyValueListProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { IKayentaAction } from '../actions/creators';
|
|
3
3
|
import './list.less';
|
|
4
4
|
export declare enum ListAction {
|
|
@@ -17,5 +17,5 @@ interface IListProps {
|
|
|
17
17
|
valueKey?: (value: string) => string;
|
|
18
18
|
actionCreator: (action: IUpdateListPayload) => void;
|
|
19
19
|
}
|
|
20
|
-
export declare const List: ({ list, valueKey, actionCreator }: IListProps) => JSX.Element;
|
|
20
|
+
export declare const List: ({ list, valueKey, actionCreator }: IListProps) => React.JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IListDetailProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
list: JSX.Element;
|
|
@@ -8,4 +8,4 @@ export interface IListDetailProps {
|
|
|
8
8
|
detailWidth?: number;
|
|
9
9
|
detailClass?: string;
|
|
10
10
|
}
|
|
11
|
-
export default function ListDetail({ className, list, listWidth, detail, detailWidth, listClass, detailClass, }: IListDetailProps): JSX.Element;
|
|
11
|
+
export default function ListDetail({ className, list, listWidth, detail, detailWidth, listClass, detailClass, }: IListDetailProps): React.JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface IRadioChoiceProps {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string | JSX.Element;
|
|
5
5
|
name: string;
|
|
6
6
|
current: string;
|
|
7
7
|
action: (event: any) => void;
|
|
8
|
+
metricId?: string;
|
|
8
9
|
}
|
|
9
|
-
export default function RadioChoice({ value, label, name, current, action }: IRadioChoiceProps): JSX.Element;
|
|
10
|
+
export default function RadioChoice({ value, label, name, current, action, metricId }: IRadioChoiceProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import '../canary.less';
|
|
3
3
|
export declare const STYLEGUIDE_CLASS = "styleguide";
|
|
4
4
|
export declare const KAYENTA_CLASS = "kayenta";
|
|
@@ -6,4 +6,4 @@ export interface IStyleguideProps {
|
|
|
6
6
|
children: JSX.Element | JSX.Element[];
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export default function Styleguide({ children, className }: IStyleguideProps): JSX.Element;
|
|
9
|
+
export default function Styleguide({ children, className }: IStyleguideProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { ITableColumn } from './tableColumn';
|
|
3
3
|
export interface INativeTableProps<T> {
|
|
4
4
|
rows: T[];
|
|
@@ -11,4 +11,4 @@ export interface INativeTableProps<T> {
|
|
|
11
11
|
customRow?: (row: T) => JSX.Element;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function NativeTable<T>({ rows, columns, rowKey, tableBodyClassName, rowClassName, onRowClick, customRow, className, headerClassName, }: INativeTableProps<T>): JSX.Element;
|
|
14
|
+
export declare function NativeTable<T>({ rows, columns, rowKey, tableBodyClassName, rowClassName, onRowClick, customRow, className, headerClassName, }: INativeTableProps<T>): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { ITableColumn } from './tableColumn';
|
|
3
3
|
export interface INativeTableHeaderProps<T = any> {
|
|
4
4
|
rows: T[];
|
|
5
5
|
columns: Array<ITableColumn<T>>;
|
|
6
6
|
className: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const NativeTableHeader: ({ rows, columns, className }: INativeTableHeaderProps) => JSX.Element;
|
|
8
|
+
export declare const NativeTableHeader: ({ rows, columns, className }: INativeTableHeaderProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { ITableColumn } from './tableColumn';
|
|
3
3
|
export interface ITableProps<T> {
|
|
4
4
|
rows: T[];
|
|
@@ -11,4 +11,4 @@ export interface ITableProps<T> {
|
|
|
11
11
|
customRow?: (row: T) => JSX.Element;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function Table<T>({ rows, columns, rowKey, tableBodyClassName, rowClassName, onRowClick, customRow, className, headerClassName, }: ITableProps<T>): JSX.Element;
|
|
14
|
+
export declare function Table<T>({ rows, columns, rowKey, tableBodyClassName, rowClassName, onRowClick, customRow, className, headerClassName, }: ITableProps<T>): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { ITableColumn } from './tableColumn';
|
|
3
3
|
export interface ITableHeaderProps {
|
|
4
4
|
columns: Array<ITableColumn<any>>;
|
|
5
5
|
className: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableHeader: ({ columns, className }: ITableHeaderProps) => JSX.Element;
|
|
7
|
+
export declare const TableHeader: ({ columns, className }: ITableHeaderProps) => React.JSX.Element;
|
|
@@ -4,10 +4,10 @@ export interface ITabsProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
6
6
|
}
|
|
7
|
-
export declare function Tabs({ children, className, style }: ITabsProps): JSX.Element;
|
|
7
|
+
export declare function Tabs({ children, className, style }: ITabsProps): React.JSX.Element;
|
|
8
8
|
export interface ITabProps {
|
|
9
9
|
selected: boolean;
|
|
10
10
|
children: JSX.Element | JSX.Element[];
|
|
11
11
|
className?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare function Tab({ selected, children, className }: ITabProps): JSX.Element;
|
|
13
|
+
export declare function Tab({ selected, children, className }: ITabProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import './titledSection.less';
|
|
3
3
|
export interface ISectionProps {
|
|
4
4
|
title: string;
|
|
5
5
|
children?: any;
|
|
6
6
|
}
|
|
7
|
-
export default function TitledSection({ title, children }: ISectionProps): JSX.Element;
|
|
7
|
+
export default function TitledSection({ title, children }: ISectionProps): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import './titledSubsection.less';
|
|
3
3
|
export interface ITitledSubsectionProps {
|
|
4
4
|
children: any;
|
|
5
5
|
title: string;
|
|
6
6
|
helpKey?: string;
|
|
7
7
|
}
|
|
8
|
-
export default function TitledSubsection({ title, children, helpKey }: ITitledSubsectionProps): JSX.Element;
|
|
8
|
+
export default function TitledSubsection({ title, children, helpKey }: ITitledSubsectionProps): React.JSX.Element;
|
|
@@ -36,7 +36,7 @@ export declare class ManualAnalysisModal extends React.Component<IManualAnalysis
|
|
|
36
36
|
constructor(props: IManualAnalysisModalProps);
|
|
37
37
|
private validate;
|
|
38
38
|
private submit;
|
|
39
|
-
render(): JSX.Element;
|
|
39
|
+
render(): React.JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export interface IValidatedFieldProps {
|
|
42
42
|
errors: FormikErrors<IManualAnalysisModalFormProps>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ICanaryMetricConfig } from '../../domain/ICanaryConfig';
|
|
2
3
|
interface IAtlasMetricConfigurerStateProps {
|
|
3
4
|
editingMetric: ICanaryMetricConfig;
|
|
4
5
|
}
|
|
5
6
|
interface IAtlasMetricConfigurerDispatchProps {
|
|
6
7
|
updateQuery: (event: any) => void;
|
|
8
|
+
clearTemplateState: () => void;
|
|
7
9
|
}
|
|
8
10
|
type IAtlasMetricConfigurerProps = IAtlasMetricConfigurerStateProps & IAtlasMetricConfigurerDispatchProps;
|
|
9
11
|
export interface IAtlasQuerySelector {
|
|
@@ -21,8 +23,7 @@ declare global {
|
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
24
|
-
declare
|
|
25
|
-
|
|
26
|
-
};
|
|
26
|
+
declare function AtlasMetricConfigurer({ editingMetric, updateQuery, clearTemplateState: onClearTemplateState, }: IAtlasMetricConfigurerProps): React.JSX.Element;
|
|
27
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof AtlasMetricConfigurer, import("react-redux").Omit<IAtlasMetricConfigurerStateProps & IAtlasMetricConfigurerDispatchProps, "editingMetric" | "updateQuery" | "clearTemplateState">>;
|
|
27
28
|
export default _default;
|
|
28
29
|
export { queryFinder };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ICanaryMetricConfig } from '../../domain';
|
|
3
|
+
export declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
4
|
+
export default function ClickhouseMetricConfigurer(): React.JSX.Element;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ICanaryMetricConfig } from '../../domain';
|
|
2
3
|
interface IDatadogMetricConfigurerStateProps {
|
|
3
4
|
editingMetric: ICanaryMetricConfig;
|
|
4
5
|
}
|
|
5
6
|
interface IDatadogMetricConfigurerDispatchProps {
|
|
6
7
|
changeMetricName: (agg: string, name: string) => void;
|
|
8
|
+
clearTemplateState: () => void;
|
|
7
9
|
}
|
|
10
|
+
type DatadogMetricConfigurerProps = IDatadogMetricConfigurerStateProps & IDatadogMetricConfigurerDispatchProps;
|
|
8
11
|
export declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
9
12
|
export declare const nameFinder: (metric: ICanaryMetricConfig) => any;
|
|
10
13
|
export declare const aggFinder: (metric: ICanaryMetricConfig) => any;
|
|
11
|
-
declare
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
+
declare function DatadogMetricConfigurer({ changeMetricName, clearTemplateState: onClearTemplateState, editingMetric, }: DatadogMetricConfigurerProps): React.JSX.Element;
|
|
15
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof DatadogMetricConfigurer, import("react-redux").Omit<IDatadogMetricConfigurerStateProps & IDatadogMetricConfigurerDispatchProps, "editingMetric" | "clearTemplateState" | "changeMetricName">>;
|
|
14
16
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { Option } from 'react-select';
|
|
3
3
|
import type { Dispatch } from 'redux';
|
|
4
4
|
import type { ICanaryState } from '../../reducers';
|
|
@@ -13,17 +13,15 @@ interface IDatadogMetricTypeSelectorOwnProps {
|
|
|
13
13
|
value: string;
|
|
14
14
|
onChange: (option: Option) => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const DatadogMetricTypeSelector: ({ loading, load, options, value, onChange, }: IDatadogMetricTypeSelectorDispatchProps & IDatadogMetricTypeSelectorStateProps & IDatadogMetricTypeSelectorOwnProps) => JSX.Element;
|
|
16
|
+
export declare const DatadogMetricTypeSelector: ({ loading, load, options, value, onChange, }: IDatadogMetricTypeSelectorDispatchProps & IDatadogMetricTypeSelectorStateProps & IDatadogMetricTypeSelectorOwnProps) => React.JSX.Element;
|
|
17
17
|
export declare const mapStateToProps: (state: ICanaryState, ownProps: IDatadogMetricTypeSelectorOwnProps) => {
|
|
18
18
|
value: string;
|
|
19
19
|
onChange: (option: Option) => void;
|
|
20
20
|
options: Option<import("react-select").OptionValues>[];
|
|
21
21
|
loading: boolean;
|
|
22
22
|
};
|
|
23
|
-
export declare const mapDispatchToProps: (dispatch: Dispatch
|
|
23
|
+
export declare const mapDispatchToProps: (dispatch: Dispatch) => {
|
|
24
24
|
load: (filter: string) => void;
|
|
25
25
|
};
|
|
26
|
-
declare const _default: import("react-redux").
|
|
27
|
-
WrappedComponent: import("react-redux").Component<IDatadogMetricTypeSelectorDispatchProps & IDatadogMetricTypeSelectorStateProps & IDatadogMetricTypeSelectorOwnProps>;
|
|
28
|
-
};
|
|
26
|
+
declare const _default: import("react-redux").ConnectedComponent<({ loading, load, options, value, onChange, }: IDatadogMetricTypeSelectorDispatchProps & IDatadogMetricTypeSelectorStateProps & IDatadogMetricTypeSelectorOwnProps) => React.JSX.Element, import("react-redux").Omit<IDatadogMetricTypeSelectorDispatchProps & IDatadogMetricTypeSelectorStateProps & IDatadogMetricTypeSelectorOwnProps, "value" | "onChange" | "options" | "load" | "loading"> & IDatadogMetricTypeSelectorOwnProps>;
|
|
29
27
|
export default _default;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ICanaryMetricConfig } from '../../domain';
|
|
2
3
|
interface IGraphiteMetricConfigurerDispatchProps {
|
|
3
4
|
changeMetricName: (name: string) => void;
|
|
5
|
+
clearTemplateState: () => void;
|
|
4
6
|
}
|
|
5
7
|
interface IGraphiteMetricConfigurerStateProps {
|
|
6
8
|
editingMetric: ICanaryMetricConfig;
|
|
7
9
|
}
|
|
10
|
+
type GraphiteMetricConfigurerProps = IGraphiteMetricConfigurerStateProps & IGraphiteMetricConfigurerDispatchProps;
|
|
8
11
|
export declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
+
declare function GraphiteMetricConfigurer({ changeMetricName, clearTemplateState: onClearTemplateState, editingMetric, }: GraphiteMetricConfigurerProps): React.JSX.Element;
|
|
13
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof GraphiteMetricConfigurer, import("react-redux").Omit<IGraphiteMetricConfigurerStateProps & IGraphiteMetricConfigurerDispatchProps, "editingMetric" | "clearTemplateState" | "changeMetricName">>;
|
|
12
14
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { Dispatch } from 'redux';
|
|
3
3
|
import type { ICanaryState } from '../../reducers';
|
|
4
4
|
import './typeahead.less';
|
|
@@ -13,17 +13,15 @@ interface IGraphiteMetricTypeSelectorOwnProps {
|
|
|
13
13
|
value: string;
|
|
14
14
|
onChange: (option: string[]) => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const GraphiteMetricTypeSelector: ({ loading, load, options, value, onChange, }: IGraphiteMetricTypeSelectorDispatchProps & IGraphiteMetricTypeSelectorStateProps & IGraphiteMetricTypeSelectorOwnProps) => JSX.Element;
|
|
16
|
+
export declare const GraphiteMetricTypeSelector: ({ loading, load, options, value, onChange, }: IGraphiteMetricTypeSelectorDispatchProps & IGraphiteMetricTypeSelectorStateProps & IGraphiteMetricTypeSelectorOwnProps) => React.JSX.Element;
|
|
17
17
|
export declare const mapStateToProps: (state: ICanaryState, ownProps: IGraphiteMetricTypeSelectorOwnProps) => {
|
|
18
18
|
value: string;
|
|
19
19
|
onChange: (option: string[]) => void;
|
|
20
20
|
options: string[];
|
|
21
21
|
loading: boolean;
|
|
22
22
|
};
|
|
23
|
-
export declare const mapDispatchToProps: (dispatch: Dispatch
|
|
23
|
+
export declare const mapDispatchToProps: (dispatch: Dispatch) => {
|
|
24
24
|
load: (filter: string) => void;
|
|
25
25
|
};
|
|
26
|
-
declare const _default: import("react-redux").
|
|
27
|
-
WrappedComponent: import("react-redux").Component<IGraphiteMetricTypeSelectorDispatchProps & IGraphiteMetricTypeSelectorStateProps & IGraphiteMetricTypeSelectorOwnProps>;
|
|
28
|
-
};
|
|
26
|
+
declare const _default: import("react-redux").ConnectedComponent<({ loading, load, options, value, onChange, }: IGraphiteMetricTypeSelectorDispatchProps & IGraphiteMetricTypeSelectorStateProps & IGraphiteMetricTypeSelectorOwnProps) => React.JSX.Element, import("react-redux").Omit<IGraphiteMetricTypeSelectorDispatchProps & IGraphiteMetricTypeSelectorStateProps & IGraphiteMetricTypeSelectorOwnProps, "value" | "onChange" | "options" | "load" | "loading"> & IGraphiteMetricTypeSelectorOwnProps>;
|
|
29
27
|
export default _default;
|
|
@@ -2,8 +2,10 @@ import './atlas';
|
|
|
2
2
|
import './clickhouse';
|
|
3
3
|
import './datadog';
|
|
4
4
|
import './graphite';
|
|
5
|
+
import './influxdb';
|
|
5
6
|
import './newrelic';
|
|
6
7
|
import './prometheus';
|
|
7
8
|
import './signalfx';
|
|
8
9
|
import './stackdriver';
|
|
10
|
+
import './wavefront';
|
|
9
11
|
export { default as metricStoreConfigStore } from './metricStoreConfig.service';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ICanaryMetricConfig } from '../../domain';
|
|
3
|
+
/**
|
|
4
|
+
* InfluxDB is Template-only: it gained query.template support as part of the same change that
|
|
5
|
+
* unified every provider's query template UI, so there's no legacy guided-form UI to preserve and
|
|
6
|
+
* building a new one that would be deprecated on day one isn't worth it. This just renders the
|
|
7
|
+
* shared template editor directly, with InfluxDB's own available variables hint.
|
|
8
|
+
*/
|
|
9
|
+
export declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
10
|
+
export default function InfluxDbMetricConfigurer(): React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import type * as React from 'react';
|
|
|
2
2
|
import type { ICanaryMetricConfig } from '../domain';
|
|
3
3
|
export interface IMetricStoreConfig {
|
|
4
4
|
name: string;
|
|
5
|
-
metricConfigurer: React.
|
|
5
|
+
metricConfigurer: React.ComponentType<any>;
|
|
6
6
|
queryFinder: (metric: ICanaryMetricConfig) => string;
|
|
7
7
|
useTemplates?: boolean;
|
|
8
8
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ICanaryMetricConfig } from '../../domain';
|
|
2
3
|
interface INewRelicMetricConfigurerStateProps {
|
|
3
4
|
editingMetric: ICanaryMetricConfig;
|
|
4
5
|
}
|
|
5
6
|
interface INewRelicMetricConfigurerDispatchProps {
|
|
6
7
|
changeSelect: (event: any) => void;
|
|
8
|
+
clearTemplateState: () => void;
|
|
7
9
|
}
|
|
10
|
+
type INewRelicMetricConfigurerProps = INewRelicMetricConfigurerStateProps & INewRelicMetricConfigurerDispatchProps;
|
|
8
11
|
export declare const queryFinder: (metric: ICanaryMetricConfig) => any;
|
|
9
|
-
declare
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
+
declare function NewRelicMetricConfigurer({ changeSelect, clearTemplateState: onClearTemplateState, editingMetric, }: INewRelicMetricConfigurerProps): React.JSX.Element;
|
|
13
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof NewRelicMetricConfigurer, import("react-redux").Omit<INewRelicMetricConfigurerStateProps & INewRelicMetricConfigurerDispatchProps, "editingMetric" | "clearTemplateState" | "changeSelect">>;
|
|
12
14
|
export default _default;
|
package/dist/kayenta/metricStore/prometheus/domain/IPrometheusCanaryMetricSetQueryConfig.d.ts
CHANGED
|
@@ -4,9 +4,4 @@ export interface IPrometheusCanaryMetricSetQueryConfig extends ICanaryMetricSetQ
|
|
|
4
4
|
metricName: string;
|
|
5
5
|
labelBindings: string[];
|
|
6
6
|
groupByFields: string[];
|
|
7
|
-
queryType: PrometheusQueryType;
|
|
8
|
-
}
|
|
9
|
-
export declare enum PrometheusQueryType {
|
|
10
|
-
PROMQL = "PROMQL",
|
|
11
|
-
DEFAULT = "DEFAULT"
|
|
12
7
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { Option } from 'react-select';
|
|
2
3
|
import type { ICanaryMetricConfig } from '../../domain/ICanaryConfig';
|
|
3
4
|
import type { IPrometheusCanaryMetricSetQueryConfig } from './domain/IPrometheusCanaryMetricSetQueryConfig';
|
|
4
|
-
import { PrometheusQueryType } from './domain/IPrometheusCanaryMetricSetQueryConfig';
|
|
5
5
|
import type { ICanaryMetricValidationErrors } from '../../edit/editMetricValidation';
|
|
6
6
|
import type { IUpdateListPayload } from '../../layout/list';
|
|
7
7
|
interface IPrometheusMetricConfigurerStateProps {
|
|
8
8
|
editingMetric: ICanaryMetricConfig;
|
|
9
|
-
queryType: PrometheusQueryType;
|
|
10
9
|
validationErrors: ICanaryMetricValidationErrors;
|
|
11
10
|
}
|
|
12
11
|
interface IPrometheusMetricConfigurerDispatchProps {
|
|
13
12
|
updateLabelBindings: (payload: IUpdateListPayload) => void;
|
|
14
13
|
updateGroupBy: (payload: IUpdateListPayload) => void;
|
|
15
|
-
updateFilterQueryType: (queryType: PrometheusQueryType) => void;
|
|
16
14
|
updatePrometheusMetricQueryField: <T extends keyof IPrometheusCanaryMetricSetQueryConfig>(field: keyof IPrometheusCanaryMetricSetQueryConfig, value: Option<IPrometheusCanaryMetricSetQueryConfig[T]>) => void;
|
|
15
|
+
clearTemplateState: () => void;
|
|
17
16
|
}
|
|
18
|
-
declare
|
|
19
|
-
|
|
20
|
-
};
|
|
17
|
+
declare function PrometheusMetricConfigurer({ editingMetric, updateLabelBindings, updateGroupBy, updatePrometheusMetricQueryField, validationErrors, clearTemplateState: onClearTemplateState, }: IPrometheusMetricConfigurerStateProps & IPrometheusMetricConfigurerDispatchProps): React.JSX.Element;
|
|
18
|
+
declare const _default: import("react-redux").ConnectedComponent<typeof PrometheusMetricConfigurer, import("react-redux").Omit<IPrometheusMetricConfigurerStateProps & IPrometheusMetricConfigurerDispatchProps, "editingMetric" | "validationErrors" | "clearTemplateState" | "updateLabelBindings" | "updateGroupBy" | "updatePrometheusMetricQueryField">>;
|
|
21
19
|
export default _default;
|