33#ifndef API_MIP_MIP_CONFIGURATION_H_
34#define API_MIP_MIP_CONFIGURATION_H_
49#if (!defined(SWIG) && !defined(SWIG_DIRECTORS))
50#define DEPRECATED(msg) \
53#define DEPRECATED(msg)
56#if !defined(SKIP_CACHE_STORAGE_TYPE_IN_MIP_CONFIGURATION)
57#define DEPRECATED_FOR_STORAGE_CACHE_TYPE(msg) \
60#define DEPRECATED_FOR_STORAGE_CACHE_TYPE(msg)
87 const std::string&
path,
Configuration used by MIP sdk during its creation and throughout its lifetime.
Definition mip_configuration.h:69
std::shared_ptr< xml::XmlDelegate > mXmlDelegate
Definition mip_configuration.h:269
std::shared_ptr< DiagnosticConfiguration > GetDiagnosticConfiguration() const
Get the Diagnostic (if any) provided by the application.
Definition mip_configuration.h:131
bool isOfflineOnly() const
whether Network operations is enabled or disabled(not all actions supported when offline)
Definition mip_configuration.h:125
DEPRECATED_FOR_STORAGE_CACHE_TYPE("MipConfiguration(...) is deprecated, use MipConfiguration(const ApplicationInfo&, const std::string&, LogLevel, bool, CacheStorageType)") MipConfiguration(const ApplicationInfo &appInfo
ApplicationInfo mAppInfo
Definition mip_configuration.h:272
LogLevel mThresholdLogLevel
Definition mip_configuration.h:274
std::shared_ptr< xml::XmlDelegate > GetXmlDelegate() const
Get the XmlDelegate (if any) override implementation. MipConfiguration needs to be derived from to ov...
Definition mip_configuration.h:235
const ApplicationInfo & GetApplicationInfo() const
Get the Description of host application.
Definition mip_configuration.h:104
void SetLoggerDelegate(const std::shared_ptr< LoggerDelegate > &loggerDelegate)
Set the LoggerDelegate (if any) override implementation.
Definition mip_configuration.h:152
size_t mApiLogCacheMaxMessages
Definition mip_configuration.h:280
MipConfiguration(const ApplicationInfo &appInfo, const std::string &path, LogLevel thresholdLogLevel, bool isOfflineOnly, CacheStorageType cacheStorageType)
Definition mip_configuration.h:85
std::shared_ptr< DiagnosticConfiguration > mDiagnosticConfiguration
Definition mip_configuration.h:277
const LogLevel & GetThresholdLogLevel() const
Get the Minimum log level for .miplog.
Definition mip_configuration.h:118
std::shared_ptr< LoggerDelegate > mLoggerDelegate
Definition mip_configuration.h:276
std::shared_ptr< JsonDelegate > mJsonDelegate
Definition mip_configuration.h:268
std::shared_ptr< HttpDelegate > mHttpDelegate
Definition mip_configuration.h:281
void SetFeatureSettings(const std::map< FlightingFeature, bool > &featureSettings)
Set the Flighting features which should be set to non-default values.
Definition mip_configuration.h:249
const std::string & path
Definition mip_configuration.h:75
std::shared_ptr< CacheStorageType > mCacheStorageType
Definition mip_configuration.h:284
~MipConfiguration()
Definition mip_configuration.h:265
std::shared_ptr< CloudDiscoveryDelegate > mCloudDiscoveryDelegate
Definition mip_configuration.h:282
void SetLoggerConfiguration(const std::shared_ptr< LoggerConfiguration > &loggerConfiguration)
Override the default logger configuration.
Definition mip_configuration.h:166
std::shared_ptr< CacheStorageType > GetCacheStorageType() const
Get whether caches are stored in memory or on disk.
Definition mip_configuration.h:187
std::map< FlightingFeature, bool > GetFeatureSettings() const
Get the Flighting features which should be set to non-default values.
Definition mip_configuration.h:242
const std::string & GetPath() const
Get the File path for logs, caches, etc.
Definition mip_configuration.h:111
std::string mPath
Definition mip_configuration.h:273
void SetHttpDelegate(const std::shared_ptr< HttpDelegate > &httpDelegate)
Set the HttpDelegate (if any) override implementation. It's a required delegate for MIP Core Context.
Definition mip_configuration.h:201
std::shared_ptr< StorageDelegate > GetStorageDelegate() const
Get the StorageDelegate (if any) override implementation.
Definition mip_configuration.h:173
void SetCloudDiscoveryDelegate(const std::shared_ptr< CloudDiscoveryDelegate > &cloudDiscoveryDelegate)
Set the CloudDiscoveryDelegate (if any) override implementation.
Definition mip_configuration.h:215
std::shared_ptr< HttpDelegate > GetHttpDelegate() const
Get the HttpDelegate (if any) override implementation.
Definition mip_configuration.h:194
std::shared_ptr< JsonDelegate > GetJsonDelegate() const
Get the JsonDelegate (if any) override implementation.
Definition mip_configuration.h:224
std::shared_ptr< LoggerConfiguration > mLoggerConfiguration
Definition mip_configuration.h:283
const std::string LogLevel bool isOfflineOnly
Definition mip_configuration.h:78
std::shared_ptr< StorageDelegate > mStorageDelegate
Definition mip_configuration.h:278
std::shared_ptr< LoggerDelegate > GetLoggerDelegate() const
Get the LoggerDelegate (if any) override implementation.
Definition mip_configuration.h:145
void SetDiagnosticConfiguration(const std::shared_ptr< DiagnosticConfiguration > &diagnosticConfiguration)
Override default configuration of diagnostic.
Definition mip_configuration.h:138
const std::string LogLevel thresholdLogLevel
Definition mip_configuration.h:76
std::shared_ptr< LoggerConfiguration > GetLoggerConfiguration() const
Get the override configuration (if any) for the default logger implementation.
Definition mip_configuration.h:159
std::shared_ptr< CloudDiscoveryDelegate > GetCloudDiscoveryDelegate() const
Get the CloudDiscoveryDelegate (if any) override implementation.
Definition mip_configuration.h:208
std::map< FlightingFeature, bool > mfeatureSettings
Definition mip_configuration.h:279
size_t GetApiLogCacheMaxMessages() const
Get the max messages per Api call that will be logged in the api log cache.
Definition mip_configuration.h:256
void SetStorageDelegate(const std::shared_ptr< StorageDelegate > &storageDelegate)
Set the StorageDelegate (if any) override implementation. It's a required delegate for MIP Core Conte...
Definition mip_configuration.h:180
void SetApiLogCacheMaxMessages(size_t maxMessages)
Set the max messages per Api call that will be logged in the api log cache. Setting this to 0 will di...
Definition mip_configuration.h:263
bool mIsOfflineOnly
Definition mip_configuration.h:275
Defines CouldDiscoveryDelegate interface.
A file Containing the common types used by the upe, file and protection modules.
CacheStorageType
Storage type for the caches.
Definition common_types.h:734
Defines custom telemetry or audit configurations.
A file containing the FlightingFeature definition.
Contains the JsonDelegate interface used to parse and produce JSON data.
LogLevel
Different log levels used across the MIP SDK.
Definition log_message_data.h:48
A file containing the LoggerDelegate class to be used to override MIP logger.
Defines StorageDelegate interface.
A struct that includes application specific information.
Definition common_types.h:531
A file containing the TaskDispatcherDelegate interface to be used to override MIP async task executor...
Contains XmlDelegate interface definition used to parse xml recieved by mip.