Wow-Compensation
  1. compensation.execution_failed
Wow-Compensation
  • wow
    • The receiving endpoint of the wait signal
    • Unified Sending Endpoint For Command Messages
    • Get Wow Metadata
    • Generate Global ID
    • Generate BI Sync Script
  • compensation.execution_failed
    • create_execution_failed
      POST
    • prepare_compensation
      PUT
    • force_prepare_compensation
      PUT
    • apply_execution_success
      PUT
    • apply_execution_failed
      PUT
    • apply_retry_spec
      PUT
    • change_function
      PUT
    • mark_recoverable
      PUT
    • Delete aggregate
      DELETE
    • Recover deleted aggregate
      PUT
    • Get Aggregate Tracing
      GET
    • Load State Aggregate
      GET
    • Load Versioned State Aggregate
      GET
    • Load Time Based State Aggregate
      GET
    • Get Snapshot
      GET
    • Regenerate Aggregate Snapshot
      PUT
    • Batch Regenerate Aggregate Snapshot
      PUT
    • Count Snapshot
      POST
    • List Query Snapshot
      POST
    • List Query Snapshot State
      POST
    • Paged Query Snapshot
      POST
    • Paged Query Snapshot State
      POST
    • Single Snapshot
      POST
    • Single Snapshot State
      POST
    • Load Event Stream
      GET
    • List Query Event Stream
      POST
    • Paged Query Event Stream
      POST
    • Count Event Stream
      POST
    • Event Compensate
      PUT
    • Resend State Event
      POST
  1. compensation.execution_failed

Single Snapshot

POST
/execution_failed/snapshot/single
compensation.execution_failed

请求参数

Body 参数application/json
condition
object (compensation.ExecutionFailedAggregatedCondition) 
必需
children
array[object (compensation.ExecutionFailedAggregatedCondition) {5}] 
必需
默认值:
[]
field
enum<string> 
必需
枚举值:
aggregateIdtenantIdownerIdversioneventIdfirstOperatoroperatorfirstEventTimeeventTimedeletedstatestate.errorstate.error.bindingErrorsstate.error.bindingErrors.msgstate.error.bindingErrors.namestate.error.errorCodestate.error.errorMsgstate.error.stackTracestate.error.succeededstate.eventIdstate.eventId.aggregateIdstate.eventId.aggregateId.namedAggregatestate.eventId.aggregateId.namedAggregate.aggregateNamestate.eventId.aggregateId.namedAggregate.contextNamestate.eventId.aggregateId.aggregateNamestate.eventId.aggregateId.contextNamestate.eventId.aggregateId.idstate.eventId.aggregateId.tenantIdstate.eventId.idstate.eventId.versionstate.eventId.initializedstate.eventId.isInitialVersionstate.executeAtstate.functionstate.function.contextNamestate.function.functionKindstate.function.namestate.function.processorNamestate.idstate.recoverablestate.retrySpecstate.retrySpec.executionTimeoutstate.retrySpec.maxRetriesstate.retrySpec.minBackoffstate.retryStatestate.retryState.nextRetryAtstate.retryState.retriesstate.retryState.retryAtstate.retryState.timeoutAtstate.statusstate.isBelowRetryThresholdstate.isRetryable
operator
enum<string> 
必需
枚举值:
ANDORNORIDIDSAGGREGATE_IDAGGREGATE_IDSTENANT_IDOWNER_IDDELETEDALLEQNEGTLTGTELTECONTAINSINNOT_INBETWEENALL_INSTARTS_WITHENDS_WITHELEM_MATCHNULLNOT_NULLTRUEFALSEEXISTSTODAYBEFORE_TODAYTOMORROWTHIS_WEEKNEXT_WEEKLAST_WEEKTHIS_MONTHLAST_MONTHRECENT_DAYSEARLIER_DAYSRAW
options
object (compensation.StringObjectMap) 
可选
value
必需
projection
object (wow.api.query.Projection) 
可选
exclude
array[string]
可选
默认值:
[]
include
array[string]
可选
默认值:
[]
sort
array[object (wow.api.query.Sort) {2}] 
可选
默认值:
[]
direction
enum<string> 
必需
枚举值:
ASCDESC
field
string 
必需
示例
{
    "condition": {
        "children": "[]",
        "field": "",
        "operator": "AND",
        "options": {},
        "value": null
    },
    "projection": {
        "exclude": "[]",
        "include": "[]"
    },
    "sort": "[]"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/execution_failed/snapshot/single' \
--header 'Content-Type: application/json' \
--data-raw '{
    "condition": {
        "children": "[]",
        "field": "",
        "operator": "AND",
        "options": {},
        "value": null
    },
    "projection": {
        "exclude": "[]",
        "include": "[]"
    },
    "sort": "[]"
}'

返回响应

🟢200成功
application/json
Headers
Wow-Error-Code
string 
可选
Body
aggregateId
string 
必需
aggregateName
string 
必需
contextName
string 
必需
deleted
boolean 
必需
eventId
string 
必需
eventTime
integer <int64>
必需
firstEventTime
integer <int64>
必需
firstOperator
string 
必需
operator
string 
必需
ownerId
string 
可选
snapshotTime
integer <int64>
必需
state
object (compensation.ExecutionFailedState) 
必需
error
object (compensation.execution_failed.ErrorDetails) 
可选
eventId
object (compensation.execution_failed.EventId) 
可选
executeAt
integer <int64>
可选
function
object (wow.api.messaging.FunctionInfoData) 
可选
id
string 
必需
recoverable
enum<string> 
可选
枚举值:
RECOVERABLEUNRECOVERABLEUNKNOWN
retrySpec
object (compensation.execution_failed.RetrySpec) 
可选
retryState
object (compensation.execution_failed.RetryState) 
可选
status
enum<string> 
可选
枚举值:
FAILEDPREPAREDSUCCEEDED
isBelowRetryThreshold
boolean 
只读可选
isRetryable
boolean 
只读可选
tenantId
string 
必需
version
integer <int32>
必需
initialized
boolean 
只读可选
isInitialVersion
boolean 
只读可选
示例
{
    "aggregateId": "string",
    "aggregateName": "string",
    "contextName": "string",
    "deleted": true,
    "eventId": "string",
    "eventTime": 0,
    "firstEventTime": 0,
    "firstOperator": "string",
    "operator": "string",
    "ownerId": "string",
    "snapshotTime": 0,
    "state": {
        "error": {
            "bindingErrors": [
                {
                    "msg": "string",
                    "name": "string"
                }
            ],
            "errorCode": "string",
            "errorMsg": "string",
            "stackTrace": "string",
            "succeeded": true
        },
        "eventId": {
            "aggregateId": {
                "contextName": "string",
                "aggregateName": "string",
                "tenantId": "(0)",
                "aggregateId": "string"
            },
            "id": "string",
            "version": 0,
            "initialized": true,
            "isInitialVersion": true
        },
        "executeAt": 0,
        "function": {
            "contextName": "string",
            "functionKind": "COMMAND",
            "name": "string",
            "processorName": "string"
        },
        "id": "string",
        "recoverable": "RECOVERABLE",
        "retrySpec": {
            "executionTimeout": 0,
            "maxRetries": 0,
            "minBackoff": 0
        },
        "retryState": {
            "nextRetryAt": 0,
            "retries": 0,
            "retryAt": 0,
            "timeoutAt": 0
        },
        "status": "FAILED",
        "isBelowRetryThreshold": true,
        "isRetryable": true
    },
    "tenantId": "string",
    "version": 0,
    "initialized": true,
    "isInitialVersion": true
}
🟠404记录不存在
上一页
Paged Query Snapshot State
下一页
Single Snapshot State
Built with