/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expect, test } from "vitest"; import { Incidentio } from "../index.js"; test("Alert Events Alert Events V2 #Create Http", async () => { const incidentio = new Incidentio(); const result = await incidentio.alertEvents.createHTTP({ token: "some-random-string", alertSourceConfigId: "01GW2G3V0S59R238FAHPDS1R66", createHTTPRequestBody: { deduplicationKey: "4293868629", description: "We've detected a number of timeouts on hello.world.com, the service may be down. To fix...", metadata: { "service": "hello.world.com", "team": [ "my-team", ], }, sourceUrl: "https://www.my-alerting-platform.com/alerts/my-alert-123", status: "firing", title: "*errors.withMessage: PG::Error failed to connect", }, }); expect(result).toBeDefined(); expect(result).toBeDefined(); expect(result).toEqual({ deduplicationKey: "unique-key", message: "Event accepted for processing", status: "success", }); });