logs

package
v0.0.0-...-ce3cc77 Latest Latest
Warning

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

Go to latest
Published: May 19, 2015 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByTimestamp

type ByTimestamp []LogEvent

func (ByTimestamp) Len

func (events ByTimestamp) Len() int

func (ByTimestamp) Less

func (events ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (events ByTimestamp) Swap(i, j int)

type CloudWatchLogs

type CloudWatchLogs struct {
	Endpoint string
	Auth     aws.Auth
	Region   aws.Region
}

func New

func New(auth aws.Auth, endpoint string, region string) (*CloudWatchLogs, error)

Create a new CloudWatchLogs object for a given namespace

func (*CloudWatchLogs) CreateLogGroup

func (c *CloudWatchLogs) CreateLogGroup(req *CreateLogGroupRequest) error

func (*CloudWatchLogs) CreateLogStream

func (c *CloudWatchLogs) CreateLogStream(req *CreateLogStreamRequest) error

func (*CloudWatchLogs) DescribeLogGroups

func (c *CloudWatchLogs) DescribeLogGroups(req *DescribeLogGroupsRequest) (r []*LogGroup, err error)

func (*CloudWatchLogs) DescribeLogStreams

func (c *CloudWatchLogs) DescribeLogStreams(req *DescribeLogStreamsRequest) (r []*LogStream, err error)

func (*CloudWatchLogs) GetLogEvents

func (c *CloudWatchLogs) GetLogEvents(req *GetLogEventsRequest) (r *GetLogEventsResponse, err error)

func (*CloudWatchLogs) PutLogEvents

func (c *CloudWatchLogs) PutLogEvents(req *PutLogEventsRequest) (string, error)

type CreateLogGroupRequest

type CreateLogGroupRequest struct {
	LogGroupName string `json:"logGroupName"`
}

type CreateLogStreamRequest

type CreateLogStreamRequest struct {
	LogGroupName  string `json:"logGroupName"`
	LogStreamName string `json:"logStreamName"`
}

type DescribeLogGroupsRequest

type DescribeLogGroupsRequest struct {
	Limit              string
	LogGroupNamePrefix string
	NextToken          string
}

type DescribeLogGroupsResponse

type DescribeLogGroupsResponse struct {
	NextToken string
	LogGroups []*LogGroup
}

type DescribeLogStreamsRequest

type DescribeLogStreamsRequest struct {
	Limit               int    `json:"limit,omitempty"`
	LogGroupName        string `json:"logGroupName,omitempty"`
	LogStreamNamePrefix string `json:"logStreamNamePrefix,omitempty"`
	NextToken           string `json:"nextToken,omitempty"`
}

type DescribeLogStreamsResponse

type DescribeLogStreamsResponse struct {
	NextToken  string
	LogStreams []*LogStream
}

type Error

type Error struct {
	StatusCode int // HTTP status code (200, 403, ...)
	Status     string
	Code       string `json:"__type"`
	Message    string `json:"message"`
}

Error represents an error in an operation with Kinesis(following goamz/Dynamodb)

func (Error) Error

func (e Error) Error() string

type Event

type Event struct {
	IngestionTime int
	Message       string
	Timestamp     int64
}

type GetLogEventsRequest

type GetLogEventsRequest struct {
	Limit         int    `json:"limit,omitempty"`
	EndTime       int64  `json:"endTime,omitempty"`
	LogGroupName  string `json:"logGroupName,omitempty"`
	LogStreamName string `json:"logStreamName,omitempty"`
	NextToken     string `json:"nextToken,omitempty"`
	StartFromHead bool   `json:"startFromHead"`
	StartTime     int64  `json:"startTime"`
}

type GetLogEventsResponse

type GetLogEventsResponse struct {
	Events            []*Event
	NextForwardToken  string
	NextBackwardToken string
}

type LogEvent

type LogEvent struct {
	Message   string `json:"message"`
	Timestamp int64  `json:"timestamp"`
}

type LogGroup

type LogGroup struct {
	Arn               string
	CreationTime      int64
	LogGroupName      string
	MetricFilterCount int
	RetentionInDays   int
	StoredBytes       int64
}

type LogStream

type LogStream struct {
	Arn                 string
	CreationTime        int64
	FirstEventTimestamp int64
	LastEventTimestamp  int64
	LastIngestionTime   int64
	LogStreamName       string
	StoredBytes         int64
	UploadSequenceToken string
}

type PutLogEventsRequest

type PutLogEventsRequest struct {
	LogEvents     []LogEvent `json:"logEvents"`
	LogGroupName  string     `json:"logGroupName"`
	LogStreamName string     `json:"logStreamName"`
	SequenceToken string     `json:"sequenceToken,omitempty"`
}

type PutLogEventsResponse

type PutLogEventsResponse struct {
	NextSequenceToken string `json:"nextSequenceToken"`
}

Jump to

Keyboard shortcuts

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