# 9.8 peipkg.repository.refreshed

_Peios / Using Peios / Events / Package Events_

> The record that peipkg refreshed the metadata of its configured repositories.

- **Event type:** `peipkg.repository.refreshed`
- **Defined in:** `peipkg.evman`
- **Tier:** standard
- **Gating:** none
- **Cardinality:** once per refresh command

The record that peipkg refreshed the metadata of its configured
repositories. One refresh covers every repository it was asked to; a failure
of one does not stop the others, so a refresh can partly succeed. A refresh
that fails before it reaches any repository writes nothing.

Replaces `peipkg.refresh`.

## 9.8.1 Fields

| Field | Type | Presence | Meaning |
|---|---|---|---|
| [`subject.token.sid`](/peios/using-peios/events/field-index/fields-subject.md#subject.token.sid) | `bin.sid` | required | The user SID of the effective token the operation ran under. |
| [`operation.succeeded-count`](/peios/using-peios/events/field-index/fields-operation.md#operation.succeeded-count) | `uint` | required | Repositories refreshed. |
| [`operation.failed-count`](/peios/using-peios/events/field-index/fields-operation.md#operation.failed-count) | `uint` | required | Repositories whose refresh failed. |
| [`outcome.success`](/peios/using-peios/events/field-index/fields-outcome.md#outcome.success) | `bool` | required | False when any repository failed to refresh. |

Every record also carries the header fields of [the envelope](/peios/using-peios/events/introduction/the-envelope.md), which no payload repeats.

*Generated from `peipkg.evman` by `pkm/tools/gen-events-book.py`. Edit the fragment, not this page.*
