Skip to content

Commit 2316703

Browse files
authored
[DOCS] Removes unnecessary resource definition pages (#44289)
* [DOCS] Removes calendar resource definition page * [DOCS] Removes scheduled event and filter resource definitions
1 parent af0d951 commit 2316703

10 files changed

+82
-37
lines changed

docs/reference/ml/apis/calendarresource.asciidoc

-15
This file was deleted.

docs/reference/ml/apis/get-calendar-event.asciidoc

+23-4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Retrieves information about the scheduled events in calendars.
2828
You can get scheduled event information for a single calendar or for all
2929
calendars by using `_all`.
3030

31+
For more information, see
32+
{stack-ov}/ml-calendars.html[Calendars and scheduled events].
33+
3134
[[ml-get-calendar-event-path-parms]]
3235
==== {api-path-parms-title}
3336

@@ -56,8 +59,26 @@ calendars by using `_all`.
5659
The API returns the following information:
5760

5861
`events`::
59-
(array) An array of scheduled event resources.
60-
For more information, see <<ml-event-resource>>.
62+
(array) An array of scheduled event resources. An events resource has the
63+
following properties:
64+
65+
`calendar_id`:::
66+
(string) An identifier for the calendar that contains the scheduled
67+
event.
68+
69+
`description`:::
70+
(string) A description of the scheduled event.
71+
72+
`end_time`:::
73+
(date) The timestamp for the end of the scheduled event
74+
in milliseconds since the epoch or ISO 8601 format.
75+
76+
`event_id`:::
77+
(string) An automatically-generated identifier for the scheduled event.
78+
79+
`start_time`:::
80+
(date) The timestamp for the beginning of the scheduled event
81+
in milliseconds since the epoch or ISO 8601 format.
6182

6283
[[ml-get-calendar-event-example]]
6384
==== {api-examples-title}
@@ -106,5 +127,3 @@ The API returns the following results:
106127
// TESTRESPONSE[s/LS8LJGEBMTCMA-qz49st/$body.$_path/]
107128
// TESTRESPONSE[s/Li8LJGEBMTCMA-qz49st/$body.$_path/]
108129
// TESTRESPONSE[s/Ly8LJGEBMTCMA-qz49st/$body.$_path/]
109-
110-
For more information about these properties, see <<ml-event-resource>>.

docs/reference/ml/apis/get-calendar.asciidoc

+10-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Retrieves configuration information for calendars.
2828
You can get information for a single calendar or for all calendars by using
2929
`_all`.
3030

31+
For more information, see
32+
{stack-ov}/ml-calendars.html[Calendars and scheduled events].
33+
3134
[[ml-get-calendar-path-parms]]
3235
==== {api-path-parms-title}
3336

@@ -50,8 +53,13 @@ You can get information for a single calendar or for all calendars by using
5053
The API returns the following information:
5154

5255
`calendars`::
53-
(array) An array of calendar resources.
54-
For more information, see <<ml-calendar-resource>>.
56+
(array) An array of calendar resources. A calendar resource has the following
57+
properties:
58+
`calendar_id`:::
59+
(string) A numerical character string that uniquely identifies the calendar.
60+
61+
`job_ids`:::
62+
(array) An array of job identifiers. For example: `["total-requests"]`.
5563

5664
[[ml-get-calendar-example]]
5765
==== {api-examples-title}

docs/reference/ml/apis/get-filter.asciidoc

+10-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,16 @@ You can get a single filter or all filters. For more information, see
4949
The API returns the following information:
5050

5151
`filters`::
52-
(array) An array of filter resources.
53-
For more information, see <<ml-filter-resource>>.
52+
(array) An array of filter resources. A filter resource has the following
53+
properties:
54+
`filter_id`:::
55+
(string) A string that uniquely identifies the filter.
56+
57+
`description`:::
58+
(string) A description of the filter.
59+
60+
`items`:::
61+
(array of strings) An array of strings which is the filter item list.
5462

5563
[[ml-get-filter-example]]
5664
==== {api-examples-title}

docs/reference/ml/apis/jobresource.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ A custom rule has the following properties:
438438
To add a scope for a field, add the field name as a key in the scope object and
439439
set its value to an object with the following properties:
440440
`filter_id`:::
441-
(string) The id of the <<ml-filter-resource,filter>> to be used.
441+
(string) The id of the filter to be used.
442442

443443
`filter_type`:::
444444
(string) Either `include` (the rule applies for values in the filter)

docs/reference/ml/apis/post-calendar-event.asciidoc

+16-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,22 @@ of which must have a start time, end time, and description.
3838
`events`::
3939
(Required, array) A list of one of more scheduled events. The event's start
4040
and end times may be specified as integer milliseconds since the epoch or as a
41-
string in ISO 8601 format. See <<ml-event-resource>>.
41+
string in ISO 8601 format. An event resource has the following properties:
42+
43+
`calendar_id`:::
44+
(Optional, string) An identifier for the calendar that contains the scheduled
45+
event.
46+
47+
`description`:::
48+
(Optional, string) A description of the scheduled event.
49+
50+
`end_time`:::
51+
(Required, date) The timestamp for the end of the scheduled event
52+
in milliseconds since the epoch or ISO 8601 format.
53+
54+
`start_time`:::
55+
(Required, date) The timestamp for the beginning of the scheduled event
56+
in milliseconds since the epoch or ISO 8601 format.
4257

4358
[[ml-post-calendar-event-example]]
4459
==== {api-examples-title}
@@ -87,6 +102,3 @@ The API returns the following results:
87102
}
88103
----
89104
// TESTRESPONSE
90-
91-
For more information about these properties, see
92-
<<ml-event-resource,Scheduled Event Resources>>.

docs/reference/ml/apis/put-calendar.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Instantiates a calendar.
2424
==== {api-description-title}
2525

2626
For more information, see
27-
{stack-ov}/ml-calendars.html[Calendars and Scheduled Events].
27+
{stack-ov}/ml-calendars.html[Calendars and scheduled events].
2828

2929
[[ml-put-calendar-path-parms]]
3030
==== {api-path-parms-title}

docs/reference/ml/apis/update-filter.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Updates the description of a filter, adds items, or removes items.
3333
(Optional, array of strings) The items to add to the filter.
3434

3535
`description`::
36-
(Optional, string) A description for the filter. See <<ml-filter-resource>>.
36+
(Optional, string) A description for the filter.
3737

3838
`remove_items`::
3939
(Optional, array of strings) The items to remove from the filter.

docs/reference/redirects.asciidoc

+20-1
Original file line numberDiff line numberDiff line change
@@ -620,4 +620,23 @@ without any configuration, if the total number of hits is not tracked.
620620
[role="exclude",id="xpack-api"]
621621
=== X-Pack APIs
622622

623-
{es} {xpack} APIs are now documented in <<rest-apis, REST APIs>>.
623+
{es} {xpack} APIs are now documented in <<rest-apis, REST APIs>>.
624+
625+
[role="exclude",id="ml-calendar-resource"]]
626+
=== Calendar resources
627+
628+
See <<ml-get-calendar>> and
629+
{stack-ov}/ml-calendars.html[Calendars and scheduled events].
630+
631+
[role="exclude",id="ml-filter-resource"]
632+
=== Filter resources
633+
634+
See <<ml-get-filter>> and
635+
{stack-ov}/ml-rules.html[Machine learning custom rules].
636+
637+
[role="exclude",id="ml-event-resource"]
638+
=== Scheduled event resources
639+
640+
See <<ml-get-calendar-event>> and
641+
{stack-ov}/ml-calendars.html[Calendars and scheduled events].
642+

docs/reference/rest-api/defs.asciidoc

-6
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,23 @@
55
These resource definitions are used in APIs related to {ml-features} and
66
{security-features} and in {kib} advanced {ml} job configuration options.
77

8-
* <<ml-calendar-resource,Calendars>>
98
* <<ml-datafeed-resource,{dfeeds-cap}>>
109
* <<ml-datafeed-counts,{dfeed-cap} counts>>
1110
* <<ml-dfanalytics-resources,{dfanalytics-cap}>>
1211
* <<data-frame-transform-resource,{dataframe-transforms-cap}>>
1312
* <<ml-evaluate-dfanalytics-resources,Evaluate {dfanalytics}>>
14-
* <<ml-filter-resource,Filters>>
1513
* <<ml-job-resource,Jobs>>
1614
* <<ml-jobstats,Job statistics>>
1715
* <<ml-snapshot-resource,Model snapshots>>
1816
* <<ml-results-resource,Results>>
1917
* <<role-mapping-resources,Role mappings>>
20-
* <<ml-event-resource,Scheduled Events>>
2118

22-
include::{es-repo-dir}/ml/apis/calendarresource.asciidoc[]
2319
include::{es-repo-dir}/ml/apis/datafeedresource.asciidoc[]
2420
include::{es-repo-dir}/ml/apis/dfanalyticsresources.asciidoc[]
2521
include::{es-repo-dir}/data-frames/apis/transformresource.asciidoc[]
2622
include::{es-repo-dir}/ml/apis/evaluateresources.asciidoc[]
27-
include::{es-repo-dir}/ml/apis/filterresource.asciidoc[]
2823
include::{es-repo-dir}/ml/apis/jobresource.asciidoc[]
2924
include::{es-repo-dir}/ml/apis/jobcounts.asciidoc[]
3025
include::{es-repo-dir}/ml/apis/snapshotresource.asciidoc[]
3126
include::{xes-repo-dir}/rest-api/security/role-mapping-resources.asciidoc[]
3227
include::{es-repo-dir}/ml/apis/resultsresource.asciidoc[]
33-
include::{es-repo-dir}/ml/apis/eventresource.asciidoc[]

0 commit comments

Comments
 (0)