exporter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name      = "jellyfin"
	Namespace = "jellyfin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Capabilities

type Capabilities struct {
	PlayableMediaTypes           []string `json:"PlayableMediaTypes"`
	SupportedCommands            []string `json:"SupportedCommands"`
	SupportsMediaControl         bool     `json:"SupportsMediaControl"`
	SupportsContentUploading     bool     `json:"SupportsContentUploading"`
	SupportsPersistentIdentifier bool     `json:"SupportsPersistentIdentifier"`
	SupportsSync                 bool     `json:"SupportsSync"`
}

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func New

func New(apiUrl string, apiKey string, timeout time.Duration) *Exporter

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

func (*Exporter) GetName

func (e *Exporter) GetName() string

type FullNowPlayingItem

type FullNowPlayingItem struct {
	Size                     int      `json:"Size"`
	Container                string   `json:"Container"`
	IsHD                     bool     `json:"IsHD"`
	IsShortcut               bool     `json:"IsShortcut"`
	Width                    int      `json:"Width"`
	Height                   int      `json:"Height"`
	ExtraIds                 []int    `json:"ExtraIds"`
	DateLastSaved            string   `json:"DateLastSaved"`
	RemoteTrailers           []string `json:"RemoteTrailers"`
	SupportsExternalTransfer bool     `json:"SupportsExternalTransfer"`
}

type NowPlayingQueue

type NowPlayingQueue struct {
	ID             string `json:"ID"`
	PlaylistItemId string `json:"PlaylistItemId"`
}

type PlayState

type PlayState struct {
	CanSeek             bool   `json:"CanSeek"`
	IsPaused            bool   `json:"IsPaused"`
	IsMuted             bool   `json:"IsMuted"`
	RepeatMode          string `json:"RepeatMode"`
	PositionTicks       int    `json:"PositionTicks"`
	VolumeLevel         int    `json:"VolumeLevel"`
	AudioStreamIndex    int    `json:"AudioStreamIndex"`
	SubtitleStreamIndex int    `json:"SubtitleStreamIndex"`
	MediaSourceId       string `json:"MediaSourceId"`
	PlayMethod          string `json:"PlayMethod"`
}

type Result

type Result []Session

type Session

type Session struct {
	PlayState             PlayState          `json:"PlayState"`
	AdditionalUsers       []string           `json:"AdditionalUsers"`
	Capabilities          Capabilities       `json:"Capabilities"`
	RemoteEndPoint        string             `json:"RemoteEndPoint"`
	PlayableMediaTypes    []string           `json:"PlayableMediaTypes"`
	ID                    string             `json:"ID"`
	UserID                string             `json:"UserID"`
	UserName              string             `json:"UserName"`
	Client                string             `json:"Client"`
	LastActivityDate      string             `json:"LastActivityDate"`
	LastPlaybackCheckIn   string             `json:"LastPlaybackCheckIn"`
	DeviceName            string             `json:"DeviceName"`
	FullNowPlayingItem    FullNowPlayingItem `json:"FullNowPlayingItem"`
	DeviceId              string             `json:"DeviceId"`
	ApplicationVersion    string             `json:"ApplicationVersion"`
	IsActive              bool               `json:"IsActive"`
	SupportsMediaControl  bool               `json:"SupportsMediaControl"`
	SupportsRemoteControl bool               `json:"SupportsRemoteControl"`
	NowPlayingQueue       []NowPlayingQueue  `json:"NowPlayingQueue"`
	HasCustomDeviceName   bool               `json:"HasCustomDeviceName"`
	ServerId              string             `json:"ServerId"`
	SupportedCommands     []string           `json:"SupportedCommands"`
	TranscodingInfo       TranscodingInfo    `json:"TranscodingInfo"`
}

type Statistics

type Statistics struct {
	MovieCount      int `json:"MovieCount"`
	SeriesCount     int `json:"SeriesCount"`
	EpisodeCount    int `json:"EpisodeCount"`
	ArtistCount     int `json:"ArtistCount"`
	ProgramCount    int `json:"ProgramCount"`
	TrailerCount    int `json:"TrailerCount"`
	SongCount       int `json:"SongCount"`
	AlbumCount      int `json:"AlbumCount"`
	MusicVideoCount int `json:"MusicVideoCount"`
	BoxSetCount     int `json:"BoxSetCount"`
	BookCount       int `json:"BookCount"`
	ItemCount       int `json:"ItemCount"`
}

type TranscodingInfo

type TranscodingInfo struct {
	AudioCodec           string   `json:"AudioCodec"`
	VideoCodec           string   `json:"VideoCodec"`
	Container            string   `json:"Container"`
	IsVideoDirect        bool     `json:"IsVideoDirect"`
	IsAudioDirect        bool     `json:"IsAudioDirect"`
	Bitrate              int      `json:"Bitrate"`
	Framerate            int      `json:"Framerate"`
	CompletionPercentage float64  `json:"CompletionPercentage"`
	Width                int      `json:"Width"`
	Height               int      `json:"Height"`
	AudioChannels        int      `json:"AudioChannels"`
	TranscodeReasons     []string `json:"TranscodeReasons"`
}

Jump to

Keyboard shortcuts

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