mirror of
https://github.com/fleetdm/fleet
synced 2026-05-03 13:28:40 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #38534 moved `/api/_version_/fleet/hosts/{id:[0-9]+}/activities` endpoint and `MarkActivitiesAsStreamed` to activity bounded context # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. ## Testing - [x] Added/updated automated tests - [x] Where appropriate, [automated tests simulate multiple hosts and test for host isolation](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/reference/patterns-backend.md#unit-testing) (updates to one hosts's records do not affect another) - [x] QA'd all new/changed functionality manually <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new endpoint to retrieve host-specific past activities with pagination metadata. * **Refactor** * Refactored activity service architecture and authorization layer to improve data provider integration and activity streaming capabilities. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
11 lines
408 B
Go
11 lines
408 B
Go
// Package api provides the public API for the activity bounded context.
|
|
// External code should use this package to interact with activities.
|
|
package api
|
|
|
|
// Service is the composite interface for the activity bounded context.
|
|
// It embeds all method-specific interfaces. Bootstrap returns this type.
|
|
type Service interface {
|
|
ListActivitiesService
|
|
ListHostPastActivitiesService
|
|
StreamActivitiesService
|
|
}
|