sessionPublisher

package
v0.0.0-...-b44688a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// NAME is name of the plugin used to register it in Snap.
	NAME = "session-test"
	// VERSION represents version of the plugin.
	VERSION = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionPublisher

type SessionPublisher struct{}

The SessionPublisher is a test publisher hosted in swan which enables the session test to verify that tags have indeed been added to the metrics.

func (SessionPublisher) GetConfigPolicy

func (f SessionPublisher) GetConfigPolicy() (plugin.ConfigPolicy, error)

GetConfigPolicy is an implementation needed for the Publisher interface and here, returns configuration requiring 'swan_experiment' and 'swan_phase' to be set.

func (SessionPublisher) Publish

func (f SessionPublisher) Publish(metrics []plugin.Metric, config plugin.Config) error

Publish is an implementation needed for the Publisher interface and here, stores metrics by namespace and tags to a file, defined in the plugin configuration.

Jump to

Keyboard shortcuts

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