Skip to content

Commit 240c714

Browse files
committed
Added actions
1 parent 7d59f43 commit 240c714

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

components/scalr/scalr.app.mjs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ export default {
88
type: "string",
99
label: "Account ID",
1010
description: "The ID of the account you wish to use.",
11-
async options() {
12-
const { data: accounts } = await this.getAccounts();
11+
async options({ page }) {
12+
const { data: accounts } = await this.getAccounts({
13+
params: {
14+
"page[number]": page + 1,
15+
},
16+
});
1317
return accounts.map((account) => ({
1418
label: account.attributes.name,
1519
value: account.id,
@@ -51,23 +55,11 @@ export default {
5155
method: "delete",
5256
});
5357
},
54-
async getWebhooks(args = {}) {
55-
return this._makeRequest({
56-
path: "/integrations/webhooks",
57-
...args,
58-
});
59-
},
6058
async getAccounts(args = {}) {
6159
return this._makeRequest({
6260
path: "/accounts",
6361
...args,
6462
});
6563
},
66-
async getEvents(args = {}) {
67-
return this._makeRequest({
68-
path: "/event-definitions",
69-
...args,
70-
});
71-
},
7264
},
7365
};

components/scalr/sources/new-run-completed/new-run-completed.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "New Run Completed (Instant)",
66
version: "0.0.1",
77
key: "scalr-new-run-completed",
8-
description: "Emit new event on each new completed run.",
8+
description: "Emit new event on each new completed run. [See the documentation](https://docs.scalr.io/reference/create_webhook_integration)",
99
type: "source",
1010
dedupe: "unique",
1111
hooks: {

components/scalr/sources/new-run-errored/new-run-errored.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "New Run Errored (Instant)",
66
version: "0.0.1",
77
key: "scalr-new-run-errored",
8-
description: "Emit new event when a new run encountered an error.",
8+
description: "Emit new event when a new run encountered an error. [See the documentation](https://docs.scalr.io/reference/create_webhook_integration)",
99
type: "source",
1010
dedupe: "unique",
1111
hooks: {

components/scalr/sources/new-run-needs-attention/new-run-needs-attention.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
name: "New Run Needs Attention (Instant)",
66
version: "0.0.1",
77
key: "scalr-new-run-needs-attention",
8-
description: "Emit new event when a new run needs attention.",
8+
description: "Emit new event when a new run needs attention. [See the documentation](https://docs.scalr.io/reference/create_webhook_integration)",
99
type: "source",
1010
dedupe: "unique",
1111
hooks: {

0 commit comments

Comments
 (0)