api

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectorResponse

type CollectorResponse struct {
	Collector CollectorsResponse `json:"collector"`
}

type Collectors

type Collectors struct {
	Data []CollectorsResponse `json:"collectors"`
}

type CollectorsResponse

type CollectorsResponse struct {
	Alive              bool              `json:"alive"`
	Category           string            `json:"category,omitempty"`
	CollectorType      string            `json:"collectorType"`
	CollectorVersion   string            `json:"collectorVersion"`
	CutoffRelativeTime string            `json:"cutoffRelativeTime,omitempty"`
	CutoffTimestamp    int               `json:"cutoffTimestamp,omitempty"`
	Description        string            `json:"description,omitempty"`
	Ephemeral          bool              `json:"ephemeral"`
	Fields             map[string]string `json:"fields,omitempty"`
	Links              []collectorLinks  `json:"links,omitempty"`
	HostName           string            `json:"hostName,omitempty"`
	Id                 int               `json:"id"`
	LastSeenAlive      int               `json:"lastSeenAlive,omitempty"`
	Name               string            `json:"name"`
	SourceSyncMode     string            `json:"sourceSyncMode,omitempty"`
	TimeZone           string            `json:"timeZone,omitempty"`
	TargetCpu          int               `json:"targetCpu,omitempty"`
	OsName             string            `json:"osName,omitempty"`
	OsVersion          string            `json:"osVersion,omitempty"`
	OsArch             string            `json:"osArch,omitempty"`
	OsTime             int               `json:"osTime,omitempty"`
}

type CreateCollector

type CreateCollector struct {
	CollectorType string            `json:"collectorType"`
	Name          string            `json:"name"`
	Description   string            `json:"description,omitempty"`
	Category      string            `json:"category,omitempty"`
	Fields        map[string]string `json:"fields,omitempty"`
}

type CreateCollectorRequest

type CreateCollectorRequest struct {
	Collector CreateCollector `json:"collector"`
}

type CreateHTTPSource

type CreateHTTPSource struct {
	ApiVersion string     `json:"api.version"`
	Source     HttpSource `json:"source"`
}

type CreateRoleRequest

type CreateRoleRequest struct {
	Name                 string   `json:"name"`
	Description          string   `json:"description,omitempty"`
	FilterPredicate      string   `json:"filterPredicate,omitempty"`
	Users                []string `json:"users,omitempty"`
	Capabilities         []string `json:"capabilities,omitempty"`
	AutoFillDependencies bool     `json:"autoFillDependencies,omitempty"`
}

type CreateSourceResponse

type CreateSourceResponse struct {
	Source SourcesResponse `json:"source"`
}

type CreateUserRequest

type CreateUserRequest struct {
	Firstname    string   `json:"firstName"`
	Lastname     string   `json:"lastName"`
	Emailaddress string   `json:"email"`
	Roleids      []string `json:"roleIds"`
}

type DashboardSyncDefinition added in v0.4.0

type DashboardSyncDefinition struct {
	Type        string                      `json:"type"`
	Name        string                      `json:"name"`
	Description string                      `json:"description"`
	DetailLevel int                         `json:"detailLevel"`
	Properties  string                      `json:"properties"`
	Panels      []reportPanelSyncDefinition `json:"panels"`
	Filters     []filtersSyncDefinition     `json:"filters"`
}

type DisableUserMfa

type DisableUserMfa struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Errors

type Errors struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

type ExportStatusResponse added in v0.4.0

type ExportStatusResponse struct {
	Status        string      `json:"status"`
	StatusMessage string      `json:"statusMessage,omitempty"`
	Error         exportError `json:"error,omitempty"`
}

type FolderSyncDefinition added in v0.4.0

type FolderSyncDefinition struct {
	Type        string                  `json:"type"`
	Name        string                  `json:"name"`
	Description string                  `json:"description"`
	Children    []contentSyncDefinition `json:"children"`
}

type GetContentResponse added in v0.4.0

type GetContentResponse struct {
	CreatedAt   string   `json:"createdAt"`
	CreatedBy   string   `json:"createdBy"`
	ModifiedAt  string   `json:"modifiedAt"`
	ModifiedBy  string   `json:"modifiedBy"`
	Id          string   `json:"id"`
	Name        string   `json:"name"`
	ItemType    string   `json:"itemType"`
	ParentId    string   `json:"parentId"`
	Permissions []string `json:"permissions"`
}

type GetLookupTableResponse added in v0.4.0

type GetLookupTableResponse struct {
	CreatedAt   string `json:"createdAt"`
	CreatedBy   string `json:"createdBy"`
	ModifiedAt  string `json:"modifiedAt"`
	ModifiedBy  string `json:"modifiedBy"`
	Description string `json:"description"`
}

type GetPathResponse added in v0.4.0

type GetPathResponse struct {
	Path string `json:"path"`
}

type GetSourcesResponse

type GetSourcesResponse struct {
	Id                         int             `json:"id"`
	Name                       string          `json:"name"`
	Category                   string          `json:"category"`
	HostName                   string          `json:"hostName"`
	AutomaticDateParsing       bool            `json:"automaticDateParsing"`
	MultilineProcessingEnabled bool            `json:"multilineProcessingEnabled"`
	UseAutolineMatching        bool            `json:"useAutolineMatching"`
	ForceTimeZone              bool            `json:"forceTimeZone"`
	Filters                    []sourceFilters `json:"filters"`
	CutoffTimestamp            int             `json:"cutoffTimestamp"`
	Encoding                   string          `json:"encoding"`
	PathExpression             string          `json:"pathExpression"`
	Blacklist                  []string        `json:"blacklist"`
	SourceType                 string          `json:"sourceType"`
	Alive                      bool            `json:"alive"`
}

type HttpSource

type HttpSource struct {
	SourceType                 string            `json:"sourceType"`
	Name                       string            `json:"name"`
	Category                   string            `json:"category"`
	Fields                     map[string]string `json:"fields"`
	MessagePerRequest          bool              `json:"messagePerRequest"`
	MultilineProcessingEnabled bool              `json:"multilineProcessingEnabled"`
}

type ListSources

type ListSources struct {
	Sources []GetSourcesResponse `json:"sources"`
}

type LookupTableSyncDefinition added in v0.4.0

type LookupTableSyncDefinition struct {
	Type            string   `json:"type"`
	Name            string   `json:"name"`
	Description     string   `json:"description"`
	Fields          []fields `json:"fields"`
	PrimaryKeys     []string `json:"primaryKeys"`
	TTL             int      `json:"ttl"`
	SizeLimitAction string   `json:"sizeLimitAction"`
}

type MetricsSavedSearchSyncDefinition added in v0.4.0

type MetricsSavedSearchSyncDefinition struct {
	Type                      string                     `json:"type"`
	Name                      string                     `json:"name"`
	Description               string                     `json:"description"`
	TimeRange                 timeRangeDefinition        `json:"timeRange"`
	LogQuery                  string                     `json:"logQuery"`
	MetricsQueries            []metricsQueriesDefinition `json:"metricsQueries"`
	DesiredQuantizationInSecs int                        `json:"desiredQuantizationInSecs"`
	Properties                string                     `json:"properties"`
}

type MetricsSearchSyncDefinition added in v0.4.0

type MetricsSearchSyncDefinition struct {
	Type           string              `json:"type"`
	Name           string              `json:"name"`
	TimeRange      timeRangeDefinition `json:"timeRange"`
	Description    string              `json:"description"`
	Queries        []queries           `json:"queries"`
	VisualSettings string              `json:"visualSettings"`
}

type MewboardSyncDefinition added in v0.4.0

type MewboardSyncDefinition struct {
	Type             string                  `json:"type"`
	Name             string                  `json:"name"`
	Description      string                  `json:"description"`
	Title            string                  `json:"title"`
	RootPanel        rootPanelDefinition     `json:"rootPanel"`
	Theme            string                  `json:"theme"`
	TopologyLabelMap topologyLabelMap        `json:"topologyLabelMap"`
	RefreshInterval  int                     `json:"refreshInterval"`
	TimeRange        timeRangeDefinition     `json:"timeRange"`
	Layout           layout                  `json:"layout"`
	Panels           panelsDefinition        `json:"panels"`
	Variables        variablesDefinition     `json:"variables"`
	ColoringRules    coloringRulesDefinition `json:"coloringRules"`
}

type MoveResponse added in v0.4.0

type MoveResponse struct {
	Id     string       `json:"id"`
	Errors []moveErrors `json:"errors"`
}

type ResponseError

type ResponseError struct {
	Id     string   `json:"id"`
	Errors []Errors `json:"errors"`
}

type ResponseType added in v0.4.0

type ResponseType struct {
	Type string `json:"type"`
}

type Role

type Role struct {
	Data []RoleData `json:"data"`
}

type RoleData

type RoleData struct {
	Name                 string   `json:"name"`
	Description          string   `json:"description"`
	FilterPredicate      string   `json:"filterPredicate"`
	Users                []string `json:"users"`
	Capabilities         []string `json:"capabilities"`
	AutofillDependencies bool     `json:"autofillDependencies"`
	CreatedAt            string   `json:"createdAt"`
	CreatedBy            string   `json:"createdBy"`
	ModifiedAt           string   `json:"modifiedAt"`
	ModifiedBy           string   `json:"modifiedBy"`
	Id                   string   `json:"id"`
	SystemDefined        bool     `json:"systemDefined"`
}

type SavedSearchWithScheduleSyncDefinition added in v0.4.0

type SavedSearchWithScheduleSyncDefinition struct {
	Type           string         `json:"type"`
	Name           string         `json:"name"`
	Search         search         `json:"search"`
	SearchSchedule searchSchedule `json:"searchSchedule"`
	Description    string         `json:"description"`
}

type SourcesResponse

type SourcesResponse struct {
	Id                         int               `json:"id"`
	Name                       string            `json:"name"`
	HostName                   string            `json:"hostName,omitempty"`
	AutomaticDateParsing       bool              `json:"automaticDateParsing"`
	MultilineProcessingEnabled bool              `json:"multilineProcessingEnabled"`
	UseAutolineMatching        bool              `json:"useAutolineMatching"`
	ContentType                string            `json:"contentType"`
	ForceTimezone              bool              `json:"forceTimezome"`
	Filters                    []sourceFilters   `json:"filters"`
	CutoffTimestamp            int               `json:"cutoffTimestamp"`
	Encoding                   string            `json:"encoding"`
	Interval                   int               `json:"interval"`
	Metrics                    []string          `json:"metrics"`
	SourceType                 string            `json:"sourceType"`
	Alive                      bool              `json:"alive"`
	Url                        string            `json:"url,omitempty"`
	Category                   string            `json:"category,omitempty"`
	Fields                     map[string]string `json:"fields,omitempty"`
	MessagePerRequest          bool              `json:"messagePerRequest"`
}

type StartExportResponse added in v0.4.0

type StartExportResponse struct {
	Id string `json:"id"`
}

type SumoApiEndpoint

type SumoApiEndpoint struct {
	Name     string
	Code     string
	Endpoint string
}

type SumoAuth

type SumoAuth struct {
	AccessId  string `json:"accessid"`
	AccessKey string `json:"accesskey"`
	Region    string `json:"region"`
	Endpoint  string `json:"endpoint"`
}

type Targets added in v0.3.0

type Targets struct {
	Targets []targetsResponse `json:"targets"`
}

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Name                 string   `json:"name"`
	Description          string   `json:"description"`
	FilterPredicate      string   `json:"filterPredicate"`
	Users                []string `json:"users,omitempty"`
	Capabilities         []string `json:"capabilities,omitempty"`
	AutoFillDependencies bool     `json:"autoFillDependencies,omitempty"`
}

type UpdateUserEmail

type UpdateUserEmail struct {
	Email string `json:"email"`
}

type UpdateUserRequest

type UpdateUserRequest struct {
	Firstname string   `json:"firstName"`
	Lastname  string   `json:"lastName"`
	IsActive  bool     `json:"isActive"`
	Roleids   []string `json:"roleIds"`
}

type UpgradeTask added in v0.3.0

type UpgradeTask struct {
	CollectorId int    `json:"collectorId"`
	ToVersion   string `json:"toVersion"`
}

type UpgradeTaskResponse added in v0.3.0

type UpgradeTaskResponse struct {
	Id   string          `json:"id"`
	Link upgradeTaskLink `json:"link"`
}

type UpgradeTaskStatus added in v0.3.0

type UpgradeTaskStatus struct {
	Upgrade upgradeTaskProgress `json:"upgrade"`
}

type UserResponse

type UserResponse struct {
	Firstname          string   `json:"firstName"`
	Lastname           string   `json:"lastName"`
	Email              string   `json:"email"`
	RoleIds            []string `json:"roleIds"`
	CreatedAt          string   `json:"createdAt"`
	CreatedBy          string   `json:"createdBy"`
	ModifiedAt         string   `json:"modifiedAt"`
	ModifiedBy         string   `json:"modifiedBy"`
	Id                 string   `json:"id"`
	IsActive           bool     `json:"isActive"`
	IsLocked           bool     `json:"isLocked"`
	IsMfaEnabled       bool     `json:"isMfaEnabled"`
	LastLoginTimestamp string   `json:"lastLoginTimestamp"`
}

type Users

type Users struct {
	Data []UserResponse `json:"data"`
	Next string         `json:"next"`
}

Jump to

Keyboard shortcuts

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