@sentry/api 0.97.0 → 0.98.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/index.js +9 -9
- package/dist/sdk.gen.d.ts +6 -6
- package/dist/types.gen.d.ts +862 -858
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -11781,7 +11781,197 @@ export type FetchAnOrganizationSMonitorsResponses = {
|
|
|
11781
11781
|
}>;
|
|
11782
11782
|
};
|
|
11783
11783
|
export type FetchAnOrganizationSMonitorsResponse = FetchAnOrganizationSMonitorsResponses[keyof FetchAnOrganizationSMonitorsResponses];
|
|
11784
|
-
export type
|
|
11784
|
+
export type MutateAnOrganizationSMonitorsData = {
|
|
11785
|
+
body: {
|
|
11786
|
+
/**
|
|
11787
|
+
* Whether to enable or disable the monitors
|
|
11788
|
+
*/
|
|
11789
|
+
enabled: boolean;
|
|
11790
|
+
};
|
|
11791
|
+
path: {
|
|
11792
|
+
/**
|
|
11793
|
+
* The ID or slug of the organization the resource belongs to.
|
|
11794
|
+
*/
|
|
11795
|
+
organization_id_or_slug: string;
|
|
11796
|
+
};
|
|
11797
|
+
query?: {
|
|
11798
|
+
/**
|
|
11799
|
+
* The IDs of projects to filter by. `-1` means all available projects.
|
|
11800
|
+
* For example, the following are valid parameters:
|
|
11801
|
+
* - `/?project=1234&project=56789`
|
|
11802
|
+
* - `/?project=-1`
|
|
11803
|
+
*
|
|
11804
|
+
*/
|
|
11805
|
+
project?: Array<number>;
|
|
11806
|
+
/**
|
|
11807
|
+
* An optional search query for filtering monitors.
|
|
11808
|
+
*
|
|
11809
|
+
* Available fields are:
|
|
11810
|
+
* - `name`
|
|
11811
|
+
* - `type`: e.g. `error`, `metric_issue`, `issue_stream`
|
|
11812
|
+
* - `assignee`: email, username, #team, me, none
|
|
11813
|
+
*
|
|
11814
|
+
*/
|
|
11815
|
+
query?: string;
|
|
11816
|
+
/**
|
|
11817
|
+
* The ID of the monitor you'd like to query.
|
|
11818
|
+
*/
|
|
11819
|
+
id?: Array<number>;
|
|
11820
|
+
};
|
|
11821
|
+
url: '/api/0/organizations/{organization_id_or_slug}/detectors/';
|
|
11822
|
+
};
|
|
11823
|
+
export type MutateAnOrganizationSMonitorsErrors = {
|
|
11824
|
+
/**
|
|
11825
|
+
* Bad Request
|
|
11826
|
+
*/
|
|
11827
|
+
400: unknown;
|
|
11828
|
+
/**
|
|
11829
|
+
* Unauthorized
|
|
11830
|
+
*/
|
|
11831
|
+
401: unknown;
|
|
11832
|
+
/**
|
|
11833
|
+
* Forbidden
|
|
11834
|
+
*/
|
|
11835
|
+
403: unknown;
|
|
11836
|
+
/**
|
|
11837
|
+
* Not Found
|
|
11838
|
+
*/
|
|
11839
|
+
404: unknown;
|
|
11840
|
+
};
|
|
11841
|
+
export type MutateAnOrganizationSMonitorsResponses = {
|
|
11842
|
+
200: Array<{
|
|
11843
|
+
owner?: {
|
|
11844
|
+
type: 'user' | 'team';
|
|
11845
|
+
id: string;
|
|
11846
|
+
name: string;
|
|
11847
|
+
email?: string;
|
|
11848
|
+
} | null;
|
|
11849
|
+
createdBy?: string | null;
|
|
11850
|
+
latestGroup?: {
|
|
11851
|
+
[key: string]: unknown;
|
|
11852
|
+
} | null;
|
|
11853
|
+
description?: string | null;
|
|
11854
|
+
id: string;
|
|
11855
|
+
projectId: string;
|
|
11856
|
+
name: string;
|
|
11857
|
+
type: string;
|
|
11858
|
+
workflowIds: Array<string> | null;
|
|
11859
|
+
dateCreated: string;
|
|
11860
|
+
dateUpdated: string;
|
|
11861
|
+
dataSources: Array<{
|
|
11862
|
+
[key: string]: unknown;
|
|
11863
|
+
}> | null;
|
|
11864
|
+
conditionGroup: {
|
|
11865
|
+
[key: string]: unknown;
|
|
11866
|
+
} | null;
|
|
11867
|
+
config: {
|
|
11868
|
+
[key: string]: unknown;
|
|
11869
|
+
};
|
|
11870
|
+
enabled: boolean;
|
|
11871
|
+
openIssues: number;
|
|
11872
|
+
}>;
|
|
11873
|
+
};
|
|
11874
|
+
export type MutateAnOrganizationSMonitorsResponse = MutateAnOrganizationSMonitorsResponses[keyof MutateAnOrganizationSMonitorsResponses];
|
|
11875
|
+
export type DeleteAMonitorData = {
|
|
11876
|
+
body?: never;
|
|
11877
|
+
path: {
|
|
11878
|
+
/**
|
|
11879
|
+
* The ID or slug of the organization the resource belongs to.
|
|
11880
|
+
*/
|
|
11881
|
+
organization_id_or_slug: string;
|
|
11882
|
+
/**
|
|
11883
|
+
* The ID of the monitor you'd like to query.
|
|
11884
|
+
*/
|
|
11885
|
+
detector_id: number;
|
|
11886
|
+
};
|
|
11887
|
+
query?: never;
|
|
11888
|
+
url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
|
|
11889
|
+
};
|
|
11890
|
+
export type DeleteAMonitorErrors = {
|
|
11891
|
+
/**
|
|
11892
|
+
* Forbidden
|
|
11893
|
+
*/
|
|
11894
|
+
403: unknown;
|
|
11895
|
+
/**
|
|
11896
|
+
* Not Found
|
|
11897
|
+
*/
|
|
11898
|
+
404: unknown;
|
|
11899
|
+
};
|
|
11900
|
+
export type DeleteAMonitorResponses = {
|
|
11901
|
+
/**
|
|
11902
|
+
* No Content
|
|
11903
|
+
*/
|
|
11904
|
+
204: void;
|
|
11905
|
+
};
|
|
11906
|
+
export type DeleteAMonitorResponse = DeleteAMonitorResponses[keyof DeleteAMonitorResponses];
|
|
11907
|
+
export type FetchAMonitorData = {
|
|
11908
|
+
body?: never;
|
|
11909
|
+
path: {
|
|
11910
|
+
/**
|
|
11911
|
+
* The ID or slug of the organization the resource belongs to.
|
|
11912
|
+
*/
|
|
11913
|
+
organization_id_or_slug: string;
|
|
11914
|
+
/**
|
|
11915
|
+
* The ID of the monitor you'd like to query.
|
|
11916
|
+
*/
|
|
11917
|
+
detector_id: number;
|
|
11918
|
+
};
|
|
11919
|
+
query?: never;
|
|
11920
|
+
url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
|
|
11921
|
+
};
|
|
11922
|
+
export type FetchAMonitorErrors = {
|
|
11923
|
+
/**
|
|
11924
|
+
* Bad Request
|
|
11925
|
+
*/
|
|
11926
|
+
400: unknown;
|
|
11927
|
+
/**
|
|
11928
|
+
* Unauthorized
|
|
11929
|
+
*/
|
|
11930
|
+
401: unknown;
|
|
11931
|
+
/**
|
|
11932
|
+
* Forbidden
|
|
11933
|
+
*/
|
|
11934
|
+
403: unknown;
|
|
11935
|
+
/**
|
|
11936
|
+
* Not Found
|
|
11937
|
+
*/
|
|
11938
|
+
404: unknown;
|
|
11939
|
+
};
|
|
11940
|
+
export type FetchAMonitorResponses = {
|
|
11941
|
+
200: {
|
|
11942
|
+
owner?: {
|
|
11943
|
+
type: 'user' | 'team';
|
|
11944
|
+
id: string;
|
|
11945
|
+
name: string;
|
|
11946
|
+
email?: string;
|
|
11947
|
+
} | null;
|
|
11948
|
+
createdBy?: string | null;
|
|
11949
|
+
latestGroup?: {
|
|
11950
|
+
[key: string]: unknown;
|
|
11951
|
+
} | null;
|
|
11952
|
+
description?: string | null;
|
|
11953
|
+
id: string;
|
|
11954
|
+
projectId: string;
|
|
11955
|
+
name: string;
|
|
11956
|
+
type: string;
|
|
11957
|
+
workflowIds: Array<string> | null;
|
|
11958
|
+
dateCreated: string;
|
|
11959
|
+
dateUpdated: string;
|
|
11960
|
+
dataSources: Array<{
|
|
11961
|
+
[key: string]: unknown;
|
|
11962
|
+
}> | null;
|
|
11963
|
+
conditionGroup: {
|
|
11964
|
+
[key: string]: unknown;
|
|
11965
|
+
} | null;
|
|
11966
|
+
config: {
|
|
11967
|
+
[key: string]: unknown;
|
|
11968
|
+
};
|
|
11969
|
+
enabled: boolean;
|
|
11970
|
+
openIssues: number;
|
|
11971
|
+
};
|
|
11972
|
+
};
|
|
11973
|
+
export type FetchAMonitorResponse = FetchAMonitorResponses[keyof FetchAMonitorResponses];
|
|
11974
|
+
export type UpdateAMonitorByIdData = {
|
|
11785
11975
|
/**
|
|
11786
11976
|
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
11787
11977
|
*
|
|
@@ -11989,11 +12179,15 @@ export type CreateAMonitorForAProjectData = {
|
|
|
11989
12179
|
* The ID or slug of the organization the resource belongs to.
|
|
11990
12180
|
*/
|
|
11991
12181
|
organization_id_or_slug: string;
|
|
12182
|
+
/**
|
|
12183
|
+
* The ID of the monitor you'd like to query.
|
|
12184
|
+
*/
|
|
12185
|
+
detector_id: number;
|
|
11992
12186
|
};
|
|
11993
12187
|
query?: never;
|
|
11994
|
-
url: '/api/0/organizations/{organization_id_or_slug}/detectors/';
|
|
12188
|
+
url: '/api/0/organizations/{organization_id_or_slug}/detectors/{detector_id}/';
|
|
11995
12189
|
};
|
|
11996
|
-
export type
|
|
12190
|
+
export type UpdateAMonitorByIdErrors = {
|
|
11997
12191
|
/**
|
|
11998
12192
|
* Bad Request
|
|
11999
12193
|
*/
|
|
@@ -12011,8 +12205,8 @@ export type CreateAMonitorForAProjectErrors = {
|
|
|
12011
12205
|
*/
|
|
12012
12206
|
404: unknown;
|
|
12013
12207
|
};
|
|
12014
|
-
export type
|
|
12015
|
-
|
|
12208
|
+
export type UpdateAMonitorByIdResponses = {
|
|
12209
|
+
200: {
|
|
12016
12210
|
owner?: {
|
|
12017
12211
|
type: 'user' | 'team';
|
|
12018
12212
|
id: string;
|
|
@@ -12044,14 +12238,9 @@ export type CreateAMonitorForAProjectResponses = {
|
|
|
12044
12238
|
openIssues: number;
|
|
12045
12239
|
};
|
|
12046
12240
|
};
|
|
12047
|
-
export type
|
|
12048
|
-
export type
|
|
12049
|
-
body
|
|
12050
|
-
/**
|
|
12051
|
-
* Whether to enable or disable the monitors
|
|
12052
|
-
*/
|
|
12053
|
-
enabled: boolean;
|
|
12054
|
-
};
|
|
12241
|
+
export type UpdateAMonitorByIdResponse = UpdateAMonitorByIdResponses[keyof UpdateAMonitorByIdResponses];
|
|
12242
|
+
export type ListAnOrganizationSDiscoverSavedQueriesData = {
|
|
12243
|
+
body?: never;
|
|
12055
12244
|
path: {
|
|
12056
12245
|
/**
|
|
12057
12246
|
* The ID or slug of the organization the resource belongs to.
|
|
@@ -12060,39 +12249,38 @@ export type MutateAnOrganizationSMonitorsData = {
|
|
|
12060
12249
|
};
|
|
12061
12250
|
query?: {
|
|
12062
12251
|
/**
|
|
12063
|
-
*
|
|
12064
|
-
* For example, the following are valid parameters:
|
|
12065
|
-
* - `/?project=1234&project=56789`
|
|
12066
|
-
* - `/?project=-1`
|
|
12067
|
-
*
|
|
12252
|
+
* Limit the number of rows to return in the result. Default and maximum allowed is 100.
|
|
12068
12253
|
*/
|
|
12069
|
-
|
|
12254
|
+
per_page?: number;
|
|
12070
12255
|
/**
|
|
12071
|
-
*
|
|
12256
|
+
* A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
|
|
12257
|
+
*/
|
|
12258
|
+
cursor?: string;
|
|
12259
|
+
/**
|
|
12260
|
+
* The name of the Discover query you'd like to filter by.
|
|
12261
|
+
*/
|
|
12262
|
+
query?: string;
|
|
12263
|
+
/**
|
|
12264
|
+
* The property to sort results by. If not specified, the results are sorted by query name.
|
|
12072
12265
|
*
|
|
12073
12266
|
* Available fields are:
|
|
12074
12267
|
* - `name`
|
|
12075
|
-
* - `
|
|
12076
|
-
* - `
|
|
12268
|
+
* - `dateCreated`
|
|
12269
|
+
* - `dateUpdated`
|
|
12270
|
+
* - `mostPopular`
|
|
12271
|
+
* - `recentlyViewed`
|
|
12272
|
+
* - `myqueries`
|
|
12077
12273
|
*
|
|
12078
12274
|
*/
|
|
12079
|
-
|
|
12080
|
-
/**
|
|
12081
|
-
* The ID of the monitor you'd like to query.
|
|
12082
|
-
*/
|
|
12083
|
-
id?: Array<number>;
|
|
12275
|
+
sortBy?: string;
|
|
12084
12276
|
};
|
|
12085
|
-
url: '/api/0/organizations/{organization_id_or_slug}/
|
|
12277
|
+
url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
|
|
12086
12278
|
};
|
|
12087
|
-
export type
|
|
12279
|
+
export type ListAnOrganizationSDiscoverSavedQueriesErrors = {
|
|
12088
12280
|
/**
|
|
12089
12281
|
* Bad Request
|
|
12090
12282
|
*/
|
|
12091
12283
|
400: unknown;
|
|
12092
|
-
/**
|
|
12093
|
-
* Unauthorized
|
|
12094
|
-
*/
|
|
12095
|
-
401: unknown;
|
|
12096
12284
|
/**
|
|
12097
12285
|
* Forbidden
|
|
12098
12286
|
*/
|
|
@@ -12102,96 +12290,177 @@ export type MutateAnOrganizationSMonitorsErrors = {
|
|
|
12102
12290
|
*/
|
|
12103
12291
|
404: unknown;
|
|
12104
12292
|
};
|
|
12105
|
-
export type
|
|
12293
|
+
export type ListAnOrganizationSDiscoverSavedQueriesResponses = {
|
|
12106
12294
|
200: Array<{
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12295
|
+
environment?: Array<string>;
|
|
12296
|
+
query?: string;
|
|
12297
|
+
fields?: Array<string>;
|
|
12298
|
+
widths?: Array<string>;
|
|
12299
|
+
conditions?: Array<string>;
|
|
12300
|
+
aggregations?: Array<string>;
|
|
12301
|
+
range?: string;
|
|
12302
|
+
start?: string;
|
|
12303
|
+
end?: string;
|
|
12304
|
+
orderby?: string;
|
|
12305
|
+
limit?: string;
|
|
12306
|
+
yAxis?: Array<string>;
|
|
12307
|
+
display?: string;
|
|
12308
|
+
topEvents?: number;
|
|
12309
|
+
interval?: string;
|
|
12310
|
+
exploreQuery?: {
|
|
12115
12311
|
[key: string]: unknown;
|
|
12116
|
-
}
|
|
12117
|
-
description?: string | null;
|
|
12312
|
+
};
|
|
12118
12313
|
id: string;
|
|
12119
|
-
projectId: string;
|
|
12120
12314
|
name: string;
|
|
12121
|
-
|
|
12122
|
-
|
|
12315
|
+
projects: Array<number>;
|
|
12316
|
+
version: number;
|
|
12317
|
+
queryDataset: string;
|
|
12318
|
+
datasetSource: string;
|
|
12319
|
+
expired: boolean;
|
|
12123
12320
|
dateCreated: string;
|
|
12124
12321
|
dateUpdated: string;
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12322
|
+
createdBy: {
|
|
12323
|
+
identities?: Array<{
|
|
12324
|
+
id: string;
|
|
12325
|
+
name: string;
|
|
12326
|
+
organization: {
|
|
12327
|
+
slug: string;
|
|
12328
|
+
name: string;
|
|
12329
|
+
};
|
|
12330
|
+
provider: {
|
|
12331
|
+
id: string;
|
|
12332
|
+
name: string;
|
|
12333
|
+
};
|
|
12334
|
+
dateVerified: string;
|
|
12335
|
+
dateSynced: string;
|
|
12336
|
+
}>;
|
|
12337
|
+
avatar?: {
|
|
12338
|
+
avatarType?: string;
|
|
12339
|
+
avatarUuid?: string | null;
|
|
12340
|
+
avatarUrl?: string | null;
|
|
12341
|
+
};
|
|
12342
|
+
authenticators?: Array<unknown>;
|
|
12343
|
+
canReset2fa?: boolean;
|
|
12344
|
+
id: string;
|
|
12345
|
+
name: string;
|
|
12346
|
+
username: string;
|
|
12347
|
+
email: string;
|
|
12348
|
+
avatarUrl: string;
|
|
12349
|
+
isActive: boolean;
|
|
12350
|
+
hasPasswordAuth: boolean;
|
|
12351
|
+
isManaged: boolean;
|
|
12352
|
+
dateJoined: string;
|
|
12353
|
+
lastLogin: string | null;
|
|
12354
|
+
has2fa: boolean;
|
|
12355
|
+
lastActive: string | null;
|
|
12356
|
+
isSuperuser: boolean;
|
|
12357
|
+
isStaff: boolean;
|
|
12358
|
+
experiments: {
|
|
12359
|
+
[key: string]: unknown;
|
|
12360
|
+
};
|
|
12361
|
+
emails: Array<{
|
|
12362
|
+
id: string;
|
|
12363
|
+
email: string;
|
|
12364
|
+
is_verified: boolean;
|
|
12365
|
+
}>;
|
|
12133
12366
|
};
|
|
12134
|
-
enabled: boolean;
|
|
12135
|
-
openIssues: number;
|
|
12136
12367
|
}>;
|
|
12137
12368
|
};
|
|
12138
|
-
export type
|
|
12139
|
-
export type
|
|
12140
|
-
body
|
|
12141
|
-
path: {
|
|
12369
|
+
export type ListAnOrganizationSDiscoverSavedQueriesResponse = ListAnOrganizationSDiscoverSavedQueriesResponses[keyof ListAnOrganizationSDiscoverSavedQueriesResponses];
|
|
12370
|
+
export type CreateANewSavedQueryData = {
|
|
12371
|
+
body: {
|
|
12142
12372
|
/**
|
|
12143
|
-
* The
|
|
12373
|
+
* The user-defined saved query name.
|
|
12144
12374
|
*/
|
|
12145
|
-
|
|
12375
|
+
name: string;
|
|
12146
12376
|
/**
|
|
12147
|
-
* The
|
|
12377
|
+
* The saved projects filter for this query.
|
|
12148
12378
|
*/
|
|
12149
|
-
|
|
12379
|
+
projects?: Array<number>;
|
|
12380
|
+
/**
|
|
12381
|
+
* The dataset you would like to query. Note: `discover` is a **deprecated** value. The allowed values are: `error-events`, `transaction-like`
|
|
12382
|
+
*
|
|
12383
|
+
* * `discover`
|
|
12384
|
+
* * `error-events`
|
|
12385
|
+
* * `transaction-like`
|
|
12386
|
+
*/
|
|
12387
|
+
queryDataset?: 'discover' | 'error-events' | 'transaction-like';
|
|
12388
|
+
/**
|
|
12389
|
+
* The saved start time for this saved query.
|
|
12390
|
+
*/
|
|
12391
|
+
start?: string | null;
|
|
12392
|
+
/**
|
|
12393
|
+
* The saved end time for this saved query.
|
|
12394
|
+
*/
|
|
12395
|
+
end?: string | null;
|
|
12396
|
+
/**
|
|
12397
|
+
* The saved time range period for this saved query.
|
|
12398
|
+
*/
|
|
12399
|
+
range?: string | null;
|
|
12400
|
+
/**
|
|
12401
|
+
* 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:
|
|
12402
|
+
* - 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.
|
|
12403
|
+
* - example: `field=transaction`
|
|
12404
|
+
* - A tag. Tags should use the `tag[]` formatting to avoid ambiguity with any fields
|
|
12405
|
+
* - example: `field=tag[isEnterprise]`
|
|
12406
|
+
* - 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).
|
|
12407
|
+
* - when a function is included, Discover will group by any tags or fields
|
|
12408
|
+
* - example: `field=count_if(transaction.duration,greater,300)`
|
|
12409
|
+
* - An equation when prefixed with `equation|`. Read more about [equations here](/product/discover-queries/query-builder/query-equations/).
|
|
12410
|
+
* - example: `field=equation|count_if(transaction.duration,greater,300) / count() * 100`
|
|
12411
|
+
*
|
|
12412
|
+
*/
|
|
12413
|
+
fields?: Array<string> | null;
|
|
12414
|
+
/**
|
|
12415
|
+
* How to order the query results. Must be something in the `field` list, excluding equations.
|
|
12416
|
+
*/
|
|
12417
|
+
orderby?: string | null;
|
|
12418
|
+
/**
|
|
12419
|
+
* The name of environments to filter by.
|
|
12420
|
+
*/
|
|
12421
|
+
environment?: Array<string> | null;
|
|
12422
|
+
/**
|
|
12423
|
+
* Filters results by using [query syntax](/product/sentry-basics/search/).
|
|
12424
|
+
*/
|
|
12425
|
+
query?: string | null;
|
|
12426
|
+
/**
|
|
12427
|
+
* Aggregate functions to be plotted on the chart.
|
|
12428
|
+
*/
|
|
12429
|
+
yAxis?: Array<string> | null;
|
|
12430
|
+
/**
|
|
12431
|
+
* Visualization type for saved query chart. Allowed values are:
|
|
12432
|
+
* - default
|
|
12433
|
+
* - previous
|
|
12434
|
+
* - top5
|
|
12435
|
+
* - daily
|
|
12436
|
+
* - dailytop5
|
|
12437
|
+
* - bar
|
|
12438
|
+
*
|
|
12439
|
+
*/
|
|
12440
|
+
display?: string | null;
|
|
12441
|
+
/**
|
|
12442
|
+
* Number of top events' timeseries to be visualized.
|
|
12443
|
+
*/
|
|
12444
|
+
topEvents?: number | null;
|
|
12445
|
+
/**
|
|
12446
|
+
* Resolution of the time series.
|
|
12447
|
+
*/
|
|
12448
|
+
interval?: string | null;
|
|
12150
12449
|
};
|
|
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
12450
|
path: {
|
|
12174
12451
|
/**
|
|
12175
12452
|
* The ID or slug of the organization the resource belongs to.
|
|
12176
12453
|
*/
|
|
12177
12454
|
organization_id_or_slug: string;
|
|
12178
|
-
/**
|
|
12179
|
-
* The ID of the monitor you'd like to query.
|
|
12180
|
-
*/
|
|
12181
|
-
detector_id: number;
|
|
12182
12455
|
};
|
|
12183
12456
|
query?: never;
|
|
12184
|
-
url: '/api/0/organizations/{organization_id_or_slug}/
|
|
12457
|
+
url: '/api/0/organizations/{organization_id_or_slug}/discover/saved/';
|
|
12185
12458
|
};
|
|
12186
|
-
export type
|
|
12459
|
+
export type CreateANewSavedQueryErrors = {
|
|
12187
12460
|
/**
|
|
12188
12461
|
* Bad Request
|
|
12189
12462
|
*/
|
|
12190
12463
|
400: unknown;
|
|
12191
|
-
/**
|
|
12192
|
-
* Unauthorized
|
|
12193
|
-
*/
|
|
12194
|
-
401: unknown;
|
|
12195
12464
|
/**
|
|
12196
12465
|
* Forbidden
|
|
12197
12466
|
*/
|
|
@@ -12201,566 +12470,33 @@ export type FetchAMonitorErrors = {
|
|
|
12201
12470
|
*/
|
|
12202
12471
|
404: unknown;
|
|
12203
12472
|
};
|
|
12204
|
-
export type
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12213
|
-
|
|
12473
|
+
export type CreateANewSavedQueryResponses = {
|
|
12474
|
+
201: {
|
|
12475
|
+
environment?: Array<string>;
|
|
12476
|
+
query?: string;
|
|
12477
|
+
fields?: Array<string>;
|
|
12478
|
+
widths?: Array<string>;
|
|
12479
|
+
conditions?: Array<string>;
|
|
12480
|
+
aggregations?: Array<string>;
|
|
12481
|
+
range?: string;
|
|
12482
|
+
start?: string;
|
|
12483
|
+
end?: string;
|
|
12484
|
+
orderby?: string;
|
|
12485
|
+
limit?: string;
|
|
12486
|
+
yAxis?: Array<string>;
|
|
12487
|
+
display?: string;
|
|
12488
|
+
topEvents?: number;
|
|
12489
|
+
interval?: string;
|
|
12490
|
+
exploreQuery?: {
|
|
12214
12491
|
[key: string]: unknown;
|
|
12215
|
-
}
|
|
12216
|
-
description?: string | null;
|
|
12492
|
+
};
|
|
12217
12493
|
id: string;
|
|
12218
|
-
projectId: string;
|
|
12219
12494
|
name: string;
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
|
|
12223
|
-
|
|
12224
|
-
|
|
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
|
-
};
|
|
12757
|
-
id: string;
|
|
12758
|
-
name: string;
|
|
12759
|
-
projects: Array<number>;
|
|
12760
|
-
version: number;
|
|
12761
|
-
queryDataset: string;
|
|
12762
|
-
datasetSource: string;
|
|
12763
|
-
expired: boolean;
|
|
12495
|
+
projects: Array<number>;
|
|
12496
|
+
version: number;
|
|
12497
|
+
queryDataset: string;
|
|
12498
|
+
datasetSource: string;
|
|
12499
|
+
expired: boolean;
|
|
12764
12500
|
dateCreated: string;
|
|
12765
12501
|
dateUpdated: string;
|
|
12766
12502
|
createdBy: {
|
|
@@ -18310,36 +18046,202 @@ export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganization
|
|
|
18310
18046
|
flakeRatePercentChange: number;
|
|
18311
18047
|
};
|
|
18312
18048
|
};
|
|
18313
|
-
export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponse = RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses[keyof RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses];
|
|
18314
|
-
export type RetrieveTestSuitesBelongingToARepositorySTestResultsData = {
|
|
18049
|
+
export type RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponse = RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses[keyof RetrieveAggregatedTestResultMetricsForRepositoryOwnerAndOrganizationResponses];
|
|
18050
|
+
export type RetrieveTestSuitesBelongingToARepositorySTestResultsData = {
|
|
18051
|
+
body?: never;
|
|
18052
|
+
path: {
|
|
18053
|
+
/**
|
|
18054
|
+
* The ID or slug of the organization the resource belongs to.
|
|
18055
|
+
*/
|
|
18056
|
+
organization_id_or_slug: string;
|
|
18057
|
+
/**
|
|
18058
|
+
* The owner of the repository.
|
|
18059
|
+
*/
|
|
18060
|
+
owner: string;
|
|
18061
|
+
/**
|
|
18062
|
+
* The name of the repository.
|
|
18063
|
+
*/
|
|
18064
|
+
repository: string;
|
|
18065
|
+
};
|
|
18066
|
+
query?: {
|
|
18067
|
+
/**
|
|
18068
|
+
* The term substring to filter name strings by using the `contains` operator.
|
|
18069
|
+
*/
|
|
18070
|
+
term?: string;
|
|
18071
|
+
};
|
|
18072
|
+
url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-suites/';
|
|
18073
|
+
};
|
|
18074
|
+
export type RetrieveTestSuitesBelongingToARepositorySTestResultsErrors = {
|
|
18075
|
+
/**
|
|
18076
|
+
* Bad Request
|
|
18077
|
+
*/
|
|
18078
|
+
400: unknown;
|
|
18079
|
+
/**
|
|
18080
|
+
* Forbidden
|
|
18081
|
+
*/
|
|
18082
|
+
403: unknown;
|
|
18083
|
+
/**
|
|
18084
|
+
* Not Found
|
|
18085
|
+
*/
|
|
18086
|
+
404: unknown;
|
|
18087
|
+
};
|
|
18088
|
+
export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponses = {
|
|
18089
|
+
/**
|
|
18090
|
+
* Serializer for test suites belonging to a repository's test results
|
|
18091
|
+
*/
|
|
18092
|
+
200: {
|
|
18093
|
+
testSuites: Array<string>;
|
|
18094
|
+
};
|
|
18095
|
+
};
|
|
18096
|
+
export type RetrieveTestSuitesBelongingToARepositorySTestResultsResponse = RetrieveTestSuitesBelongingToARepositorySTestResultsResponses[keyof RetrieveTestSuitesBelongingToARepositorySTestResultsResponses];
|
|
18097
|
+
export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenData = {
|
|
18098
|
+
body?: never;
|
|
18099
|
+
path: {
|
|
18100
|
+
/**
|
|
18101
|
+
* The ID or slug of the organization the resource belongs to.
|
|
18102
|
+
*/
|
|
18103
|
+
organization_id_or_slug: string;
|
|
18104
|
+
/**
|
|
18105
|
+
* The owner of the repository.
|
|
18106
|
+
*/
|
|
18107
|
+
owner: string;
|
|
18108
|
+
/**
|
|
18109
|
+
* The name of the repository.
|
|
18110
|
+
*/
|
|
18111
|
+
repository: string;
|
|
18112
|
+
};
|
|
18113
|
+
query?: never;
|
|
18114
|
+
url: '/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/token/regenerate/';
|
|
18115
|
+
};
|
|
18116
|
+
export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenErrors = {
|
|
18117
|
+
/**
|
|
18118
|
+
* Bad Request
|
|
18119
|
+
*/
|
|
18120
|
+
400: unknown;
|
|
18121
|
+
/**
|
|
18122
|
+
* Forbidden
|
|
18123
|
+
*/
|
|
18124
|
+
403: unknown;
|
|
18125
|
+
/**
|
|
18126
|
+
* Not Found
|
|
18127
|
+
*/
|
|
18128
|
+
404: unknown;
|
|
18129
|
+
};
|
|
18130
|
+
export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses = {
|
|
18131
|
+
/**
|
|
18132
|
+
* Serializer for repositories response
|
|
18133
|
+
*/
|
|
18134
|
+
200: {
|
|
18135
|
+
token: string;
|
|
18136
|
+
};
|
|
18137
|
+
};
|
|
18138
|
+
export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponse = RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses[keyof RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses];
|
|
18139
|
+
export type ListAnOrganizationSClientKeysData = {
|
|
18140
|
+
body?: never;
|
|
18141
|
+
path: {
|
|
18142
|
+
/**
|
|
18143
|
+
* The ID or slug of the organization the resource belongs to.
|
|
18144
|
+
*/
|
|
18145
|
+
organization_id_or_slug: string;
|
|
18146
|
+
};
|
|
18147
|
+
query?: {
|
|
18148
|
+
/**
|
|
18149
|
+
* A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
|
|
18150
|
+
*/
|
|
18151
|
+
cursor?: string;
|
|
18152
|
+
/**
|
|
18153
|
+
* Filter keys by team slug or ID. If provided, only keys for projects belonging to this team will be returned.
|
|
18154
|
+
*/
|
|
18155
|
+
team?: string;
|
|
18156
|
+
/**
|
|
18157
|
+
* Filter keys by status. Options are 'active' or 'inactive'.
|
|
18158
|
+
*
|
|
18159
|
+
* * `active`
|
|
18160
|
+
* * `inactive`
|
|
18161
|
+
*/
|
|
18162
|
+
status?: 'active' | 'inactive';
|
|
18163
|
+
};
|
|
18164
|
+
url: '/api/0/organizations/{organization_id_or_slug}/project-keys/';
|
|
18165
|
+
};
|
|
18166
|
+
export type ListAnOrganizationSClientKeysErrors = {
|
|
18167
|
+
/**
|
|
18168
|
+
* Bad Request
|
|
18169
|
+
*/
|
|
18170
|
+
400: unknown;
|
|
18171
|
+
/**
|
|
18172
|
+
* Forbidden
|
|
18173
|
+
*/
|
|
18174
|
+
403: unknown;
|
|
18175
|
+
/**
|
|
18176
|
+
* Not Found
|
|
18177
|
+
*/
|
|
18178
|
+
404: unknown;
|
|
18179
|
+
};
|
|
18180
|
+
export type ListAnOrganizationSClientKeysResponses = {
|
|
18181
|
+
200: Array<{
|
|
18182
|
+
id: string;
|
|
18183
|
+
name: string;
|
|
18184
|
+
label: string;
|
|
18185
|
+
public: string | null;
|
|
18186
|
+
secret: string | null;
|
|
18187
|
+
projectId: number;
|
|
18188
|
+
isActive: boolean;
|
|
18189
|
+
rateLimit: {
|
|
18190
|
+
window: number;
|
|
18191
|
+
count: number;
|
|
18192
|
+
} | null;
|
|
18193
|
+
dsn: {
|
|
18194
|
+
secret: string;
|
|
18195
|
+
public: string;
|
|
18196
|
+
csp: string;
|
|
18197
|
+
security: string;
|
|
18198
|
+
minidump: string;
|
|
18199
|
+
nel: string;
|
|
18200
|
+
unreal: string;
|
|
18201
|
+
crons: string;
|
|
18202
|
+
cdn: string;
|
|
18203
|
+
playstation: string;
|
|
18204
|
+
integration: string;
|
|
18205
|
+
otlp_traces: string;
|
|
18206
|
+
otlp_logs: string;
|
|
18207
|
+
};
|
|
18208
|
+
browserSdkVersion: string;
|
|
18209
|
+
browserSdk: {
|
|
18210
|
+
choices: Array<Array<string>>;
|
|
18211
|
+
};
|
|
18212
|
+
dateCreated: string | null;
|
|
18213
|
+
dynamicSdkLoaderOptions: {
|
|
18214
|
+
hasReplay: boolean;
|
|
18215
|
+
hasPerformance: boolean;
|
|
18216
|
+
hasDebug: boolean;
|
|
18217
|
+
hasFeedback: boolean;
|
|
18218
|
+
hasLogsAndMetrics: boolean;
|
|
18219
|
+
};
|
|
18220
|
+
useCase?: string;
|
|
18221
|
+
}>;
|
|
18222
|
+
};
|
|
18223
|
+
export type ListAnOrganizationSClientKeysResponse = ListAnOrganizationSClientKeysResponses[keyof ListAnOrganizationSClientKeysResponses];
|
|
18224
|
+
export type ListAnOrganizationSProjectsData = {
|
|
18315
18225
|
body?: never;
|
|
18316
18226
|
path: {
|
|
18317
18227
|
/**
|
|
18318
18228
|
* The ID or slug of the organization the resource belongs to.
|
|
18319
18229
|
*/
|
|
18320
18230
|
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
18231
|
};
|
|
18330
18232
|
query?: {
|
|
18331
18233
|
/**
|
|
18332
|
-
*
|
|
18234
|
+
* A pointer to the last object fetched and its sort order; used to retrieve the next or previous results.
|
|
18333
18235
|
*/
|
|
18334
|
-
|
|
18236
|
+
cursor?: string;
|
|
18335
18237
|
};
|
|
18336
|
-
url: '/api/0/organizations/{organization_id_or_slug}/
|
|
18238
|
+
url: '/api/0/organizations/{organization_id_or_slug}/projects/';
|
|
18337
18239
|
};
|
|
18338
|
-
export type
|
|
18240
|
+
export type ListAnOrganizationSProjectsErrors = {
|
|
18339
18241
|
/**
|
|
18340
|
-
*
|
|
18242
|
+
* Unauthorized
|
|
18341
18243
|
*/
|
|
18342
|
-
|
|
18244
|
+
401: unknown;
|
|
18343
18245
|
/**
|
|
18344
18246
|
* Forbidden
|
|
18345
18247
|
*/
|
|
@@ -18349,159 +18251,291 @@ export type RetrieveTestSuitesBelongingToARepositorySTestResultsErrors = {
|
|
|
18349
18251
|
*/
|
|
18350
18252
|
404: unknown;
|
|
18351
18253
|
};
|
|
18352
|
-
export type
|
|
18254
|
+
export type ListAnOrganizationSProjectsResponses = {
|
|
18255
|
+
200: Array<{
|
|
18256
|
+
latestDeploys?: {
|
|
18257
|
+
[key: string]: {
|
|
18258
|
+
[key: string]: string;
|
|
18259
|
+
};
|
|
18260
|
+
} | null;
|
|
18261
|
+
options?: {
|
|
18262
|
+
[key: string]: unknown;
|
|
18263
|
+
};
|
|
18264
|
+
stats?: unknown;
|
|
18265
|
+
transactionStats?: unknown;
|
|
18266
|
+
sessionStats?: unknown;
|
|
18267
|
+
id: string;
|
|
18268
|
+
slug: string;
|
|
18269
|
+
name: string;
|
|
18270
|
+
platform: string | null;
|
|
18271
|
+
dateCreated: string;
|
|
18272
|
+
isBookmarked: boolean;
|
|
18273
|
+
isMember: boolean;
|
|
18274
|
+
features: Array<string>;
|
|
18275
|
+
firstEvent: string | null;
|
|
18276
|
+
firstTransactionEvent: boolean;
|
|
18277
|
+
access: Array<string>;
|
|
18278
|
+
hasAccess: boolean;
|
|
18279
|
+
hasFeedbacks: boolean;
|
|
18280
|
+
hasFlags: boolean;
|
|
18281
|
+
hasMinifiedStackTrace: boolean;
|
|
18282
|
+
hasMonitors: boolean;
|
|
18283
|
+
hasNewFeedbacks: boolean;
|
|
18284
|
+
hasProfiles: boolean;
|
|
18285
|
+
hasReplays: boolean;
|
|
18286
|
+
hasSessions: boolean;
|
|
18287
|
+
hasInsightsHttp: boolean;
|
|
18288
|
+
hasInsightsDb: boolean;
|
|
18289
|
+
hasInsightsAssets: boolean;
|
|
18290
|
+
hasInsightsAppStart: boolean;
|
|
18291
|
+
hasInsightsScreenLoad: boolean;
|
|
18292
|
+
hasInsightsVitals: boolean;
|
|
18293
|
+
hasInsightsCaches: boolean;
|
|
18294
|
+
hasInsightsQueues: boolean;
|
|
18295
|
+
hasInsightsAgentMonitoring: boolean;
|
|
18296
|
+
hasInsightsMCP: boolean;
|
|
18297
|
+
hasLogs: boolean;
|
|
18298
|
+
hasTraceMetrics: boolean;
|
|
18299
|
+
team: {
|
|
18300
|
+
id: string;
|
|
18301
|
+
name: string;
|
|
18302
|
+
slug: string;
|
|
18303
|
+
} | null;
|
|
18304
|
+
teams: Array<{
|
|
18305
|
+
id: string;
|
|
18306
|
+
name: string;
|
|
18307
|
+
slug: string;
|
|
18308
|
+
}>;
|
|
18309
|
+
platforms: Array<string>;
|
|
18310
|
+
hasUserReports: boolean;
|
|
18311
|
+
environments: Array<string>;
|
|
18312
|
+
latestRelease: {
|
|
18313
|
+
version: string;
|
|
18314
|
+
} | null;
|
|
18315
|
+
}>;
|
|
18316
|
+
};
|
|
18317
|
+
export type ListAnOrganizationSProjectsResponse = ListAnOrganizationSProjectsResponses[keyof ListAnOrganizationSProjectsResponses];
|
|
18318
|
+
export type CreateAMonitorForAProjectData = {
|
|
18353
18319
|
/**
|
|
18354
|
-
*
|
|
18320
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
18321
|
+
*
|
|
18322
|
+
* Errors are output in camel case.
|
|
18355
18323
|
*/
|
|
18356
|
-
|
|
18357
|
-
|
|
18358
|
-
|
|
18359
|
-
|
|
18360
|
-
|
|
18361
|
-
|
|
18362
|
-
|
|
18363
|
-
|
|
18324
|
+
body: {
|
|
18325
|
+
/**
|
|
18326
|
+
* Name of the monitor.
|
|
18327
|
+
*/
|
|
18328
|
+
name: string;
|
|
18329
|
+
/**
|
|
18330
|
+
* The type of monitor - `metric_issue`.
|
|
18331
|
+
*/
|
|
18332
|
+
type: string;
|
|
18333
|
+
/**
|
|
18334
|
+
* The IDs of the alerts to connect this monitor to. Use the 'Fetch Alerts' endpoint to find the IDs.
|
|
18335
|
+
*/
|
|
18336
|
+
workflow_ids?: Array<number>;
|
|
18337
|
+
/**
|
|
18338
|
+
*
|
|
18339
|
+
* The data sources for the monitor to use based on what you want to measure.
|
|
18340
|
+
*
|
|
18341
|
+
* **Number of Errors Metric Monitor**
|
|
18342
|
+
* ```json
|
|
18343
|
+
* [
|
|
18344
|
+
* {
|
|
18345
|
+
* "aggregate": "count()",
|
|
18346
|
+
* "dataset" : "events",
|
|
18347
|
+
* "environment": "prod",
|
|
18348
|
+
* "eventTypes": ["default", "error"],
|
|
18349
|
+
* "query": "is:unresolved",
|
|
18350
|
+
* "queryType": 0,
|
|
18351
|
+
* "timeWindow": 3600,
|
|
18352
|
+
* },
|
|
18353
|
+
* ],
|
|
18354
|
+
* ```
|
|
18355
|
+
*
|
|
18356
|
+
* **Users Experiencing Errors Metric Monitor**
|
|
18357
|
+
* ```json
|
|
18358
|
+
* [
|
|
18359
|
+
* {
|
|
18360
|
+
* "aggregate": "count_unique(tags[sentry:user])",
|
|
18361
|
+
* "dataset" : "events",
|
|
18362
|
+
* "environment": "prod",
|
|
18363
|
+
* "eventTypes": ["default", "error"],
|
|
18364
|
+
* "query": "is:unresolved",
|
|
18365
|
+
* "queryType": 0,
|
|
18366
|
+
* "timeWindow": 3600,
|
|
18367
|
+
* },
|
|
18368
|
+
* ],
|
|
18369
|
+
* ```
|
|
18370
|
+
*
|
|
18371
|
+
*
|
|
18372
|
+
* **Throughput Metric Monitor**
|
|
18373
|
+
* ```json
|
|
18374
|
+
* [
|
|
18375
|
+
* {
|
|
18376
|
+
* "aggregate":"count(span.duration)",
|
|
18377
|
+
* "dataset":"events_analytics_platform",
|
|
18378
|
+
* "environment":"prod",
|
|
18379
|
+
* "eventTypes":["trace_item_span"]
|
|
18380
|
+
* "query":"",
|
|
18381
|
+
* "queryType":1,
|
|
18382
|
+
* "timeWindow":3600,
|
|
18383
|
+
* "extrapolationMode":"unknown",
|
|
18384
|
+
* },
|
|
18385
|
+
* ],
|
|
18386
|
+
* ```
|
|
18387
|
+
*
|
|
18388
|
+
* **Duration Metric Monitor**
|
|
18389
|
+
* ```json
|
|
18390
|
+
* [
|
|
18391
|
+
* {
|
|
18392
|
+
* "aggregate":"p95(span.duration)",
|
|
18393
|
+
* "dataset":"events_analytics_platform",
|
|
18394
|
+
* "environment":"prod",
|
|
18395
|
+
* "eventTypes":["trace_item_span"]
|
|
18396
|
+
* "query":"",
|
|
18397
|
+
* "queryType":1,
|
|
18398
|
+
* "timeWindow":3600,
|
|
18399
|
+
* "extrapolationMode":"unknown",
|
|
18400
|
+
* },
|
|
18401
|
+
* ],
|
|
18402
|
+
* ```
|
|
18403
|
+
*
|
|
18404
|
+
* **Failure Rate Metric Monitor**
|
|
18405
|
+
* ```json
|
|
18406
|
+
* [
|
|
18407
|
+
* {
|
|
18408
|
+
* "aggregate":"failure_rate()",
|
|
18409
|
+
* "dataset":"events_analytics_platform",
|
|
18410
|
+
* "environment":"prod",
|
|
18411
|
+
* "eventTypes":["trace_item_span"]
|
|
18412
|
+
* "query":"",
|
|
18413
|
+
* "queryType":1,
|
|
18414
|
+
* "timeWindow":3600,
|
|
18415
|
+
* "extrapolationMode":"unknown",
|
|
18416
|
+
* },
|
|
18417
|
+
* ],
|
|
18418
|
+
* ```
|
|
18419
|
+
*
|
|
18420
|
+
* **Largest Contentful Paint Metric Monitor**
|
|
18421
|
+
* ```json
|
|
18422
|
+
* [
|
|
18423
|
+
* {
|
|
18424
|
+
* "aggregate":"p95(measurements.lcp)",
|
|
18425
|
+
* "dataset":"events_analytics_platform",
|
|
18426
|
+
* "environment":"prod",
|
|
18427
|
+
* "eventTypes":["trace_item_span"]
|
|
18428
|
+
* "query":"",
|
|
18429
|
+
* "queryType":1,
|
|
18430
|
+
* "timeWindow":3600,
|
|
18431
|
+
* "extrapolationMode":"unknown",
|
|
18432
|
+
* },
|
|
18433
|
+
* ],
|
|
18434
|
+
* ```
|
|
18435
|
+
*
|
|
18436
|
+
*/
|
|
18437
|
+
data_sources?: Array<unknown>;
|
|
18438
|
+
/**
|
|
18439
|
+
*
|
|
18440
|
+
* The issue detection type configuration.
|
|
18441
|
+
*
|
|
18442
|
+
*
|
|
18443
|
+
* - `detectionType`
|
|
18444
|
+
* - `static`: Threshold based monitor
|
|
18445
|
+
* - `percent`: Change based monitor
|
|
18446
|
+
* - `dynamic`: Dynamic monitor
|
|
18447
|
+
* - `comparisonDelta`: If selecting a **change** detection type, the comparison delta is the time period at which to compare against in minutes.
|
|
18448
|
+
* For example, a value of 3600 compares the metric tracked against data 1 hour ago.
|
|
18449
|
+
* - `300`: 5 minutes
|
|
18450
|
+
* - `900`: 15 minutes
|
|
18451
|
+
* - `3600`: 1 hour
|
|
18452
|
+
* - `86400`: 1 day
|
|
18453
|
+
* - `604800`: 1 week
|
|
18454
|
+
* - `2592000`: 1 month
|
|
18455
|
+
*
|
|
18456
|
+
* **Threshold**
|
|
18457
|
+
* ```json
|
|
18458
|
+
* {
|
|
18459
|
+
* "detectionType": "static",
|
|
18460
|
+
* }
|
|
18461
|
+
* ```
|
|
18462
|
+
* **Change**
|
|
18463
|
+
* ```json
|
|
18464
|
+
* {
|
|
18465
|
+
* "detectionType": "percent",
|
|
18466
|
+
* "comparisonDelta": 3600,
|
|
18467
|
+
* }
|
|
18468
|
+
* ```
|
|
18469
|
+
* **Dynamic**
|
|
18470
|
+
* ```json
|
|
18471
|
+
* {
|
|
18472
|
+
* "detectionType": "dynamic",
|
|
18473
|
+
* }
|
|
18474
|
+
* ```
|
|
18475
|
+
*
|
|
18476
|
+
*/
|
|
18477
|
+
config?: {
|
|
18478
|
+
[key: string]: unknown;
|
|
18479
|
+
};
|
|
18364
18480
|
/**
|
|
18365
|
-
*
|
|
18481
|
+
* Allows parameters to be defined in snake case, but passed as camel case.
|
|
18482
|
+
*
|
|
18483
|
+
* Errors are output in camel case.
|
|
18366
18484
|
*/
|
|
18367
|
-
|
|
18485
|
+
condition_group?: {
|
|
18486
|
+
id?: string;
|
|
18487
|
+
/**
|
|
18488
|
+
* * `any`
|
|
18489
|
+
* * `any-short`
|
|
18490
|
+
* * `all`
|
|
18491
|
+
* * `none`
|
|
18492
|
+
*/
|
|
18493
|
+
logic_type: 'any' | 'any-short' | 'all' | 'none';
|
|
18494
|
+
conditions?: Array<unknown>;
|
|
18495
|
+
};
|
|
18368
18496
|
/**
|
|
18369
|
-
*
|
|
18497
|
+
*
|
|
18498
|
+
* The ID user or team who owns the monitor or alert prefaced by the string 'user' or 'team'.
|
|
18499
|
+
*
|
|
18500
|
+
* **User**
|
|
18501
|
+
* ```json
|
|
18502
|
+
* "user:123456"
|
|
18503
|
+
* ```
|
|
18504
|
+
*
|
|
18505
|
+
* **Team**
|
|
18506
|
+
* ```json
|
|
18507
|
+
* "team:456789"
|
|
18508
|
+
* ```
|
|
18509
|
+
*
|
|
18370
18510
|
*/
|
|
18371
|
-
owner
|
|
18511
|
+
owner?: string | null;
|
|
18372
18512
|
/**
|
|
18373
|
-
*
|
|
18513
|
+
* A description of the monitor. Will be used in the resulting issue.
|
|
18374
18514
|
*/
|
|
18375
|
-
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
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;
|
|
18515
|
+
description?: string | null;
|
|
18516
|
+
/**
|
|
18517
|
+
* Set to False if you want to disable the monitor.
|
|
18518
|
+
*/
|
|
18519
|
+
enabled?: boolean;
|
|
18400
18520
|
};
|
|
18401
|
-
};
|
|
18402
|
-
export type RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponse = RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses[keyof RegeneratesARepositoryUploadTokenAndReturnsTheNewTokenResponses];
|
|
18403
|
-
export type ListAnOrganizationSClientKeysData = {
|
|
18404
|
-
body?: never;
|
|
18405
18521
|
path: {
|
|
18406
18522
|
/**
|
|
18407
18523
|
* The ID or slug of the organization the resource belongs to.
|
|
18408
18524
|
*/
|
|
18409
18525
|
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
18526
|
/**
|
|
18421
|
-
*
|
|
18422
|
-
*
|
|
18423
|
-
* * `active`
|
|
18424
|
-
* * `inactive`
|
|
18527
|
+
* The ID or slug of the project the resource belongs to.
|
|
18425
18528
|
*/
|
|
18426
|
-
|
|
18529
|
+
project_id_or_slug: string;
|
|
18427
18530
|
};
|
|
18428
|
-
|
|
18531
|
+
query?: never;
|
|
18532
|
+
url: '/api/0/organizations/{organization_id_or_slug}/projects/{project_id_or_slug}/detectors/';
|
|
18429
18533
|
};
|
|
18430
|
-
export type
|
|
18534
|
+
export type CreateAMonitorForAProjectErrors = {
|
|
18431
18535
|
/**
|
|
18432
18536
|
* Bad Request
|
|
18433
18537
|
*/
|
|
18434
18538
|
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
18539
|
/**
|
|
18506
18540
|
* Unauthorized
|
|
18507
18541
|
*/
|
|
@@ -18515,70 +18549,40 @@ export type ListAnOrganizationSProjectsErrors = {
|
|
|
18515
18549
|
*/
|
|
18516
18550
|
404: unknown;
|
|
18517
18551
|
};
|
|
18518
|
-
export type
|
|
18519
|
-
|
|
18520
|
-
|
|
18521
|
-
|
|
18522
|
-
|
|
18523
|
-
|
|
18552
|
+
export type CreateAMonitorForAProjectResponses = {
|
|
18553
|
+
201: {
|
|
18554
|
+
owner?: {
|
|
18555
|
+
type: 'user' | 'team';
|
|
18556
|
+
id: string;
|
|
18557
|
+
name: string;
|
|
18558
|
+
email?: string;
|
|
18524
18559
|
} | null;
|
|
18525
|
-
|
|
18560
|
+
createdBy?: string | null;
|
|
18561
|
+
latestGroup?: {
|
|
18526
18562
|
[key: string]: unknown;
|
|
18527
|
-
};
|
|
18528
|
-
|
|
18529
|
-
transactionStats?: unknown;
|
|
18530
|
-
sessionStats?: unknown;
|
|
18563
|
+
} | null;
|
|
18564
|
+
description?: string | null;
|
|
18531
18565
|
id: string;
|
|
18532
|
-
|
|
18566
|
+
projectId: string;
|
|
18533
18567
|
name: string;
|
|
18534
|
-
|
|
18568
|
+
type: string;
|
|
18569
|
+
workflowIds: Array<string> | null;
|
|
18535
18570
|
dateCreated: string;
|
|
18536
|
-
|
|
18537
|
-
|
|
18538
|
-
|
|
18539
|
-
|
|
18540
|
-
|
|
18541
|
-
|
|
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;
|
|
18571
|
+
dateUpdated: string;
|
|
18572
|
+
dataSources: Array<{
|
|
18573
|
+
[key: string]: unknown;
|
|
18574
|
+
}> | null;
|
|
18575
|
+
conditionGroup: {
|
|
18576
|
+
[key: string]: unknown;
|
|
18578
18577
|
} | null;
|
|
18579
|
-
|
|
18578
|
+
config: {
|
|
18579
|
+
[key: string]: unknown;
|
|
18580
|
+
};
|
|
18581
|
+
enabled: boolean;
|
|
18582
|
+
openIssues: number;
|
|
18583
|
+
};
|
|
18580
18584
|
};
|
|
18581
|
-
export type
|
|
18585
|
+
export type CreateAMonitorForAProjectResponse = CreateAMonitorForAProjectResponses[keyof CreateAMonitorForAProjectResponses];
|
|
18582
18586
|
export type ListAnOrganizationSTrustedRelaysData = {
|
|
18583
18587
|
body?: never;
|
|
18584
18588
|
path: {
|