-
Notifications
You must be signed in to change notification settings - Fork 1
/
HighLoadEndpoint.java
37 lines (33 loc) · 1.18 KB
/
HighLoadEndpoint.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package spp.demo.indicator;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
/**
* This class is used to demonstrate the `High Load Endpoint` indicator. This indicator will be automatically added
* to endpoints with the highest request rates and is visible in the gutter to the left of the editor.
* <p>
* <b>Usage:</b>
* N/A (automatically added)
* </p>
* <p>
* <b>Indicator source code:</b>
* <a href="https://github.com/sourceplusplus/jetbrains-commander/blob/master/resources/.spp/plugins/high-load-endpoint/plugin.kts">High Load Endpoint</a>
* </p>
*/
@Controller("/indicator")
public class HighLoadEndpoint {
/**
* Hover your mouse over the upwards chevron icon on line 26 to see the request rate (~6/second).
*/
@Get("/high-load-six-per-second")
public HttpResponse<Void> highLoad6PerSecond() {
return HttpResponse.ok();
}
/**
* Hover your mouse over the upwards chevron icon on line 34 to see the request rate (~3/second).
*/
@Get("/high-load-three-per-second")
public HttpResponse<Void> highLoad3PerSecond() {
return HttpResponse.ok();
}
}