2
2
3
3
All URIs are relative to * /*
4
4
5
- | Method | HTTP request | Description |
6
- | --------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
7
- | [ ** createAlertUsingPOST1** ] ( AlertsApi.md#createAlertUsingPOST1 ) | ** POST** /users-web/api/v3/alerts | Create alert rule |
8
- | [ ** deleteAlertRuleUsingDELETE1** ] ( AlertsApi.md#deleteAlertRuleUsingDELETE1 ) | ** DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
9
- | [ ** disableAlertRuleUsingPUT1** ] ( AlertsApi.md#disableAlertRuleUsingPUT1 ) | ** PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
10
- | [ ** enableAlertRuleUsingPUT1** ] ( AlertsApi.md#enableAlertRuleUsingPUT1 ) | ** PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
11
- | [ ** getAlertRulesForAppUsingGET** ] ( AlertsApi.md#getAlertRulesForAppUsingGET ) | ** GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
12
-
13
- <a name =" createAlertUsingPOST1 " ></a >
14
- # ** createAlertUsingPOST1**
15
- > AlertRuleResponse createAlertUsingPOST1(body)
5
+ | Method | HTTP request | Description |
6
+ | ----------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------- |
7
+ | [ ** createAlertUsingPOST** ] ( AlertsApi.md#createAlertUsingPOST ) | ** POST** /users-web/api/v3/alerts | Create alert rule |
8
+ | [ ** deleteAlertRuleUsingDELETE1** ] ( AlertsApi.md#deleteAlertRuleUsingDELETE1 ) | ** DELETE** /users-web/api/v3/alerts/{updateableAlertId} | Delete alert rule |
9
+ | [ ** disableAlertRuleUsingPUT** ] ( AlertsApi.md#disableAlertRuleUsingPUT ) | ** PUT** /users-web/api/v3/alerts/{updateableAlertId}/disable | Disable alert rule |
10
+ | [ ** enableAlertRuleUsingPUT** ] ( AlertsApi.md#enableAlertRuleUsingPUT ) | ** PUT** /users-web/api/v3/alerts/{updateableAlertId}/enable | Enable alert rule |
11
+ | [ ** getAlertRulesForAppUsingGET1** ] ( AlertsApi.md#getAlertRulesForAppUsingGET1 ) | ** GET** /users-web/api/v3/apps/{appId}/alerts | Get alert rules for an app |
12
+
13
+ <a name =" createAlertUsingPOST " ></a >
14
+
15
+ # ** createAlertUsingPOST**
16
+
17
+ > AlertRuleResponse createAlertUsingPOST(body)
16
18
17
19
Create alert rule
18
20
19
21
### Example
22
+
20
23
``` java
21
24
// Import classes:
22
25
// import com.sematext.cloud.ApiClient;
@@ -36,10 +39,10 @@ api_key.setApiKey("YOUR API KEY");
36
39
AlertsApi apiInstance = new AlertsApi ();
37
40
AlertRule body = new AlertRule (); // AlertRule | dto
38
41
try {
39
- AlertRuleResponse result = apiInstance. createAlertUsingPOST1 (body);
42
+ AlertRuleResponse result = apiInstance. createAlertUsingPOST (body);
40
43
System . out. println(result);
41
44
} catch (ApiException e) {
42
- System . err. println(" Exception when calling AlertsApi#createAlertUsingPOST1 " );
45
+ System . err. println(" Exception when calling AlertsApi#createAlertUsingPOST " );
43
46
e. printStackTrace();
44
47
}
45
48
```
@@ -60,16 +63,19 @@ try {
60
63
61
64
### HTTP request headers
62
65
63
- - ** Content-Type** : application/json
64
- - ** Accept** : application/json
66
+ - ** Content-Type** : application/json
67
+ - ** Accept** : application/json
65
68
66
69
<a name =" deleteAlertRuleUsingDELETE1 " ></a >
70
+
67
71
# ** deleteAlertRuleUsingDELETE1**
72
+
68
73
> GenericMapBasedApiResponse deleteAlertRuleUsingDELETE1(updateableAlertId)
69
74
70
75
Delete alert rule
71
76
72
77
### Example
78
+
73
79
``` java
74
80
// Import classes:
75
81
// import com.sematext.cloud.ApiClient;
@@ -113,16 +119,19 @@ try {
113
119
114
120
### HTTP request headers
115
121
116
- - ** Content-Type** : Not defined
117
- - ** Accept** : application/json
122
+ - ** Content-Type** : Not defined
123
+ - ** Accept** : application/json
124
+
125
+ <a name =" disableAlertRuleUsingPUT " ></a >
118
126
119
- < a name = " disableAlertRuleUsingPUT1 " ></ a >
120
- # ** disableAlertRuleUsingPUT1 **
121
- > GenericMapBasedApiResponse disableAlertRuleUsingPUT1 (updateableAlertId)
127
+ # ** disableAlertRuleUsingPUT **
128
+
129
+ > GenericMapBasedApiResponse disableAlertRuleUsingPUT (updateableAlertId)
122
130
123
131
Disable alert rule
124
132
125
133
### Example
134
+
126
135
``` java
127
136
// Import classes:
128
137
// import com.sematext.cloud.ApiClient;
@@ -142,10 +151,10 @@ api_key.setApiKey("YOUR API KEY");
142
151
AlertsApi apiInstance = new AlertsApi ();
143
152
Long updateableAlertId = 789L ; // Long | updateableAlertId
144
153
try {
145
- GenericMapBasedApiResponse result = apiInstance. disableAlertRuleUsingPUT1 (updateableAlertId);
154
+ GenericMapBasedApiResponse result = apiInstance. disableAlertRuleUsingPUT (updateableAlertId);
146
155
System . out. println(result);
147
156
} catch (ApiException e) {
148
- System . err. println(" Exception when calling AlertsApi#disableAlertRuleUsingPUT1 " );
157
+ System . err. println(" Exception when calling AlertsApi#disableAlertRuleUsingPUT " );
149
158
e. printStackTrace();
150
159
}
151
160
```
@@ -166,16 +175,19 @@ try {
166
175
167
176
### HTTP request headers
168
177
169
- - ** Content-Type** : Not defined
170
- - ** Accept** : application/json
178
+ - ** Content-Type** : Not defined
179
+ - ** Accept** : application/json
180
+
181
+ <a name =" enableAlertRuleUsingPUT " ></a >
182
+
183
+ # ** enableAlertRuleUsingPUT**
171
184
172
- <a name =" enableAlertRuleUsingPUT1 " ></a >
173
- # ** enableAlertRuleUsingPUT1**
174
- > GenericMapBasedApiResponse enableAlertRuleUsingPUT1(updateableAlertId)
185
+ > GenericMapBasedApiResponse enableAlertRuleUsingPUT(updateableAlertId)
175
186
176
187
Enable alert rule
177
188
178
189
### Example
190
+
179
191
``` java
180
192
// Import classes:
181
193
// import com.sematext.cloud.ApiClient;
@@ -195,10 +207,10 @@ api_key.setApiKey("YOUR API KEY");
195
207
AlertsApi apiInstance = new AlertsApi ();
196
208
Long updateableAlertId = 789L ; // Long | updateableAlertId
197
209
try {
198
- GenericMapBasedApiResponse result = apiInstance. enableAlertRuleUsingPUT1 (updateableAlertId);
210
+ GenericMapBasedApiResponse result = apiInstance. enableAlertRuleUsingPUT (updateableAlertId);
199
211
System . out. println(result);
200
212
} catch (ApiException e) {
201
- System . err. println(" Exception when calling AlertsApi#enableAlertRuleUsingPUT1 " );
213
+ System . err. println(" Exception when calling AlertsApi#enableAlertRuleUsingPUT " );
202
214
e. printStackTrace();
203
215
}
204
216
```
@@ -219,16 +231,19 @@ try {
219
231
220
232
### HTTP request headers
221
233
222
- - ** Content-Type** : Not defined
223
- - ** Accept** : application/json
234
+ - ** Content-Type** : Not defined
235
+ - ** Accept** : application/json
236
+
237
+ <a name =" getAlertRulesForAppUsingGET1 " ></a >
224
238
225
- < a name = " getAlertRulesForAppUsingGET " ></ a >
226
- # ** getAlertRulesForAppUsingGET **
227
- > AlertRulesResponse getAlertRulesForAppUsingGET (appId)
239
+ # ** getAlertRulesForAppUsingGET1 **
240
+
241
+ > AlertRulesResponse getAlertRulesForAppUsingGET1 (appId)
228
242
229
243
Get alert rules for an app
230
244
231
245
### Example
246
+
232
247
``` java
233
248
// Import classes:
234
249
// import com.sematext.cloud.ApiClient;
@@ -248,10 +263,10 @@ api_key.setApiKey("YOUR API KEY");
248
263
AlertsApi apiInstance = new AlertsApi ();
249
264
Long appId = 789L ; // Long | appId
250
265
try {
251
- AlertRulesResponse result = apiInstance. getAlertRulesForAppUsingGET (appId);
266
+ AlertRulesResponse result = apiInstance. getAlertRulesForAppUsingGET1 (appId);
252
267
System . out. println(result);
253
268
} catch (ApiException e) {
254
- System . err. println(" Exception when calling AlertsApi#getAlertRulesForAppUsingGET " );
269
+ System . err. println(" Exception when calling AlertsApi#getAlertRulesForAppUsingGET1 " );
255
270
e. printStackTrace();
256
271
}
257
272
```
@@ -272,5 +287,5 @@ try {
272
287
273
288
### HTTP request headers
274
289
275
- - ** Content-Type** : Not defined
276
- - ** Accept** : application/json
290
+ - ** Content-Type** : Not defined
291
+ - ** Accept** : application/json
0 commit comments