42
42
import org .opensearch .ad .cluster .ADDataMigrator ;
43
43
import org .opensearch .ad .cluster .ClusterManagerEventListener ;
44
44
import org .opensearch .ad .cluster .HashRing ;
45
- import org .opensearch .ad .constant .CommonName ;
45
+ import org .opensearch .ad .constant .ADCommonName ;
46
46
import org .opensearch .ad .dataprocessor .IntegerSensitiveSingleFeatureLinearUniformInterpolator ;
47
47
import org .opensearch .ad .dataprocessor .Interpolator ;
48
48
import org .opensearch .ad .dataprocessor .LinearUniformInterpolator ;
85
85
import org .opensearch .ad .settings .NumericSetting ;
86
86
import org .opensearch .ad .stats .ADStat ;
87
87
import org .opensearch .ad .stats .ADStats ;
88
- import org .opensearch .ad .stats .StatNames ;
89
88
import org .opensearch .ad .stats .suppliers .CounterSupplier ;
90
89
import org .opensearch .ad .stats .suppliers .IndexStatusSupplier ;
91
90
import org .opensearch .ad .stats .suppliers .ModelsOnNodeCountSupplier ;
195
194
import org .opensearch .threadpool .ExecutorBuilder ;
196
195
import org .opensearch .threadpool .ScalingExecutorBuilder ;
197
196
import org .opensearch .threadpool .ThreadPool ;
197
+ import org .opensearch .timeseries .constant .CommonName ;
198
+ import org .opensearch .timeseries .stats .StatNames ;
198
199
import org .opensearch .watcher .ResourceWatcherService ;
199
200
200
201
import com .amazon .randomcutforest .parkservices .state .ThresholdedRandomCutForestMapper ;
@@ -429,7 +430,7 @@ public PooledObject<LinkedBuffer> wrap(LinkedBuffer obj) {
429
430
CheckpointDao checkpoint = new CheckpointDao (
430
431
client ,
431
432
clientUtil ,
432
- CommonName .CHECKPOINT_INDEX_NAME ,
433
+ ADCommonName .CHECKPOINT_INDEX_NAME ,
433
434
gson ,
434
435
mapper ,
435
436
converter ,
@@ -454,7 +455,7 @@ public PooledObject<LinkedBuffer> wrap(LinkedBuffer obj) {
454
455
CheckPointMaintainRequestAdapter adapter = new CheckPointMaintainRequestAdapter (
455
456
cacheProvider ,
456
457
checkpoint ,
457
- CommonName .CHECKPOINT_INDEX_NAME ,
458
+ ADCommonName .CHECKPOINT_INDEX_NAME ,
458
459
AnomalyDetectorSettings .CHECKPOINT_SAVING_FREQ ,
459
460
getClock (),
460
461
clusterService ,
@@ -477,7 +478,7 @@ public PooledObject<LinkedBuffer> wrap(LinkedBuffer obj) {
477
478
AnomalyDetectorSettings .MAINTENANCE_FREQ_CONSTANT ,
478
479
AnomalyDetectorSettings .QUEUE_MAINTENANCE ,
479
480
checkpoint ,
480
- CommonName .CHECKPOINT_INDEX_NAME ,
481
+ ADCommonName .CHECKPOINT_INDEX_NAME ,
481
482
AnomalyDetectorSettings .HOURLY_MAINTENANCE ,
482
483
stateManager ,
483
484
AnomalyDetectorSettings .HOURLY_MAINTENANCE
@@ -625,23 +626,23 @@ public PooledObject<LinkedBuffer> wrap(LinkedBuffer obj) {
625
626
)
626
627
.put (
627
628
StatNames .ANOMALY_DETECTORS_INDEX_STATUS .getName (),
628
- new ADStat <>(true , new IndexStatusSupplier (indexUtils , AnomalyDetector . ANOMALY_DETECTORS_INDEX ))
629
+ new ADStat <>(true , new IndexStatusSupplier (indexUtils , CommonName . CONFIG_INDEX ))
629
630
)
630
631
.put (
631
632
StatNames .ANOMALY_RESULTS_INDEX_STATUS .getName (),
632
- new ADStat <>(true , new IndexStatusSupplier (indexUtils , CommonName .ANOMALY_RESULT_INDEX_ALIAS ))
633
+ new ADStat <>(true , new IndexStatusSupplier (indexUtils , ADCommonName .ANOMALY_RESULT_INDEX_ALIAS ))
633
634
)
634
635
.put (
635
636
StatNames .MODELS_CHECKPOINT_INDEX_STATUS .getName (),
636
- new ADStat <>(true , new IndexStatusSupplier (indexUtils , CommonName .CHECKPOINT_INDEX_NAME ))
637
+ new ADStat <>(true , new IndexStatusSupplier (indexUtils , ADCommonName .CHECKPOINT_INDEX_NAME ))
637
638
)
638
639
.put (
639
640
StatNames .ANOMALY_DETECTION_JOB_INDEX_STATUS .getName (),
640
- new ADStat <>(true , new IndexStatusSupplier (indexUtils , AnomalyDetectorJob . ANOMALY_DETECTOR_JOB_INDEX ))
641
+ new ADStat <>(true , new IndexStatusSupplier (indexUtils , CommonName . JOB_INDEX ))
641
642
)
642
643
.put (
643
644
StatNames .ANOMALY_DETECTION_STATE_STATUS .getName (),
644
- new ADStat <>(true , new IndexStatusSupplier (indexUtils , CommonName .DETECTION_STATE_INDEX ))
645
+ new ADStat <>(true , new IndexStatusSupplier (indexUtils , ADCommonName .DETECTION_STATE_INDEX ))
645
646
)
646
647
.put (StatNames .DETECTOR_COUNT .getName (), new ADStat <>(true , new SettableSupplier ()))
647
648
.put (StatNames .SINGLE_ENTITY_DETECTOR_COUNT .getName (), new ADStat <>(true , new SettableSupplier ()))
@@ -752,7 +753,7 @@ public PooledObject<LinkedBuffer> wrap(LinkedBuffer obj) {
752
753
client ,
753
754
settings ,
754
755
threadPool ,
755
- CommonName .ANOMALY_RESULT_INDEX_ALIAS ,
756
+ ADCommonName .ANOMALY_RESULT_INDEX_ALIAS ,
756
757
anomalyDetectionIndices ,
757
758
this .clientUtil ,
758
759
this .indexUtils ,
@@ -1010,7 +1011,7 @@ public String getJobType() {
1010
1011
1011
1012
@ Override
1012
1013
public String getJobIndex () {
1013
- return AnomalyDetectorJob . ANOMALY_DETECTOR_JOB_INDEX ;
1014
+ return CommonName . JOB_INDEX ;
1014
1015
}
1015
1016
1016
1017
@ Override
0 commit comments