Class WebhookLogFunctions
java.lang.Object
flexagon.fd.services.groovy.functions.BaseFunctions
flexagon.fd.services.groovy.functions.LogFunctions
flexagon.fd.services.groovy.functions.WebhookLogFunctions
-
Field Summary
Fields inherited from class flexagon.fd.services.groovy.functions.LogFunctions
GROOVY_KEYFields inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
mFLOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetMessage(String pMessage) Sets the message shown for current webhook execution on the Webhook Messages screen.voidsetMessage(String pMessage, boolean overwrite) Sets the message shown for current webhook execution on the Webhook Messages screen.Methods inherited from class flexagon.fd.services.groovy.functions.LogFunctions
addSecureLogValues, addSecureLogValues, cleanup, fine, fine, getGroovyKey, getLogs, getMessage, getObjectId, getObjectType, getParentObjectId, getSecureLogValues, info, info, sanitizeMessage, setLogKey, setObjectId, setObjectType, setParentObjectId, setSecureLogValues, severe, severe, warning, warningMethods inherited from class flexagon.fd.services.groovy.functions.BaseFunctions
captureSecureValues, captureSecureValuesForLogFunction, decryptIntegrationInstance, doSimpleGet, findIntegrationInstanceByCode, getBinding, getLogFunctions, getServerBaseUrl, setBinding
-
Constructor Details
-
WebhookLogFunctions
public WebhookLogFunctions()
-
-
Method Details
-
setMessage
Sets the message shown for current webhook execution on the Webhook Messages screen. Message will be overwritten if there are any errors during execution. Using this function will also write an info level log- Overrides:
setMessagein classLogFunctions- Parameters:
pMessage- Message to set. e.g. "Branch abc created" or "Projects 1 and 2 built"
-
setMessage
Sets the message shown for current webhook execution on the Webhook Messages screen. Message will be overwritten if there are any errors during execution. This overload accepts an additional argument to overwrite the previous message (if any).- Overrides:
setMessagein classLogFunctions- Parameters:
pMessage- Message to set. e.g. "Branch abc created" or "Projects 1 and 2 built"overwrite- If a message is already set, should it be overwritten with this message- Since:
- 5.5.0.2
-