meterevent

package
v1.0.0-beta.200 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaximumFromDuration     = time.Hour * 24 * 32 // 32 days
	MaximumLimit        int = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ListEventsInput

type ListEventsInput struct {
	// The namespace.
	Namespace string
	// The client ID.
	ClientID *string
	// Start date-time. Inclusive.
	IngestedAtFrom *time.Time
	// End date-time. Inclusive.
	IngestedAtTo *time.Time
	// If not provided lists all events.
	// If provided with true, only list events with processing error.
	// If provided with false, only list events without processing error. */
	HasError *bool
	// The event ID. Accepts partial ID.
	ID *string
	// The event subject. Accepts partial subject.
	Subject *string
	// Start date-time. Inclusive.
	From time.Time
	// End date-time. Inclusive.
	To *time.Time
	// Number of events to return.
	Limit int
}

ListEventsInput represents the input for ListEvents method.

func (ListEventsInput) Validate

func (i ListEventsInput) Validate() error

Validate validates the input.

type Service

type Service interface {
	ListEvents(ctx context.Context, input ListEventsInput) ([]api.IngestedEvent, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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