Skip to content

API Reference / Proxy remediations

Summarise proxy repairs

Returns the figures of the repairs in your workspace whose problem was found in a period, optionally narrowed by pool: how many were found and how they stand (fixed, stopped, waiting, in progress), how many accounts they touched, the average time from problem found to fixed, and how the fixed ones ended.

POST/proxies.v1.Proxies/GetRemediationSummary

Request body

application/jsonRequired

Request for the figures of the repairs in the caller's workspace, usually over a period.

filter?RemediationFilter

The same filter as ListRemediations. Created_from and created_before set the period by when each problem was found.

Show attributes
createdBefore?string

Optional end of a period, exclusive: only repairs whose problem was found before this instant. Unset does not restrict.

Format"date-time"

createdFrom?string

Optional start of a period, inclusive: only repairs whose problem was found at or after this instant. Unset does not restrict.

Format"date-time"

poolId?string

Optional pool id to limit results to that pool's remediation records. Unset includes remediation records across all pools.

Format"byte" base64

Response body

application/json

Success

accountCount?integer

Number of distinct accounts with at least one repair in the period.

Format"int32"

averageRepairDuration?string

Average of completed_at minus created_at over the fixed repairs. Absent when none is fixed.

fixedCount?integer

Repairs that finished: status done.

Format"int32"

foundCount?integer

Number of repairs whose problem was found in the period. Equals fixed_count + stopped_count + waiting_count + in_progress_count.

Format"int32"

inProgressCount?integer

Every other unfinished repair.

Format"int32"

outcomeCounts?array<RemediationOutcomeCount>

The fixed repairs by how they ended, adding up to fixed_count. Unset counts repairs finished before outcomes were recorded. Outcomes with no repairs are left out.

Show attributes
count?integer

Number of fixed repairs with this outcome.

Format"int32"

outcome?string

The outcome this count is for.

Value in"REMEDIATION_OUTCOME_MOVED""REMEDIATION_OUTCOME_BOUGHT""REMEDIATION_OUTCOME_RENEWED""REMEDIATION_OUTCOME_REPLACED"

stoppedCount?integer

Repairs that stopped and need attention: status halted.

Format"int32"

waitingCount?integer

Repairs that need a new endpoint and are waiting, with a waiting reason.

Format"int32"

curl -X POST "https://api.goldmine.to/proxies.v1.Proxies/GetRemediationSummary" \
  -H "Authorization: Bearer $CSTRADER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter": {
      "createdFrom": "2026-06-22T00:00:00Z",
      "createdBefore": "2026-06-29T00:00:00Z"
    }
  }'
{
  "foundCount": 5,
  "fixedCount": 3,
  "stoppedCount": 1,
  "waitingCount": 1,
  "inProgressCount": 0,
  "accountCount": 4,
  "averageRepairDuration": "540s",
  "outcomeCounts": [
    {
      "outcome": "REMEDIATION_OUTCOME_BOUGHT",
      "count": 2
    },
    {
      "outcome": "REMEDIATION_OUTCOME_REPLACED",
      "count": 1
    }
  ]
}