# Copyright (C) 2005-2025 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')