connectorLogger

package
v0.0.0-...-8eb6d81 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Playbook Client

Types

ConnectorLogEntry:
- ID        string       
- TenantID  string       
- Connector string       
- User      string       
- Level     string       
- Message   Object
- RawError  string       
- CreatedAt time.Time    
- WrittenAt time.Time    
ConnectorLogEntries:
- Nodes      []*ConnectorLogEntry
- TotalCount int
Pagination:
- Page    *int 
- PerPage *int 

Functions

  • New(url string, timeout time.Duration) Client
  • GetAllConnectorLogs(tenantID string, args GetConnectorLoggerInput, pagination common.Pagination) (*ConnectorLogEntries, error)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string, opts ...client.Option) *connectorLoggerSvc

Types

type ConnectorLogEntries

type ConnectorLogEntries struct {
	Entries    []*ConnectorLogEntry `json:"entries"`
	TotalCount int                  `json:"totalCount"`
}

ConnectorLogEntries defines a list of logs along with other metadata

type ConnectorLogEntry

type ConnectorLogEntry struct {
	ID        string        `json:"id"`
	TenantID  string        `json:"tenant_id"`
	Connector string        `json:"connector"`
	User      string        `json:"user"`
	Level     string        `json:"level"`
	Message   common.Object `json:"message"`
	RawError  string        `json:"description"`
	CreatedAt time.Time     `json:"created_at"`
	WrittenAt time.Time     `json:"written_at"`
}

ConnectorLogEntry defines a single log entry

type ConnectorLogQueryInput

type ConnectorLogQueryInput struct {
	Connector string `json:"connector,omitempty"`
	Level     string `json:"level,omitempty"`
	Message   string `json:"message,omitempty"`
	RawError  string `json:"raw_error,omitempty"`
	User      string `json:"user,omitempty"`
}

type Service

type Service interface {
	GetAllConnectorLogs(args ConnectorLogQueryInput, pagination common.Pagination, opts ...graphql.RequestOption) (*ConnectorLogEntries, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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