MCPcopy
hub / github.com/triggerdotdev/trigger.dev / sendEvent

Function sendEvent

perf/src/index.ts:30–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30async function sendEvent() {
31 try {
32 return await triggerClient.sendEvent({
33 name: "perf.test",
34 payload: {
35 string: "Hello, World!",
36 number: 42,
37 boolean: true,
38 nullValue: null,
39 array: [1, 2, 3],
40 object: {
41 nestedString: "Nested value",
42 nestedNumber: 3.14,
43 nestedArray: ["apple", "banana", "cherry"],
44 nestedObject: {
45 nestedBoolean: false,
46 nestedNull: null,
47 },
48 },
49 },
50 });
51 } catch (err) {
52 console.error(err);
53 }
54}
55
56async function sendEvents(count: number) {
57 const events = new Array(count).fill({

Callers 4

mainFunction · 0.85
mainLongFunction · 0.85
mainSerialFunction · 0.85
mainSingleFunction · 0.85

Calls 2

errorMethod · 0.65
sendEventMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…