|
| 1 | +id: incident-io |
| 2 | +metric_id: incident-io |
| 3 | +backend_only: false |
| 4 | +facets: |
| 5 | + - groups: |
| 6 | + - Event |
| 7 | + name: Event Name |
| 8 | + path: evt.name |
| 9 | + source: log |
| 10 | +pipeline: |
| 11 | + type: pipeline |
| 12 | + name: incident.io |
| 13 | + enabled: true |
| 14 | + filter: |
| 15 | + query: "source:incident-io" |
| 16 | + processors: |
| 17 | + - type: attribute-remapper |
| 18 | + name: Map `event_type` to `evt.name` |
| 19 | + enabled: true |
| 20 | + sources: |
| 21 | + - event_type |
| 22 | + sourceType: attribute |
| 23 | + target: evt.name |
| 24 | + targetType: attribute |
| 25 | + preserveSource: false |
| 26 | + overrideOnConflict: false |
| 27 | + - type: attribute-remapper |
| 28 | + name: Map `private_incident.action_created_v1`, `private_incident.action_updated_v1`, `private_incident.follow_up_created_v1`, `private_incident.follow_up_updated_v1`, `private_incident.incident_created_v2`, `private_incident.incident_updated_v2`, `private_incident.membership_granted_v1`, `private_incident.membership_revoked_v1`, `public_incident.action_created_v1`, `public_incident.action_updated_v1`, `public_incident.follow_up_created_v1`, `public_incident.follow_up_updated_v1`, `public_incident.incident_created_v2`, `public_incident.incident_status_updated_v2`, `public_incident.incident_updated_v2` to `data` |
| 29 | + enabled: true |
| 30 | + sources: |
| 31 | + - private_incident.action_created_v1 |
| 32 | + - private_incident.action_updated_v1 |
| 33 | + - private_incident.follow_up_created_v1 |
| 34 | + - private_incident.follow_up_updated_v1 |
| 35 | + - private_incident.incident_created_v2 |
| 36 | + - private_incident.incident_updated_v2 |
| 37 | + - private_incident.membership_granted_v1 |
| 38 | + - private_incident.membership_revoked_v1 |
| 39 | + - public_incident.action_created_v1 |
| 40 | + - public_incident.action_updated_v1 |
| 41 | + - public_incident.follow_up_created_v1 |
| 42 | + - public_incident.follow_up_updated_v1 |
| 43 | + - public_incident.incident_created_v2 |
| 44 | + - public_incident.incident_status_updated_v2 |
| 45 | + - public_incident.incident_updated_v2 |
| 46 | + sourceType: attribute |
| 47 | + target: data |
| 48 | + targetType: attribute |
| 49 | + preserveSource: false |
| 50 | + overrideOnConflict: false |
| 51 | + - type: pipeline |
| 52 | + name: Creation Events |
| 53 | + enabled: true |
| 54 | + filter: |
| 55 | + query: "@evt.name:(public_incident.action_created_v1 OR |
| 56 | + public_incident.follow_up_created_v1)" |
| 57 | + processors: |
| 58 | + - type: date-remapper |
| 59 | + name: Define `data.created_at` as the official date of the log |
| 60 | + enabled: true |
| 61 | + sources: |
| 62 | + - data.created_at |
| 63 | + - type: pipeline |
| 64 | + name: Update Events |
| 65 | + enabled: true |
| 66 | + filter: |
| 67 | + query: "@evt.name:(public_incident.action_updated_v1 OR |
| 68 | + public_incident.follow_up_updated_v1)" |
| 69 | + processors: |
| 70 | + - type: date-remapper |
| 71 | + name: Define `data.updated_at` as the official date of the log |
| 72 | + enabled: true |
| 73 | + sources: |
| 74 | + - data.updated_at |
| 75 | + - type: pipeline |
| 76 | + name: Incident Created Event |
| 77 | + enabled: true |
| 78 | + filter: |
| 79 | + query: "@evt.name:public_incident.incident_created_v2" |
| 80 | + processors: |
| 81 | + - type: date-remapper |
| 82 | + name: Define `data.created_at` as the official date of the log |
| 83 | + enabled: true |
| 84 | + sources: |
| 85 | + - data.created_at |
| 86 | + - type: attribute-remapper |
| 87 | + name: Map `data.id` to `data.incident_id` |
| 88 | + enabled: true |
| 89 | + sources: |
| 90 | + - data.id |
| 91 | + sourceType: attribute |
| 92 | + target: data.incident_id |
| 93 | + targetType: attribute |
| 94 | + preserveSource: false |
| 95 | + overrideOnConflict: false |
| 96 | + - type: pipeline |
| 97 | + name: Incident Updated Event |
| 98 | + enabled: true |
| 99 | + filter: |
| 100 | + query: "@evt.name:public_incident.incident_updated_v2" |
| 101 | + processors: |
| 102 | + - type: date-remapper |
| 103 | + name: Define `data.updated_at` as the official date of the log |
| 104 | + enabled: true |
| 105 | + sources: |
| 106 | + - data.updated_at |
| 107 | + - type: attribute-remapper |
| 108 | + name: Map `data.id` to `data.incident_id` |
| 109 | + enabled: true |
| 110 | + sources: |
| 111 | + - data.id |
| 112 | + sourceType: attribute |
| 113 | + target: data.incident_id |
| 114 | + targetType: attribute |
| 115 | + preserveSource: false |
| 116 | + overrideOnConflict: false |
| 117 | + - type: pipeline |
| 118 | + name: Incident Status Update Event |
| 119 | + enabled: true |
| 120 | + filter: |
| 121 | + query: "@evt.name:public_incident.incident_status_updated_v2" |
| 122 | + processors: |
| 123 | + - type: date-remapper |
| 124 | + name: Define `data.incident.updated_at` as the official date of the log |
| 125 | + enabled: true |
| 126 | + sources: |
| 127 | + - data.incident.updated_at |
| 128 | + - type: attribute-remapper |
| 129 | + name: Map `data.incident.name` to `data.name` |
| 130 | + enabled: true |
| 131 | + sources: |
| 132 | + - data.incident.name |
| 133 | + sourceType: attribute |
| 134 | + target: data.name |
| 135 | + targetType: attribute |
| 136 | + preserveSource: false |
| 137 | + overrideOnConflict: false |
| 138 | + - type: attribute-remapper |
| 139 | + name: Map `data.incident.reference` to `data.reference` |
| 140 | + enabled: true |
| 141 | + sources: |
| 142 | + - data.incident.reference |
| 143 | + sourceType: attribute |
| 144 | + target: data.reference |
| 145 | + targetType: attribute |
| 146 | + preserveSource: false |
| 147 | + overrideOnConflict: false |
| 148 | + - type: attribute-remapper |
| 149 | + name: Map `data.incident.id` to `data.incident_id` |
| 150 | + enabled: true |
| 151 | + sources: |
| 152 | + - data.incident.id |
| 153 | + sourceType: attribute |
| 154 | + target: data.incident_id |
| 155 | + targetType: attribute |
| 156 | + preserveSource: false |
| 157 | + overrideOnConflict: false |
| 158 | + - type: attribute-remapper |
| 159 | + name: Map `data.incident.incident_type.name` to `data.incident_type.name` |
| 160 | + enabled: true |
| 161 | + sources: |
| 162 | + - data.incident.incident_type.name |
| 163 | + sourceType: attribute |
| 164 | + target: data.incident_type.name |
| 165 | + targetType: attribute |
| 166 | + preserveSource: false |
| 167 | + overrideOnConflict: false |
| 168 | + - type: pipeline |
| 169 | + name: Private Incident Events |
| 170 | + enabled: true |
| 171 | + filter: |
| 172 | + query: "@evt.name:(private_incident.incident_created_v2 OR |
| 173 | + private_incident.incident_updated_v2)" |
| 174 | + processors: |
| 175 | + - type: attribute-remapper |
| 176 | + name: Map `data.id` to `data.incident_id` |
| 177 | + enabled: true |
| 178 | + sources: |
| 179 | + - data.id |
| 180 | + sourceType: attribute |
| 181 | + target: data.incident_id |
| 182 | + targetType: attribute |
| 183 | + preserveSource: false |
| 184 | + overrideOnConflict: false |
0 commit comments