Skip to content

Commit c260308

Browse files
kderussoefegurkanleemthompo
authored
Deprecate Behavioral Analytics CRUD apis (elastic#122960) (elastic#123383)
* Deprecate Behavioral Analytics CRUD APIs * Add allowed warning for REST Compatibility tests * Update docs/changelog/122960.yaml * Update changelog * Update docs to add deprecation flags and fix failing tests * Update changelog * Update changelog again * Update docs formatting * Skip asciidoc test --------- Co-authored-by: Efe Gürkan YALAMAN <[email protected]> Co-authored-by: Liam Thompson <[email protected]> Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
1 parent 7ec4fc3 commit c260308

File tree

59 files changed

+441
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+441
-140
lines changed

docs/changelog/122960.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pr: 122960
2+
summary: Deprecate Behavioral Analytics CRUD apis
3+
area: Search
4+
type: deprecation
5+
issues: [ ]
6+
deprecation:
7+
title: Deprecate Behavioral Analytics CRUD apis
8+
area: Search
9+
details: Behavioral Analytics has been deprecated as of 9.0.0 and will be removed in a future release. The APIs will still work for now, but will emit warning headers that the API has been deprecated.
10+
impact: Behavioral Analytics has been deprecated as of 9.0.0 and will be removed in a future release.

docs/reference/behavioral-analytics/apis/delete-analytics-collection.asciidoc

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[[delete-analytics-collection]]
33
=== Delete Analytics Collection
44

5+
deprecated:[9.0.0]
56
beta::[]
67

78
++++
@@ -14,15 +15,6 @@ beta::[]
1415
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
1516
--
1617

17-
////
18-
[source,console]
19-
----
20-
PUT _application/analytics/my_analytics_collection
21-
----
22-
// TESTSETUP
23-
24-
////
25-
2618
Removes a <<behavioral-analytics-overview,Behavioral Analytics>> Collection and its associated data stream.
2719

2820
[[delete-analytics-collection-request]]
@@ -59,3 +51,4 @@ The following example deletes the Analytics Collection named `my_analytics_colle
5951
----
6052
DELETE _application/analytics/my_analytics_collection/
6153
----
54+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

docs/reference/behavioral-analytics/apis/index.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[[behavioral-analytics-apis]]
22
== Behavioral Analytics APIs
33

4+
deprecated:[9.0.0]
45
beta::[]
56

67
++++

docs/reference/behavioral-analytics/apis/list-analytics-collection.asciidoc

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[[list-analytics-collection]]
33
=== List Analytics Collections
44

5+
deprecated:[9.0.0]
56
beta::[]
67

78
++++
@@ -14,22 +15,6 @@ beta::[]
1415
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
1516
--
1617

17-
////
18-
[source,console]
19-
----
20-
PUT _application/analytics/my_analytics_collection
21-
PUT _application/analytics/my_analytics_collection2
22-
----
23-
// TESTSETUP
24-
25-
[source,console]
26-
----
27-
DELETE _application/analytics/my_analytics_collection
28-
DELETE _application/analytics/my_analytics_collection2
29-
----
30-
// TEARDOWN
31-
////
32-
3318
Returns information about <<behavioral-analytics-overview,Behavioral Analytics>> Collections.
3419

3520
[[list-analytics-collection-request]]
@@ -46,8 +31,9 @@ Requires the `manage_behavioral_analytics` cluster privilege.
4631
==== {api-path-parms-title}
4732

4833
`<criteria>`::
49-
(optional, string)
50-
Criteria is used to find a matching analytics collection. This could be the name of the collection or a pattern to match multiple. If not specified, will return all analytics collections.
34+
(optional, string) Criteria is used to find a matching analytics collection.
35+
This could be the name of the collection or a pattern to match multiple.
36+
If not specified, will return all analytics collections.
5137

5238
[[list-analytics-collection-response-codes]]
5339
==== {api-response-codes-title}
@@ -66,6 +52,7 @@ The following example lists all configured Analytics Collections:
6652
----
6753
GET _application/analytics/
6854
----
55+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
6956

7057
A sample response:
7158

@@ -91,6 +78,7 @@ The following example returns the Analytics Collection that matches `my_analytic
9178
----
9279
GET _application/analytics/my_analytics_collection
9380
----
81+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
9482

9583
A sample response:
9684

@@ -111,6 +99,7 @@ The following example returns all Analytics Collections prefixed with `my`:
11199
----
112100
GET _application/analytics/my*
113101
----
102+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]
114103

115104
A sample response:
116105

docs/reference/behavioral-analytics/apis/post-analytics-collection-event.asciidoc

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[[post-analytics-collection-event]]
33
=== Post Event to an Analytics Collection
44

5+
deprecated:[9.0.0]
56
beta::[]
67

78
++++
@@ -14,20 +15,6 @@ beta::[]
1415
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
1516
--
1617

17-
////
18-
[source,console]
19-
----
20-
PUT _application/analytics/my_analytics_collection
21-
----
22-
// TESTSETUP
23-
24-
[source,console]
25-
----
26-
DELETE _application/analytics/my_analytics_collection
27-
----
28-
// TEARDOWN
29-
////
30-
3118
Post an event to a <<behavioral-analytics-overview,Behavioral Analytics>> Collection.
3219

3320
[[post-analytics-collection-event-request]]
@@ -105,3 +92,4 @@ POST _application/analytics/my_analytics_collection/event/search_click
10592
}
10693
}
10794
----
95+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

docs/reference/behavioral-analytics/apis/put-analytics-collection.asciidoc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[[put-analytics-collection]]
33
=== Put Analytics Collection
44

5+
deprecated:[9.0.0]
56
beta::[]
67

78
++++
@@ -14,14 +15,6 @@ beta::[]
1415
For the most up-to-date API details, refer to {api-es}/group/endpoint-analytics[Behavioral analytics APIs].
1516
--
1617

17-
////
18-
[source,console]
19-
----
20-
DELETE _application/analytics/my_analytics_collection
21-
----
22-
// TEARDOWN
23-
////
24-
2518
Creates a <<behavioral-analytics-overview,Behavioral Analytics>> Collection.
2619

2720
[[put-analytics-collection-request]]
@@ -55,3 +48,4 @@ The following example creates a new Analytics Collection called `my_analytics_co
5548
----
5649
PUT _application/analytics/my_analytics_collection
5750
----
51+
// TEST[skip:Behavioral Analytics APIs emit deprecation warnings and will not be updated]

docs/reference/search/search-your-data/behavioral-analytics/behavioral-analytics-api.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
[[behavioral-analytics-api]]
22
=== Behavioral Analytics API overview
3+
34
++++
45
<titleabbrev>API overview</titleabbrev>
56
++++
67

8+
deprecated:[9.0.0]
9+
710
This page outlines all the APIs available for behavioral analytics and links to their documentation.
811

912
[discrete]

docs/reference/search/search-your-data/behavioral-analytics/behavioral-analytics-cors.asciidoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<titleabbrev>Set up CORs</titleabbrev>
55
++++
66

7+
deprecated:[9.0.0]
8+
79
Behavioral Analytics sends events directly to the {es} API.
810
This means that the browser makes requests to the {es} API directly.
911
{es} supports https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS[Cross-Origin Resource Sharing (CORS)^], but this feature is disabled by default.
@@ -43,4 +45,4 @@ On Elastic Cloud, you can do this by {cloud}/ec-add-user-settings.html#ec-add-us
4345
==== Proxy the request through a server that supports CORS
4446

4547
If you are unable to enable CORS on {es}, you can proxy the request through a server that supports CORS.
46-
This is more complicated, but is a viable option.
48+
This is more complicated, but is a viable option.

docs/reference/search/search-your-data/behavioral-analytics/behavioral-analytics-event-reference.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<titleabbrev>Events reference</titleabbrev>
55
++++
66

7+
deprecated:[9.0.0]
8+
79
Behavioral Analytics logs events using the {ecs-ref}/ecs-reference.html[Elastic Common Schema^], including a custom field set for analytics events.
810
Refer to <<behavioral-analytics-event-reference-examples,examples>> of the full data objects that are logged.
911

docs/reference/search/search-your-data/behavioral-analytics/behavioral-analytics-event.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<titleabbrev>View events</titleabbrev>
55
++++
66

7+
deprecated:[9.0.0]
8+
79
[TIP]
810
====
911
Refer to <<behavioral-analytics-event-reference>> for a complete list of the fields logged by events.

0 commit comments

Comments
 (0)