1
0
mirror of synced 2025-12-25 02:09:19 -05:00

Add new stream alerts in source incident_io (#63304)

Co-authored-by: Marcos Marx <marcosmarxm@users.noreply.github.com>
This commit is contained in:
KimPlv
2025-07-17 17:58:05 +02:00
committed by GitHub
parent b37a07f8b2
commit a7c5bc65f6
3 changed files with 153 additions and 1 deletions

View File

@@ -353,6 +353,42 @@ definitions:
type: InlineSchemaLoader
schema:
$ref: "#/schemas/incidents"
alerts:
type: DeclarativeStream
name: alerts
primary_key:
- id
retriever:
type: SimpleRetriever
requester:
$ref: "#/definitions/base_requester"
path: /v2/alerts
http_method: GET
record_selector:
type: RecordSelector
extractor:
type: DpathExtractor
field_path:
- alerts
paginator:
type: DefaultPaginator
page_token_option:
type: RequestOption
field_name: after
inject_into: request_parameter
page_size_option:
type: RequestOption
field_name: page_size
inject_into: request_parameter
pagination_strategy:
type: CursorPagination
page_size: 50
cursor_value: "{{ response.get('pagination_meta', {}).get('after') }}"
stop_condition: "{{ response.get('pagination_meta', {}).get('after') is none }}"
schema_loader:
type: InlineSchemaLoader
schema:
$ref: "#/schemas/alerts"
base_requester:
type: HttpRequester
url_base: https://api.incident.io
@@ -374,6 +410,7 @@ streams:
- $ref: "#/definitions/streams/severities"
- $ref: "#/definitions/streams/schedules"
- $ref: "#/definitions/streams/incidents"
- $ref: "#/definitions/streams/alerts"
spec:
type: Spec
@@ -407,6 +444,7 @@ metadata:
severities: false
schedules: false
incidents: true
alerts: true
testedStreams:
actions:
streamHash: 66bd85de048e14ed758adfad4f83d9ab9ef62b7e
@@ -499,6 +537,13 @@ metadata:
hasRecords: true
primaryKeysArePresent: true
primaryKeysAreUnique: true
alerts:
streamHash: 2085de45af65a2f97da5b70a3f478fa3bd74bb3c
hasResponse: true
responsesAreSuccessful: true
hasRecords: true
primaryKeysArePresent: true
primaryKeysAreUnique: true
assist:
docsUrl: https://api-docs.incident.io/
@@ -1723,3 +1768,108 @@ schemas:
- "null"
required:
- id
alerts:
type: object
$schema: http://json-schema.org/schema#
additionalProperties: true
properties:
description:
type:
- string
- "null"
alert_source_id:
type:
- string
- "null"
attributes:
type:
- array
- "null"
items:
type:
- object
- "null"
properties:
attribute:
type:
- object
- "null"
properties:
type:
type:
- string
- "null"
array:
type:
- boolean
- "null"
id:
type:
- string
- "null"
name:
type:
- string
- "null"
value:
type:
- object
- "null"
properties:
catalog_entry:
type:
- object
- "null"
properties:
catalog_type_id:
type:
- string
- "null"
id:
type:
- string
- "null"
name:
type:
- string
- "null"
label:
type:
- string
- "null"
literal:
type:
- string
- "null"
created_at:
type:
- string
- "null"
deduplication_key:
type:
- string
- "null"
id:
type: string
resolved_at:
type:
- string
- "null"
source_url:
type:
- string
- "null"
status:
type:
- string
- "null"
title:
type:
- string
- "null"
updated_at:
type:
- string
- "null"
required:
- id

View File

@@ -17,7 +17,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 7926da90-399e-4f9f-9833-52d8dc3fcb29
dockerImageTag: 0.0.29
dockerImageTag: 0.1.0
dockerRepository: airbyte/source-incident-io
githubIssueLabel: source-incident-io
icon: icon.svg

View File

@@ -46,6 +46,7 @@ The source connector supports the following [sync modes](https://docs.airbyte.co
| severities | id | No pagination | ✅ | ❌ |
| schedules | id | DefaultPaginator | ✅ | ❌ |
| incidents | id | DefaultPaginator | ✅ | ❌ |
| alerts | id | DefaultPaginator | ✅ | ❌ |
## Changelog
@@ -54,6 +55,7 @@ The source connector supports the following [sync modes](https://docs.airbyte.co
| Version | Date | Pull Request | Subject |
|------------------|-------------------|--------------|----------------|
| 0.1.0 | 2025-07-15 | [63304](https://github.com/airbytehq/airbyte/pull/63304) | Add new stream `alerts` |
| 0.0.29 | 2025-07-12 | [63128](https://github.com/airbytehq/airbyte/pull/63128) | Update dependencies |
| 0.0.28 | 2025-07-05 | [62591](https://github.com/airbytehq/airbyte/pull/62591) | Update dependencies |
| 0.0.27 | 2025-06-28 | [62168](https://github.com/airbytehq/airbyte/pull/62168) | Update dependencies |