Skip to content

Commit 5640a86

Browse files
authored
Merge pull request #21 from incident-io/rob/add-stitch-docs
Add documentation for stitch contribution
2 parents 066de42 + 1a781cb commit 5640a86

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

docs/stitch-tap-documentation.md

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# incident.io (tap-incident)
2+
3+
## Connecting incident.io
4+
5+
### Requirements
6+
7+
To set up the incident.io tap in Stitch, you need an incident.io API key with permission to view incidents and org settings. To create a new API key you will need the right user permissions or to ask someone within your organisation who does.
8+
9+
### Setup
10+
11+
To create a new API key you can navigate [to your API key settings page](https://app.incident.io/~/settings/api-keys) and click "Add new".
12+
13+
You need to create the key with the following permissions:
14+
15+
- View data, like public incidents and organisation settings
16+
- View catalog types and entries
17+
18+
If you want this tap to have access to private incident data, also include the
19+
following scope:
20+
21+
- View all incident data, including private incidents
22+
23+
---
24+
25+
## incident.io Tap Replication
26+
27+
There is no partial or incremental replication available in the incident.io tap. Instead each stream will perform a full table replication each time.
28+
29+
The amount of data in each stream is relatively low so this should not be an issue for most customers.
30+
31+
---
32+
33+
## incident.io Table Schemas
34+
35+
### Incidents
36+
37+
- Table name: incidents
38+
- Description: Incidents are a core resource, on which many other resources (actions, etc) are created. You will find incident specific actions, updates, timestamps etc nested on this resource.
39+
- Primary key column(s): id
40+
- Replication: full table
41+
- API documentation: [Incidents V2](https://api-docs.incident.io/tag/Incidents-V2)
42+
43+
### Actions
44+
45+
- Table name: actions
46+
- Description: Incident actions are used during an incident, to track work such as 'restart the database' or 'contact the customer'. Actions are also included in the incidents table.
47+
- Primary key column(s): id, incident_id
48+
- Replication: full table
49+
- API documentation: [Actions V2](https://api-docs.incident.io/tag/Actions-V2)
50+
51+
### Custom Field Options
52+
53+
- Table name: custom_field_options
54+
- Description:
55+
- Primary key column(s): id, custom_field_id
56+
- Replication: full table
57+
- API documentation: [Custom Field Options V1](https://api-docs.incident.io/tag/Custom-Field-Options-V1)
58+
59+
### Custom Fields
60+
61+
- Table name: custom_fields
62+
- Description: Custom fields are used to attach metadata to incidents, which you can use when searching for incidents in the dashboard, triggering workflows, building announcement rules or for your own data needs.
63+
- Primary key column(s): id
64+
- Replication: full table
65+
- API documentation: [Custom Fields V2](https://api-docs.incident.io/tag/Custom-Fields-V2)
66+
67+
### Follow Ups
68+
69+
- Table name: follow_ups
70+
- Description: Incidents can have follow-ups associated with them, which track work that should be done after an incident (e.g. improving some documentation, or upgrading a dependency). They can also be exported to external issue trackers.
71+
- Primary key column(s): id, incident_id
72+
- Replication: full table
73+
- API documentation: [Follow Ups V2](https://api-docs.incident.io/tag/Follow-ups-V2)
74+
75+
### Incident Roles
76+
77+
- Table name: incident_roles
78+
- Description: During an incident, you can assign responders to one of the incident roles that are configured in your organisation settings.
79+
- Primary key column(s): id
80+
- Replication: full table
81+
- API documentation: [Incident Roles V2](https://api-docs.incident.io/tag/Incident-Roles-V2)
82+
83+
### Incident Statuses
84+
85+
- Table name: incident_statuses
86+
- Description: Each incident has a status, picked from one of the statuses configured in your organisations settings.
87+
- Primary key column(s): id
88+
- Replication: full table
89+
- API documentation: [Incident Statuses V1](https://api-docs.incident.io/tag/Incident-Statuses-V1)
90+
91+
### Incident Timestamps
92+
93+
- Table name: incident_timestamps
94+
- Description: Each incident has a number of timestamps; some being defaults that we set on each incident for you, and other being configured for your organisation within settings.
95+
- Primary key column(s): id
96+
- Replication: full table
97+
- API documentation: [Incident Timestamps V2](https://api-docs.incident.io/tag/Incident-Timestamps-V2)
98+
99+
### Incident Types
100+
101+
- Table name: incident_types
102+
- Description: With incident types enabled, you can tailor your process to the situation you're responding to with different custom fields and roles for each incident type.
103+
- Primary key column(s): id
104+
- Replication: full table
105+
- API documentation: [Incident Types V1](https://api-docs.incident.io/tag/Incident-Types-V1)
106+
107+
### Incident Updates
108+
109+
- Table name: incident_updates
110+
- Description: Incident Updates allows you to see all the updates that have been shared against a particular incident. This will include any time that the Severity or Status of an incident changed, alongside any additional updates that were provided. Incident updates are also included in the Incidents table
111+
- Primary key column(s): id, incident_id
112+
- Replication: full table
113+
- API documentation: [Incident Updates V2](https://api-docs.incident.io/tag/Incident-Updates-V2)
114+
115+
### Severities
116+
117+
- Table name: severities
118+
- Description: Each incident has a severity, picked from one of the severities configured in your organisations settings.
119+
- Primary key column(s): id
120+
- Replication: full table
121+
- API documentation: [Severities V1](https://api-docs.incident.io/tag/Severities-V1)
122+
123+
### Users
124+
125+
- Table name: users
126+
- Description: Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.
127+
- Primary key column(s): id, custom_field_id
128+
- Replication: full table
129+
- API documentation: [Users V2](https://api-docs.incident.io/tag/Users-V2)

0 commit comments

Comments
 (0)