Skip to content

v2.2.8

Choose a tag to compare

@mittwald-machine mittwald-machine released this 08 Oct 19:21
· 1 commit to master since this release

New Activity Log Schemas

Added comprehensive auto-generated PHP schema classes for container activity log events, enabling robust tracking and handling of container lifecycle and configuration changes. These schemas provide structured data models for both before and after states, along with contextual parameters and strict JSON schema validation, all generated via the mittwald/api-client-builder toolchain.

Container Lifecycle Events

  • container.started
  • container.stopped
  • container.restarted
  • container.recreated

Container Configuration & State Changes

  • container.command-updated: Tracks changes to container execution commands.
  • container.description-updated: Logs updates to container descriptions.
  • container.entrypoint-updated: Records modifications to container entrypoint configurations.
  • container.envs-updated: Monitors changes to environment variables.
  • container.image-updated / container.image-pulled: Captures image reference and digest updates.
  • container.ports-updated: Tracks port mapping changes.

Schema Features & Capabilities

  • Immutable Builder Pattern: Each schema class supports fluent with* methods for safe state mutations without side effects.
  • Strict Validation: Built-in JSON schema validation with detailed error reporting via validateInput().
  • Serialization Support: Seamless conversion to/from JSON via toJson() and buildFromInput().
  • Contextual Parameters: All events include standardized metadata (container, serviceName, shortId, stack) for precise tracing across services and stacks.
  • Namespace Organization: All new classes reside under Mittwald\ApiClient\Generated\V2\Schemas\Activitylog.