@trigger.dev/sdk 4.5.0-rc.6 → 4.5.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/ai.d.ts +171 -5
- package/dist/commonjs/v3/ai.js +309 -22
- package/dist/commonjs/v3/ai.js.map +1 -1
- package/dist/commonjs/v3/chat-server.d.ts +8 -0
- package/dist/commonjs/v3/chat-server.js +32 -10
- package/dist/commonjs/v3/chat-server.js.map +1 -1
- package/dist/commonjs/v3/chat-server.test.js +51 -0
- package/dist/commonjs/v3/chat-server.test.js.map +1 -1
- package/dist/commonjs/v3/createStartSessionAction.test.js +30 -0
- package/dist/commonjs/v3/createStartSessionAction.test.js.map +1 -1
- package/dist/commonjs/v3/sessions.d.ts +3 -2
- package/dist/commonjs/v3/sessions.js +3 -2
- package/dist/commonjs/v3/sessions.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/ai.d.ts +171 -5
- package/dist/esm/v3/ai.js +309 -22
- package/dist/esm/v3/ai.js.map +1 -1
- package/dist/esm/v3/chat-server.d.ts +8 -0
- package/dist/esm/v3/chat-server.js +32 -10
- package/dist/esm/v3/chat-server.js.map +1 -1
- package/dist/esm/v3/chat-server.test.js +51 -0
- package/dist/esm/v3/chat-server.test.js.map +1 -1
- package/dist/esm/v3/createStartSessionAction.test.js +30 -0
- package/dist/esm/v3/createStartSessionAction.test.js.map +1 -1
- package/dist/esm/v3/sessions.d.ts +3 -2
- package/dist/esm/v3/sessions.js +3 -2
- package/dist/esm/v3/sessions.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/docs/ai/prompts.mdx +430 -0
- package/docs/ai-chat/actions.mdx +115 -0
- package/docs/ai-chat/anatomy.mdx +71 -0
- package/docs/ai-chat/backend.mdx +817 -0
- package/docs/ai-chat/background-injection.mdx +221 -0
- package/docs/ai-chat/changelog.mdx +850 -0
- package/docs/ai-chat/chat-local.mdx +174 -0
- package/docs/ai-chat/client-protocol.mdx +1081 -0
- package/docs/ai-chat/compaction.mdx +411 -0
- package/docs/ai-chat/custom-agents.mdx +364 -0
- package/docs/ai-chat/error-handling.mdx +415 -0
- package/docs/ai-chat/fast-starts.mdx +672 -0
- package/docs/ai-chat/frontend.mdx +580 -0
- package/docs/ai-chat/how-it-works.mdx +230 -0
- package/docs/ai-chat/lifecycle-hooks.mdx +530 -0
- package/docs/ai-chat/mcp.mdx +101 -0
- package/docs/ai-chat/overview.mdx +90 -0
- package/docs/ai-chat/patterns/branching-conversations.mdx +284 -0
- package/docs/ai-chat/patterns/code-sandbox.mdx +126 -0
- package/docs/ai-chat/patterns/database-persistence.mdx +414 -0
- package/docs/ai-chat/patterns/human-in-the-loop.mdx +275 -0
- package/docs/ai-chat/patterns/large-payloads.mdx +169 -0
- package/docs/ai-chat/patterns/oom-resilience.mdx +120 -0
- package/docs/ai-chat/patterns/persistence-and-replay.mdx +211 -0
- package/docs/ai-chat/patterns/recovery-boot.mdx +230 -0
- package/docs/ai-chat/patterns/skills.mdx +221 -0
- package/docs/ai-chat/patterns/sub-agents.mdx +383 -0
- package/docs/ai-chat/patterns/tool-result-auditing.mdx +148 -0
- package/docs/ai-chat/patterns/trusted-edge-signals.mdx +337 -0
- package/docs/ai-chat/patterns/version-upgrades.mdx +172 -0
- package/docs/ai-chat/pending-messages.mdx +343 -0
- package/docs/ai-chat/prompt-caching.mdx +206 -0
- package/docs/ai-chat/quick-start.mdx +161 -0
- package/docs/ai-chat/reference.mdx +909 -0
- package/docs/ai-chat/server-chat.mdx +263 -0
- package/docs/ai-chat/sessions.mdx +333 -0
- package/docs/ai-chat/testing.mdx +682 -0
- package/docs/ai-chat/tools.mdx +191 -0
- package/docs/ai-chat/types.mdx +242 -0
- package/docs/ai-chat/upgrade-guide.mdx +515 -0
- package/docs/apikeys.mdx +54 -0
- package/docs/building-with-ai.mdx +261 -0
- package/docs/bulk-actions.mdx +49 -0
- package/docs/changelog.mdx +6 -0
- package/docs/cli-deploy-commands.mdx +9 -0
- package/docs/cli-dev-commands.mdx +9 -0
- package/docs/cli-dev.mdx +8 -0
- package/docs/cli-init-commands.mdx +58 -0
- package/docs/cli-introduction.mdx +25 -0
- package/docs/cli-list-profiles-commands.mdx +42 -0
- package/docs/cli-login-commands.mdx +33 -0
- package/docs/cli-logout-commands.mdx +33 -0
- package/docs/cli-preview-archive.mdx +59 -0
- package/docs/cli-promote-commands.mdx +9 -0
- package/docs/cli-switch.mdx +43 -0
- package/docs/cli-update-commands.mdx +42 -0
- package/docs/cli-whoami-commands.mdx +33 -0
- package/docs/community.mdx +6 -0
- package/docs/config/config-file.mdx +602 -0
- package/docs/config/extensions/additionalFiles.mdx +38 -0
- package/docs/config/extensions/additionalPackages.mdx +40 -0
- package/docs/config/extensions/aptGet.mdx +34 -0
- package/docs/config/extensions/audioWaveform.mdx +20 -0
- package/docs/config/extensions/custom.mdx +380 -0
- package/docs/config/extensions/emitDecoratorMetadata.mdx +29 -0
- package/docs/config/extensions/esbuildPlugin.mdx +31 -0
- package/docs/config/extensions/ffmpeg.mdx +45 -0
- package/docs/config/extensions/lightpanda.mdx +56 -0
- package/docs/config/extensions/overview.mdx +67 -0
- package/docs/config/extensions/playwright.mdx +195 -0
- package/docs/config/extensions/prismaExtension.mdx +1014 -0
- package/docs/config/extensions/puppeteer.mdx +30 -0
- package/docs/config/extensions/pythonExtension.mdx +182 -0
- package/docs/config/extensions/syncEnvVars.mdx +291 -0
- package/docs/context.mdx +235 -0
- package/docs/database-connections.mdx +213 -0
- package/docs/deploy-environment-variables.mdx +435 -0
- package/docs/deployment/atomic-deployment.mdx +172 -0
- package/docs/deployment/overview.mdx +257 -0
- package/docs/deployment/preview-branches.mdx +224 -0
- package/docs/errors-retrying.mdx +379 -0
- package/docs/github-actions.mdx +222 -0
- package/docs/github-integration.mdx +136 -0
- package/docs/github-repo.mdx +8 -0
- package/docs/help-email.mdx +6 -0
- package/docs/help-slack.mdx +11 -0
- package/docs/hidden-tasks.mdx +56 -0
- package/docs/how-it-works.mdx +454 -0
- package/docs/how-to-reduce-your-spend.mdx +217 -0
- package/docs/idempotency.mdx +504 -0
- package/docs/introduction.mdx +223 -0
- package/docs/limits.mdx +241 -0
- package/docs/logging.mdx +195 -0
- package/docs/machines.mdx +952 -0
- package/docs/manual-setup.mdx +632 -0
- package/docs/mcp-agent-rules.mdx +41 -0
- package/docs/mcp-introduction.mdx +385 -0
- package/docs/mcp-tools.mdx +273 -0
- package/docs/migrating-from-v3.mdx +334 -0
- package/docs/observability/dashboards.mdx +102 -0
- package/docs/observability/query.mdx +585 -0
- package/docs/open-source-contributing.mdx +16 -0
- package/docs/open-source-self-hosting.mdx +541 -0
- package/docs/private-networking/aws-console-setup.mdx +304 -0
- package/docs/private-networking/overview.mdx +144 -0
- package/docs/private-networking/troubleshooting.mdx +78 -0
- package/docs/queue-concurrency.mdx +354 -0
- package/docs/quick-start.mdx +97 -0
- package/docs/realtime/auth.mdx +208 -0
- package/docs/realtime/backend/overview.mdx +45 -0
- package/docs/realtime/backend/streams.mdx +418 -0
- package/docs/realtime/backend/subscribe.mdx +225 -0
- package/docs/realtime/how-it-works.mdx +94 -0
- package/docs/realtime/overview.mdx +63 -0
- package/docs/realtime/react-hooks/overview.mdx +73 -0
- package/docs/realtime/react-hooks/streams.mdx +449 -0
- package/docs/realtime/react-hooks/subscribe.mdx +674 -0
- package/docs/realtime/react-hooks/swr.mdx +87 -0
- package/docs/realtime/react-hooks/triggering.mdx +194 -0
- package/docs/realtime/react-hooks/use-wait-token.mdx +34 -0
- package/docs/realtime/run-object.mdx +174 -0
- package/docs/replaying.mdx +72 -0
- package/docs/request-feature.mdx +6 -0
- package/docs/roadmap.mdx +6 -0
- package/docs/run-tests.mdx +20 -0
- package/docs/run-usage.mdx +113 -0
- package/docs/runs/heartbeats.mdx +38 -0
- package/docs/runs/max-duration.mdx +139 -0
- package/docs/runs/metadata.mdx +734 -0
- package/docs/runs/priority.mdx +31 -0
- package/docs/runs.mdx +396 -0
- package/docs/self-hosting/docker.mdx +458 -0
- package/docs/self-hosting/env/supervisor.mdx +74 -0
- package/docs/self-hosting/env/webapp.mdx +276 -0
- package/docs/self-hosting/kubernetes.mdx +601 -0
- package/docs/self-hosting/overview.mdx +108 -0
- package/docs/skills.mdx +85 -0
- package/docs/tags.mdx +120 -0
- package/docs/tasks/overview.mdx +697 -0
- package/docs/tasks/scheduled.mdx +382 -0
- package/docs/tasks/schemaTask.mdx +413 -0
- package/docs/tasks/streams.mdx +884 -0
- package/docs/triggering.mdx +1320 -0
- package/docs/troubleshooting-alerts.mdx +385 -0
- package/docs/troubleshooting-debugging-in-vscode.mdx +8 -0
- package/docs/troubleshooting-github-issues.mdx +6 -0
- package/docs/troubleshooting-uptime-status.mdx +6 -0
- package/docs/troubleshooting.mdx +398 -0
- package/docs/upgrading-packages.mdx +80 -0
- package/docs/vercel-integration.mdx +207 -0
- package/docs/versioning.mdx +56 -0
- package/docs/video-walkthrough.mdx +23 -0
- package/docs/wait-for-token.mdx +540 -0
- package/docs/wait-for.mdx +42 -0
- package/docs/wait-until.mdx +53 -0
- package/docs/wait.mdx +18 -0
- package/docs/writing-tasks-introduction.mdx +33 -0
- package/package.json +8 -5
- package/skills/trigger-authoring-chat-agent/SKILL.md +296 -0
- package/skills/trigger-authoring-tasks/SKILL.md +254 -0
- package/skills/trigger-chat-agent-advanced/SKILL.md +368 -0
- package/skills/trigger-cost-savings/SKILL.md +116 -0
- package/skills/trigger-realtime-and-frontend/SKILL.md +276 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Alerts"
|
|
3
|
+
description: "Get alerted when runs or deployments fail, or when deployments succeed."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
We support receiving alerts for the following events:
|
|
7
|
+
- Run fails
|
|
8
|
+
- Deployment fails
|
|
9
|
+
- Deployment succeeds
|
|
10
|
+
|
|
11
|
+
## How to setup alerts
|
|
12
|
+
|
|
13
|
+
<Steps>
|
|
14
|
+
|
|
15
|
+
<Step title="Create a new alert">
|
|
16
|
+
Click on "Alerts" in the left hand side menu, then click on "New alert" to open the new alert modal.
|
|
17
|
+

|
|
18
|
+
</Step>
|
|
19
|
+
|
|
20
|
+
<Step title="Choose your alert method">
|
|
21
|
+
Choose to be notified by email, Slack notification or webhook whenever:
|
|
22
|
+
|
|
23
|
+
- a run fails
|
|
24
|
+
- a deployment fails
|
|
25
|
+
- a deployment succeeds
|
|
26
|
+
|
|
27
|
+

|
|
28
|
+
</Step>
|
|
29
|
+
|
|
30
|
+
<Step title="Delete or disable alerts">
|
|
31
|
+
Click on the triple dot menu on the right side of the table row and select "Disable" or "Delete".
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
</Step>
|
|
35
|
+
|
|
36
|
+
</Steps>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## Alert webhooks
|
|
40
|
+
|
|
41
|
+
For the alert webhooks you can use the SDK to parse them. Here is an example of how to parse the webhook payload in Remix:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { ActionFunctionArgs, json } from "@remix-run/server-runtime";
|
|
45
|
+
import { webhooks, WebhookError } from "@trigger.dev/sdk";
|
|
46
|
+
|
|
47
|
+
export async function action({ request }: ActionFunctionArgs) {
|
|
48
|
+
// Make sure this is a POST request
|
|
49
|
+
if (request.method !== "POST") {
|
|
50
|
+
return json({ error: "Method not allowed" }, { status: 405 });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
try {
|
|
54
|
+
// Construct and verify the webhook event
|
|
55
|
+
// This secret can be found on your Alerts page when you create a webhook alert
|
|
56
|
+
const event = await webhooks.constructEvent(request, process.env.ALERT_WEBHOOK_SECRET!);
|
|
57
|
+
|
|
58
|
+
// Process the event based on its type
|
|
59
|
+
switch (event.type) {
|
|
60
|
+
case "alert.run.failed": {
|
|
61
|
+
console.log("[Webhook Internal Test] Run failed alert webhook received", { event });
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
case "alert.deployment.success": {
|
|
65
|
+
console.log("[Webhook Internal Test] Deployment success alert webhook received", { event });
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
case "alert.deployment.failed": {
|
|
69
|
+
console.log("[Webhook Internal Test] Deployment failed alert webhook received", { event });
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
default: {
|
|
73
|
+
console.log("[Webhook Internal Test] Unhandled webhook type", { event });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Return a success response
|
|
78
|
+
return json({ received: true }, { status: 200 });
|
|
79
|
+
} catch (err) {
|
|
80
|
+
// Handle webhook errors
|
|
81
|
+
if (err instanceof WebhookError) {
|
|
82
|
+
console.error("Webhook error:", { message: err.message });
|
|
83
|
+
return json({ error: err.message }, { status: 400 });
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (err instanceof Error) {
|
|
87
|
+
console.error("Error processing webhook:", { message: err.message });
|
|
88
|
+
return json({ error: err.message }, { status: 400 });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// Handle other errors
|
|
92
|
+
console.error("Error processing webhook:", { err });
|
|
93
|
+
return json({ error: "Internal server error" }, { status: 500 });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Common properties
|
|
99
|
+
|
|
100
|
+
When you create a webhook alert, you'll receive different payloads depending on the type of alert. All webhooks share some common properties:
|
|
101
|
+
|
|
102
|
+
<ParamField path="id" type="string">
|
|
103
|
+
A unique identifier for this webhook event
|
|
104
|
+
</ParamField>
|
|
105
|
+
|
|
106
|
+
<ParamField path="created" type="datetime">
|
|
107
|
+
When this webhook event was created
|
|
108
|
+
</ParamField>
|
|
109
|
+
|
|
110
|
+
<ParamField path="webhookVersion" type="string">
|
|
111
|
+
The version of the webhook payload format
|
|
112
|
+
</ParamField>
|
|
113
|
+
|
|
114
|
+
<ParamField path="type" type="string">
|
|
115
|
+
The type of alert webhook. One of: `alert.run.failed`, `alert.deployment.success`, or `alert.deployment.failed`
|
|
116
|
+
</ParamField>
|
|
117
|
+
|
|
118
|
+
### Run Failed Alert
|
|
119
|
+
|
|
120
|
+
This webhook is sent when a run fails. The payload is available on the `object` property:
|
|
121
|
+
|
|
122
|
+
<ParamField path="object.task.id" type="string">
|
|
123
|
+
Unique identifier for the task
|
|
124
|
+
</ParamField>
|
|
125
|
+
|
|
126
|
+
<ParamField path="object.task.filePath" type="string">
|
|
127
|
+
File path where the task is defined
|
|
128
|
+
</ParamField>
|
|
129
|
+
|
|
130
|
+
<ParamField path="object.task.exportName" type="string">
|
|
131
|
+
Name of the exported task function
|
|
132
|
+
</ParamField>
|
|
133
|
+
|
|
134
|
+
<ParamField path="object.task.version" type="string">
|
|
135
|
+
Version of the task
|
|
136
|
+
</ParamField>
|
|
137
|
+
|
|
138
|
+
<ParamField path="object.task.sdkVersion" type="string">
|
|
139
|
+
Version of the SDK used
|
|
140
|
+
</ParamField>
|
|
141
|
+
|
|
142
|
+
<ParamField path="object.task.cliVersion" type="string">
|
|
143
|
+
Version of the CLI used
|
|
144
|
+
</ParamField>
|
|
145
|
+
|
|
146
|
+
<ParamField path="object.run.id" type="string">
|
|
147
|
+
Unique identifier for the run
|
|
148
|
+
</ParamField>
|
|
149
|
+
|
|
150
|
+
<ParamField path="object.run.number" type="number">
|
|
151
|
+
Run number
|
|
152
|
+
</ParamField>
|
|
153
|
+
|
|
154
|
+
<ParamField path="object.run.status" type="string">
|
|
155
|
+
Current status of the run
|
|
156
|
+
</ParamField>
|
|
157
|
+
|
|
158
|
+
<ParamField path="object.run.createdAt" type="datetime">
|
|
159
|
+
When the run was created
|
|
160
|
+
</ParamField>
|
|
161
|
+
|
|
162
|
+
<ParamField path="object.run.startedAt" type="datetime">
|
|
163
|
+
When the run started executing
|
|
164
|
+
</ParamField>
|
|
165
|
+
|
|
166
|
+
<ParamField path="object.run.completedAt" type="datetime">
|
|
167
|
+
When the run finished executing
|
|
168
|
+
</ParamField>
|
|
169
|
+
|
|
170
|
+
<ParamField path="object.run.isTest" type="boolean">
|
|
171
|
+
Whether this is a test run
|
|
172
|
+
</ParamField>
|
|
173
|
+
|
|
174
|
+
<ParamField path="object.run.idempotencyKey" type="string">
|
|
175
|
+
Idempotency key for the run
|
|
176
|
+
</ParamField>
|
|
177
|
+
|
|
178
|
+
<ParamField path="object.run.tags" type="string[]">
|
|
179
|
+
Associated tags
|
|
180
|
+
</ParamField>
|
|
181
|
+
|
|
182
|
+
<ParamField path="object.run.error" type="object">
|
|
183
|
+
Error information
|
|
184
|
+
</ParamField>
|
|
185
|
+
|
|
186
|
+
<ParamField path="object.run.isOutOfMemoryError" type="boolean">
|
|
187
|
+
Whether the run was an out-of-memory error
|
|
188
|
+
</ParamField>
|
|
189
|
+
|
|
190
|
+
<ParamField path="object.run.machine" type="string">
|
|
191
|
+
Machine preset used for the run
|
|
192
|
+
</ParamField>
|
|
193
|
+
|
|
194
|
+
<ParamField path="object.run.dashboardUrl" type="string">
|
|
195
|
+
URL to view the run in the dashboard
|
|
196
|
+
</ParamField>
|
|
197
|
+
|
|
198
|
+
<ParamField path="object.environment.id" type="string">
|
|
199
|
+
Environment ID
|
|
200
|
+
</ParamField>
|
|
201
|
+
|
|
202
|
+
<ParamField path="object.environment.type" type="string">
|
|
203
|
+
Environment type (STAGING or PRODUCTION)
|
|
204
|
+
</ParamField>
|
|
205
|
+
|
|
206
|
+
<ParamField path="object.environment.slug" type="string">
|
|
207
|
+
Environment slug
|
|
208
|
+
</ParamField>
|
|
209
|
+
|
|
210
|
+
<ParamField path="object.organization.id" type="string">
|
|
211
|
+
Organization ID
|
|
212
|
+
</ParamField>
|
|
213
|
+
|
|
214
|
+
<ParamField path="object.organization.slug" type="string">
|
|
215
|
+
Organization slug
|
|
216
|
+
</ParamField>
|
|
217
|
+
|
|
218
|
+
<ParamField path="object.organization.name" type="string">
|
|
219
|
+
Organization name
|
|
220
|
+
</ParamField>
|
|
221
|
+
|
|
222
|
+
<ParamField path="object.project.id" type="string">
|
|
223
|
+
Project ID
|
|
224
|
+
</ParamField>
|
|
225
|
+
|
|
226
|
+
<ParamField path="object.project.ref" type="string">
|
|
227
|
+
Project reference
|
|
228
|
+
</ParamField>
|
|
229
|
+
|
|
230
|
+
<ParamField path="object.project.slug" type="string">
|
|
231
|
+
Project slug
|
|
232
|
+
</ParamField>
|
|
233
|
+
|
|
234
|
+
<ParamField path="object.project.name" type="string">
|
|
235
|
+
Project name
|
|
236
|
+
</ParamField>
|
|
237
|
+
|
|
238
|
+
### Deployment Success Alert
|
|
239
|
+
|
|
240
|
+
This webhook is sent when a deployment succeeds. The payload is available on the `object` property:
|
|
241
|
+
|
|
242
|
+
<ParamField path="object.deployment.id" type="string">
|
|
243
|
+
Deployment ID
|
|
244
|
+
</ParamField>
|
|
245
|
+
|
|
246
|
+
<ParamField path="object.deployment.status" type="string">
|
|
247
|
+
Deployment status
|
|
248
|
+
</ParamField>
|
|
249
|
+
|
|
250
|
+
<ParamField path="object.deployment.version" type="string">
|
|
251
|
+
Deployment version
|
|
252
|
+
</ParamField>
|
|
253
|
+
|
|
254
|
+
<ParamField path="object.deployment.shortCode" type="string">
|
|
255
|
+
Short code identifier
|
|
256
|
+
</ParamField>
|
|
257
|
+
|
|
258
|
+
<ParamField path="object.deployment.deployedAt" type="datetime">
|
|
259
|
+
When the deployment completed
|
|
260
|
+
</ParamField>
|
|
261
|
+
|
|
262
|
+
<ParamField path="object.tasks" type="array">
|
|
263
|
+
Array of deployed tasks with properties: id, filePath, exportName, and triggerSource
|
|
264
|
+
</ParamField>
|
|
265
|
+
|
|
266
|
+
<ParamField path="object.environment.id" type="string">
|
|
267
|
+
Environment ID
|
|
268
|
+
</ParamField>
|
|
269
|
+
|
|
270
|
+
<ParamField path="object.environment.type" type="string">
|
|
271
|
+
Environment type (STAGING or PRODUCTION)
|
|
272
|
+
</ParamField>
|
|
273
|
+
|
|
274
|
+
<ParamField path="object.environment.slug" type="string">
|
|
275
|
+
Environment slug
|
|
276
|
+
</ParamField>
|
|
277
|
+
|
|
278
|
+
<ParamField path="object.organization.id" type="string">
|
|
279
|
+
Organization ID
|
|
280
|
+
</ParamField>
|
|
281
|
+
|
|
282
|
+
<ParamField path="object.organization.slug" type="string">
|
|
283
|
+
Organization slug
|
|
284
|
+
</ParamField>
|
|
285
|
+
|
|
286
|
+
<ParamField path="object.organization.name" type="string">
|
|
287
|
+
Organization name
|
|
288
|
+
</ParamField>
|
|
289
|
+
|
|
290
|
+
<ParamField path="object.project.id" type="string">
|
|
291
|
+
Project ID
|
|
292
|
+
</ParamField>
|
|
293
|
+
|
|
294
|
+
<ParamField path="object.project.ref" type="string">
|
|
295
|
+
Project reference
|
|
296
|
+
</ParamField>
|
|
297
|
+
|
|
298
|
+
<ParamField path="object.project.slug" type="string">
|
|
299
|
+
Project slug
|
|
300
|
+
</ParamField>
|
|
301
|
+
|
|
302
|
+
<ParamField path="object.project.name" type="string">
|
|
303
|
+
Project name
|
|
304
|
+
</ParamField>
|
|
305
|
+
|
|
306
|
+
### Deployment Failed Alert
|
|
307
|
+
|
|
308
|
+
This webhook is sent when a deployment fails. The payload is available on the `object` property:
|
|
309
|
+
|
|
310
|
+
<ParamField path="object.deployment.id" type="string">
|
|
311
|
+
Deployment ID
|
|
312
|
+
</ParamField>
|
|
313
|
+
|
|
314
|
+
<ParamField path="object.deployment.status" type="string">
|
|
315
|
+
Deployment status
|
|
316
|
+
</ParamField>
|
|
317
|
+
|
|
318
|
+
<ParamField path="object.deployment.version" type="string">
|
|
319
|
+
Deployment version
|
|
320
|
+
</ParamField>
|
|
321
|
+
|
|
322
|
+
<ParamField path="object.deployment.shortCode" type="string">
|
|
323
|
+
Short code identifier
|
|
324
|
+
</ParamField>
|
|
325
|
+
|
|
326
|
+
<ParamField path="object.deployment.failedAt" type="datetime">
|
|
327
|
+
When the deployment failed
|
|
328
|
+
</ParamField>
|
|
329
|
+
|
|
330
|
+
<ParamField path="object.error.name" type="string">
|
|
331
|
+
Error name
|
|
332
|
+
</ParamField>
|
|
333
|
+
|
|
334
|
+
<ParamField path="object.error.message" type="string">
|
|
335
|
+
Error message
|
|
336
|
+
</ParamField>
|
|
337
|
+
|
|
338
|
+
<ParamField path="object.error.stack" type="string">
|
|
339
|
+
Error stack trace (optional)
|
|
340
|
+
</ParamField>
|
|
341
|
+
|
|
342
|
+
<ParamField path="object.error.stderr" type="string">
|
|
343
|
+
Standard error output (optional)
|
|
344
|
+
</ParamField>
|
|
345
|
+
|
|
346
|
+
<ParamField path="object.environment.id" type="string">
|
|
347
|
+
Environment ID
|
|
348
|
+
</ParamField>
|
|
349
|
+
|
|
350
|
+
<ParamField path="object.environment.type" type="string">
|
|
351
|
+
Environment type (STAGING or PRODUCTION)
|
|
352
|
+
</ParamField>
|
|
353
|
+
|
|
354
|
+
<ParamField path="object.environment.slug" type="string">
|
|
355
|
+
Environment slug
|
|
356
|
+
</ParamField>
|
|
357
|
+
|
|
358
|
+
<ParamField path="object.organization.id" type="string">
|
|
359
|
+
Organization ID
|
|
360
|
+
</ParamField>
|
|
361
|
+
|
|
362
|
+
<ParamField path="object.organization.slug" type="string">
|
|
363
|
+
Organization slug
|
|
364
|
+
</ParamField>
|
|
365
|
+
|
|
366
|
+
<ParamField path="object.organization.name" type="string">
|
|
367
|
+
Organization name
|
|
368
|
+
</ParamField>
|
|
369
|
+
|
|
370
|
+
<ParamField path="object.project.id" type="string">
|
|
371
|
+
Project ID
|
|
372
|
+
</ParamField>
|
|
373
|
+
|
|
374
|
+
<ParamField path="object.project.ref" type="string">
|
|
375
|
+
Project reference
|
|
376
|
+
</ParamField>
|
|
377
|
+
|
|
378
|
+
<ParamField path="object.project.slug" type="string">
|
|
379
|
+
Project slug
|
|
380
|
+
</ParamField>
|
|
381
|
+
|
|
382
|
+
<ParamField path="object.project.name" type="string">
|
|
383
|
+
Project name
|
|
384
|
+
</ParamField>
|
|
385
|
+
|