You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
902 B
27 lines
902 B
# Copyright (C) 2005-2024 Splunk Inc. All Rights Reserved.
|
|
'''
|
|
ITSI does not manage Anomaly Detection search directly, it manages through
|
|
a set of MAD restful endpoints.
|
|
This class provides the context manager interface which is invoked by the service
|
|
change handlers.
|
|
'''
|
|
|
|
from . import itsi_mad_searches
|
|
|
|
|
|
class ItsiMADTrendingContextManager(itsi_mad_searches.ItsiMADContextManager):
|
|
'''
|
|
ITSI Level MAD Context Manager
|
|
Contains functions specific to Trending Anomaly Detection
|
|
|
|
All the MAD rest level exceptions are suppressed, but the exception log will be
|
|
logged in the itsi_mad_context_mgr.log.
|
|
'''
|
|
log_prefix = '[ITSI MAD Trending Context Manager]'
|
|
collection_name = 'itsi_service'
|
|
|
|
def __init__(self, session_key, app='SA-ITSI-MetricAD', owner='nobody'):
|
|
super(ItsiMADTrendingContextManager, self).__init__(session_key, app, owner, type='trending')
|
|
|
|
|