Transaction Action of GS2-Schedule

ConsumeAction

Gs2Schedule:DeleteTriggerByUserId

Delete trigger by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: NO

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
triggerNamestringTrigger Name
{
    "action": "Gs2Schedule:DeleteTriggerByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "triggerName": "[string]Trigger Name"
    }
}
action: Gs2Schedule:DeleteTriggerByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  triggerName: "[string]Trigger Name"

AcquireAction

Gs2Schedule:TriggerByUserId

Trigger by specifying a user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
triggerNamestringTrigger Name
userIdstringSet #{userId} to replace the currently logged in user ID.
triggerStrategyenum [‘renew’, ‘drop’]Trigger Pulling Policy
ttlintTrigger expiration time (seconds)
{
    "action": "Gs2Schedule:TriggerByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "triggerName": "[string]Trigger Name",
        "userId": "[string]User Id",
        "triggerStrategy": "[string]Trigger Pulling Policy",
        "ttl": "[int]Trigger expiration time (seconds)"
    }
}
action: Gs2Schedule:TriggerByUserId
request:
  namespaceName: "[string]Namespace name"
  triggerName: "[string]Trigger Name"
  userId: "[string]User Id"
  triggerStrategy: "[string]Trigger Pulling Policy"
  ttl: "[int]Trigger expiration time (seconds)"