Skip to content

Commit

Permalink
[Observability] Migrate from the legacy Find alert API to the new one (
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara authored Nov 14, 2024
1 parent 9d38922 commit 560ae9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const allowedConsumers = ['apm', 'uptime', 'logs', 'infrastructure', 'alerts'];
export async function getObservabilityAlerts({ http }: { http: HttpSetup }) {
try {
const { data = [] }: { data: Rule[] } =
(await http.get('/api/alerts/_find', {
(await http.get('/api/alerting/rules/_find', {
query: {
page: 1,
per_page: 20,
Expand Down

0 comments on commit 560ae9a

Please sign in to comment.