checkoomevent

package module
v0.0.0-...-0845cb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checkoomevent

func Checkoomevent(w http.ResponseWriter, r *http.Request)

Types

type LogEntry

type LogEntry struct {
	Message  string `json:"message"`
	Severity string `json:"severity,omitempty"`
	// Trace will be the same for one function call, you can use it for filetering in logs
	Trace  string            `json:"logging.googleapis.com/trace,omitempty"`
	Labels map[string]string `json:"logging.googleapis.com/operation,omitempty"`
	// Cloud Log Viewer allows filtering and display of this as `jsonPayload.component`.
	Component string `json:"component,omitempty"`
}

Entry defines a log entry.

func (LogEntry) String

func (e LogEntry) String() string

String renders an entry structure to the JSON format expected by Cloud Logging.

type MessagePayload

type MessagePayload struct {
	Attributes   map[string]string `json:"attributes"`
	Data         string            `json:"data"` // This property is base64 encoded
	MessageId    string            `json:"messageId"`
	Message_Id   string            `json:"message_id"`
	PublishTime  string            `json:"publishTime"`
	Publish_time string            `json:"publish_time"`
}

This is the Message payload of pubsub message

type ProwMessage

type ProwMessage struct {
	Project string                   `json:"project"`
	Topic   string                   `json:"topic"`
	RunID   string                   `json:"runid"`
	Status  string                   `json:"status"`
	URL     string                   `json:"url"`
	GcsPath string                   `json:"gcs_path"`
	Refs    []map[string]interface{} `json:"refs"`
	JobType string                   `json:"job_type"`
	JobName string                   `json:"job_name"`
}

This is the Data payload of pubsub message payload.

type PubSubMessage

type PubSubMessage struct {
	Message      MessagePayload `json:"message"`
	Subscription string         `json:"subscription"`
}

This message will be send by pubsub system.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL