Implement platform management features

This commit is contained in:
npc0-hue
2026-08-17 08:48:45 +08:00
parent 65353cf269
commit 302f1f64b7
38 changed files with 2185 additions and 110 deletions
+8
View File
@@ -893,6 +893,8 @@ type LogStreamCreateRequest struct {
ServerInstanceID string `json:"serverInstanceId"`
Source domain.LogStreamSource `json:"source"`
StreamKey string `json:"streamKey"`
LogSessionID string `json:"logSessionId,omitempty"`
SessionStartedAt time.Time `json:"sessionStartedAt,omitempty"`
StorageBackend domain.LogStorageBackend `json:"storageBackend"`
RetentionPolicy string `json:"retentionPolicy"`
}
@@ -902,6 +904,8 @@ type LogStreamResponse struct {
ServerInstanceID string `json:"serverInstanceId"`
Source domain.LogStreamSource `json:"source"`
StreamKey string `json:"streamKey"`
LogSessionID string `json:"logSessionId,omitempty"`
SessionStartedAt time.Time `json:"sessionStartedAt,omitempty"`
LatestSeq uint64 `json:"latestSeq"`
StorageBackend domain.LogStorageBackend `json:"storageBackend"`
RetentionPolicy string `json:"retentionPolicy"`
@@ -1363,6 +1367,8 @@ func (request LogStreamCreateRequest) ToDomain() domain.LogStream {
ServerInstanceID: request.ServerInstanceID,
Source: request.Source,
StreamKey: request.StreamKey,
LogSessionID: request.LogSessionID,
SessionStartedAt: request.SessionStartedAt,
StorageBackend: request.StorageBackend,
RetentionPolicy: request.RetentionPolicy,
}
@@ -1938,6 +1944,8 @@ func LogStreamFromDomain(stream domain.LogStream) LogStreamResponse {
ServerInstanceID: stream.ServerInstanceID,
Source: stream.Source,
StreamKey: stream.StreamKey,
LogSessionID: stream.LogSessionID,
SessionStartedAt: stream.SessionStartedAt,
LatestSeq: stream.LatestSeq,
StorageBackend: stream.StorageBackend,
RetentionPolicy: stream.RetentionPolicy,