Skip to content

Commit

Permalink
Configure observability rule URL for tls rule type
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam-saeidi committed Aug 10, 2023
1 parent e657ef8 commit 4861ac6
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/

import { ActionGroupIdsOf } from '@kbn/alerting-plugin/common';
import { createLifecycleRuleTypeFactory, IRuleDataClient } from '@kbn/rule-registry-plugin/server';
import {
createLifecycleRuleTypeFactory,
GetViewInAppRelativeUrlFnOpts,
IRuleDataClient,
} from '@kbn/rule-registry-plugin/server';
import { asyncForEach } from '@kbn/std';
import { ALERT_REASON, ALERT_UUID } from '@kbn/rule-data-utils';
import {
alertsLocatorID,
AlertsLocatorParams,
getAlertUrl,
observabilityPaths,
} from '@kbn/observability-plugin/common';
import { LocatorPublic } from '@kbn/share-plugin/common';
import { schema } from '@kbn/config-schema';
Expand Down Expand Up @@ -148,5 +154,7 @@ export const registerSyntheticsTLSCheckRule = (
return { state: updateState(ruleState, foundCerts) };
},
alerts: UptimeRuleTypeAlertDefinition,
getViewInAppRelativeUrl: ({ rule }: GetViewInAppRelativeUrlFnOpts<{}>) =>
observabilityPaths.ruleDetails(rule.id),
});
};

0 comments on commit 4861ac6

Please sign in to comment.