@sentry/api 0.356.0 → 0.358.0
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/dist/sdk.gen.d.ts +12 -0
- package/dist/sentry-client.gen.d.ts +15 -0
- package/dist/types.gen.d.ts +137 -102
- package/dist/valibot.gen.d.ts +2 -0
- package/dist/valibot.js +4 -2
- package/dist/zod.gen.d.ts +6 -0
- package/dist/zod.js +4 -2
- package/package.json +1 -1
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1047,6 +1047,16 @@ export declare const updateOrganizationScimV2User: <ThrowOnError extends boolean
|
|
|
1047
1047
|
* **Experimental:** This API is under active development and may change.
|
|
1048
1048
|
*
|
|
1049
1049
|
* Retrieve prepared UI components for installed custom integrations, including issue-link forms.
|
|
1050
|
+
*
|
|
1051
|
+
* API clients can use `filter=issue-link` to create or link an external issue through
|
|
1052
|
+
* an app such as Linear. The `uri` values in `schema` are paths on the app's own server.
|
|
1053
|
+
* Clients never call them directly; Sentry calls the app on their behalf:
|
|
1054
|
+
*
|
|
1055
|
+
* - To load a select field's choices, pass the field's `uri` to
|
|
1056
|
+
* `GET /sentry-app-installations/{installationUuid}/external-requests/`.
|
|
1057
|
+
* - To create or link the issue, send the form values with the `uri` from
|
|
1058
|
+
* `schema.create` or `schema.link` to
|
|
1059
|
+
* `POST /sentry-app-installations/{installationUuid}/external-issue-actions/`.
|
|
1050
1060
|
*/
|
|
1051
1061
|
export declare const listOrganizationSentryAppComponents: <ThrowOnError extends boolean = false>(options: Options<ListOrganizationSentryAppComponentsData, ThrowOnError>) => import("./client").RequestResult<ListOrganizationSentryAppComponentsResponses, ListOrganizationSentryAppComponentsErrors, ThrowOnError, "fields">;
|
|
1052
1062
|
/**
|
|
@@ -1796,6 +1806,8 @@ export declare const listSeerModels: <ThrowOnError extends boolean = false>(...[
|
|
|
1796
1806
|
*
|
|
1797
1807
|
* Invoke the installed app's issue-link callback and store the returned association.
|
|
1798
1808
|
* Submit the app-specific form fields alongside `groupId`, `action`, and `uri`.
|
|
1809
|
+
* The installation UUID, form fields, and `uri` come from the organization's
|
|
1810
|
+
* `issue-link` Sentry App components.
|
|
1799
1811
|
*
|
|
1800
1812
|
* For `action=link`, the optional `expectedExternalIssueUrl` query parameter
|
|
1801
1813
|
* requires an exact canonical `webUrl` match. An existing matching link is
|
|
@@ -1043,6 +1043,16 @@ export declare function createSentryClient(config?: Config): {
|
|
|
1043
1043
|
* **Experimental:** This API is under active development and may change.
|
|
1044
1044
|
*
|
|
1045
1045
|
* Retrieve prepared UI components for installed custom integrations, including issue-link forms.
|
|
1046
|
+
*
|
|
1047
|
+
* API clients can use `filter=issue-link` to create or link an external issue through
|
|
1048
|
+
* an app such as Linear. The `uri` values in `schema` are paths on the app's own server.
|
|
1049
|
+
* Clients never call them directly; Sentry calls the app on their behalf:
|
|
1050
|
+
*
|
|
1051
|
+
* - To load a select field's choices, pass the field's `uri` to
|
|
1052
|
+
* `GET /sentry-app-installations/{installationUuid}/external-requests/`.
|
|
1053
|
+
* - To create or link the issue, send the form values with the `uri` from
|
|
1054
|
+
* `schema.create` or `schema.link` to
|
|
1055
|
+
* `POST /sentry-app-installations/{installationUuid}/external-issue-actions/`.
|
|
1046
1056
|
*/
|
|
1047
1057
|
readonly listOrganizationSentryAppComponents: <ThrowOnError extends boolean = false>(options: Omit<NonNullable<sdk.Options<types.ListOrganizationSentryAppComponentsData, ThrowOnError>>, "client">) => import("./client").RequestResult<types.ListOrganizationSentryAppComponentsResponses, types.ListOrganizationSentryAppComponentsErrors, ThrowOnError, "fields">;
|
|
1048
1058
|
/**
|
|
@@ -1792,6 +1802,8 @@ export declare function createSentryClient(config?: Config): {
|
|
|
1792
1802
|
*
|
|
1793
1803
|
* Invoke the installed app's issue-link callback and store the returned association.
|
|
1794
1804
|
* Submit the app-specific form fields alongside `groupId`, `action`, and `uri`.
|
|
1805
|
+
* The installation UUID, form fields, and `uri` come from the organization's
|
|
1806
|
+
* `issue-link` Sentry App components.
|
|
1795
1807
|
*
|
|
1796
1808
|
* For `action=link`, the optional `expectedExternalIssueUrl` query parameter
|
|
1797
1809
|
* requires an exact canonical `webUrl` match. An existing matching link is
|
|
@@ -3886,6 +3898,7 @@ export declare function createSentryClient(config?: Config): {
|
|
|
3886
3898
|
photoType: string;
|
|
3887
3899
|
}>;
|
|
3888
3900
|
};
|
|
3901
|
+
installationUuid: string;
|
|
3889
3902
|
}[]>>;
|
|
3890
3903
|
/** Fetch a single page of `listOrganizationSentryAppInstallations` with cursors from the Link header. */
|
|
3891
3904
|
readonly listOrganizationSentryAppInstallations: (options: Omit<NonNullable<Parameters<typeof pagination.fetchPage_listOrganizationSentryAppInstallations>[0]>, "client">, cursor?: Parameters<typeof pagination.fetchPage_listOrganizationSentryAppInstallations>[1]) => Promise<import("./sentry-pagination").PaginatedResponse<{
|
|
@@ -6369,6 +6382,7 @@ export declare function createSentryClient(config?: Config): {
|
|
|
6369
6382
|
photoType: string;
|
|
6370
6383
|
}>;
|
|
6371
6384
|
};
|
|
6385
|
+
installationUuid: string;
|
|
6372
6386
|
}>>;
|
|
6373
6387
|
/** Eagerly fetch all pages of `listOrganizationSentryAppInstallations`. Bounded by `maxPages` (default 50). */
|
|
6374
6388
|
readonly listOrganizationSentryAppInstallations: (options: Omit<NonNullable<Parameters<typeof pagination.paginateAll_listOrganizationSentryAppInstallations>[0]>, "client">, paginateOptions?: Parameters<typeof pagination.paginateAll_listOrganizationSentryAppInstallations>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
|
@@ -8787,6 +8801,7 @@ export declare function createSentryClient(config?: Config): {
|
|
|
8787
8801
|
photoType: string;
|
|
8788
8802
|
}>;
|
|
8789
8803
|
};
|
|
8804
|
+
installationUuid: string;
|
|
8790
8805
|
}>>;
|
|
8791
8806
|
/** Paginate `listOrganizationSentryAppInstallations` up to `limit` items; see PaginateUpToOptions. */
|
|
8792
8807
|
readonly listOrganizationSentryAppInstallations: (options: Omit<NonNullable<Parameters<typeof pagination.paginateUpTo_listOrganizationSentryAppInstallations>[0]>, "client">, paginateOptions: Parameters<typeof pagination.paginateUpTo_listOrganizationSentryAppInstallations>[1]) => Promise<import("./sentry-pagination").PaginatedCollection<{
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -81,7 +81,12 @@ export type BaseDetectorTypeValidator = {
|
|
|
81
81
|
workflow_ids?: Array<number>;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
|
-
* The data sources for the monitor to use based on what you want to measure.
|
|
84
|
+
* The data sources for the metric monitor to use based on what you want to measure.
|
|
85
|
+
*
|
|
86
|
+
* `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
|
|
87
|
+
* Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
|
|
88
|
+
* by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
|
|
89
|
+
* `"timeWindow": 300`.
|
|
85
90
|
*
|
|
86
91
|
* **Number of Errors Metric Monitor**
|
|
87
92
|
* - `eventTypes`: Any of `error` or `default`.
|
|
@@ -94,9 +99,9 @@ export type BaseDetectorTypeValidator = {
|
|
|
94
99
|
* "eventTypes": ["default", "error"],
|
|
95
100
|
* "query": "is:unresolved",
|
|
96
101
|
* "queryType": 0,
|
|
97
|
-
* "timeWindow": 3600
|
|
98
|
-
* }
|
|
99
|
-
* ]
|
|
102
|
+
* "timeWindow": 3600
|
|
103
|
+
* }
|
|
104
|
+
* ]
|
|
100
105
|
* ```
|
|
101
106
|
*
|
|
102
107
|
* **Users Experiencing Errors Metric Monitor**
|
|
@@ -110,9 +115,9 @@ export type BaseDetectorTypeValidator = {
|
|
|
110
115
|
* "eventTypes": ["default", "error"],
|
|
111
116
|
* "query": "is:unresolved",
|
|
112
117
|
* "queryType": 0,
|
|
113
|
-
* "timeWindow": 3600
|
|
114
|
-
* }
|
|
115
|
-
* ]
|
|
118
|
+
* "timeWindow": 3600
|
|
119
|
+
* }
|
|
120
|
+
* ]
|
|
116
121
|
* ```
|
|
117
122
|
*
|
|
118
123
|
*
|
|
@@ -123,13 +128,13 @@ export type BaseDetectorTypeValidator = {
|
|
|
123
128
|
* "aggregate":"count(span.duration)",
|
|
124
129
|
* "dataset":"events_analytics_platform",
|
|
125
130
|
* "environment":"prod",
|
|
126
|
-
* "eventTypes":["trace_item_span"]
|
|
131
|
+
* "eventTypes":["trace_item_span"],
|
|
127
132
|
* "query":"",
|
|
128
133
|
* "queryType":1,
|
|
129
134
|
* "timeWindow":3600,
|
|
130
|
-
* "extrapolationMode":"unknown"
|
|
131
|
-
* }
|
|
132
|
-
* ]
|
|
135
|
+
* "extrapolationMode":"unknown"
|
|
136
|
+
* }
|
|
137
|
+
* ]
|
|
133
138
|
* ```
|
|
134
139
|
*
|
|
135
140
|
* **Duration Metric Monitor**
|
|
@@ -139,13 +144,13 @@ export type BaseDetectorTypeValidator = {
|
|
|
139
144
|
* "aggregate":"p95(span.duration)",
|
|
140
145
|
* "dataset":"events_analytics_platform",
|
|
141
146
|
* "environment":"prod",
|
|
142
|
-
* "eventTypes":["trace_item_span"]
|
|
147
|
+
* "eventTypes":["trace_item_span"],
|
|
143
148
|
* "query":"",
|
|
144
149
|
* "queryType":1,
|
|
145
150
|
* "timeWindow":3600,
|
|
146
|
-
* "extrapolationMode":"unknown"
|
|
147
|
-
* }
|
|
148
|
-
* ]
|
|
151
|
+
* "extrapolationMode":"unknown"
|
|
152
|
+
* }
|
|
153
|
+
* ]
|
|
149
154
|
* ```
|
|
150
155
|
*
|
|
151
156
|
* **Failure Rate Metric Monitor**
|
|
@@ -155,17 +160,17 @@ export type BaseDetectorTypeValidator = {
|
|
|
155
160
|
* "aggregate":"failure_rate()",
|
|
156
161
|
* "dataset":"events_analytics_platform",
|
|
157
162
|
* "environment":"prod",
|
|
158
|
-
* "eventTypes":["trace_item_span"]
|
|
163
|
+
* "eventTypes":["trace_item_span"],
|
|
159
164
|
* "query":"",
|
|
160
165
|
* "queryType":1,
|
|
161
166
|
* "timeWindow":3600,
|
|
162
|
-
* "extrapolationMode":"unknown"
|
|
163
|
-
* }
|
|
164
|
-
* ]
|
|
167
|
+
* "extrapolationMode":"unknown"
|
|
168
|
+
* }
|
|
169
|
+
* ]
|
|
165
170
|
* ```
|
|
166
171
|
*
|
|
167
172
|
* **Largest Contentful Paint Metric Monitor**
|
|
168
|
-
* - `dataset`:
|
|
173
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
169
174
|
* - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
|
|
170
175
|
*
|
|
171
176
|
* ```json
|
|
@@ -174,17 +179,17 @@ export type BaseDetectorTypeValidator = {
|
|
|
174
179
|
* "aggregate":"p95(measurements.lcp)",
|
|
175
180
|
* "dataset":"events_analytics_platform",
|
|
176
181
|
* "environment":"prod",
|
|
177
|
-
* "eventTypes":["trace_item_span"]
|
|
178
|
-
* "query":"",
|
|
182
|
+
* "eventTypes":["trace_item_span"],
|
|
183
|
+
* "query":"is_transaction:true",
|
|
179
184
|
* "queryType":1,
|
|
180
185
|
* "timeWindow":3600,
|
|
181
|
-
* "extrapolationMode":"unknown"
|
|
182
|
-
* }
|
|
183
|
-
* ]
|
|
186
|
+
* "extrapolationMode":"unknown"
|
|
187
|
+
* }
|
|
188
|
+
* ]
|
|
184
189
|
* ```
|
|
185
190
|
*
|
|
186
191
|
* **Custom Metric Monitor**
|
|
187
|
-
* - `dataset`:
|
|
192
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
188
193
|
* - `aggregate`: Valid values are:
|
|
189
194
|
* `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
190
195
|
* `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
@@ -200,11 +205,17 @@ export type BaseDetectorTypeValidator = {
|
|
|
200
205
|
* ```json
|
|
201
206
|
* [
|
|
202
207
|
* {
|
|
203
|
-
* "aggregate": "p75(measurements.ttfb)"
|
|
208
|
+
* "aggregate": "p75(measurements.ttfb)",
|
|
204
209
|
* "dataset": "events_analytics_platform",
|
|
210
|
+
* "environment": "prod",
|
|
205
211
|
* "queryType": 1,
|
|
206
|
-
*
|
|
207
|
-
*
|
|
212
|
+
* "eventTypes": ["trace_item_span"],
|
|
213
|
+
* "query": "is_transaction:true",
|
|
214
|
+
* "timeWindow": 3600,
|
|
215
|
+
* "extrapolationMode": "unknown"
|
|
216
|
+
* }
|
|
217
|
+
* ]
|
|
218
|
+
* ```
|
|
208
219
|
*
|
|
209
220
|
*/
|
|
210
221
|
data_sources?: Array<unknown>;
|
|
@@ -217,7 +228,7 @@ export type BaseDetectorTypeValidator = {
|
|
|
217
228
|
* - `static`: Threshold based monitor
|
|
218
229
|
* - `percent`: Change based monitor
|
|
219
230
|
* - `dynamic`: Dynamic monitor
|
|
220
|
-
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against
|
|
231
|
+
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
|
|
221
232
|
* For example, a value of 3600 compares the metric tracked against data 1 hour ago.
|
|
222
233
|
* - `300`: 5 minutes
|
|
223
234
|
* - `900`: 15 minutes
|
|
@@ -229,20 +240,20 @@ export type BaseDetectorTypeValidator = {
|
|
|
229
240
|
* **Threshold**
|
|
230
241
|
* ```json
|
|
231
242
|
* {
|
|
232
|
-
* "detectionType": "static"
|
|
243
|
+
* "detectionType": "static"
|
|
233
244
|
* }
|
|
234
245
|
* ```
|
|
235
246
|
* **Change**
|
|
236
247
|
* ```json
|
|
237
248
|
* {
|
|
238
249
|
* "detectionType": "percent",
|
|
239
|
-
* "comparisonDelta": 3600
|
|
250
|
+
* "comparisonDelta": 3600
|
|
240
251
|
* }
|
|
241
252
|
* ```
|
|
242
253
|
* **Dynamic**
|
|
243
254
|
* ```json
|
|
244
255
|
* {
|
|
245
|
-
* "detectionType": "dynamic"
|
|
256
|
+
* "detectionType": "dynamic"
|
|
246
257
|
* }
|
|
247
258
|
* ```
|
|
248
259
|
*
|
|
@@ -10088,6 +10099,7 @@ export type SentryAppComponentsResponse = Array<{
|
|
|
10088
10099
|
photoType: string;
|
|
10089
10100
|
}>;
|
|
10090
10101
|
};
|
|
10102
|
+
installationUuid: string;
|
|
10091
10103
|
}>;
|
|
10092
10104
|
export type SentryAppDetailsResponse = {
|
|
10093
10105
|
allowedOrigins: Array<string>;
|
|
@@ -11393,7 +11405,7 @@ export type WorkflowValidator = {
|
|
|
11393
11405
|
*
|
|
11394
11406
|
* ```json
|
|
11395
11407
|
* {
|
|
11396
|
-
* "frequency":
|
|
11408
|
+
* "frequency": 60
|
|
11397
11409
|
* }
|
|
11398
11410
|
* ```
|
|
11399
11411
|
*
|
|
@@ -14536,7 +14548,12 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14536
14548
|
workflow_ids?: Array<number>;
|
|
14537
14549
|
/**
|
|
14538
14550
|
*
|
|
14539
|
-
* The data sources for the monitor to use based on what you want to measure.
|
|
14551
|
+
* The data sources for the metric monitor to use based on what you want to measure.
|
|
14552
|
+
*
|
|
14553
|
+
* `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
|
|
14554
|
+
* Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
|
|
14555
|
+
* by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
|
|
14556
|
+
* `"timeWindow": 300`.
|
|
14540
14557
|
*
|
|
14541
14558
|
* **Number of Errors Metric Monitor**
|
|
14542
14559
|
* - `eventTypes`: Any of `error` or `default`.
|
|
@@ -14549,9 +14566,9 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14549
14566
|
* "eventTypes": ["default", "error"],
|
|
14550
14567
|
* "query": "is:unresolved",
|
|
14551
14568
|
* "queryType": 0,
|
|
14552
|
-
* "timeWindow": 3600
|
|
14553
|
-
* }
|
|
14554
|
-
* ]
|
|
14569
|
+
* "timeWindow": 3600
|
|
14570
|
+
* }
|
|
14571
|
+
* ]
|
|
14555
14572
|
* ```
|
|
14556
14573
|
*
|
|
14557
14574
|
* **Users Experiencing Errors Metric Monitor**
|
|
@@ -14565,9 +14582,9 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14565
14582
|
* "eventTypes": ["default", "error"],
|
|
14566
14583
|
* "query": "is:unresolved",
|
|
14567
14584
|
* "queryType": 0,
|
|
14568
|
-
* "timeWindow": 3600
|
|
14569
|
-
* }
|
|
14570
|
-
* ]
|
|
14585
|
+
* "timeWindow": 3600
|
|
14586
|
+
* }
|
|
14587
|
+
* ]
|
|
14571
14588
|
* ```
|
|
14572
14589
|
*
|
|
14573
14590
|
*
|
|
@@ -14578,13 +14595,13 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14578
14595
|
* "aggregate":"count(span.duration)",
|
|
14579
14596
|
* "dataset":"events_analytics_platform",
|
|
14580
14597
|
* "environment":"prod",
|
|
14581
|
-
* "eventTypes":["trace_item_span"]
|
|
14598
|
+
* "eventTypes":["trace_item_span"],
|
|
14582
14599
|
* "query":"",
|
|
14583
14600
|
* "queryType":1,
|
|
14584
14601
|
* "timeWindow":3600,
|
|
14585
|
-
* "extrapolationMode":"unknown"
|
|
14586
|
-
* }
|
|
14587
|
-
* ]
|
|
14602
|
+
* "extrapolationMode":"unknown"
|
|
14603
|
+
* }
|
|
14604
|
+
* ]
|
|
14588
14605
|
* ```
|
|
14589
14606
|
*
|
|
14590
14607
|
* **Duration Metric Monitor**
|
|
@@ -14594,13 +14611,13 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14594
14611
|
* "aggregate":"p95(span.duration)",
|
|
14595
14612
|
* "dataset":"events_analytics_platform",
|
|
14596
14613
|
* "environment":"prod",
|
|
14597
|
-
* "eventTypes":["trace_item_span"]
|
|
14614
|
+
* "eventTypes":["trace_item_span"],
|
|
14598
14615
|
* "query":"",
|
|
14599
14616
|
* "queryType":1,
|
|
14600
14617
|
* "timeWindow":3600,
|
|
14601
|
-
* "extrapolationMode":"unknown"
|
|
14602
|
-
* }
|
|
14603
|
-
* ]
|
|
14618
|
+
* "extrapolationMode":"unknown"
|
|
14619
|
+
* }
|
|
14620
|
+
* ]
|
|
14604
14621
|
* ```
|
|
14605
14622
|
*
|
|
14606
14623
|
* **Failure Rate Metric Monitor**
|
|
@@ -14610,17 +14627,17 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14610
14627
|
* "aggregate":"failure_rate()",
|
|
14611
14628
|
* "dataset":"events_analytics_platform",
|
|
14612
14629
|
* "environment":"prod",
|
|
14613
|
-
* "eventTypes":["trace_item_span"]
|
|
14630
|
+
* "eventTypes":["trace_item_span"],
|
|
14614
14631
|
* "query":"",
|
|
14615
14632
|
* "queryType":1,
|
|
14616
14633
|
* "timeWindow":3600,
|
|
14617
|
-
* "extrapolationMode":"unknown"
|
|
14618
|
-
* }
|
|
14619
|
-
* ]
|
|
14634
|
+
* "extrapolationMode":"unknown"
|
|
14635
|
+
* }
|
|
14636
|
+
* ]
|
|
14620
14637
|
* ```
|
|
14621
14638
|
*
|
|
14622
14639
|
* **Largest Contentful Paint Metric Monitor**
|
|
14623
|
-
* - `dataset`:
|
|
14640
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
14624
14641
|
* - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
|
|
14625
14642
|
*
|
|
14626
14643
|
* ```json
|
|
@@ -14629,17 +14646,17 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14629
14646
|
* "aggregate":"p95(measurements.lcp)",
|
|
14630
14647
|
* "dataset":"events_analytics_platform",
|
|
14631
14648
|
* "environment":"prod",
|
|
14632
|
-
* "eventTypes":["trace_item_span"]
|
|
14633
|
-
* "query":"",
|
|
14649
|
+
* "eventTypes":["trace_item_span"],
|
|
14650
|
+
* "query":"is_transaction:true",
|
|
14634
14651
|
* "queryType":1,
|
|
14635
14652
|
* "timeWindow":3600,
|
|
14636
|
-
* "extrapolationMode":"unknown"
|
|
14637
|
-
* }
|
|
14638
|
-
* ]
|
|
14653
|
+
* "extrapolationMode":"unknown"
|
|
14654
|
+
* }
|
|
14655
|
+
* ]
|
|
14639
14656
|
* ```
|
|
14640
14657
|
*
|
|
14641
14658
|
* **Custom Metric Monitor**
|
|
14642
|
-
* - `dataset`:
|
|
14659
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
14643
14660
|
* - `aggregate`: Valid values are:
|
|
14644
14661
|
* `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
14645
14662
|
* `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
@@ -14655,11 +14672,17 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14655
14672
|
* ```json
|
|
14656
14673
|
* [
|
|
14657
14674
|
* {
|
|
14658
|
-
* "aggregate": "p75(measurements.ttfb)"
|
|
14675
|
+
* "aggregate": "p75(measurements.ttfb)",
|
|
14659
14676
|
* "dataset": "events_analytics_platform",
|
|
14677
|
+
* "environment": "prod",
|
|
14660
14678
|
* "queryType": 1,
|
|
14661
|
-
*
|
|
14662
|
-
*
|
|
14679
|
+
* "eventTypes": ["trace_item_span"],
|
|
14680
|
+
* "query": "is_transaction:true",
|
|
14681
|
+
* "timeWindow": 3600,
|
|
14682
|
+
* "extrapolationMode": "unknown"
|
|
14683
|
+
* }
|
|
14684
|
+
* ]
|
|
14685
|
+
* ```
|
|
14663
14686
|
*
|
|
14664
14687
|
*/
|
|
14665
14688
|
data_sources?: Array<unknown>;
|
|
@@ -14672,7 +14695,7 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14672
14695
|
* - `static`: Threshold based monitor
|
|
14673
14696
|
* - `percent`: Change based monitor
|
|
14674
14697
|
* - `dynamic`: Dynamic monitor
|
|
14675
|
-
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against
|
|
14698
|
+
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
|
|
14676
14699
|
* For example, a value of 3600 compares the metric tracked against data 1 hour ago.
|
|
14677
14700
|
* - `300`: 5 minutes
|
|
14678
14701
|
* - `900`: 15 minutes
|
|
@@ -14684,20 +14707,20 @@ export type UpdateOrganizationDetectorData = {
|
|
|
14684
14707
|
* **Threshold**
|
|
14685
14708
|
* ```json
|
|
14686
14709
|
* {
|
|
14687
|
-
* "detectionType": "static"
|
|
14710
|
+
* "detectionType": "static"
|
|
14688
14711
|
* }
|
|
14689
14712
|
* ```
|
|
14690
14713
|
* **Change**
|
|
14691
14714
|
* ```json
|
|
14692
14715
|
* {
|
|
14693
14716
|
* "detectionType": "percent",
|
|
14694
|
-
* "comparisonDelta": 3600
|
|
14717
|
+
* "comparisonDelta": 3600
|
|
14695
14718
|
* }
|
|
14696
14719
|
* ```
|
|
14697
14720
|
* **Dynamic**
|
|
14698
14721
|
* ```json
|
|
14699
14722
|
* {
|
|
14700
|
-
* "detectionType": "dynamic"
|
|
14723
|
+
* "detectionType": "dynamic"
|
|
14701
14724
|
* }
|
|
14702
14725
|
* ```
|
|
14703
14726
|
*
|
|
@@ -21930,7 +21953,12 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
21930
21953
|
workflow_ids?: Array<number>;
|
|
21931
21954
|
/**
|
|
21932
21955
|
*
|
|
21933
|
-
* The data sources for the monitor to use based on what you want to measure.
|
|
21956
|
+
* The data sources for the metric monitor to use based on what you want to measure.
|
|
21957
|
+
*
|
|
21958
|
+
* `timeWindow` is measured in seconds. Cron Monitors use schedules instead of this field.
|
|
21959
|
+
* Legacy metric alert rules expressed this value in minutes, so multiply a legacy value
|
|
21960
|
+
* by 60 when migrating it to a monitor. For example, a legacy 5-minute window becomes
|
|
21961
|
+
* `"timeWindow": 300`.
|
|
21934
21962
|
*
|
|
21935
21963
|
* **Number of Errors Metric Monitor**
|
|
21936
21964
|
* - `eventTypes`: Any of `error` or `default`.
|
|
@@ -21943,9 +21971,9 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
21943
21971
|
* "eventTypes": ["default", "error"],
|
|
21944
21972
|
* "query": "is:unresolved",
|
|
21945
21973
|
* "queryType": 0,
|
|
21946
|
-
* "timeWindow": 3600
|
|
21947
|
-
* }
|
|
21948
|
-
* ]
|
|
21974
|
+
* "timeWindow": 3600
|
|
21975
|
+
* }
|
|
21976
|
+
* ]
|
|
21949
21977
|
* ```
|
|
21950
21978
|
*
|
|
21951
21979
|
* **Users Experiencing Errors Metric Monitor**
|
|
@@ -21959,9 +21987,9 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
21959
21987
|
* "eventTypes": ["default", "error"],
|
|
21960
21988
|
* "query": "is:unresolved",
|
|
21961
21989
|
* "queryType": 0,
|
|
21962
|
-
* "timeWindow": 3600
|
|
21963
|
-
* }
|
|
21964
|
-
* ]
|
|
21990
|
+
* "timeWindow": 3600
|
|
21991
|
+
* }
|
|
21992
|
+
* ]
|
|
21965
21993
|
* ```
|
|
21966
21994
|
*
|
|
21967
21995
|
*
|
|
@@ -21972,13 +22000,13 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
21972
22000
|
* "aggregate":"count(span.duration)",
|
|
21973
22001
|
* "dataset":"events_analytics_platform",
|
|
21974
22002
|
* "environment":"prod",
|
|
21975
|
-
* "eventTypes":["trace_item_span"]
|
|
22003
|
+
* "eventTypes":["trace_item_span"],
|
|
21976
22004
|
* "query":"",
|
|
21977
22005
|
* "queryType":1,
|
|
21978
22006
|
* "timeWindow":3600,
|
|
21979
|
-
* "extrapolationMode":"unknown"
|
|
21980
|
-
* }
|
|
21981
|
-
* ]
|
|
22007
|
+
* "extrapolationMode":"unknown"
|
|
22008
|
+
* }
|
|
22009
|
+
* ]
|
|
21982
22010
|
* ```
|
|
21983
22011
|
*
|
|
21984
22012
|
* **Duration Metric Monitor**
|
|
@@ -21988,13 +22016,13 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
21988
22016
|
* "aggregate":"p95(span.duration)",
|
|
21989
22017
|
* "dataset":"events_analytics_platform",
|
|
21990
22018
|
* "environment":"prod",
|
|
21991
|
-
* "eventTypes":["trace_item_span"]
|
|
22019
|
+
* "eventTypes":["trace_item_span"],
|
|
21992
22020
|
* "query":"",
|
|
21993
22021
|
* "queryType":1,
|
|
21994
22022
|
* "timeWindow":3600,
|
|
21995
|
-
* "extrapolationMode":"unknown"
|
|
21996
|
-
* }
|
|
21997
|
-
* ]
|
|
22023
|
+
* "extrapolationMode":"unknown"
|
|
22024
|
+
* }
|
|
22025
|
+
* ]
|
|
21998
22026
|
* ```
|
|
21999
22027
|
*
|
|
22000
22028
|
* **Failure Rate Metric Monitor**
|
|
@@ -22004,17 +22032,17 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
22004
22032
|
* "aggregate":"failure_rate()",
|
|
22005
22033
|
* "dataset":"events_analytics_platform",
|
|
22006
22034
|
* "environment":"prod",
|
|
22007
|
-
* "eventTypes":["trace_item_span"]
|
|
22035
|
+
* "eventTypes":["trace_item_span"],
|
|
22008
22036
|
* "query":"",
|
|
22009
22037
|
* "queryType":1,
|
|
22010
22038
|
* "timeWindow":3600,
|
|
22011
|
-
* "extrapolationMode":"unknown"
|
|
22012
|
-
* }
|
|
22013
|
-
* ]
|
|
22039
|
+
* "extrapolationMode":"unknown"
|
|
22040
|
+
* }
|
|
22041
|
+
* ]
|
|
22014
22042
|
* ```
|
|
22015
22043
|
*
|
|
22016
22044
|
* **Largest Contentful Paint Metric Monitor**
|
|
22017
|
-
* - `dataset`:
|
|
22045
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
22018
22046
|
* - `aggregate`: Valid values are `avg(measurements.lcp)`, `p50(measurements.lcp)`, `p75(measurements.lcp)`, `p95(measurements.lcp)`, `p99(measurements.lcp)`, `p100(measurements.lcp)`, and `percentile(measurements.lcp,x)`, where `x` is your custom percentile.
|
|
22019
22047
|
*
|
|
22020
22048
|
* ```json
|
|
@@ -22023,17 +22051,17 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
22023
22051
|
* "aggregate":"p95(measurements.lcp)",
|
|
22024
22052
|
* "dataset":"events_analytics_platform",
|
|
22025
22053
|
* "environment":"prod",
|
|
22026
|
-
* "eventTypes":["trace_item_span"]
|
|
22027
|
-
* "query":"",
|
|
22054
|
+
* "eventTypes":["trace_item_span"],
|
|
22055
|
+
* "query":"is_transaction:true",
|
|
22028
22056
|
* "queryType":1,
|
|
22029
22057
|
* "timeWindow":3600,
|
|
22030
|
-
* "extrapolationMode":"unknown"
|
|
22031
|
-
* }
|
|
22032
|
-
* ]
|
|
22058
|
+
* "extrapolationMode":"unknown"
|
|
22059
|
+
* }
|
|
22060
|
+
* ]
|
|
22033
22061
|
* ```
|
|
22034
22062
|
*
|
|
22035
22063
|
* **Custom Metric Monitor**
|
|
22036
|
-
* - `dataset`:
|
|
22064
|
+
* - `dataset`: Use `events_analytics_platform`. To query transaction spans, add `is_transaction:true` to `query`.
|
|
22037
22065
|
* - `aggregate`: Valid values are:
|
|
22038
22066
|
* `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
22039
22067
|
* `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
|
|
@@ -22049,11 +22077,17 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
22049
22077
|
* ```json
|
|
22050
22078
|
* [
|
|
22051
22079
|
* {
|
|
22052
|
-
* "aggregate": "p75(measurements.ttfb)"
|
|
22080
|
+
* "aggregate": "p75(measurements.ttfb)",
|
|
22053
22081
|
* "dataset": "events_analytics_platform",
|
|
22082
|
+
* "environment": "prod",
|
|
22054
22083
|
* "queryType": 1,
|
|
22055
|
-
*
|
|
22056
|
-
*
|
|
22084
|
+
* "eventTypes": ["trace_item_span"],
|
|
22085
|
+
* "query": "is_transaction:true",
|
|
22086
|
+
* "timeWindow": 3600,
|
|
22087
|
+
* "extrapolationMode": "unknown"
|
|
22088
|
+
* }
|
|
22089
|
+
* ]
|
|
22090
|
+
* ```
|
|
22057
22091
|
*
|
|
22058
22092
|
*/
|
|
22059
22093
|
data_sources?: Array<unknown>;
|
|
@@ -22066,7 +22100,7 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
22066
22100
|
* - `static`: Threshold based monitor
|
|
22067
22101
|
* - `percent`: Change based monitor
|
|
22068
22102
|
* - `dynamic`: Dynamic monitor
|
|
22069
|
-
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against
|
|
22103
|
+
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period, in seconds, at which to compare against historical data.
|
|
22070
22104
|
* For example, a value of 3600 compares the metric tracked against data 1 hour ago.
|
|
22071
22105
|
* - `300`: 5 minutes
|
|
22072
22106
|
* - `900`: 15 minutes
|
|
@@ -22078,20 +22112,20 @@ export type CreateOrganizationProjectDetectorData = {
|
|
|
22078
22112
|
* **Threshold**
|
|
22079
22113
|
* ```json
|
|
22080
22114
|
* {
|
|
22081
|
-
* "detectionType": "static"
|
|
22115
|
+
* "detectionType": "static"
|
|
22082
22116
|
* }
|
|
22083
22117
|
* ```
|
|
22084
22118
|
* **Change**
|
|
22085
22119
|
* ```json
|
|
22086
22120
|
* {
|
|
22087
22121
|
* "detectionType": "percent",
|
|
22088
|
-
* "comparisonDelta": 3600
|
|
22122
|
+
* "comparisonDelta": 3600
|
|
22089
22123
|
* }
|
|
22090
22124
|
* ```
|
|
22091
22125
|
* **Dynamic**
|
|
22092
22126
|
* ```json
|
|
22093
22127
|
* {
|
|
22094
|
-
* "detectionType": "dynamic"
|
|
22128
|
+
* "detectionType": "dynamic"
|
|
22095
22129
|
* }
|
|
22096
22130
|
* ```
|
|
22097
22131
|
*
|
|
@@ -25370,6 +25404,7 @@ export type ListOrganizationSentryAppComponentsResponses = {
|
|
|
25370
25404
|
photoType: string;
|
|
25371
25405
|
}>;
|
|
25372
25406
|
};
|
|
25407
|
+
installationUuid: string;
|
|
25373
25408
|
}>;
|
|
25374
25409
|
};
|
|
25375
25410
|
export type ListOrganizationSentryAppComponentsResponse = ListOrganizationSentryAppComponentsResponses[keyof ListOrganizationSentryAppComponentsResponses];
|
|
@@ -27384,7 +27419,7 @@ export type CreateOrganizationWorkflowData = {
|
|
|
27384
27419
|
*
|
|
27385
27420
|
* ```json
|
|
27386
27421
|
* {
|
|
27387
|
-
* "frequency":
|
|
27422
|
+
* "frequency": 60
|
|
27388
27423
|
* }
|
|
27389
27424
|
* ```
|
|
27390
27425
|
*
|
|
@@ -28412,7 +28447,7 @@ export type UpdateOrganizationWorkflowData = {
|
|
|
28412
28447
|
*
|
|
28413
28448
|
* ```json
|
|
28414
28449
|
* {
|
|
28415
|
-
* "frequency":
|
|
28450
|
+
* "frequency": 60
|
|
28416
28451
|
* }
|
|
28417
28452
|
* ```
|
|
28418
28453
|
*
|
package/dist/valibot.gen.d.ts
CHANGED
|
@@ -6164,6 +6164,7 @@ export declare const vSentryAppComponentsResponse: v.ArraySchema<v.ObjectSchema<
|
|
|
6164
6164
|
readonly photoType: v.StringSchema<undefined>;
|
|
6165
6165
|
}, undefined>, undefined>;
|
|
6166
6166
|
}, undefined>;
|
|
6167
|
+
readonly installationUuid: v.StringSchema<undefined>;
|
|
6167
6168
|
}, undefined>, undefined>;
|
|
6168
6169
|
export declare const vSentryAppDetailsResponse: v.ObjectSchema<{
|
|
6169
6170
|
readonly allowedOrigins: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -13047,6 +13048,7 @@ export declare const vListOrganizationSentryAppComponentsResponse: v.ArraySchema
|
|
|
13047
13048
|
readonly photoType: v.StringSchema<undefined>;
|
|
13048
13049
|
}, undefined>, undefined>;
|
|
13049
13050
|
}, undefined>;
|
|
13051
|
+
readonly installationUuid: v.StringSchema<undefined>;
|
|
13050
13052
|
}, undefined>, undefined>;
|
|
13051
13053
|
export declare const vListOrganizationSentryAppsData: v.ObjectSchema<{
|
|
13052
13054
|
readonly body: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
package/dist/valibot.js
CHANGED
|
@@ -7746,7 +7746,8 @@ var vSentryAppComponentsResponse = v.array(v.object({
|
|
|
7746
7746
|
color: v.boolean(),
|
|
7747
7747
|
photoType: v.string()
|
|
7748
7748
|
}))
|
|
7749
|
-
})
|
|
7749
|
+
}),
|
|
7750
|
+
installationUuid: v.string()
|
|
7750
7751
|
}));
|
|
7751
7752
|
var vSentryAppDetailsResponse = v.object({
|
|
7752
7753
|
allowedOrigins: v.array(v.string()),
|
|
@@ -16431,7 +16432,8 @@ var vListOrganizationSentryAppComponentsResponse = v.array(v.object({
|
|
|
16431
16432
|
color: v.boolean(),
|
|
16432
16433
|
photoType: v.string()
|
|
16433
16434
|
}))
|
|
16434
|
-
})
|
|
16435
|
+
}),
|
|
16436
|
+
installationUuid: v.string()
|
|
16435
16437
|
}));
|
|
16436
16438
|
var vListOrganizationSentryAppsData = v.object({
|
|
16437
16439
|
body: v.optional(v.never()),
|
package/dist/zod.gen.d.ts
CHANGED
|
@@ -29993,6 +29993,7 @@ export declare const zSentryAppComponentsResponse: z.ZodArray<z.ZodObject<{
|
|
|
29993
29993
|
photoType: string;
|
|
29994
29994
|
}[];
|
|
29995
29995
|
}>;
|
|
29996
|
+
installationUuid: z.ZodString;
|
|
29996
29997
|
}, "strip", z.ZodTypeAny, {
|
|
29997
29998
|
error: string | {
|
|
29998
29999
|
context?: Record<string, unknown> | undefined;
|
|
@@ -30013,6 +30014,7 @@ export declare const zSentryAppComponentsResponse: z.ZodArray<z.ZodObject<{
|
|
|
30013
30014
|
photoType: string;
|
|
30014
30015
|
}[];
|
|
30015
30016
|
};
|
|
30017
|
+
installationUuid: string;
|
|
30016
30018
|
}, {
|
|
30017
30019
|
error: string | {
|
|
30018
30020
|
context?: Record<string, unknown> | undefined;
|
|
@@ -30033,6 +30035,7 @@ export declare const zSentryAppComponentsResponse: z.ZodArray<z.ZodObject<{
|
|
|
30033
30035
|
photoType: string;
|
|
30034
30036
|
}[];
|
|
30035
30037
|
};
|
|
30038
|
+
installationUuid: string;
|
|
30036
30039
|
}>, "many">;
|
|
30037
30040
|
export declare const zSentryAppDetailsResponse: z.ZodObject<{
|
|
30038
30041
|
allowedOrigins: z.ZodArray<z.ZodString, "many">;
|
|
@@ -64172,6 +64175,7 @@ export declare const zListOrganizationSentryAppComponentsResponse: z.ZodArray<z.
|
|
|
64172
64175
|
photoType: string;
|
|
64173
64176
|
}[];
|
|
64174
64177
|
}>;
|
|
64178
|
+
installationUuid: z.ZodString;
|
|
64175
64179
|
}, "strip", z.ZodTypeAny, {
|
|
64176
64180
|
error: string | {
|
|
64177
64181
|
context?: Record<string, unknown> | undefined;
|
|
@@ -64192,6 +64196,7 @@ export declare const zListOrganizationSentryAppComponentsResponse: z.ZodArray<z.
|
|
|
64192
64196
|
photoType: string;
|
|
64193
64197
|
}[];
|
|
64194
64198
|
};
|
|
64199
|
+
installationUuid: string;
|
|
64195
64200
|
}, {
|
|
64196
64201
|
error: string | {
|
|
64197
64202
|
context?: Record<string, unknown> | undefined;
|
|
@@ -64212,6 +64217,7 @@ export declare const zListOrganizationSentryAppComponentsResponse: z.ZodArray<z.
|
|
|
64212
64217
|
photoType: string;
|
|
64213
64218
|
}[];
|
|
64214
64219
|
};
|
|
64220
|
+
installationUuid: string;
|
|
64215
64221
|
}>, "many">;
|
|
64216
64222
|
export declare const zListOrganizationSentryAppsData: z.ZodObject<{
|
|
64217
64223
|
body: z.ZodOptional<z.ZodNever>;
|
package/dist/zod.js
CHANGED
|
@@ -11826,7 +11826,8 @@ var zSentryAppComponentsResponse = z.array(z.object({
|
|
|
11826
11826
|
color: z.boolean(),
|
|
11827
11827
|
photoType: z.string()
|
|
11828
11828
|
}))
|
|
11829
|
-
})
|
|
11829
|
+
}),
|
|
11830
|
+
installationUuid: z.string()
|
|
11830
11831
|
}));
|
|
11831
11832
|
var zSentryAppDetailsResponse = z.object({
|
|
11832
11833
|
allowedOrigins: z.array(z.string()),
|
|
@@ -24402,7 +24403,8 @@ var zListOrganizationSentryAppComponentsResponse = z.array(z.object({
|
|
|
24402
24403
|
color: z.boolean(),
|
|
24403
24404
|
photoType: z.string()
|
|
24404
24405
|
}))
|
|
24405
|
-
})
|
|
24406
|
+
}),
|
|
24407
|
+
installationUuid: z.string()
|
|
24406
24408
|
}));
|
|
24407
24409
|
var zListOrganizationSentryAppsData = z.object({
|
|
24408
24410
|
body: z.never().optional(),
|