Implement platform management features
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user