Skip to content

Commit c7f3a99

Browse files
fix: Fix teamplates (#1869)
1 parent cd383e6 commit c7f3a99

File tree

6 files changed

+251
-113
lines changed

6 files changed

+251
-113
lines changed

templates/canvases/automated-rollback.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
trigger: null
2424
widget: null
2525
isCollapsed: true
26-
appInstallation: null
26+
integration: null
2727
errorMessage: ""
2828
warningMessage: ""
2929
- id: "component-node-fswk8u"
@@ -43,7 +43,7 @@ spec:
4343
trigger: null
4444
widget: null
4545
isCollapsed: false
46-
appInstallation: null
46+
integration: null
4747
errorMessage: ""
4848
warningMessage: ""
4949
- id: "component-node-g0f7j5"
@@ -67,7 +67,7 @@ spec:
6767
trigger: null
6868
widget: null
6969
isCollapsed: false
70-
appInstallation: null
70+
integration: null
7171
errorMessage: ""
7272
warningMessage: ""
7373
- id: "component-node-yfk4ek"
@@ -89,7 +89,7 @@ spec:
8989
trigger: null
9090
widget: null
9191
isCollapsed: true
92-
appInstallation: null
92+
integration: null
9393
errorMessage: ""
9494
warningMessage: ""
9595
- id: "component-node-aktoyi"
@@ -111,7 +111,7 @@ spec:
111111
trigger: null
112112
widget: null
113113
isCollapsed: true
114-
appInstallation: null
114+
integration: null
115115
errorMessage: ""
116116
warningMessage: ""
117117
- id: "component-node-pdfas0"
@@ -133,7 +133,7 @@ spec:
133133
trigger: null
134134
widget: null
135135
isCollapsed: true
136-
appInstallation: null
136+
integration: null
137137
errorMessage: ""
138138
warningMessage: ""
139139
- id: "github-onworkflowrun-github-onworkflowrun-k6enyi"
@@ -159,7 +159,7 @@ spec:
159159
name: "github.onWorkflowRun"
160160
widget: null
161161
isCollapsed: false
162-
appInstallation: null
162+
integration: null
163163
errorMessage: ""
164164
warningMessage: ""
165165
- id: "github-runworkflow-github-runworkflow-z5400d"
@@ -183,7 +183,7 @@ spec:
183183
trigger: null
184184
widget: null
185185
isCollapsed: false
186-
appInstallation: null
186+
integration: null
187187
errorMessage: ""
188188
warningMessage: ""
189189
- id: "annotation-note-ar1tgr"
@@ -204,7 +204,7 @@ spec:
204204
widget:
205205
name: "annotation"
206206
isCollapsed: false
207-
appInstallation: null
207+
integration: null
208208
errorMessage: ""
209209
warningMessage: ""
210210
- id: "annotation-note-ar2rbk"
@@ -225,7 +225,7 @@ spec:
225225
widget:
226226
name: "annotation"
227227
isCollapsed: false
228-
appInstallation: null
228+
integration: null
229229
errorMessage: ""
230230
warningMessage: ""
231231
- id: "annotation-note-ar3hlt"
@@ -246,7 +246,7 @@ spec:
246246
widget:
247247
name: "annotation"
248248
isCollapsed: false
249-
appInstallation: null
249+
integration: null
250250
errorMessage: ""
251251
warningMessage: ""
252252
- id: "annotation-note-ar4res"
@@ -267,7 +267,7 @@ spec:
267267
widget:
268268
name: "annotation"
269269
isCollapsed: false
270-
appInstallation: null
270+
integration: null
271271
errorMessage: ""
272272
warningMessage: ""
273273
edges:

templates/canvases/incident-data-collection.yaml

Lines changed: 79 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
name: "pagerduty.onIncident"
2929
widget: null
3030
isCollapsed: false
31-
appInstallation: null
31+
integration: null
3232
errorMessage: ""
3333
warningMessage: ""
3434
- id: "component-node-1xyxrf"
@@ -46,7 +46,7 @@ spec:
4646
trigger: null
4747
widget: null
4848
isCollapsed: false
49-
appInstallation: null
49+
integration: null
5050
errorMessage: ""
5151
warningMessage: ""
5252
- id: "component-node-wa0ctm"
@@ -70,7 +70,7 @@ spec:
7070
trigger: null
7171
widget: null
7272
isCollapsed: false
73-
appInstallation: null
73+
integration: null
7474
errorMessage: ""
7575
warningMessage: ""
7676
- id: "component-node-4pjwv9"
@@ -82,15 +82,15 @@ spec:
8282
type: "instant"
8383
metadata: null
8484
position:
85-
x: 2038
86-
"y": 430
85+
x: 1458
86+
"y": 683
8787
component:
8888
name: "dash0.queryPrometheus"
8989
blueprint: null
9090
trigger: null
9191
widget: null
9292
isCollapsed: false
93-
appInstallation: null
93+
integration: null
9494
errorMessage: ""
9595
warningMessage: ""
9696
- id: "component-node-hbriwb"
@@ -102,15 +102,15 @@ spec:
102102
type: "instant"
103103
metadata: null
104104
position:
105-
x: 2524
106-
"y": 429
105+
x: 1458
106+
"y": 983
107107
component:
108108
name: "dash0.queryPrometheus"
109109
blueprint: null
110110
trigger: null
111111
widget: null
112112
isCollapsed: false
113-
appInstallation: null
113+
integration: null
114114
errorMessage: ""
115115
warningMessage: ""
116116
- id: "component-node-rxe22i"
@@ -121,15 +121,15 @@ spec:
121121
model: "gpt-5.2"
122122
metadata: null
123123
position:
124-
x: 3019
125-
"y": 428
124+
x: 2687
125+
"y": 435
126126
component:
127127
name: "openai.textPrompt"
128128
blueprint: null
129129
trigger: null
130130
widget: null
131131
isCollapsed: false
132-
appInstallation: null
132+
integration: null
133133
errorMessage: ""
134134
warningMessage: ""
135135
- id: "component-node-n6s8ec"
@@ -145,99 +145,121 @@ spec:
145145
name: "puppy-describer"
146146
url: "https://github.com/puppies-inc/puppy-describer"
147147
position:
148-
x: 3542
149-
"y": 428
148+
x: 3206
149+
"y": 435
150150
component:
151151
name: "github.createIssue"
152152
blueprint: null
153153
trigger: null
154154
widget: null
155155
isCollapsed: false
156-
appInstallation: null
156+
integration: null
157157
errorMessage: ""
158158
warningMessage: ""
159159
- id: "annotation-annotation-4a9uck"
160160
name: "annotation"
161161
type: "TYPE_WIDGET"
162162
configuration:
163163
color: "yellow"
164-
height: 310
165-
text: "## PagerDuty incident trigger\n\nThis node listens for new incidents created in PagerDuty.\n\nWhen an incident is triggered, the event data flows downstream for processing.\n\n\n### To set up\n1. Click the node to open the sidebar configuration.\n2. Follow the instructions to connect your PagerDuty account.\n3. Select the service(s) and urgency levels to monitor."
166-
width: 380
164+
height: 282
165+
text: "### 1. Listen to external resources\n\nTrigger components listen for events from external systems, in this case, we are listening to new triggered incidents on PagerDuty\n___\nTo use this example, connect your Pager Duty accounts:\n\n- Click each node\n- Follow the connection instructions for connecting PagerDuty\n- Go back to the node settings to configure Services you want to listen to, and set up other filters\n"
166+
width: 460
167167
metadata: null
168168
position:
169-
x: 415
170-
"y": 16
169+
x: 353
170+
"y": 78
171171
component: null
172172
blueprint: null
173173
trigger: null
174174
widget:
175175
name: "annotation"
176176
isCollapsed: false
177-
appInstallation: null
177+
integration: null
178+
errorMessage: ""
179+
warningMessage: ""
180+
- id: "merge-merge-1fzi6q"
181+
name: "merge"
182+
type: "TYPE_COMPONENT"
183+
configuration:
184+
enableStopIf: false
185+
enableTimeout: true
186+
executionTimeout:
187+
unit: "minutes"
188+
value: 2
189+
metadata: null
190+
position:
191+
x: 2079
192+
"y": 430
193+
component:
194+
name: "merge"
195+
blueprint: null
196+
trigger: null
197+
widget: null
198+
isCollapsed: false
199+
integration: null
178200
errorMessage: ""
179201
warningMessage: ""
180-
- id: "annotation-annotation2-mq2ini"
202+
- id: "annotation-annotation2-hrxq4u"
181203
name: "annotation2"
182204
type: "TYPE_WIDGET"
183205
configuration:
184206
color: "yellow"
185-
height: 253
186-
text: "### Priority filter\n\nThis component filters incoming incidents to continue only if they are flagged as **P1** or **P2** priority.\n\nThe filter uses an **expression** that evaluates data from the event payload. \nPayloads contain all the information emitted by upstream components.\n\nOpen the node sidebar to see the filter expression and learn how to reference payload fields."
187-
width: 392
207+
height: 279
208+
text: "### 2. Filter out incidents based on priority\n\nThe Filter component subscribes to events from external resources and forwards only those that contain \"P1\" or \"P2\" as the priority.\n\n___\nSuperPlane is an event-driven workflow engine that supports expressive, flexible conditions.\n\n- Click the Filter node to see how expressions are defined\n- Explore the [Data Flow](https://docs.superplane.com/concepts/data-flow/) documentation for more details\n"
209+
width: 429
188210
metadata: null
189211
position:
190-
x: 924
191-
"y": 73
212+
x: 894
213+
"y": 79
192214
component: null
193215
blueprint: null
194216
trigger: null
195217
widget:
196218
name: "annotation"
197219
isCollapsed: false
198-
appInstallation: null
220+
integration: null
199221
errorMessage: ""
200222
warningMessage: ""
201-
- id: "annotation-annotation3-8mge7o"
223+
- id: "annotation-annotation3-7m2g95"
202224
name: "annotation3"
203225
type: "TYPE_WIDGET"
204226
configuration:
205227
color: "yellow"
206-
height: 176
207-
text: "### Data collection from Dash0\n\nThese components query Dash0 for multiple data points:\n\n**List Issues**: Retrieves all currently failing check rules from your Dash0 instance.\n\n**PromQL Queries**: Runs custom queries to fetch database memory and CPU usage metrics over the last 60 minutes.\n\nAll collected data is emitted downstream and becomes available for the AI summary and GitHub issue creation."
208-
width: 1398
228+
height: 265
229+
text: "### 3. Collect metrics and health data\n\nThis step uses Dash0 to collect health signals from multiple sources and prepare data for a summary. The Dash0 List Issues component retrieves all failing checks, while Prometheus Query components fetch database memory and CPU usage metrics.\n\nA Merge component waits for all three data collection nodes to complete before the workflow continues.\n\n___\n\n**To use this with your dash0 instance:** \n- Ensure check rules are configured in Dash0\n- Review the queries used for database memory and CPU usage\n- Update the queries to match your environment\n"
230+
width: 977
209231
metadata: null
210232
position:
211-
x: 1470
212-
"y": 161
233+
x: 1459
234+
"y": 80
213235
component: null
214236
blueprint: null
215237
trigger: null
216238
widget:
217239
name: "annotation"
218240
isCollapsed: false
219-
appInstallation: null
241+
integration: null
220242
errorMessage: ""
221243
warningMessage: ""
222-
- id: "annotation-annotation4-fc9g80"
244+
- id: "annotation-annotation4-31cjr5"
223245
name: "annotation4"
224246
type: "TYPE_WIDGET"
225247
configuration:
226248
color: "yellow"
227-
height: 166
228-
text: "### AI summary and GitHub issue\n\nWith access to all collected data, the **OpenAI** component generates a structured summary of the incident, including failing checks and database metrics.\n\nThe summary is then used to automatically create a **GitHub issue** for tracking and collaboration.\n\nTo use the OpenAI component, you need to connect your OpenAI account using an API key."
229-
width: 878
249+
height: 256
250+
text: "### 4. Use AI to summarize data and create a GitHub issue\n\nRaw data emitted by upstream nodes is passed to the OpenAI component. The agent reviews this data and generates a summary in `markdown`, which is then used to create a GitHub issue with all relevant details.\n\n___\n- Connect your OpenAI account\n- Review how the prompt is configured and how upstream data is shared with the agent\n- After the issue is created, explore the payloads to see how data flows through the workflow\n- Learn how to select and manipulate payload data in the [Expressions](https://docs.superplane.com/concepts/expressions/) documentation\n"
251+
width: 750
230252
metadata: null
231253
position:
232-
x: 3020
233-
"y": 150
254+
x: 2719
255+
"y": 81
234256
component: null
235257
blueprint: null
236258
trigger: null
237259
widget:
238260
name: "annotation"
239261
isCollapsed: false
240-
appInstallation: null
262+
integration: null
241263
errorMessage: ""
242264
warningMessage: ""
243265
edges:
@@ -247,21 +269,30 @@ spec:
247269
- sourceId: "component-node-1xyxrf"
248270
targetId: "component-node-wa0ctm"
249271
channel: "default"
272+
- sourceId: "component-node-rxe22i"
273+
targetId: "component-node-n6s8ec"
274+
channel: "default"
250275
- sourceId: "component-node-wa0ctm"
251-
targetId: "component-node-4pjwv9"
276+
targetId: "merge-merge-1fzi6q"
252277
channel: "clear"
253278
- sourceId: "component-node-wa0ctm"
254-
targetId: "component-node-4pjwv9"
279+
targetId: "merge-merge-1fzi6q"
255280
channel: "degraded"
256281
- sourceId: "component-node-wa0ctm"
257-
targetId: "component-node-4pjwv9"
282+
targetId: "merge-merge-1fzi6q"
258283
channel: "critical"
259284
- sourceId: "component-node-4pjwv9"
260-
targetId: "component-node-hbriwb"
285+
targetId: "merge-merge-1fzi6q"
261286
channel: "default"
262287
- sourceId: "component-node-hbriwb"
288+
targetId: "merge-merge-1fzi6q"
289+
channel: "default"
290+
- sourceId: "merge-merge-1fzi6q"
263291
targetId: "component-node-rxe22i"
292+
channel: "success"
293+
- sourceId: "component-node-1xyxrf"
294+
targetId: "component-node-4pjwv9"
264295
channel: "default"
265-
- sourceId: "component-node-rxe22i"
266-
targetId: "component-node-n6s8ec"
296+
- sourceId: "component-node-1xyxrf"
297+
targetId: "component-node-hbriwb"
267298
channel: "default"

0 commit comments

Comments
 (0)