33#ifndef API_MIP_MIP_CONFIGURATION_H_
34#define API_MIP_MIP_CONFIGURATION_H_
57 const std::string& path,
Configuration used by MIP sdk during its creation and throughout its lifetime.
Definition mip_configuration.h:53
std::shared_ptr< xml::XmlDelegate > mXmlDelegate
Definition mip_configuration.h:214
std::shared_ptr< DiagnosticConfiguration > GetDiagnosticConfiguration() const
Get the Diagnostic (if any) provided by the application.
Definition mip_configuration.h:99
ApplicationInfo mAppInfo
Definition mip_configuration.h:217
MipConfiguration(const ApplicationInfo &appInfo, const std::string &path, LogLevel thresholdLogLevel, bool isOfflineOnly)
Definition mip_configuration.h:55
LogLevel mThresholdLogLevel
Definition mip_configuration.h:219
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:180
const ApplicationInfo & GetApplicationInfo() const
Get the Description of host application.
Definition mip_configuration.h:72
void SetLoggerDelegate(const std::shared_ptr< LoggerDelegate > &loggerDelegate)
Set the LoggerDelegate (if any) override implementation.
Definition mip_configuration.h:120
size_t mApiLogCacheMaxMessages
Definition mip_configuration.h:225
std::shared_ptr< DiagnosticConfiguration > mDiagnosticConfiguration
Definition mip_configuration.h:222
const LogLevel & GetThresholdLogLevel() const
Get the Minimum log level for .miplog.
Definition mip_configuration.h:86
std::shared_ptr< LoggerDelegate > mLoggerDelegate
Definition mip_configuration.h:221
std::shared_ptr< JsonDelegate > mJsonDelegate
Definition mip_configuration.h:213
std::shared_ptr< HttpDelegate > mHttpDelegate
Definition mip_configuration.h:226
void SetFeatureSettings(const std::map< FlightingFeature, bool > &featureSettings)
Set the Flighting features which should be set to non-default values.
Definition mip_configuration.h:194
~MipConfiguration()
Definition mip_configuration.h:210
void SetLoggerConfiguration(const std::shared_ptr< LoggerConfiguration > &loggerConfiguration)
Override the default logger configuration.
Definition mip_configuration.h:134
std::map< FlightingFeature, bool > GetFeatureSettings() const
Get the Flighting features which should be set to non-default values.
Definition mip_configuration.h:187
const std::string & GetPath() const
Get the File path for logs, caches, etc.
Definition mip_configuration.h:79
std::string mPath
Definition mip_configuration.h:218
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:162
std::shared_ptr< StorageDelegate > GetStorageDelegate() const
Get the StorageDelegate (if any) override implementation.
Definition mip_configuration.h:141
const bool isOfflineOnly() const
whether Network operations is enabled or disabled(not all actions supported when offline)
Definition mip_configuration.h:93
std::shared_ptr< HttpDelegate > GetHttpDelegate() const
Get the HttpDelegate (if any) override implementation.
Definition mip_configuration.h:155
std::shared_ptr< JsonDelegate > GetJsonDelegate() const
Get the JsonDelegate (if any) override implementation.
Definition mip_configuration.h:169
std::shared_ptr< LoggerConfiguration > mLoggerConfiguration
Definition mip_configuration.h:227
std::shared_ptr< StorageDelegate > mStorageDelegate
Definition mip_configuration.h:223
std::shared_ptr< LoggerDelegate > GetLoggerDelegate() const
Get the LoggerDelegate (if any) override implementation.
Definition mip_configuration.h:113
void SetDiagnosticConfiguration(const std::shared_ptr< DiagnosticConfiguration > &diagnosticConfiguration)
Override default configuration of diagnostic.
Definition mip_configuration.h:106
std::shared_ptr< LoggerConfiguration > GetLoggerConfiguration() const
Get the override configuration (if any) for the default logger implementation.
Definition mip_configuration.h:127
std::map< FlightingFeature, bool > mfeatureSettings
Definition mip_configuration.h:224
size_t GetApiLogCacheMaxMessages() const
Get the max messages per Api call that will be logged in the api log cache.
Definition mip_configuration.h:201
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:148
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:208
bool mIsOfflineOnly
Definition mip_configuration.h:220
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:523
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.