Skip to content

Commit

Permalink
Use the new internal endpoint on the Rule Details page
Browse files Browse the repository at this point in the history
  • Loading branch information
banderror committed Nov 1, 2021
1 parent 1f4d234 commit a668b2c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
DETECTION_ENGINE_TAGS_URL,
DETECTION_ENGINE_RULES_BULK_ACTION,
DETECTION_ENGINE_RULES_PREVIEW,
INTERNAL_DETECTION_ENGINE_RULE_STATUS_URL,
} from '../../../../../common/constants';
import {
UpdateRulesProps,
Expand Down Expand Up @@ -372,7 +373,7 @@ export const getRuleStatusById = async ({
id: string;
signal: AbortSignal;
}): Promise<RuleStatusResponse> =>
KibanaServices.get().http.fetch<RuleStatusResponse>(DETECTION_ENGINE_RULES_STATUS_URL, {
KibanaServices.get().http.fetch<RuleStatusResponse>(INTERNAL_DETECTION_ENGINE_RULE_STATUS_URL, {
method: 'POST',
body: JSON.stringify({ ids: [id] }),
signal,
Expand Down

0 comments on commit a668b2c

Please sign in to comment.