@@ -39,7 +39,9 @@ export const indexSettings = {
39
39
40
40
export interface SAMPLE_DATA {
41
41
indexName : string ;
42
+ legacyIndexName : string ;
42
43
detectorName : string ;
44
+ legacyDetectorName : string ;
43
45
description : string ;
44
46
icon : any ;
45
47
fieldMappings : { } ;
@@ -50,8 +52,11 @@ export interface SAMPLE_DATA {
50
52
/*
51
53
*** SAMPLE HTTP RESPONSES CONSTANTS ***
52
54
*/
53
- const httpResponsesIndexName = 'opendistro-sample-http-responses' ;
54
- const httpResponsesDetectorName = 'opendistro-sample-http-responses-detector' ;
55
+ const httpResponsesIndexName = 'sample-http-responses' ;
56
+ const legacyHttpResponsesIndexName = 'opendistro-sample-http-responses' ;
57
+ const httpResponsesDetectorName = 'sample-http-responses-detector' ;
58
+ const legacyHttpResponsesDetectorName =
59
+ 'opendistro-sample-http-responses-detector' ;
55
60
const httpFieldMappings = {
56
61
timestamp : {
57
62
type : 'date' ,
@@ -77,7 +82,9 @@ const httpFieldMappings = {
77
82
} ;
78
83
export const sampleHttpResponses = {
79
84
indexName : httpResponsesIndexName ,
85
+ legacyIndexName : legacyHttpResponsesIndexName ,
80
86
detectorName : httpResponsesDetectorName ,
87
+ legacyDetectorName : legacyHttpResponsesDetectorName ,
81
88
description :
82
89
'Detect high numbers of error response codes in an index containing HTTP response data.' ,
83
90
icon : < EuiIcon type = "visLine" size = "l" /> ,
@@ -144,8 +151,10 @@ export const sampleHttpResponses = {
144
151
/*
145
152
*** ECOMMERCE CONSTANTS ***
146
153
*/
147
- const ecommerceIndexName = 'opendistro-sample-ecommerce' ;
148
- const ecommerceDetectorName = 'opendistro-sample-ecommerce-detector' ;
154
+ const ecommerceIndexName = 'sample-ecommerce' ;
155
+ const legacyEcommerceIndexName = 'opendistro-sample-ecommerce' ;
156
+ const ecommerceDetectorName = 'sample-ecommerce-detector' ;
157
+ const legacyEcommerceDetectorName = 'opendistro-sample-ecommerce-detector' ;
149
158
const ecommerceFieldMappings = {
150
159
timestamp : {
151
160
type : 'date' ,
@@ -165,7 +174,9 @@ const ecommerceFieldMappings = {
165
174
} ;
166
175
export const sampleEcommerce = {
167
176
indexName : ecommerceIndexName ,
177
+ legacyIndexName : legacyEcommerceIndexName ,
168
178
detectorName : ecommerceDetectorName ,
179
+ legacyDetectorName : legacyEcommerceDetectorName ,
169
180
description :
170
181
'Detect any unusual increase or decrease of orders in an index containing online order data.' ,
171
182
icon : < EuiIcon type = "package" size = "l" /> ,
@@ -261,8 +272,10 @@ export const sampleEcommerce = {
261
272
/*
262
273
*** HOST HEALTH CONSTANTS ***
263
274
*/
264
- const hostHealthIndexName = 'opendistro-sample-host-health' ;
265
- const hostHealthDetectorName = 'opendistro-sample-host-health-detector' ;
275
+ const hostHealthIndexName = 'sample-host-health' ;
276
+ const legacyHostHealthIndexName = 'opendistro-sample-host-health' ;
277
+ const hostHealthDetectorName = 'sample-host-health-detector' ;
278
+ const legacyHostHealthDetectorName = 'opendistro-sample-host-health-detector' ;
266
279
const hostHealthFieldMappings = {
267
280
timestamp : {
268
281
type : 'date' ,
@@ -276,7 +289,9 @@ const hostHealthFieldMappings = {
276
289
} ;
277
290
export const sampleHostHealth = {
278
291
indexName : hostHealthIndexName ,
292
+ legacyIndexName : legacyHostHealthIndexName ,
279
293
detectorName : hostHealthDetectorName ,
294
+ legacyDetectorName : legacyHostHealthDetectorName ,
280
295
description :
281
296
'Detect increases in CPU and memory utilization in an index containing various health metrics from a host.' ,
282
297
icon : < EuiIcon type = "visGauge" size = "l" /> ,
0 commit comments