stats

package
v11.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RawMessageCount      = census.Int64("raw_request_ct", "Raw request count", "1")
	RawMessagesSentCount = census.Int64("raw_messages_sent_ct", "Raw messages sent count", "1")
	MessagesPostedCount  = census.Int64("messages_posted_ct", "Messages posted count", "1")
	RawEventsCount       = census.Int64("raw_events_ct", "Raw events count", "1")
	OpCodesCount         = census.Int64("opcode_events_ct", "OpCode events count", "1")
)
View Source
var (
	TagStatus, _    = census.NewTagKey("status")
	TagEventName, _ = census.NewTagKey("event_name")
	TagOpCode, _    = census.NewTagKey("op_code")
)
View Source
var (
	RawMessageCountView = &census.View{
		Name:        "raw_requests",
		TagKeys:     []census.TagKey{},
		Measure:     RawMessageCount,
		Description: "The number of raw messages received",
		Aggregation: census.CountView(),
	}

	RawMessagesSentCountView = &census.View{
		Name:        "raw_messages_sent",
		TagKeys:     []census.TagKey{},
		Measure:     RawMessagesSentCount,
		Description: "The number of raw messages sent",
		Aggregation: census.CountView(),
	}

	MessagesPostedCountView = &census.View{
		Name: "messages_posted",
		TagKeys: []census.TagKey{
			TagStatus,
		},
		Measure:     MessagesPostedCount,
		Description: "The number of messages posted to discord",
		Aggregation: census.CountView(),
	}

	RawEventsCountView = &census.View{
		Name: "raw_events",
		TagKeys: []census.TagKey{
			TagEventName,
		},
		Measure:     RawEventsCount,
		Description: "The number of events processed by the messagehandler",
		Aggregation: census.CountView(),
	}

	OpCodesCountView = &census.View{
		Name: "opcode_events",
		TagKeys: []census.TagKey{
			TagOpCode,
		},
		Measure:     OpCodesCount,
		Description: "The number of opcode events processed by the messagehandler",
		Aggregation: census.CountView(),
	}
)

Functions

func Register

func Register() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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