Splunk MINT SDK for iOS

Splunk MINT SDK for iOS Developer Guide

Download manual as PDF

Download topic as PDF

Disable network monitoring for URLs

Normally, Splunk MINT monitors all network calls, but you can add URLs to a monitoring blacklist to ignore any requests to these URLs. For example, you can add "www.facebook.com" to your blacklist to ignore requests to this site.

  • To add a URL to the network monitoring blacklist, use the addURLToBlackList: method as follows:
  • // Objective-C
    [[Mint sharedInstance] addURLToBlackList:@"www.facebook.com"];
    
    // Swift 
    Mint.sharedInstance().addURLToBlackList("www.facebook.com")
    
  • To disable network monitoring entirely, use the disableNetworkMonitoring: method before the initAndStartSessionWithAPIKey: method as follows:
  • // Objective-C
    [[Mint sharedInstance] disableNetworkMonitoring];
    [[Mint sharedInstance] initAndStartSessionWithAPIKey:@"API_KEY"];
    
    // Swift 
    Mint.sharedInstance().enableNetworkMonitoring = true/false
    Mint.sharedInstance().initAndStartSessionWithAPIKey("API_KEY")
    
PREVIOUS
Trace Objective-C methods
  NEXT
Report debugging messages

This documentation applies to the following versions of Splunk MINT SDK for iOS: 5.2.x


Was this documentation topic helpful?

Enter your email address, and someone from the documentation team will respond to you:

Please provide your comments here. Ask a question or make a suggestion.

You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters