Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds missing ML API intros #1084

Merged
merged 1 commit into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 52 additions & 22 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ import { Id } from '@_types/common'
import { Time } from '@_types/Time'

/**
* Deletes a data frame analytics job.
* @rest_spec_name ml.delete_data_frame_analytics
* @since 7.3.0
* @stability stable
* @cluster_privileges manage_ml
*/
export interface Request extends RequestBase {
path_parts: {
Expand Down
3 changes: 2 additions & 1 deletion specification/ml/delete_job/MlDeleteJobRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'

/**
* Deletes an existing anomaly detection job.
* Deletes an anomaly detection job.
*
* All job configuration, model state and results are deleted.
* It is not currently possible to delete multiple jobs using wildcards or a
* comma separated list. If you delete a job that has a datafeed, the request
Expand Down
9 changes: 5 additions & 4 deletions specification/ml/get_categories/MlGetCategoriesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { CategoryId, Id } from '@_types/common'
import { integer } from '@_types/Numeric'

/**
* Retrieves anomaly detection job results for one or more categories.
* @rest_spec_name ml.get_categories
* @since 5.4.0
* @stability stable
Expand All @@ -49,15 +50,15 @@ export interface Request extends RequestBase {
* @server_default 0
*/
from?: integer
/**
* Only return categories for the specified partition.
*/
partition_field_value?: string
/**
* Specifies the maximum number of categories to obtain.
* @server_default 100
*/
size?: integer
/**
* Only return categories for the specified partition.
*/
partition_field_value?: string
}
body: {
page?: Page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ import { Definition, Input } from './types'
import { TrainedModelType } from '../_types/TrainedModel'

/**
* The create trained model API enables you to supply a trained model that is
* not created by data frame analytics.
* Enables you to supply a trained model that is not created by data frame analytics.
* @rest_spec_name ml.put_trained_model
* @since 7.10.0
* @stability stable
Expand Down
2 changes: 1 addition & 1 deletion specification/ml/reset_job/MlResetJobRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'

/**
* Resets an existing anomaly detection job.
* Resets an anomaly detection job.
* All model state and results are deleted. The job is ready to start over as if
* it had just been created.
* It is not currently possible to reset multiple jobs using wildcards or a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@

import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
/*
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { InferenceConfigContainer } from '@_types/aggregations/pipeline'
import { Definition, Input } from './types'
import { TrainedModelType } from '../_types/TrainedModel'
*/

/**
* Stops a trained model deployment.
* @rest_spec_name ml.stop_trained_model_deployment
Expand Down