pulumi/pkg/apitype/logs.go
2018-01-10 15:43:44 -08:00

22 lines
694 B
Go

// Copyright 2016-2018, Pulumi Corporation. All rights reserved.
package apitype
// LogsResult is the JSON shape of responses to a Logs operation.
type LogsResult struct {
Logs []LogEntry `json:"logs"`
}
// LogEntry is the individual entries in a JSON response to a Logs operation.
type LogEntry struct {
ID string `json:"id"`
Timestamp int64 `json:"timestamp"`
Message string `json:"message"`
}
// GetStackLogsResponse describes the data returned by the `GET /stack/{stackID}/logs` endpoint of the PPC API.
type GetStackLogsResponse struct {
// LogEntries records the sequence of log entries generated by the stack's resources.
LogEntries []LogEntry `json:"logEntries"`
}