2018-01-11 00:04:55 +01:00
|
|
|
// 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"`
|
|
|
|
}
|
2018-01-11 00:43:44 +01:00
|
|
|
|
|
|
|
// 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"`
|
|
|
|
}
|