endpoint

package
v11.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package endpoint provides Graylog API endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

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

Endpoints represents each API's endpoint URLs.

func NewEndpoints

func NewEndpoints(endpoint string) (*Endpoints, error)

NewEndpoints returns a new Endpoints.

func NewEndpointsV3

func NewEndpointsV3(endpoint string) (*Endpoints, error)

NewEndpointsV3 returns a new Endpoints for Graylog API v3.

func (*Endpoints) AlarmCallbacks

func (ep *Endpoints) AlarmCallbacks() string

AlarmCallbacks returns AlarmCallbacks API's endpoint url.

func (*Endpoints) Alert

func (ep *Endpoints) Alert(id string) string

Alert returns an Alert API's endpoint url.

func (*Endpoints) AlertConditions

func (ep *Endpoints) AlertConditions() string

AlertConditions returns an Alert Condition API's endpoint url.

func (*Endpoints) Alerts

func (ep *Endpoints) Alerts() string

Alerts returns Alerts API's endpoint url.

func (*Endpoints) AvailableOutputs

func (ep *Endpoints) AvailableOutputs() string

AvailableOutputs returns a Output API's endpoint url.

func (*Endpoints) CollectorConfiguration

func (ep *Endpoints) CollectorConfiguration(id string) string

CollectorConfiguration returns a Collector Configuration API's endpoint url.

func (*Endpoints) CollectorConfigurationInput

func (ep *Endpoints) CollectorConfigurationInput(id, inputID string) string

CollectorConfigurationInput returns a Collector Configuration Input API's endpoint url.

func (*Endpoints) CollectorConfigurationInputs

func (ep *Endpoints) CollectorConfigurationInputs(id string) string

CollectorConfigurationInputs returns a Collector Configuration Input API's endpoint url.

func (*Endpoints) CollectorConfigurationName

func (ep *Endpoints) CollectorConfigurationName(id string) string

CollectorConfigurationName returns a Collector Configuration API's endpoint url.

func (*Endpoints) CollectorConfigurationOutput

func (ep *Endpoints) CollectorConfigurationOutput(id, outputID string) string

CollectorConfigurationOutput returns a Collector Configuration Output API's endpoint url.

func (*Endpoints) CollectorConfigurationOutputs

func (ep *Endpoints) CollectorConfigurationOutputs(id string) string

CollectorConfigurationOutputs returns a Collector Configuration Output API's endpoint url.

func (*Endpoints) CollectorConfigurationSnippet

func (ep *Endpoints) CollectorConfigurationSnippet(id, snippetID string) string

CollectorConfigurationSnippet returns a Collector Configuration Snippet API's endpoint url.

func (*Endpoints) CollectorConfigurationSnippets

func (ep *Endpoints) CollectorConfigurationSnippets(id string) string

CollectorConfigurationSnippets returns a Collector Configuration Snippet API's endpoint url.

func (*Endpoints) CollectorConfigurations

func (ep *Endpoints) CollectorConfigurations() string

CollectorConfigurations returns a Collector Configuration API's endpoint url.

func (*Endpoints) ConnectPipelinesToStream

func (ep *Endpoints) ConnectPipelinesToStream() string

ConnectPipelinesToStream returns a connect processing pipelines to a stream API's endpoint url.

func (*Endpoints) ConnectStreamsToPipeline

func (ep *Endpoints) ConnectStreamsToPipeline() string

ConnectStreamsToPipeline returns a connect streams to a pipeline API's endpoint url.

func (*Endpoints) Dashboard

func (ep *Endpoints) Dashboard(id string) string

Dashboard returns a Dashboard API's endpoint url.

func (*Endpoints) DashboardWidget

func (ep *Endpoints) DashboardWidget(dashboardID, widgetID string) string

DashboardWidget returns a Dashboard Widget API's endpoint url.

func (*Endpoints) DashboardWidgetCacheTime

func (ep *Endpoints) DashboardWidgetCacheTime(dashboardID, widgetID string) string

DashboardWidgetCacheTime returns a Dashboard Widget cache time API's endpoint url.

func (*Endpoints) DashboardWidgetDescription

func (ep *Endpoints) DashboardWidgetDescription(dashboardID, widgetID string) string

DashboardWidgetDescription returns a Dashboard Widget description API's endpoint url.

func (*Endpoints) DashboardWidgets

func (ep *Endpoints) DashboardWidgets(dashboardID string) string

DashboardWidgets returns a Dashboard Widget API's endpoint url.

func (*Endpoints) DashboardWidgetsPosition

func (ep *Endpoints) DashboardWidgetsPosition(dashboardID string) string

DashboardWidgetsPosition returns a Dashboard widgets position API's endpoint url.

func (*Endpoints) Dashboards

func (ep *Endpoints) Dashboards() string

Dashboards returns a Dashboard API's endpoint url.

func (*Endpoints) EnabledStreams

func (ep *Endpoints) EnabledStreams() string

EnabledStreams returns GetEnabledStreams API's endpoint url.

func (*Endpoints) EventDefinition

func (ep *Endpoints) EventDefinition(id string) string

EventDefinition returns a EventDefinition API's endpoint url.

func (*Endpoints) EventDefinitions

func (ep *Endpoints) EventDefinitions() string

EventDefinitions returns a EventDefinition API's endpoint url.

func (*Endpoints) EventNotification

func (ep *Endpoints) EventNotification(id string) string

EventNotification returns a EventNotification API's endpoint url.

func (*Endpoints) EventNotifications

func (ep *Endpoints) EventNotifications() string

EventNotifications returns a EventNotification API's endpoint url.

func (*Endpoints) Extractor

func (ep *Endpoints) Extractor(inputID, extractorID string) string

Extractor returns a Stream Rule API's endpoint url.

func (*Endpoints) Extractors

func (ep *Endpoints) Extractors(inputID string) string

Extractors returns Stream Rules API's endpoint url.

func (*Endpoints) GrokPattern

func (ep *Endpoints) GrokPattern(id string) string

GrokPattern returns a GrokPattern API's endpoint url.

func (*Endpoints) GrokPatternTest

func (ep *Endpoints) GrokPatternTest() string

GrokPatternMembers returns /system/grok/test endpoint url.

func (*Endpoints) GrokPatterns

func (ep *Endpoints) GrokPatterns() string

GrokPatterns returns a GrokPattern API's endpoint url.

func (*Endpoints) IndexSet

func (ep *Endpoints) IndexSet(id string) string

IndexSet returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetStats

func (ep *Endpoints) IndexSetStats(id string) string

IndexSetStats returns an IndexSet stats API's endpoint url.

func (*Endpoints) IndexSets

func (ep *Endpoints) IndexSets() string

IndexSets returns an IndexSet API's endpoint url.

func (*Endpoints) IndexSetsStats

func (ep *Endpoints) IndexSetsStats() string

IndexSetsStats returns all IndexSets stats API's endpoint url.

func (*Endpoints) Input

func (ep *Endpoints) Input(id string) string

Input returns an Input API's endpoint url.

func (*Endpoints) InputStaticField

func (ep *Endpoints) InputStaticField(inputID, key string) string

InputStaticField returns the StaticFields API's endpoint url.

func (*Endpoints) InputStaticFields

func (ep *Endpoints) InputStaticFields(inputID string) string

InputStaticFields returns the StaticFields API's endpoint url.

func (*Endpoints) Inputs

func (ep *Endpoints) Inputs() string

Inputs returns an Input API's endpoint url.

func (*Endpoints) LDAPGroupRoleMapping

func (ep *Endpoints) LDAPGroupRoleMapping() string

LDAPGroupRoleMapping returns the LDAP Group and role mapping API's endpoint url.

func (*Endpoints) LDAPGroups

func (ep *Endpoints) LDAPGroups() string

LDAPGroups returns the LDAP Setting API's endpoint url.

func (*Endpoints) LDAPSetting

func (ep *Endpoints) LDAPSetting() string

LDAPSetting returns the LDAP Setting API's endpoint url.

func (*Endpoints) Output

func (ep *Endpoints) Output(id string) string

Output returns a Output API's endpoint url.

func (*Endpoints) Outputs

func (ep *Endpoints) Outputs() string

Outputs returns a Output API's endpoint url.

func (*Endpoints) PauseStream

func (ep *Endpoints) PauseStream(id string) string

PauseStream returns PauseStream API's endpoint url.

func (*Endpoints) Pipeline

func (ep *Endpoints) Pipeline(id string) string

Pipeline returns a Pipeline API's endpoint url.

func (*Endpoints) PipelineConnections

func (ep *Endpoints) PipelineConnections() string

PipelineConnections returns a Pipeline Connections API's endpoint url.

func (*Endpoints) PipelineConnectionsOfStream

func (ep *Endpoints) PipelineConnectionsOfStream(id string) string

PipelineConnectionsOfStream returns a Pipeline Connections for a given stream API's endpoint url.

func (*Endpoints) PipelineRule

func (ep *Endpoints) PipelineRule(id string) string

PipelineRule returns a Pipeline Rule API's endpoint url.

func (*Endpoints) PipelineRules

func (ep *Endpoints) PipelineRules() string

PipelineRules returns a Pipeline Rules API's endpoint url.

func (*Endpoints) Pipelines

func (ep *Endpoints) Pipelines() string

Pipelines returns a Pipeline API's endpoint url.

func (*Endpoints) ResumeStream

func (ep *Endpoints) ResumeStream(id string) string

ResumeStream returns ResumeStream API's endpoint url.

func (*Endpoints) Role

func (ep *Endpoints) Role(name string) string

Role returns a Role API's endpoint url.

func (*Endpoints) RoleMember

func (ep *Endpoints) RoleMember(userName, roleName string) string

RoleMember returns given role member endpoint url.

func (*Endpoints) RoleMembers

func (ep *Endpoints) RoleMembers(name string) string

RoleMembers returns given role's member endpoint url.

func (*Endpoints) Roles

func (ep *Endpoints) Roles() string

Roles returns a Role API's endpoint url.

func (*Endpoints) SetDefaultIndexSet

func (ep *Endpoints) SetDefaultIndexSet(id string) string

SetDefaultIndexSet returns SetDefaultIndexSet API's endpoint url.

func (*Endpoints) Stream

func (ep *Endpoints) Stream(id string) string

Stream returns a Stream API's endpoint url.

func (*Endpoints) StreamAlarmCallback

func (ep *Endpoints) StreamAlarmCallback(streamID, id string) string

StreamAlarmCallback returns Stream Alarm Callback API's endpoint url.

func (*Endpoints) StreamAlarmCallbacks

func (ep *Endpoints) StreamAlarmCallbacks(streamID string) string

StreamAlarmCallbacks returns Stream Alarm Callback API's endpoint url.

func (*Endpoints) StreamAlertCondition

func (ep *Endpoints) StreamAlertCondition(streamID, id string) string

StreamAlertCondition returns Stream Alert Condition API's endpoint url.

func (*Endpoints) StreamAlertConditions

func (ep *Endpoints) StreamAlertConditions(streamID string) string

StreamAlertConditions returns Stream Alert Condition API's endpoint url.

func (*Endpoints) StreamOutput

func (ep *Endpoints) StreamOutput(streamID, outputID string) string

Output returns a Output API's endpoint url.

func (*Endpoints) StreamOutputs

func (ep *Endpoints) StreamOutputs(streamID string) string

Outputs returns a Output API's endpoint url.

func (*Endpoints) StreamRule

func (ep *Endpoints) StreamRule(streamID, streamRuleID string) string

StreamRule returns a Stream Rule API's endpoint url.

func (*Endpoints) StreamRuleTypes

func (ep *Endpoints) StreamRuleTypes(streamID string) string

StreamRuleTypes returns Stream Rule Types API's endpoint url.

func (*Endpoints) StreamRules

func (ep *Endpoints) StreamRules(streamID string) string

StreamRules returns Stream Rules API's endpoint url.

func (*Endpoints) Streams

func (ep *Endpoints) Streams() string

Streams returns a Stream API's endpoint url.

func (*Endpoints) User

func (ep *Endpoints) User(name string) string

User returns a User API's endpoint url.

func (*Endpoints) UserToken added in v11.1.0

func (ep *Endpoints) UserToken(userName, tokenName string) string

UserToken returns a User token API's endpoint url.

func (*Endpoints) UserTokens added in v11.1.0

func (ep *Endpoints) UserTokens(name string) string

UserTokens returns a User token API's endpoint url.

func (*Endpoints) Users

func (ep *Endpoints) Users() string

Users returns a User API's endpoint url.

Jump to

Keyboard shortcuts

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