@pipedream/statuspage 0.0.2 → 0.0.4

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/README.md CHANGED
@@ -1,19 +1,11 @@
1
1
  # Overview
2
2
 
3
- Using the Statuspage API, you can develop powerful and secure software
4
- solutions that enable communication with end-users. You can use it to build:
3
+ The Statuspage API allows you to automate the management and orchestration of incident communication directly from Pipedream. With this API, you can create, update, and resolve incidents, manage maintenance events, and retrieve information about components and subscribers. It's an efficient way to ensure transparency and inform stakeholders during outages or scheduled maintenance by programmatically controlling your status pages.
5
4
 
6
- - End-user facing applications that can be integrated with your other systems,
7
- allowing customers to access your support team and get status updates.
8
- - Internal applications to manage customer accounts and payments, keeping track
9
- of customer satisfaction and service levels.
10
- - Automated incident response systems that can be triggered to send
11
- notifications and provide updates in the event of an incident.
12
- - A real-time dashboard to monitor performance and reliability metrics,
13
- aggregate and analyze customer support data, and keep track of compliance.
14
- - Self-service applications to put the power in the hands of your customers and
15
- give them the information they need quickly and easily.
16
- - Custom integrations to drive effective communication and collaboration with
17
- other tools and systems.
18
- - Automation tools that can get updates from your Statuspage to other systems,
19
- allowing for streamlined and consistent communication.
5
+ # Example Use Cases
6
+
7
+ - **Incident Response Automation**: Trigger a workflow on Pipedream when a monitoring app detects an outage, automatically creating an incident on Statuspage and sending notifications via communication platforms like Slack or email.
8
+
9
+ - **Scheduled Maintenance Reminder**: Set up a recurring Pipedream workflow that posts upcoming maintenance events to Statuspage and simultaneously reminds your team via a tool like Google Calendar, ensuring that all parties are aware and prepared.
10
+
11
+ - **Subscriber Update Sync**: Whenever a Statuspage incident is updated or resolved, a workflow can sync this status to a customer relationship management platform like Salesforce or Zendesk, keeping customer-facing teams informed and improving response times.
@@ -2,7 +2,12 @@ import statuspage from "../../statuspage.app.mjs";
2
2
 
3
3
  export default {
4
4
  name: "Create Incident",
5
- version: "0.0.2",
5
+ version: "0.0.3",
6
+ annotations: {
7
+ destructiveHint: false,
8
+ openWorldHint: true,
9
+ readOnlyHint: false,
10
+ },
6
11
  key: "statuspage-create-incident",
7
12
  description: "Creates an incident. [See docs here](https://developer.statuspage.io/#create-an-incident)",
8
13
  type: "action",
@@ -2,9 +2,14 @@ import statuspage from "../../statuspage.app.mjs";
2
2
 
3
3
  export default {
4
4
  name: "Update Incident",
5
- version: "0.0.2",
5
+ version: "0.0.5",
6
+ annotations: {
7
+ destructiveHint: false,
8
+ openWorldHint: true,
9
+ readOnlyHint: false,
10
+ },
6
11
  key: "statuspage-update-incident",
7
- description: "Updates an existing incident. [See docs here](https://developer.statuspage.io/#update-an-incident)",
12
+ description: "Updates an existing incident. [See the documentation](https://developer.statuspage.io/#update-an-incident)",
8
13
  type: "action",
9
14
  props: {
10
15
  statuspage,
@@ -34,6 +39,19 @@ export default {
34
39
  description: "The body of the update",
35
40
  type: "string",
36
41
  },
42
+ componentIds: {
43
+ label: "Component IDs",
44
+ description: "The IDs of the components affected by this incident update (e.g., `[\"ftgks51sfs2d\", \"bb5w0kc1234x\"]`). Leave empty to keep the existing affected components unchanged.",
45
+ type: "string[]",
46
+ propDefinition: [
47
+ statuspage,
48
+ "componentId",
49
+ (c) => ({
50
+ pageId: c.pageId,
51
+ }),
52
+ ],
53
+ optional: true,
54
+ },
37
55
  },
38
56
  async run({ $ }) {
39
57
  const response = await this.statuspage.updateIncident({
@@ -44,6 +62,9 @@ export default {
44
62
  incident: {
45
63
  status: this.status,
46
64
  body: this.body,
65
+ ...(this.componentIds?.length && {
66
+ component_ids: this.componentIds,
67
+ }),
47
68
  },
48
69
  },
49
70
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/statuspage",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Pipedream Statuspage Components",
5
5
  "main": "statuspage.app.mjs",
6
6
  "keywords": [
@@ -14,6 +14,6 @@
14
14
  "access": "public"
15
15
  },
16
16
  "dependencies": {
17
- "@pipedream/platform": "^1.2.1"
17
+ "@pipedream/platform": "^1.6.8"
18
18
  }
19
19
  }
@@ -3,7 +3,7 @@ import common from "../common/common.mjs";
3
3
  export default {
4
4
  ...common,
5
5
  name: "Incident Updated (Instant)",
6
- version: "0.0.2",
6
+ version: "0.0.3",
7
7
  key: "statuspage-incident-updated",
8
8
  description: "Emit new event on each updated incident.",
9
9
  type: "source",
@@ -3,7 +3,7 @@ import common from "../common/common.mjs";
3
3
  export default {
4
4
  ...common,
5
5
  name: "New Incident Created (Instant)",
6
- version: "0.0.2",
6
+ version: "0.0.3",
7
7
  key: "statuspage-new-incident-created",
8
8
  description: "Emit new event on each created incident.",
9
9
  type: "source",