@sentry/api 0.97.0 → 0.99.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.
@@ -114,6 +114,7 @@ export type BaseDetectorTypeValidator = {
114
114
  * The data sources for the monitor to use based on what you want to measure.
115
115
  *
116
116
  * **Number of Errors Metric Monitor**
117
+ * - `eventTypes`: Any of `error` or `default`.
117
118
  * ```json
118
119
  * [
119
120
  * {
@@ -129,6 +130,7 @@ export type BaseDetectorTypeValidator = {
129
130
  * ```
130
131
  *
131
132
  * **Users Experiencing Errors Metric Monitor**
133
+ * - `eventTypes`: Any of `error` or `default`.
132
134
  * ```json
133
135
  * [
134
136
  * {
@@ -193,6 +195,9 @@ export type BaseDetectorTypeValidator = {
193
195
  * ```
194
196
  *
195
197
  * **Largest Contentful Paint Metric Monitor**
198
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
199
+ * - `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.
200
+ *
196
201
  * ```json
197
202
  * [
198
203
  * {
@@ -208,6 +213,29 @@ export type BaseDetectorTypeValidator = {
208
213
  * ],
209
214
  * ```
210
215
  *
216
+ * **Custom Metric Monitor**
217
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
218
+ * - `aggregate`: Valid values are:
219
+ * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
220
+ * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
221
+ * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
222
+ * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
223
+ * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
224
+ * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
225
+ * `percentile(x,y)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`, and `y` is the custom percentile.
226
+ * `failure_rate()`
227
+ * `apdex(x)`, where `x` is the value of the Apdex score.
228
+ * `count()`
229
+ *
230
+ * ```json
231
+ * [
232
+ * {
233
+ * "aggregate": "p75(measurements.ttfb)"
234
+ * "dataset": "generic_metrics",
235
+ * "queryType": 1,
236
+ * },
237
+ * ],
238
+ *
211
239
  */
212
240
  data_sources?: Array<unknown>;
213
241
  /**
@@ -11781,7 +11809,197 @@ export type FetchAnOrganizationSMonitorsResponses = {
11781
11809
  }>;
11782
11810
  };
11783
11811
  export type FetchAnOrganizationSMonitorsResponse = FetchAnOrganizationSMonitorsResponses[keyof FetchAnOrganizationSMonitorsResponses];
11784
- export type CreateAMonitorForAProjectData = {
11812
+ export type MutateAnOrganizationSMonitorsData = {
11813
+ body: {
11814
+ /**
11815
+ * Whether to enable or disable the monitors
11816
+ */
11817
+ enabled: boolean;
11818
+ };
11819
+ path: {
11820
+ /**
11821
+ * The ID or slug of the organization the resource belongs to.
11822
+ */
11823
+ organization_id_or_slug: string;
11824
+ };
11825
+ query?: {
11826
+ /**
11827
+ * The IDs of projects to filter by. `-1` means all available projects.
11828
+ * For example, the following are valid parameters:
11829
+ * - `/?project=1234&project=56789`
11830
+ * - `/?project=-1`
11831
+ *
11832
+ */
11833
+ project?: Array<number>;
11834
+ /**
11835
+ * An optional search query for filtering monitors.
11836
+ *
11837
+ * Available fields are:
11838
+ * - `name`
11839
+ * - `type`: e.g. `error`, `metric_issue`, `issue_stream`
11840
+ * - `assignee`: email, username, #team, me, none
11841
+ *
11842
+ */
11843
+ query?: string;
11844
+ /**
11845
+ * The ID of the monitor you'd like to query.
11846
+ */
11847
+ id?: Array<number>;
11848
+ };
11849
+ url: '/api/0/organizations/{organization_id_or_slug}/detectors/';
11850
+ };
11851
+ export type MutateAnOrganizationSMonitorsErrors = {
11852
+ /**
11853
+ * Bad Request
11854
+ */
11855
+ 400: unknown;
11856
+ /**
11857
+ * Unauthorized
11858
+ */
11859
+ 401: unknown;
11860
+ /**
11861
+ * Forbidden
11862
+ */
11863
+ 403: unknown;
11864
+ /**
11865
+ * Not Found
11866
+ */
11867
+ 404: unknown;
11868
+ };
11869
+ export type MutateAnOrganizationSMonitorsResponses = {
11870
+ 200: Array<{
11871
+ owner?: {
11872
+ type: 'user' | 'team';
11873
+ id: string;
11874
+ name: string;
11875
+ email?: string;
11876
+ } | null;
11877
+ createdBy?: string | null;
11878
+ latestGroup?: {
11879
+ [key: string]: unknown;
11880
+ } | null;
11881
+ description?: string | null;
11882
+ id: string;
11883
+ projectId: string;
11884
+ name: string;
11885
+ type: string;
11886
+ workflowIds: Array<string> | null;
11887
+ dateCreated: string;
11888
+ dateUpdated: string;
11889
+ dataSources: Array<{
11890
+ [key: string]: unknown;
11891
+ }> | null;
11892
+ conditionGroup: {
11893
+ [key: string]: unknown;
11894
+ } | null;
11895
+ config: {
11896
+ [key: string]: unknown;
11897
+ };
11898
+ enabled: boolean;
11899
+ openIssues: number;
11900
+ }>;
11901
+ };
11902
+ export type MutateAnOrganizationSMonitorsResponse = MutateAnOrganizationSMonitorsResponses[keyof MutateAnOrganizationSMonitorsResponses];
11903
+ export type DeleteAMonitorData = {
11904
+ body?: never;
11905
+ path: {
11906
+ /**
11907
+ * The ID or slug of the organization the resource belongs to.
11908
+ */
11909
+ organization_id_or_slug: string;
11910
+ /**
11911
+ * The ID of the monitor you'd like to query.
11912
+ */
11913
+ detector_id: number;
11914
+ };
11915
+ query?: never;
11916
+ url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
11917
+ };
11918
+ export type DeleteAMonitorErrors = {
11919
+ /**
11920
+ * Forbidden
11921
+ */
11922
+ 403: unknown;
11923
+ /**
11924
+ * Not Found
11925
+ */
11926
+ 404: unknown;
11927
+ };
11928
+ export type DeleteAMonitorResponses = {
11929
+ /**
11930
+ * No Content
11931
+ */
11932
+ 204: void;
11933
+ };
11934
+ export type DeleteAMonitorResponse = DeleteAMonitorResponses[keyof DeleteAMonitorResponses];
11935
+ export type FetchAMonitorData = {
11936
+ body?: never;
11937
+ path: {
11938
+ /**
11939
+ * The ID or slug of the organization the resource belongs to.
11940
+ */
11941
+ organization_id_or_slug: string;
11942
+ /**
11943
+ * The ID of the monitor you'd like to query.
11944
+ */
11945
+ detector_id: number;
11946
+ };
11947
+ query?: never;
11948
+ url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
11949
+ };
11950
+ export type FetchAMonitorErrors = {
11951
+ /**
11952
+ * Bad Request
11953
+ */
11954
+ 400: unknown;
11955
+ /**
11956
+ * Unauthorized
11957
+ */
11958
+ 401: unknown;
11959
+ /**
11960
+ * Forbidden
11961
+ */
11962
+ 403: unknown;
11963
+ /**
11964
+ * Not Found
11965
+ */
11966
+ 404: unknown;
11967
+ };
11968
+ export type FetchAMonitorResponses = {
11969
+ 200: {
11970
+ owner?: {
11971
+ type: 'user' | 'team';
11972
+ id: string;
11973
+ name: string;
11974
+ email?: string;
11975
+ } | null;
11976
+ createdBy?: string | null;
11977
+ latestGroup?: {
11978
+ [key: string]: unknown;
11979
+ } | null;
11980
+ description?: string | null;
11981
+ id: string;
11982
+ projectId: string;
11983
+ name: string;
11984
+ type: string;
11985
+ workflowIds: Array<string> | null;
11986
+ dateCreated: string;
11987
+ dateUpdated: string;
11988
+ dataSources: Array<{
11989
+ [key: string]: unknown;
11990
+ }> | null;
11991
+ conditionGroup: {
11992
+ [key: string]: unknown;
11993
+ } | null;
11994
+ config: {
11995
+ [key: string]: unknown;
11996
+ };
11997
+ enabled: boolean;
11998
+ openIssues: number;
11999
+ };
12000
+ };
12001
+ export type FetchAMonitorResponse = FetchAMonitorResponses[keyof FetchAMonitorResponses];
12002
+ export type UpdateAMonitorByIdData = {
11785
12003
  /**
11786
12004
  * Allows parameters to be defined in snake case, but passed as camel case.
11787
12005
  *
@@ -11805,6 +12023,7 @@ export type CreateAMonitorForAProjectData = {
11805
12023
  * The data sources for the monitor to use based on what you want to measure.
11806
12024
  *
11807
12025
  * **Number of Errors Metric Monitor**
12026
+ * - `eventTypes`: Any of `error` or `default`.
11808
12027
  * ```json
11809
12028
  * [
11810
12029
  * {
@@ -11820,6 +12039,7 @@ export type CreateAMonitorForAProjectData = {
11820
12039
  * ```
11821
12040
  *
11822
12041
  * **Users Experiencing Errors Metric Monitor**
12042
+ * - `eventTypes`: Any of `error` or `default`.
11823
12043
  * ```json
11824
12044
  * [
11825
12045
  * {
@@ -11884,6 +12104,9 @@ export type CreateAMonitorForAProjectData = {
11884
12104
  * ```
11885
12105
  *
11886
12106
  * **Largest Contentful Paint Metric Monitor**
12107
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
12108
+ * - `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.
12109
+ *
11887
12110
  * ```json
11888
12111
  * [
11889
12112
  * {
@@ -11899,6 +12122,29 @@ export type CreateAMonitorForAProjectData = {
11899
12122
  * ],
11900
12123
  * ```
11901
12124
  *
12125
+ * **Custom Metric Monitor**
12126
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
12127
+ * - `aggregate`: Valid values are:
12128
+ * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12129
+ * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12130
+ * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12131
+ * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12132
+ * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12133
+ * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
12134
+ * `percentile(x,y)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`, and `y` is the custom percentile.
12135
+ * `failure_rate()`
12136
+ * `apdex(x)`, where `x` is the value of the Apdex score.
12137
+ * `count()`
12138
+ *
12139
+ * ```json
12140
+ * [
12141
+ * {
12142
+ * "aggregate": "p75(measurements.ttfb)"
12143
+ * "dataset": "generic_metrics",
12144
+ * "queryType": 1,
12145
+ * },
12146
+ * ],
12147
+ *
11902
12148
  */
11903
12149
  data_sources?: Array<unknown>;
11904
12150
  /**
@@ -11989,11 +12235,15 @@ export type CreateAMonitorForAProjectData = {
11989
12235
  * The ID or slug of the organization the resource belongs to.
11990
12236
  */
11991
12237
  organization_id_or_slug: string;
12238
+ /**
12239
+ * The ID of the monitor you'd like to query.
12240
+ */
12241
+ detector_id: number;
11992
12242
  };
11993
12243
  query?: never;
11994
- url: '/api/0/organizations/{organization_id_or_slug}/detectors/';
12244
+ url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
11995
12245
  };
11996
- export type CreateAMonitorForAProjectErrors = {
12246
+ export type UpdateAMonitorByIdErrors = {
11997
12247
  /**
11998
12248
  * Bad Request
11999
12249
  */
@@ -12011,8 +12261,8 @@ export type CreateAMonitorForAProjectErrors = {
12011
12261
  */
12012
12262
  404: unknown;
12013
12263
  };
12014
- export type CreateAMonitorForAProjectResponses = {
12015
- 201: {
12264
+ export type UpdateAMonitorByIdResponses = {
12265
+ 200: {
12016
12266
  owner?: {
12017
12267
  type: 'user' | 'team';
12018
12268
  id: string;
@@ -12044,14 +12294,9 @@ export type CreateAMonitorForAProjectResponses = {
12044
12294
  openIssues: number;
12045
12295
  };
12046
12296
  };
12047
- export type CreateAMonitorForAProjectResponse = CreateAMonitorForAProjectResponses[keyof CreateAMonitorForAProjectResponses];
12048
- export type MutateAnOrganizationSMonitorsData = {
12049
- body: {
12050
- /**
12051
- * Whether to enable or disable the monitors
12052
- */
12053
- enabled: boolean;
12054
- };
12297
+ export type UpdateAMonitorByIdResponse = UpdateAMonitorByIdResponses[keyof UpdateAMonitorByIdResponses];
12298
+ export type ListAnOrganizationSDiscoverSavedQueriesData = {
12299
+ body?: never;
12055
12300
  path: {
12056
12301
  /**
12057
12302
  * The ID or slug of the organization the resource belongs to.
@@ -12060,39 +12305,38 @@ export type MutateAnOrganizationSMonitorsData = {
12060
12305
  };
12061
12306
  query?: {
12062
12307
  /**
12063
- * The IDs of projects to filter by. `-1` means all available projects.
12064
- * For example, the following are valid parameters:
12065
- * - `/?project=1234&project=56789`
12066
- * - `/?project=-1`
12067
- *
12308
+ * Limit the number of rows to return in the result. Default and maximum allowed is 100.
12068
12309
  */
12069
- project?: Array<number>;
12310
+ per_page?: number;
12070
12311
  /**
12071
- * An optional search query for filtering monitors.
12312
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
12313
+ */
12314
+ cursor?: string;
12315
+ /**
12316
+ * The name of the Discover query you'd like to filter by.
12317
+ */
12318
+ query?: string;
12319
+ /**
12320
+ * The property to sort results by. If not specified, the results are sorted by query name.
12072
12321
  *
12073
12322
  * Available fields are:
12074
12323
  * - `name`
12075
- * - `type`: e.g. `error`, `metric_issue`, `issue_stream`
12076
- * - `assignee`: email, username, #team, me, none
12324
+ * - `dateCreated`
12325
+ * - `dateUpdated`
12326
+ * - `mostPopular`
12327
+ * - `recentlyViewed`
12328
+ * - `myqueries`
12077
12329
  *
12078
12330
  */
12079
- query?: string;
12080
- /**
12081
- * The ID of the monitor you'd like to query.
12082
- */
12083
- id?: Array<number>;
12331
+ sortBy?: string;
12084
12332
  };
12085
- url: '/api/0/organizations/{organization_id_or_slug}/detectors/';
12333
+ url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
12086
12334
  };
12087
- export type MutateAnOrganizationSMonitorsErrors = {
12335
+ export type ListAnOrganizationSDiscoverSavedQueriesErrors = {
12088
12336
  /**
12089
12337
  * Bad Request
12090
12338
  */
12091
12339
  400: unknown;
12092
- /**
12093
- * Unauthorized
12094
- */
12095
- 401: unknown;
12096
12340
  /**
12097
12341
  * Forbidden
12098
12342
  */
@@ -12102,96 +12346,177 @@ export type MutateAnOrganizationSMonitorsErrors = {
12102
12346
  */
12103
12347
  404: unknown;
12104
12348
  };
12105
- export type MutateAnOrganizationSMonitorsResponses = {
12349
+ export type ListAnOrganizationSDiscoverSavedQueriesResponses = {
12106
12350
  200: Array<{
12107
- owner?: {
12108
- type: 'user' | 'team';
12109
- id: string;
12110
- name: string;
12111
- email?: string;
12112
- } | null;
12113
- createdBy?: string | null;
12114
- latestGroup?: {
12351
+ environment?: Array<string>;
12352
+ query?: string;
12353
+ fields?: Array<string>;
12354
+ widths?: Array<string>;
12355
+ conditions?: Array<string>;
12356
+ aggregations?: Array<string>;
12357
+ range?: string;
12358
+ start?: string;
12359
+ end?: string;
12360
+ orderby?: string;
12361
+ limit?: string;
12362
+ yAxis?: Array<string>;
12363
+ display?: string;
12364
+ topEvents?: number;
12365
+ interval?: string;
12366
+ exploreQuery?: {
12115
12367
  [key: string]: unknown;
12116
- } | null;
12117
- description?: string | null;
12368
+ };
12118
12369
  id: string;
12119
- projectId: string;
12120
12370
  name: string;
12121
- type: string;
12122
- workflowIds: Array<string> | null;
12371
+ projects: Array<number>;
12372
+ version: number;
12373
+ queryDataset: string;
12374
+ datasetSource: string;
12375
+ expired: boolean;
12123
12376
  dateCreated: string;
12124
12377
  dateUpdated: string;
12125
- dataSources: Array<{
12126
- [key: string]: unknown;
12127
- }> | null;
12128
- conditionGroup: {
12129
- [key: string]: unknown;
12130
- } | null;
12131
- config: {
12132
- [key: string]: unknown;
12378
+ createdBy: {
12379
+ identities?: Array<{
12380
+ id: string;
12381
+ name: string;
12382
+ organization: {
12383
+ slug: string;
12384
+ name: string;
12385
+ };
12386
+ provider: {
12387
+ id: string;
12388
+ name: string;
12389
+ };
12390
+ dateVerified: string;
12391
+ dateSynced: string;
12392
+ }>;
12393
+ avatar?: {
12394
+ avatarType?: string;
12395
+ avatarUuid?: string | null;
12396
+ avatarUrl?: string | null;
12397
+ };
12398
+ authenticators?: Array<unknown>;
12399
+ canReset2fa?: boolean;
12400
+ id: string;
12401
+ name: string;
12402
+ username: string;
12403
+ email: string;
12404
+ avatarUrl: string;
12405
+ isActive: boolean;
12406
+ hasPasswordAuth: boolean;
12407
+ isManaged: boolean;
12408
+ dateJoined: string;
12409
+ lastLogin: string | null;
12410
+ has2fa: boolean;
12411
+ lastActive: string | null;
12412
+ isSuperuser: boolean;
12413
+ isStaff: boolean;
12414
+ experiments: {
12415
+ [key: string]: unknown;
12416
+ };
12417
+ emails: Array<{
12418
+ id: string;
12419
+ email: string;
12420
+ is_verified: boolean;
12421
+ }>;
12133
12422
  };
12134
- enabled: boolean;
12135
- openIssues: number;
12136
12423
  }>;
12137
12424
  };
12138
- export type MutateAnOrganizationSMonitorsResponse = MutateAnOrganizationSMonitorsResponses[keyof MutateAnOrganizationSMonitorsResponses];
12139
- export type DeleteAMonitorData = {
12140
- body?: never;
12141
- path: {
12425
+ export type ListAnOrganizationSDiscoverSavedQueriesResponse = ListAnOrganizationSDiscoverSavedQueriesResponses[keyof ListAnOrganizationSDiscoverSavedQueriesResponses];
12426
+ export type CreateANewSavedQueryData = {
12427
+ body: {
12142
12428
  /**
12143
- * The ID or slug of the organization the resource belongs to.
12429
+ * The user-defined saved query name.
12144
12430
  */
12145
- organization_id_or_slug: string;
12431
+ name: string;
12146
12432
  /**
12147
- * The ID of the monitor you'd like to query.
12433
+ * The saved projects filter for this query.
12148
12434
  */
12149
- detector_id: number;
12435
+ projects?: Array<number>;
12436
+ /**
12437
+ * The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`
12438
+ *
12439
+ * * `discover`
12440
+ * * `error-events`
12441
+ * * `transaction-like`
12442
+ */
12443
+ queryDataset?: 'discover' | 'error-events' | 'transaction-like';
12444
+ /**
12445
+ * The saved start time for this saved query.
12446
+ */
12447
+ start?: string | null;
12448
+ /**
12449
+ * The saved end time for this saved query.
12450
+ */
12451
+ end?: string | null;
12452
+ /**
12453
+ * The saved time range period for this saved query.
12454
+ */
12455
+ range?: string | null;
12456
+ /**
12457
+ * The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types:
12458
+ * - A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property.
12459
+ * - example: `field=transaction`
12460
+ * - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields
12461
+ * - example: `field=tag[isEnterprise]`
12462
+ * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).
12463
+ * - when a function is included, Discover will group by any tags or fields
12464
+ * - example: `field=count_if(transaction.duration,greater,300)`
12465
+ * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).
12466
+ * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`
12467
+ *
12468
+ */
12469
+ fields?: Array<string> | null;
12470
+ /**
12471
+ * How to order the query results. Must be something in the `field` list, excluding equations.
12472
+ */
12473
+ orderby?: string | null;
12474
+ /**
12475
+ * The name of environments to filter by.
12476
+ */
12477
+ environment?: Array<string> | null;
12478
+ /**
12479
+ * Filters results by using [query syntax](/product/sentry-basics/search/).
12480
+ */
12481
+ query?: string | null;
12482
+ /**
12483
+ * Aggregate functions to be plotted on the chart.
12484
+ */
12485
+ yAxis?: Array<string> | null;
12486
+ /**
12487
+ * Visualization type for saved query chart. Allowed values are:
12488
+ * - default
12489
+ * - previous
12490
+ * - top5
12491
+ * - daily
12492
+ * - dailytop5
12493
+ * - bar
12494
+ *
12495
+ */
12496
+ display?: string | null;
12497
+ /**
12498
+ * Number of top events' timeseries to be visualized.
12499
+ */
12500
+ topEvents?: number | null;
12501
+ /**
12502
+ * Resolution of the time series.
12503
+ */
12504
+ interval?: string | null;
12150
12505
  };
12151
- query?: never;
12152
- url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
12153
- };
12154
- export type DeleteAMonitorErrors = {
12155
- /**
12156
- * Forbidden
12157
- */
12158
- 403: unknown;
12159
- /**
12160
- * Not Found
12161
- */
12162
- 404: unknown;
12163
- };
12164
- export type DeleteAMonitorResponses = {
12165
- /**
12166
- * No Content
12167
- */
12168
- 204: void;
12169
- };
12170
- export type DeleteAMonitorResponse = DeleteAMonitorResponses[keyof DeleteAMonitorResponses];
12171
- export type FetchAMonitorData = {
12172
- body?: never;
12173
12506
  path: {
12174
12507
  /**
12175
12508
  * The ID or slug of the organization the resource belongs to.
12176
12509
  */
12177
12510
  organization_id_or_slug: string;
12178
- /**
12179
- * The ID of the monitor you'd like to query.
12180
- */
12181
- detector_id: number;
12182
12511
  };
12183
12512
  query?: never;
12184
- url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
12513
+ url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
12185
12514
  };
12186
- export type FetchAMonitorErrors = {
12515
+ export type CreateANewSavedQueryErrors = {
12187
12516
  /**
12188
12517
  * Bad Request
12189
12518
  */
12190
12519
  400: unknown;
12191
- /**
12192
- * Unauthorized
12193
- */
12194
- 401: unknown;
12195
12520
  /**
12196
12521
  * Forbidden
12197
12522
  */
@@ -12201,559 +12526,26 @@ export type FetchAMonitorErrors = {
12201
12526
  */
12202
12527
  404: unknown;
12203
12528
  };
12204
- export type FetchAMonitorResponses = {
12205
- 200: {
12206
- owner?: {
12207
- type: 'user' | 'team';
12208
- id: string;
12209
- name: string;
12210
- email?: string;
12211
- } | null;
12212
- createdBy?: string | null;
12213
- latestGroup?: {
12529
+ export type CreateANewSavedQueryResponses = {
12530
+ 201: {
12531
+ environment?: Array<string>;
12532
+ query?: string;
12533
+ fields?: Array<string>;
12534
+ widths?: Array<string>;
12535
+ conditions?: Array<string>;
12536
+ aggregations?: Array<string>;
12537
+ range?: string;
12538
+ start?: string;
12539
+ end?: string;
12540
+ orderby?: string;
12541
+ limit?: string;
12542
+ yAxis?: Array<string>;
12543
+ display?: string;
12544
+ topEvents?: number;
12545
+ interval?: string;
12546
+ exploreQuery?: {
12214
12547
  [key: string]: unknown;
12215
- } | null;
12216
- description?: string | null;
12217
- id: string;
12218
- projectId: string;
12219
- name: string;
12220
- type: string;
12221
- workflowIds: Array<string> | null;
12222
- dateCreated: string;
12223
- dateUpdated: string;
12224
- dataSources: Array<{
12225
- [key: string]: unknown;
12226
- }> | null;
12227
- conditionGroup: {
12228
- [key: string]: unknown;
12229
- } | null;
12230
- config: {
12231
- [key: string]: unknown;
12232
- };
12233
- enabled: boolean;
12234
- openIssues: number;
12235
- };
12236
- };
12237
- export type FetchAMonitorResponse = FetchAMonitorResponses[keyof FetchAMonitorResponses];
12238
- export type UpdateAMonitorByIdData = {
12239
- /**
12240
- * Allows parameters to be defined in snake case, but passed as camel case.
12241
- *
12242
- * Errors are output in camel case.
12243
- */
12244
- body: {
12245
- /**
12246
- * Name of the monitor.
12247
- */
12248
- name: string;
12249
- /**
12250
- * The type of monitor - `metric_issue`.
12251
- */
12252
- type: string;
12253
- /**
12254
- * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs.
12255
- */
12256
- workflow_ids?: Array<number>;
12257
- /**
12258
- *
12259
- * The data sources for the monitor to use based on what you want to measure.
12260
- *
12261
- * **Number of Errors Metric Monitor**
12262
- * ```json
12263
- * [
12264
- * {
12265
- * "aggregate": "count()",
12266
- * "dataset" : "events",
12267
- * "environment": "prod",
12268
- * "eventTypes": ["default", "error"],
12269
- * "query": "is:unresolved",
12270
- * "queryType": 0,
12271
- * "timeWindow": 3600,
12272
- * },
12273
- * ],
12274
- * ```
12275
- *
12276
- * **Users Experiencing Errors Metric Monitor**
12277
- * ```json
12278
- * [
12279
- * {
12280
- * "aggregate": "count_unique(tags[sentry:user])",
12281
- * "dataset" : "events",
12282
- * "environment": "prod",
12283
- * "eventTypes": ["default", "error"],
12284
- * "query": "is:unresolved",
12285
- * "queryType": 0,
12286
- * "timeWindow": 3600,
12287
- * },
12288
- * ],
12289
- * ```
12290
- *
12291
- *
12292
- * **Throughput Metric Monitor**
12293
- * ```json
12294
- * [
12295
- * {
12296
- * "aggregate":"count(span.duration)",
12297
- * "dataset":"events_analytics_platform",
12298
- * "environment":"prod",
12299
- * "eventTypes":["trace_item_span"]
12300
- * "query":"",
12301
- * "queryType":1,
12302
- * "timeWindow":3600,
12303
- * "extrapolationMode":"unknown",
12304
- * },
12305
- * ],
12306
- * ```
12307
- *
12308
- * **Duration Metric Monitor**
12309
- * ```json
12310
- * [
12311
- * {
12312
- * "aggregate":"p95(span.duration)",
12313
- * "dataset":"events_analytics_platform",
12314
- * "environment":"prod",
12315
- * "eventTypes":["trace_item_span"]
12316
- * "query":"",
12317
- * "queryType":1,
12318
- * "timeWindow":3600,
12319
- * "extrapolationMode":"unknown",
12320
- * },
12321
- * ],
12322
- * ```
12323
- *
12324
- * **Failure Rate Metric Monitor**
12325
- * ```json
12326
- * [
12327
- * {
12328
- * "aggregate":"failure_rate()",
12329
- * "dataset":"events_analytics_platform",
12330
- * "environment":"prod",
12331
- * "eventTypes":["trace_item_span"]
12332
- * "query":"",
12333
- * "queryType":1,
12334
- * "timeWindow":3600,
12335
- * "extrapolationMode":"unknown",
12336
- * },
12337
- * ],
12338
- * ```
12339
- *
12340
- * **Largest Contentful Paint Metric Monitor**
12341
- * ```json
12342
- * [
12343
- * {
12344
- * "aggregate":"p95(measurements.lcp)",
12345
- * "dataset":"events_analytics_platform",
12346
- * "environment":"prod",
12347
- * "eventTypes":["trace_item_span"]
12348
- * "query":"",
12349
- * "queryType":1,
12350
- * "timeWindow":3600,
12351
- * "extrapolationMode":"unknown",
12352
- * },
12353
- * ],
12354
- * ```
12355
- *
12356
- */
12357
- data_sources?: Array<unknown>;
12358
- /**
12359
- *
12360
- * The issue detection type configuration.
12361
- *
12362
- *
12363
- * - `detectionType`
12364
- * - `static`: Threshold based monitor
12365
- * - `percent`: Change based monitor
12366
- * - `dynamic`: Dynamic monitor
12367
- * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
12368
- * For example, a value of 3600 compares the metric tracked against data 1 hour ago.
12369
- * - `300`: 5 minutes
12370
- * - `900`: 15 minutes
12371
- * - `3600`: 1 hour
12372
- * - `86400`: 1 day
12373
- * - `604800`: 1 week
12374
- * - `2592000`: 1 month
12375
- *
12376
- * **Threshold**
12377
- * ```json
12378
- * {
12379
- * "detectionType": "static",
12380
- * }
12381
- * ```
12382
- * **Change**
12383
- * ```json
12384
- * {
12385
- * "detectionType": "percent",
12386
- * "comparisonDelta": 3600,
12387
- * }
12388
- * ```
12389
- * **Dynamic**
12390
- * ```json
12391
- * {
12392
- * "detectionType": "dynamic",
12393
- * }
12394
- * ```
12395
- *
12396
- */
12397
- config?: {
12398
- [key: string]: unknown;
12399
- };
12400
- /**
12401
- * Allows parameters to be defined in snake case, but passed as camel case.
12402
- *
12403
- * Errors are output in camel case.
12404
- */
12405
- condition_group?: {
12406
- id?: string;
12407
- /**
12408
- * * `any`
12409
- * * `any-short`
12410
- * * `all`
12411
- * * `none`
12412
- */
12413
- logic_type: 'any' | 'any-short' | 'all' | 'none';
12414
- conditions?: Array<unknown>;
12415
- };
12416
- /**
12417
- *
12418
- * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.
12419
- *
12420
- * **User**
12421
- * ```json
12422
- * "user:123456"
12423
- * ```
12424
- *
12425
- * **Team**
12426
- * ```json
12427
- * "team:456789"
12428
- * ```
12429
- *
12430
- */
12431
- owner?: string | null;
12432
- /**
12433
- * A description of the monitor. Will be used in the resulting issue.
12434
- */
12435
- description?: string | null;
12436
- /**
12437
- * Set to False if you want to disable the monitor.
12438
- */
12439
- enabled?: boolean;
12440
- };
12441
- path: {
12442
- /**
12443
- * The ID or slug of the organization the resource belongs to.
12444
- */
12445
- organization_id_or_slug: string;
12446
- /**
12447
- * The ID of the monitor you'd like to query.
12448
- */
12449
- detector_id: number;
12450
- };
12451
- query?: never;
12452
- url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
12453
- };
12454
- export type UpdateAMonitorByIdErrors = {
12455
- /**
12456
- * Bad Request
12457
- */
12458
- 400: unknown;
12459
- /**
12460
- * Unauthorized
12461
- */
12462
- 401: unknown;
12463
- /**
12464
- * Forbidden
12465
- */
12466
- 403: unknown;
12467
- /**
12468
- * Not Found
12469
- */
12470
- 404: unknown;
12471
- };
12472
- export type UpdateAMonitorByIdResponses = {
12473
- 200: {
12474
- owner?: {
12475
- type: 'user' | 'team';
12476
- id: string;
12477
- name: string;
12478
- email?: string;
12479
- } | null;
12480
- createdBy?: string | null;
12481
- latestGroup?: {
12482
- [key: string]: unknown;
12483
- } | null;
12484
- description?: string | null;
12485
- id: string;
12486
- projectId: string;
12487
- name: string;
12488
- type: string;
12489
- workflowIds: Array<string> | null;
12490
- dateCreated: string;
12491
- dateUpdated: string;
12492
- dataSources: Array<{
12493
- [key: string]: unknown;
12494
- }> | null;
12495
- conditionGroup: {
12496
- [key: string]: unknown;
12497
- } | null;
12498
- config: {
12499
- [key: string]: unknown;
12500
- };
12501
- enabled: boolean;
12502
- openIssues: number;
12503
- };
12504
- };
12505
- export type UpdateAMonitorByIdResponse = UpdateAMonitorByIdResponses[keyof UpdateAMonitorByIdResponses];
12506
- export type ListAnOrganizationSDiscoverSavedQueriesData = {
12507
- body?: never;
12508
- path: {
12509
- /**
12510
- * The ID or slug of the organization the resource belongs to.
12511
- */
12512
- organization_id_or_slug: string;
12513
- };
12514
- query?: {
12515
- /**
12516
- * Limit the number of rows to return in the result. Default and maximum allowed is 100.
12517
- */
12518
- per_page?: number;
12519
- /**
12520
- * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
12521
- */
12522
- cursor?: string;
12523
- /**
12524
- * The name of the Discover query you'd like to filter by.
12525
- */
12526
- query?: string;
12527
- /**
12528
- * The property to sort results by. If not specified, the results are sorted by query name.
12529
- *
12530
- * Available fields are:
12531
- * - `name`
12532
- * - `dateCreated`
12533
- * - `dateUpdated`
12534
- * - `mostPopular`
12535
- * - `recentlyViewed`
12536
- * - `myqueries`
12537
- *
12538
- */
12539
- sortBy?: string;
12540
- };
12541
- url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
12542
- };
12543
- export type ListAnOrganizationSDiscoverSavedQueriesErrors = {
12544
- /**
12545
- * Bad Request
12546
- */
12547
- 400: unknown;
12548
- /**
12549
- * Forbidden
12550
- */
12551
- 403: unknown;
12552
- /**
12553
- * Not Found
12554
- */
12555
- 404: unknown;
12556
- };
12557
- export type ListAnOrganizationSDiscoverSavedQueriesResponses = {
12558
- 200: Array<{
12559
- environment?: Array<string>;
12560
- query?: string;
12561
- fields?: Array<string>;
12562
- widths?: Array<string>;
12563
- conditions?: Array<string>;
12564
- aggregations?: Array<string>;
12565
- range?: string;
12566
- start?: string;
12567
- end?: string;
12568
- orderby?: string;
12569
- limit?: string;
12570
- yAxis?: Array<string>;
12571
- display?: string;
12572
- topEvents?: number;
12573
- interval?: string;
12574
- exploreQuery?: {
12575
- [key: string]: unknown;
12576
- };
12577
- id: string;
12578
- name: string;
12579
- projects: Array<number>;
12580
- version: number;
12581
- queryDataset: string;
12582
- datasetSource: string;
12583
- expired: boolean;
12584
- dateCreated: string;
12585
- dateUpdated: string;
12586
- createdBy: {
12587
- identities?: Array<{
12588
- id: string;
12589
- name: string;
12590
- organization: {
12591
- slug: string;
12592
- name: string;
12593
- };
12594
- provider: {
12595
- id: string;
12596
- name: string;
12597
- };
12598
- dateVerified: string;
12599
- dateSynced: string;
12600
- }>;
12601
- avatar?: {
12602
- avatarType?: string;
12603
- avatarUuid?: string | null;
12604
- avatarUrl?: string | null;
12605
- };
12606
- authenticators?: Array<unknown>;
12607
- canReset2fa?: boolean;
12608
- id: string;
12609
- name: string;
12610
- username: string;
12611
- email: string;
12612
- avatarUrl: string;
12613
- isActive: boolean;
12614
- hasPasswordAuth: boolean;
12615
- isManaged: boolean;
12616
- dateJoined: string;
12617
- lastLogin: string | null;
12618
- has2fa: boolean;
12619
- lastActive: string | null;
12620
- isSuperuser: boolean;
12621
- isStaff: boolean;
12622
- experiments: {
12623
- [key: string]: unknown;
12624
- };
12625
- emails: Array<{
12626
- id: string;
12627
- email: string;
12628
- is_verified: boolean;
12629
- }>;
12630
- };
12631
- }>;
12632
- };
12633
- export type ListAnOrganizationSDiscoverSavedQueriesResponse = ListAnOrganizationSDiscoverSavedQueriesResponses[keyof ListAnOrganizationSDiscoverSavedQueriesResponses];
12634
- export type CreateANewSavedQueryData = {
12635
- body: {
12636
- /**
12637
- * The user-defined saved query name.
12638
- */
12639
- name: string;
12640
- /**
12641
- * The saved projects filter for this query.
12642
- */
12643
- projects?: Array<number>;
12644
- /**
12645
- * The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`
12646
- *
12647
- * * `discover`
12648
- * * `error-events`
12649
- * * `transaction-like`
12650
- */
12651
- queryDataset?: 'discover' | 'error-events' | 'transaction-like';
12652
- /**
12653
- * The saved start time for this saved query.
12654
- */
12655
- start?: string | null;
12656
- /**
12657
- * The saved end time for this saved query.
12658
- */
12659
- end?: string | null;
12660
- /**
12661
- * The saved time range period for this saved query.
12662
- */
12663
- range?: string | null;
12664
- /**
12665
- * The fields, functions, or equations that can be requested for the query. At most 20 fields can be selected per request. Each field can be one of the following types:
12666
- * - A built-in key field. See possible fields in the [properties table](/product/sentry-basics/search/searchable-properties/#properties-table), under any field that is an event property.
12667
- * - example: `field=transaction`
12668
- * - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields
12669
- * - example: `field=tag[isEnterprise]`
12670
- * - A function which will be in the format of `function_name(parameters,...)`. See possible functions in the [query builder documentation](/product/discover-queries/query-builder/#stacking-functions).
12671
- * - when a function is included, Discover will group by any tags or fields
12672
- * - example: `field=count_if(transaction.duration,greater,300)`
12673
- * - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).
12674
- * - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`
12675
- *
12676
- */
12677
- fields?: Array<string> | null;
12678
- /**
12679
- * How to order the query results. Must be something in the `field` list, excluding equations.
12680
- */
12681
- orderby?: string | null;
12682
- /**
12683
- * The name of environments to filter by.
12684
- */
12685
- environment?: Array<string> | null;
12686
- /**
12687
- * Filters results by using [query syntax](/product/sentry-basics/search/).
12688
- */
12689
- query?: string | null;
12690
- /**
12691
- * Aggregate functions to be plotted on the chart.
12692
- */
12693
- yAxis?: Array<string> | null;
12694
- /**
12695
- * Visualization type for saved query chart. Allowed values are:
12696
- * - default
12697
- * - previous
12698
- * - top5
12699
- * - daily
12700
- * - dailytop5
12701
- * - bar
12702
- *
12703
- */
12704
- display?: string | null;
12705
- /**
12706
- * Number of top events' timeseries to be visualized.
12707
- */
12708
- topEvents?: number | null;
12709
- /**
12710
- * Resolution of the time series.
12711
- */
12712
- interval?: string | null;
12713
- };
12714
- path: {
12715
- /**
12716
- * The ID or slug of the organization the resource belongs to.
12717
- */
12718
- organization_id_or_slug: string;
12719
- };
12720
- query?: never;
12721
- url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
12722
- };
12723
- export type CreateANewSavedQueryErrors = {
12724
- /**
12725
- * Bad Request
12726
- */
12727
- 400: unknown;
12728
- /**
12729
- * Forbidden
12730
- */
12731
- 403: unknown;
12732
- /**
12733
- * Not Found
12734
- */
12735
- 404: unknown;
12736
- };
12737
- export type CreateANewSavedQueryResponses = {
12738
- 201: {
12739
- environment?: Array<string>;
12740
- query?: string;
12741
- fields?: Array<string>;
12742
- widths?: Array<string>;
12743
- conditions?: Array<string>;
12744
- aggregations?: Array<string>;
12745
- range?: string;
12746
- start?: string;
12747
- end?: string;
12748
- orderby?: string;
12749
- limit?: string;
12750
- yAxis?: Array<string>;
12751
- display?: string;
12752
- topEvents?: number;
12753
- interval?: string;
12754
- exploreQuery?: {
12755
- [key: string]: unknown;
12756
- };
12548
+ };
12757
12549
  id: string;
12758
12550
  name: string;
12759
12551
  projects: Array<number>;
@@ -18310,36 +18102,202 @@ export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganization
18310
18102
  flakeRatePercentChange: number;
18311
18103
  };
18312
18104
  };
18313
- export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponse = RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses[keyof RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses];
18314
- export type RetrieveTestSuitesBelongingToARepositorySTestResultsData = {
18105
+ export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponse = RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses[keyof RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses];
18106
+ export type RetrieveTestSuitesBelongingToARepositorySTestResultsData = {
18107
+ body?: never;
18108
+ path: {
18109
+ /**
18110
+ * The ID or slug of the organization the resource belongs to.
18111
+ */
18112
+ organization_id_or_slug: string;
18113
+ /**
18114
+ * The owner of the repository.
18115
+ */
18116
+ owner: string;
18117
+ /**
18118
+ * The name of the repository.
18119
+ */
18120
+ repository: string;
18121
+ };
18122
+ query?: {
18123
+ /**
18124
+ * The term substring to filter name strings by using the `contains` operator.
18125
+ */
18126
+ term?: string;
18127
+ };
18128
+ url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-suites/';
18129
+ };
18130
+ export type RetrieveTestSuitesBelongingToARepositorySTestResultsErrors = {
18131
+ /**
18132
+ * Bad Request
18133
+ */
18134
+ 400: unknown;
18135
+ /**
18136
+ * Forbidden
18137
+ */
18138
+ 403: unknown;
18139
+ /**
18140
+ * Not Found
18141
+ */
18142
+ 404: unknown;
18143
+ };
18144
+ export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponses = {
18145
+ /**
18146
+ * Serializer for test suites belonging to a repository's test results
18147
+ */
18148
+ 200: {
18149
+ testSuites: Array<string>;
18150
+ };
18151
+ };
18152
+ export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponse = RetrieveTestSuitesBelongingToARepositorySTestResultsResponses[keyof RetrieveTestSuitesBelongingToARepositorySTestResultsResponses];
18153
+ export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenData = {
18154
+ body?: never;
18155
+ path: {
18156
+ /**
18157
+ * The ID or slug of the organization the resource belongs to.
18158
+ */
18159
+ organization_id_or_slug: string;
18160
+ /**
18161
+ * The owner of the repository.
18162
+ */
18163
+ owner: string;
18164
+ /**
18165
+ * The name of the repository.
18166
+ */
18167
+ repository: string;
18168
+ };
18169
+ query?: never;
18170
+ url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/token/regenerate/';
18171
+ };
18172
+ export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenErrors = {
18173
+ /**
18174
+ * Bad Request
18175
+ */
18176
+ 400: unknown;
18177
+ /**
18178
+ * Forbidden
18179
+ */
18180
+ 403: unknown;
18181
+ /**
18182
+ * Not Found
18183
+ */
18184
+ 404: unknown;
18185
+ };
18186
+ export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses = {
18187
+ /**
18188
+ * Serializer for repositories response
18189
+ */
18190
+ 200: {
18191
+ token: string;
18192
+ };
18193
+ };
18194
+ export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponse = RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses[keyof RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses];
18195
+ export type ListAnOrganizationSClientKeysData = {
18196
+ body?: never;
18197
+ path: {
18198
+ /**
18199
+ * The ID or slug of the organization the resource belongs to.
18200
+ */
18201
+ organization_id_or_slug: string;
18202
+ };
18203
+ query?: {
18204
+ /**
18205
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
18206
+ */
18207
+ cursor?: string;
18208
+ /**
18209
+ * Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned.
18210
+ */
18211
+ team?: string;
18212
+ /**
18213
+ * Filter keys by status. Options are 'active' or 'inactive'.
18214
+ *
18215
+ * * `active`
18216
+ * * `inactive`
18217
+ */
18218
+ status?: 'active' | 'inactive';
18219
+ };
18220
+ url: '/api/0/organizations/{organization_id_or_slug}/project-keys/';
18221
+ };
18222
+ export type ListAnOrganizationSClientKeysErrors = {
18223
+ /**
18224
+ * Bad Request
18225
+ */
18226
+ 400: unknown;
18227
+ /**
18228
+ * Forbidden
18229
+ */
18230
+ 403: unknown;
18231
+ /**
18232
+ * Not Found
18233
+ */
18234
+ 404: unknown;
18235
+ };
18236
+ export type ListAnOrganizationSClientKeysResponses = {
18237
+ 200: Array<{
18238
+ id: string;
18239
+ name: string;
18240
+ label: string;
18241
+ public: string | null;
18242
+ secret: string | null;
18243
+ projectId: number;
18244
+ isActive: boolean;
18245
+ rateLimit: {
18246
+ window: number;
18247
+ count: number;
18248
+ } | null;
18249
+ dsn: {
18250
+ secret: string;
18251
+ public: string;
18252
+ csp: string;
18253
+ security: string;
18254
+ minidump: string;
18255
+ nel: string;
18256
+ unreal: string;
18257
+ crons: string;
18258
+ cdn: string;
18259
+ playstation: string;
18260
+ integration: string;
18261
+ otlp_traces: string;
18262
+ otlp_logs: string;
18263
+ };
18264
+ browserSdkVersion: string;
18265
+ browserSdk: {
18266
+ choices: Array<Array<string>>;
18267
+ };
18268
+ dateCreated: string | null;
18269
+ dynamicSdkLoaderOptions: {
18270
+ hasReplay: boolean;
18271
+ hasPerformance: boolean;
18272
+ hasDebug: boolean;
18273
+ hasFeedback: boolean;
18274
+ hasLogsAndMetrics: boolean;
18275
+ };
18276
+ useCase?: string;
18277
+ }>;
18278
+ };
18279
+ export type ListAnOrganizationSClientKeysResponse = ListAnOrganizationSClientKeysResponses[keyof ListAnOrganizationSClientKeysResponses];
18280
+ export type ListAnOrganizationSProjectsData = {
18315
18281
  body?: never;
18316
18282
  path: {
18317
18283
  /**
18318
18284
  * The ID or slug of the organization the resource belongs to.
18319
18285
  */
18320
18286
  organization_id_or_slug: string;
18321
- /**
18322
- * The owner of the repository.
18323
- */
18324
- owner: string;
18325
- /**
18326
- * The name of the repository.
18327
- */
18328
- repository: string;
18329
18287
  };
18330
18288
  query?: {
18331
18289
  /**
18332
- * The term substring to filter name strings by using the `contains` operator.
18290
+ * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
18333
18291
  */
18334
- term?: string;
18292
+ cursor?: string;
18335
18293
  };
18336
- url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-suites/';
18294
+ url: '/api/0/organizations/{organization_id_or_slug}/projects/';
18337
18295
  };
18338
- export type RetrieveTestSuitesBelongingToARepositorySTestResultsErrors = {
18296
+ export type ListAnOrganizationSProjectsErrors = {
18339
18297
  /**
18340
- * Bad Request
18298
+ * Unauthorized
18341
18299
  */
18342
- 400: unknown;
18300
+ 401: unknown;
18343
18301
  /**
18344
18302
  * Forbidden
18345
18303
  */
@@ -18349,159 +18307,319 @@ export type RetrieveTestSuitesBelongingToARepositorySTestResultsErrors = {
18349
18307
  */
18350
18308
  404: unknown;
18351
18309
  };
18352
- export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponses = {
18310
+ export type ListAnOrganizationSProjectsResponses = {
18311
+ 200: Array<{
18312
+ latestDeploys?: {
18313
+ [key: string]: {
18314
+ [key: string]: string;
18315
+ };
18316
+ } | null;
18317
+ options?: {
18318
+ [key: string]: unknown;
18319
+ };
18320
+ stats?: unknown;
18321
+ transactionStats?: unknown;
18322
+ sessionStats?: unknown;
18323
+ id: string;
18324
+ slug: string;
18325
+ name: string;
18326
+ platform: string | null;
18327
+ dateCreated: string;
18328
+ isBookmarked: boolean;
18329
+ isMember: boolean;
18330
+ features: Array<string>;
18331
+ firstEvent: string | null;
18332
+ firstTransactionEvent: boolean;
18333
+ access: Array<string>;
18334
+ hasAccess: boolean;
18335
+ hasFeedbacks: boolean;
18336
+ hasFlags: boolean;
18337
+ hasMinifiedStackTrace: boolean;
18338
+ hasMonitors: boolean;
18339
+ hasNewFeedbacks: boolean;
18340
+ hasProfiles: boolean;
18341
+ hasReplays: boolean;
18342
+ hasSessions: boolean;
18343
+ hasInsightsHttp: boolean;
18344
+ hasInsightsDb: boolean;
18345
+ hasInsightsAssets: boolean;
18346
+ hasInsightsAppStart: boolean;
18347
+ hasInsightsScreenLoad: boolean;
18348
+ hasInsightsVitals: boolean;
18349
+ hasInsightsCaches: boolean;
18350
+ hasInsightsQueues: boolean;
18351
+ hasInsightsAgentMonitoring: boolean;
18352
+ hasInsightsMCP: boolean;
18353
+ hasLogs: boolean;
18354
+ hasTraceMetrics: boolean;
18355
+ team: {
18356
+ id: string;
18357
+ name: string;
18358
+ slug: string;
18359
+ } | null;
18360
+ teams: Array<{
18361
+ id: string;
18362
+ name: string;
18363
+ slug: string;
18364
+ }>;
18365
+ platforms: Array<string>;
18366
+ hasUserReports: boolean;
18367
+ environments: Array<string>;
18368
+ latestRelease: {
18369
+ version: string;
18370
+ } | null;
18371
+ }>;
18372
+ };
18373
+ export type ListAnOrganizationSProjectsResponse = ListAnOrganizationSProjectsResponses[keyof ListAnOrganizationSProjectsResponses];
18374
+ export type CreateAMonitorForAProjectData = {
18353
18375
  /**
18354
- * Serializer for test suites belonging to a repository's test results
18376
+ * Allows parameters to be defined in snake case, but passed as camel case.
18377
+ *
18378
+ * Errors are output in camel case.
18355
18379
  */
18356
- 200: {
18357
- testSuites: Array<string>;
18358
- };
18359
- };
18360
- export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponse = RetrieveTestSuitesBelongingToARepositorySTestResultsResponses[keyof RetrieveTestSuitesBelongingToARepositorySTestResultsResponses];
18361
- export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenData = {
18362
- body?: never;
18363
- path: {
18380
+ body: {
18381
+ /**
18382
+ * Name of the monitor.
18383
+ */
18384
+ name: string;
18385
+ /**
18386
+ * The type of monitor - `metric_issue`.
18387
+ */
18388
+ type: string;
18389
+ /**
18390
+ * The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs.
18391
+ */
18392
+ workflow_ids?: Array<number>;
18393
+ /**
18394
+ *
18395
+ * The data sources for the monitor to use based on what you want to measure.
18396
+ *
18397
+ * **Number of Errors Metric Monitor**
18398
+ * - `eventTypes`: Any of `error` or `default`.
18399
+ * ```json
18400
+ * [
18401
+ * {
18402
+ * "aggregate": "count()",
18403
+ * "dataset" : "events",
18404
+ * "environment": "prod",
18405
+ * "eventTypes": ["default", "error"],
18406
+ * "query": "is:unresolved",
18407
+ * "queryType": 0,
18408
+ * "timeWindow": 3600,
18409
+ * },
18410
+ * ],
18411
+ * ```
18412
+ *
18413
+ * **Users Experiencing Errors Metric Monitor**
18414
+ * - `eventTypes`: Any of `error` or `default`.
18415
+ * ```json
18416
+ * [
18417
+ * {
18418
+ * "aggregate": "count_unique(tags[sentry:user])",
18419
+ * "dataset" : "events",
18420
+ * "environment": "prod",
18421
+ * "eventTypes": ["default", "error"],
18422
+ * "query": "is:unresolved",
18423
+ * "queryType": 0,
18424
+ * "timeWindow": 3600,
18425
+ * },
18426
+ * ],
18427
+ * ```
18428
+ *
18429
+ *
18430
+ * **Throughput Metric Monitor**
18431
+ * ```json
18432
+ * [
18433
+ * {
18434
+ * "aggregate":"count(span.duration)",
18435
+ * "dataset":"events_analytics_platform",
18436
+ * "environment":"prod",
18437
+ * "eventTypes":["trace_item_span"]
18438
+ * "query":"",
18439
+ * "queryType":1,
18440
+ * "timeWindow":3600,
18441
+ * "extrapolationMode":"unknown",
18442
+ * },
18443
+ * ],
18444
+ * ```
18445
+ *
18446
+ * **Duration Metric Monitor**
18447
+ * ```json
18448
+ * [
18449
+ * {
18450
+ * "aggregate":"p95(span.duration)",
18451
+ * "dataset":"events_analytics_platform",
18452
+ * "environment":"prod",
18453
+ * "eventTypes":["trace_item_span"]
18454
+ * "query":"",
18455
+ * "queryType":1,
18456
+ * "timeWindow":3600,
18457
+ * "extrapolationMode":"unknown",
18458
+ * },
18459
+ * ],
18460
+ * ```
18461
+ *
18462
+ * **Failure Rate Metric Monitor**
18463
+ * ```json
18464
+ * [
18465
+ * {
18466
+ * "aggregate":"failure_rate()",
18467
+ * "dataset":"events_analytics_platform",
18468
+ * "environment":"prod",
18469
+ * "eventTypes":["trace_item_span"]
18470
+ * "query":"",
18471
+ * "queryType":1,
18472
+ * "timeWindow":3600,
18473
+ * "extrapolationMode":"unknown",
18474
+ * },
18475
+ * ],
18476
+ * ```
18477
+ *
18478
+ * **Largest Contentful Paint Metric Monitor**
18479
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
18480
+ * - `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.
18481
+ *
18482
+ * ```json
18483
+ * [
18484
+ * {
18485
+ * "aggregate":"p95(measurements.lcp)",
18486
+ * "dataset":"events_analytics_platform",
18487
+ * "environment":"prod",
18488
+ * "eventTypes":["trace_item_span"]
18489
+ * "query":"",
18490
+ * "queryType":1,
18491
+ * "timeWindow":3600,
18492
+ * "extrapolationMode":"unknown",
18493
+ * },
18494
+ * ],
18495
+ * ```
18496
+ *
18497
+ * **Custom Metric Monitor**
18498
+ * - `dataset`: If a custom percentile is used, dataset is `transactions`. Otherwise, dataset is `generic_metrics`.
18499
+ * - `aggregate`: Valid values are:
18500
+ * `avg(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18501
+ * `p50(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18502
+ * `p75(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18503
+ * `p95(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18504
+ * `p99(x)`, where x is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18505
+ * `p100(x)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`.
18506
+ * `percentile(x,y)`, where `x` is `transaction.duration`, `measurements.cls`, `measurements.fcp`, `measurements.fid`, `measurements.fp`, `measurements.lcp`, `measurements.ttfb`, or `measurements.ttfb.requesttime`, and `y` is the custom percentile.
18507
+ * `failure_rate()`
18508
+ * `apdex(x)`, where `x` is the value of the Apdex score.
18509
+ * `count()`
18510
+ *
18511
+ * ```json
18512
+ * [
18513
+ * {
18514
+ * "aggregate": "p75(measurements.ttfb)"
18515
+ * "dataset": "generic_metrics",
18516
+ * "queryType": 1,
18517
+ * },
18518
+ * ],
18519
+ *
18520
+ */
18521
+ data_sources?: Array<unknown>;
18522
+ /**
18523
+ *
18524
+ * The issue detection type configuration.
18525
+ *
18526
+ *
18527
+ * - `detectionType`
18528
+ * - `static`: Threshold based monitor
18529
+ * - `percent`: Change based monitor
18530
+ * - `dynamic`: Dynamic monitor
18531
+ * - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
18532
+ * For example, a value of 3600 compares the metric tracked against data 1 hour ago.
18533
+ * - `300`: 5 minutes
18534
+ * - `900`: 15 minutes
18535
+ * - `3600`: 1 hour
18536
+ * - `86400`: 1 day
18537
+ * - `604800`: 1 week
18538
+ * - `2592000`: 1 month
18539
+ *
18540
+ * **Threshold**
18541
+ * ```json
18542
+ * {
18543
+ * "detectionType": "static",
18544
+ * }
18545
+ * ```
18546
+ * **Change**
18547
+ * ```json
18548
+ * {
18549
+ * "detectionType": "percent",
18550
+ * "comparisonDelta": 3600,
18551
+ * }
18552
+ * ```
18553
+ * **Dynamic**
18554
+ * ```json
18555
+ * {
18556
+ * "detectionType": "dynamic",
18557
+ * }
18558
+ * ```
18559
+ *
18560
+ */
18561
+ config?: {
18562
+ [key: string]: unknown;
18563
+ };
18364
18564
  /**
18365
- * The ID or slug of the organization the resource belongs to.
18565
+ * Allows parameters to be defined in snake case, but passed as camel case.
18566
+ *
18567
+ * Errors are output in camel case.
18366
18568
  */
18367
- organization_id_or_slug: string;
18569
+ condition_group?: {
18570
+ id?: string;
18571
+ /**
18572
+ * * `any`
18573
+ * * `any-short`
18574
+ * * `all`
18575
+ * * `none`
18576
+ */
18577
+ logic_type: 'any' | 'any-short' | 'all' | 'none';
18578
+ conditions?: Array<unknown>;
18579
+ };
18368
18580
  /**
18369
- * The owner of the repository.
18581
+ *
18582
+ * The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.
18583
+ *
18584
+ * **User**
18585
+ * ```json
18586
+ * "user:123456"
18587
+ * ```
18588
+ *
18589
+ * **Team**
18590
+ * ```json
18591
+ * "team:456789"
18592
+ * ```
18593
+ *
18370
18594
  */
18371
- owner: string;
18595
+ owner?: string | null;
18372
18596
  /**
18373
- * The name of the repository.
18597
+ * A description of the monitor. Will be used in the resulting issue.
18374
18598
  */
18375
- repository: string;
18376
- };
18377
- query?: never;
18378
- url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/token/regenerate/';
18379
- };
18380
- export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenErrors = {
18381
- /**
18382
- * Bad Request
18383
- */
18384
- 400: unknown;
18385
- /**
18386
- * Forbidden
18387
- */
18388
- 403: unknown;
18389
- /**
18390
- * Not Found
18391
- */
18392
- 404: unknown;
18393
- };
18394
- export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses = {
18395
- /**
18396
- * Serializer for repositories response
18397
- */
18398
- 200: {
18399
- token: string;
18599
+ description?: string | null;
18600
+ /**
18601
+ * Set to False if you want to disable the monitor.
18602
+ */
18603
+ enabled?: boolean;
18400
18604
  };
18401
- };
18402
- export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponse = RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses[keyof RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses];
18403
- export type ListAnOrganizationSClientKeysData = {
18404
- body?: never;
18405
18605
  path: {
18406
18606
  /**
18407
18607
  * The ID or slug of the organization the resource belongs to.
18408
18608
  */
18409
18609
  organization_id_or_slug: string;
18410
- };
18411
- query?: {
18412
- /**
18413
- * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
18414
- */
18415
- cursor?: string;
18416
- /**
18417
- * Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned.
18418
- */
18419
- team?: string;
18420
18610
  /**
18421
- * Filter keys by status. Options are 'active' or 'inactive'.
18422
- *
18423
- * * `active`
18424
- * * `inactive`
18611
+ * The ID or slug of the project the resource belongs to.
18425
18612
  */
18426
- status?: 'active' | 'inactive';
18613
+ project_id_or_slug: string;
18427
18614
  };
18428
- url: '/api/0/organizations/{organization_id_or_slug}/project-keys/';
18615
+ query?: never;
18616
+ url: '/api/0/organizations/{organization_id_or_slug}/projects/{project_id_or_slug}/detectors/';
18429
18617
  };
18430
- export type ListAnOrganizationSClientKeysErrors = {
18618
+ export type CreateAMonitorForAProjectErrors = {
18431
18619
  /**
18432
18620
  * Bad Request
18433
18621
  */
18434
18622
  400: unknown;
18435
- /**
18436
- * Forbidden
18437
- */
18438
- 403: unknown;
18439
- /**
18440
- * Not Found
18441
- */
18442
- 404: unknown;
18443
- };
18444
- export type ListAnOrganizationSClientKeysResponses = {
18445
- 200: Array<{
18446
- id: string;
18447
- name: string;
18448
- label: string;
18449
- public: string | null;
18450
- secret: string | null;
18451
- projectId: number;
18452
- isActive: boolean;
18453
- rateLimit: {
18454
- window: number;
18455
- count: number;
18456
- } | null;
18457
- dsn: {
18458
- secret: string;
18459
- public: string;
18460
- csp: string;
18461
- security: string;
18462
- minidump: string;
18463
- nel: string;
18464
- unreal: string;
18465
- crons: string;
18466
- cdn: string;
18467
- playstation: string;
18468
- integration: string;
18469
- otlp_traces: string;
18470
- otlp_logs: string;
18471
- };
18472
- browserSdkVersion: string;
18473
- browserSdk: {
18474
- choices: Array<Array<string>>;
18475
- };
18476
- dateCreated: string | null;
18477
- dynamicSdkLoaderOptions: {
18478
- hasReplay: boolean;
18479
- hasPerformance: boolean;
18480
- hasDebug: boolean;
18481
- hasFeedback: boolean;
18482
- hasLogsAndMetrics: boolean;
18483
- };
18484
- useCase?: string;
18485
- }>;
18486
- };
18487
- export type ListAnOrganizationSClientKeysResponse = ListAnOrganizationSClientKeysResponses[keyof ListAnOrganizationSClientKeysResponses];
18488
- export type ListAnOrganizationSProjectsData = {
18489
- body?: never;
18490
- path: {
18491
- /**
18492
- * The ID or slug of the organization the resource belongs to.
18493
- */
18494
- organization_id_or_slug: string;
18495
- };
18496
- query?: {
18497
- /**
18498
- * A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
18499
- */
18500
- cursor?: string;
18501
- };
18502
- url: '/api/0/organizations/{organization_id_or_slug}/projects/';
18503
- };
18504
- export type ListAnOrganizationSProjectsErrors = {
18505
18623
  /**
18506
18624
  * Unauthorized
18507
18625
  */
@@ -18515,70 +18633,40 @@ export type ListAnOrganizationSProjectsErrors = {
18515
18633
  */
18516
18634
  404: unknown;
18517
18635
  };
18518
- export type ListAnOrganizationSProjectsResponses = {
18519
- 200: Array<{
18520
- latestDeploys?: {
18521
- [key: string]: {
18522
- [key: string]: string;
18523
- };
18636
+ export type CreateAMonitorForAProjectResponses = {
18637
+ 201: {
18638
+ owner?: {
18639
+ type: 'user' | 'team';
18640
+ id: string;
18641
+ name: string;
18642
+ email?: string;
18524
18643
  } | null;
18525
- options?: {
18644
+ createdBy?: string | null;
18645
+ latestGroup?: {
18526
18646
  [key: string]: unknown;
18527
- };
18528
- stats?: unknown;
18529
- transactionStats?: unknown;
18530
- sessionStats?: unknown;
18647
+ } | null;
18648
+ description?: string | null;
18531
18649
  id: string;
18532
- slug: string;
18650
+ projectId: string;
18533
18651
  name: string;
18534
- platform: string | null;
18652
+ type: string;
18653
+ workflowIds: Array<string> | null;
18535
18654
  dateCreated: string;
18536
- isBookmarked: boolean;
18537
- isMember: boolean;
18538
- features: Array<string>;
18539
- firstEvent: string | null;
18540
- firstTransactionEvent: boolean;
18541
- access: Array<string>;
18542
- hasAccess: boolean;
18543
- hasFeedbacks: boolean;
18544
- hasFlags: boolean;
18545
- hasMinifiedStackTrace: boolean;
18546
- hasMonitors: boolean;
18547
- hasNewFeedbacks: boolean;
18548
- hasProfiles: boolean;
18549
- hasReplays: boolean;
18550
- hasSessions: boolean;
18551
- hasInsightsHttp: boolean;
18552
- hasInsightsDb: boolean;
18553
- hasInsightsAssets: boolean;
18554
- hasInsightsAppStart: boolean;
18555
- hasInsightsScreenLoad: boolean;
18556
- hasInsightsVitals: boolean;
18557
- hasInsightsCaches: boolean;
18558
- hasInsightsQueues: boolean;
18559
- hasInsightsAgentMonitoring: boolean;
18560
- hasInsightsMCP: boolean;
18561
- hasLogs: boolean;
18562
- hasTraceMetrics: boolean;
18563
- team: {
18564
- id: string;
18565
- name: string;
18566
- slug: string;
18567
- } | null;
18568
- teams: Array<{
18569
- id: string;
18570
- name: string;
18571
- slug: string;
18572
- }>;
18573
- platforms: Array<string>;
18574
- hasUserReports: boolean;
18575
- environments: Array<string>;
18576
- latestRelease: {
18577
- version: string;
18655
+ dateUpdated: string;
18656
+ dataSources: Array<{
18657
+ [key: string]: unknown;
18658
+ }> | null;
18659
+ conditionGroup: {
18660
+ [key: string]: unknown;
18578
18661
  } | null;
18579
- }>;
18662
+ config: {
18663
+ [key: string]: unknown;
18664
+ };
18665
+ enabled: boolean;
18666
+ openIssues: number;
18667
+ };
18580
18668
  };
18581
- export type ListAnOrganizationSProjectsResponse = ListAnOrganizationSProjectsResponses[keyof ListAnOrganizationSProjectsResponses];
18669
+ export type CreateAMonitorForAProjectResponse = CreateAMonitorForAProjectResponses[keyof CreateAMonitorForAProjectResponses];
18582
18670
  export type ListAnOrganizationSTrustedRelaysData = {
18583
18671
  body?: never;
18584
18672
  path: {