Splunk MINT SDK for iOS
4.4
|
#import <Mint.h>
Inherits NSObject.
Class Methods | |
(Mint *) | + sharedInstance |
Properties | |
NSString * | userIdentifier |
BOOL | handleWhileDebugging |
LimitedExtraDataList * | extraDataList |
- (void) addExtraData: | (ExtraData *) | extraData |
- (void) addExtraDataList: | (LimitedExtraDataList *) | limitedExtraDataList |
Appends a LimitedExtraDataList instance list to the global extra data list.
limitedExtraDataList | The LimitedExtraDataList instance. |
- (void) addURLToBlackList: | (NSString *) | url |
Adds a URL to the network monitoring blacklist.
url | The URL to ignore. This can be a partial URL. |
- (NSMutableArray*) blacklistUrls |
The URLs blacklisted from network monitoring.
- (void) clearBreadcrumbs |
Clears the global breadcrumb list.
- (void) clearExtraData |
Clears the LimitedExtraDataList instances from the global extra data list.
- (void) closeSessionAsync |
Closes a session. All requests and crash reporting will continue to work properly, but the session is no longer logically active.
- (void) disableCrashReporter |
Disables crash reporter.
- (void) disableNetworkMonitoring |
Disables network monitoring. Call this method before calling initAndStartSession.
- (void) enableFlushOnlyOverWiFi: | (BOOL) | enable |
Indicates whether to only send data over a WiFi connection.
enable | YES to send data only over WiFi. |
- (void) enableLogging: | (BOOL) | enable |
Indicates whether to attach device logs to the crash.
enable | YES to attach device logs. |
- (void) enableMintLoggingCache: | (BOOL) | enable |
Indicates whether to enable logging. When YES, NSLog console messages are cached and sent with the exception.
enable | Indicates whether to enable logging. |
- (NSString*) exceptionFixtureFrom: | (NSException *) | exception |
Gets an ExceptionDataFixture from an NSException.
exception | The NSException. |
- (void) flushAsync |
Sends all cached requests to the server.
- (NSDictionary*) getDevSettings |
Gets the developer's remote settings as key-value pairs.
- (NSString*) getMintUUID |
Returns the MINT universally unique identifier (UUID), which uniquely identifies a specific user.
- (NSString*) getSessionID |
Returns the current session ID.
- (void) initAndStartSession: | (NSString *) | DEPRECATED_ATTRIBUTE |
Initializes the plugin and starts a session.
apiKey | Your Splunk MINT API key. |
- (void) initAndStartSessionHECWithAPIKey: | (NSString *) | apiKey | |
url: | (NSString *) | url | |
token: | (NSString *) | token | |
Initializes the sdk and starts a new session. It validates the URL and sends a ping request. It sends data over HTTP (or HTTPS) directly to Splunk Enterprise
apiKey | Your Splunk MINT API key. |
url | The url of the on-premise |
token | The token of the on-premise |
- (void) initAndStartSessionWithAPIKey: | (NSString *) | apiKey |
Initializes the sdk and starts a new session. It sends a ping request and receives a new remote settings.
apiKey | Your Splunk MINT API key. |
- (BOOL) isHTTPEventCollectorEnabled |
Indicates weather the sdks initialized to send data over HTTP (or HTTPS) directly to Splunk Enterprise
- (BOOL) isInitialized |
Indicates whether the plugin is initialized and operating properly.
- (BOOL) isSessionActive |
Indicates whether there is an active session. You can close the current session and start a new one as needed.
- (void) leaveBreadcrumb: | (NSString *) | crumb |
Adds a breadcrumb description to the global breadcrumb list.
crumb | The breadcrumb description. |
- (void) logEventAsyncWithName: | (NSString *) | name | |
logLevel: | (MintLogLevel) | logLevel | |
Logs an event with a log level, sends the log entry to the console window, and caches a request to send to the server.
name | The name of the event (up to 256 characters). |
logLevel | The MintLogLevel enumeration value for the log level. |
- (void) logEventAsyncWithName: | (NSString *) | name | |
logLevel: | (MintLogLevel) | logLevel | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
Logs an event with a log level, sends the log entry to the console window, and caches a request to send to the server.
name | The name of the event (up to 256 characters). |
logLevel | The MintLogLevel enumeration value for the log level. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
- (void) logEventAsyncWithName: | (NSString *) | name | |
logLevel: | (MintLogLevel) | logLevel | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Logs an event with a log level, sends the log entry to the console window, and caches a request to send to the server.
name | The name of the event (up to 256 characters). |
logLevel | The MintLogLevel enumeration value for the log level. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
- (void) logEventAsyncWithTag: | (NSString *) | tag |
Logs an event request with a tag description.
tag | The tag description. |
- (void) logEventAsyncWithTag: | (NSString *) | tag | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
Logs an event request with a tag description.
tag | The tag description. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
- (void) logEventAsyncWithTag: | (NSString *) | tag | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Logs an event request with a tag description.
tag | The tag description. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
- (void) logExceptionAsync: | (NSException *) | exception | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
Logs a handled exception in your try/catch block.
exception | The NSException instance. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
- (void) logExceptionAsync: | (NSException *) | exception | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Logs a handled exception in your try/catch block.
exception | The NSException instance. |
limitedExtraDataList | A LimitedExtraDataList instance to attach to the request. |
- (void) logViewWithCurrentViewName: | (NSString *) | currentViewName | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Logs a specific view as a Splunk data type.
currentViewName | The name of the current view. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
- (BOOL) removeExtraDataWithKey: | (NSString *) | key |
- (void) setLogging: | (NSInteger) | linesCount |
Sets the maximum number of lines to cache from the console log.
linesCount | The number of lines. |
- (void) setSessionInterval: | (NSInteger) | intervalInSeconds |
Configure session interval
intervalInSeconds | time interval for session |
- (void) setUserOptOut: | (BOOL) | setUserOptOut |
Indicates whether to prevent MINT from saving or sending any data for the user.
setUserOptOut | YES to prevent MINT from saving or sending any data. |
+ (Mint*) sharedInstance |
- (void) startSessionAsync |
Starts a new session. If a previous session was initialized less than one minute earlier, this call is ignored.
- (void) transactionCancel: | (NSString *) | transactionName | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
reason: | (NSString *) | aReason | |
Cancels a transaction.
transactionName | The name of the transaction. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
aReason | The reason for cancelling the transaction. |
- (void) transactionCancel: | (NSString *) | transactionName | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
reason: | (NSString *) | aReason | |
Cancels a transaction.
transactionName | The name of the transaction. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
aReason | The reason for cancelling the transaction. |
- (void) transactionCancel: | (NSString *) | transactionName | |
reason: | (NSString *) | aReason | |
Cancels a transaction.
transactionName | The name of the transaction. |
aReason | The reason for cancelling the transaction. |
- (void) transactionStart: | (NSString *) | transactionName |
Starts a transaction with a unique name.
transactionName | The unique transaction name. |
- (void) transactionStart: | (NSString *) | transactionName | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
Starts a transaction with a unique name.
transactionName | The unique transaction name. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
- (void) transactionStart: | (NSString *) | transactionName | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Starts a transaction with a unique name.
transactionName | The unique transaction name. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
- (void) transactionStop: | (NSString *) | transactionName |
Stops a transaction.
transactionName | The name of the transaction. |
- (void) transactionStop: | (NSString *) | transactionName | |
extraDataKey: | (NSString *) | key | |
extraDataValue: | (NSString *) | value | |
Stops a transaction.
transactionName | The name of the transaction. |
key | The key for the additional extra data to attach to the request. |
value | The value of the additional extra data to attach to the request. |
- (void) transactionStop: | (NSString *) | transactionName | |
limitedExtraDataList: | (LimitedExtraDataList *) | extraDataList | |
Stops a transaction.
transactionName | The name of the transaction. |
extraDataList | A LimitedExtraDataList instance to attach to the request. |
|
readwritenonatomicstrong |
A LimitedExtraDataList instance where you can set global extra data (ExtraData instances) and attach them to the handled exception requests.
|
readwritenonatomicassign |
A value that is set internally and used only by the SDK plugin. Set this value to NO when you don't want requests to be logged and sent to the server. The default value is YES.
|
readwritenonatomicstrong |
Sets a user identifier such as a random ID, an email address, or a username for the current user.