Skip to content

Commit

Permalink
migrate to new alert api
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara committed Nov 12, 2024
1 parent da85efe commit dd1ec6b
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 dd1ec6b

Please sign in to comment.