Skip to content

Commit

Permalink
update route description and add routes to doc json file
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Feb 6, 2020
1 parent 20d3ea8 commit 0574d51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion x-pack/legacy/plugins/ml/server/routes/apidoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
"ValidateAnomalyDetector",
"ForecastAnomalyDetector",
"GetOverallBuckets",
"GetCategories"
"GetCategories",
"ResultsService",
"GetAnomaliesTableData",
"GetCategoryDefinition",
"GetMaxAnomalyScore",
"GetCategoryExamples",
"GetPartitionFieldsValues"
]
}
10 changes: 5 additions & 5 deletions x-pack/legacy/plugins/ml/server/routes/results_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function resultsServiceRoutes({ xpackMainPlugin, router }: RouteInitializ
*
* @api {post} /api/ml/results/max_anomaly_score Returns the maximum anomaly_score
* @apiName GetMaxAnomalyScore
* @apiDescription Returns the maximum anomaly_score for result_type:bucket over jobIds for the interval passed in
* @apiDescription Returns the maximum anomaly score of the bucket results for the request job ID(s) and time range
*/
router.post(
{
Expand Down Expand Up @@ -163,9 +163,9 @@ export function resultsServiceRoutes({ xpackMainPlugin, router }: RouteInitializ
/**
* @apiGroup ResultsService
*
* @api {post} /api/ml/results/category_examples Returns the maximum anomaly_score
* @api {post} /api/ml/results/category_examples Returns category examples
* @apiName GetCategoryExamples
* @apiDescription Returns the categorization examples for the categories with the specified IDs from the given index and job ID
* @apiDescription Returns examples for the categories with the specified IDs from the job with the supplied ID
*/
router.post(
{
Expand Down Expand Up @@ -194,9 +194,9 @@ export function resultsServiceRoutes({ xpackMainPlugin, router }: RouteInitializ
/**
* @apiGroup ResultsService
*
* @api {post} /api/ml/results/partition_fields_values Returns partition fields
* @api {post} /api/ml/results/partition_fields_values Returns partition fields values
* @apiName GetPartitionFieldsValues
* @apiDescription Returns the record of partition fields with possible values that fit the provided queries.
* @apiDescription Returns the partition fields with values that match the provided criteria for the specified job ID.
*/
router.post(
{
Expand Down

0 comments on commit 0574d51

Please sign in to comment.