def editMonitor(self, monitorID, monitorStatus=None, monitorFriendlyName=None, monitorURL=None, monitorType=None,
                    monitorSubType=None, monitorPort=None, monitorKeywordType=None, monitorKeywordValue=None,
                    monitorHTTPUsername=None, monitorHTTPPassword=None, monitorAlertContacts=None):
        """
        monitorID is the only required object. All others are optional and must be quoted.
        Returns Response object from api.
        """

        url = self.baseUrl
        url += "editMonitor?apiKey=%s" % self.apiKey
        url += "&monitorID=%s" % monitorID
        if monitorStatus:
            # Pause, Start Montir
            url += "&monitorStatus=%s" % monitorStatus
        if monitorFriendlyName:
            # Update their FriendlyName
            url += "&monitorFriendlyName=%s" % monitorFriendlyName
        if monitorURL:
            # Edit the MontiorUrl
            url += "&monitorURL=%s" % monitorURL
        if monitorType:
            # Edit the type of montior
            url += "&monitorType=%s" % monitorType
        if monitorSubType:
            # Edit the SubType
            url += "&monitorSubType=%s" % monitorSubType
        if monitorPort:
            # Edit the Port
            url += "&monitorPort=%s" % monitorPort
        if monitorKeywordType:
            # Edit the Keyword Type
            url += "&monitorKeywordType=%s" % monitorKeywordType
        if monitorKeywordValue:
            # Edit the Keyword Match
            url += "&monitorKeywordValue=%s" % monitorKeywordValue
        if monitorHTTPUsername:
            # Edit the HTTP Username
            url += "&monitorHTTPUsername=%s" % monitorHTTPUsername
        if monitorHTTPPassword:
            # Edit the HTTP Password
            url += "&monitorHTTPPassword=%s" % monitorHTTPPassword
        if monitorAlertContacts:
            # Edit the contacts
            url += "&monitorAlertContacts=%s" % monitorAlertContacts
        url += "&noJsonCallback=1&format=json"
        success = self.requestApi(url)
        return success
def editMonitor ( self , monitorID , monitorStatus = None , monitorFriendlyName = None , monitorURL = None , monitorType = None , monitorSubType = None , monitorPort = None , monitorKeywordType = None , monitorKeywordValue = None , monitorHTTPUsername = None , monitorHTTPPassword = None , monitorAlertContacts = None ) : url = self . baseUrl url += "editMonitor?apiKey=%s" % self . apiKey url += "&monitorID=%s" % monitorID if monitorStatus : url += "&monitorStatus=%s" % monitorStatus if monitorFriendlyName : url += "&monitorFriendlyName=%s" % monitorFriendlyName if monitorURL : url += "&monitorURL=%s" % monitorURL if monitorType : url += "&monitorType=%s" % monitorType if monitorSubType : url += "&monitorSubType=%s" % monitorSubType if monitorPort : url += "&monitorPort=%s" % monitorPort if monitorKeywordType : url += "&monitorKeywordType=%s" % monitorKeywordType if monitorKeywordValue : url += "&monitorKeywordValue=%s" % monitorKeywordValue if monitorHTTPUsername : url += "&monitorHTTPUsername=%s" % monitorHTTPUsername if monitorHTTPPassword : url += "&monitorHTTPPassword=%s" % monitorHTTPPassword if monitorAlertContacts : url += "&monitorAlertContacts=%s" % monitorAlertContacts url += "&noJsonCallback=1&format=json" success = self . requestApi ( url ) return success
monitorID is the only required object. All others are optional and must be quoted.
        Returns Response object from api.