moved metric part to be the suffix of the path
Original commit: elastic/x-pack-elasticsearch@6fc1b861ed
This commit is contained in:
parent
e396e8aa68
commit
14f43af818
|
@ -38,14 +38,14 @@ public class RestGetJobsAction extends BaseRestHandler {
|
|||
controller.registerHandler(RestRequest.Method.GET, PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/_stats",
|
||||
this);
|
||||
controller.registerHandler(RestRequest.Method.GET,
|
||||
PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/{metric}/_stats", this);
|
||||
PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/_stats/{metric}", this);
|
||||
controller.registerHandler(RestRequest.Method.GET, PrelertPlugin.BASE_PATH + "jobs/_stats", this);
|
||||
|
||||
// POSTs
|
||||
controller.registerHandler(RestRequest.Method.POST, PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/_stats",
|
||||
this);
|
||||
controller.registerHandler(RestRequest.Method.POST,
|
||||
PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/{metric}/_stats", this);
|
||||
PrelertPlugin.BASE_PATH + "jobs/{" + Job.ID.getPreferredName() + "}/_stats/{metric}", this);
|
||||
controller.registerHandler(RestRequest.Method.POST, PrelertPlugin.BASE_PATH + "jobs/_stats", this);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"paths": [
|
||||
"/_xpack/prelert/jobs/_stats",
|
||||
"/_xpack/prelert/jobs/{job_id}/_stats",
|
||||
"/_xpack/prelert/jobs/{job_id}/{metric}/_stats"
|
||||
"/_xpack/prelert/jobs/{job_id}/_stats/{metric}"
|
||||
],
|
||||
"parts": {
|
||||
"job_id": {
|
||||
|
|
Loading…
Reference in New Issue