vendors

package
v0.15.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 29 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ZohoOAuthV2TokenURL          = "https://accounts.zoho.com/oauth/v2/token"
	Site24x7ApiURL               = "https://www.site24x7.com/api"
	Site24x7Monitors             = "/monitors"
	Site24x7MonitorPollNow       = "/monitor/poll_now"
	Site24x7MonitorStatusPollNow = "/monitor/status_poll_now"
	Site24x7MonitorsName         = "/monitors/name"
	Site24x7MonitorsActivate     = "/monitors/activate"
	Site24x7MonitorsSuspend      = "/monitors/suspend"
	Site24x7LogReports           = "/reports/log_reports"
	Site24x7LocationTemplate     = "/location_template"
	Site24x7LocationProfiles     = "/location_profiles"
	Site24x7ContentType          = "application/json"
)
View Source
const (
	Site24x7DataCollectionTypeNormal  = "1"
	Site24x7DataCollectionTypePollNow = "3"
)
View Source
const (
	VCenterContentType                = "application/json"
	VCenterRestSessionPath            = "/rest/com/vmware/cis/session"
	VCenterRestClusterPath            = "/rest/vcenter/cluster"
	VCenterRestHostPath               = "/rest/vcenter/host"
	VCenterRestVMPath                 = "/rest/vcenter/vm"
	VCenterRestVMGuestIdentityPathFmt = "/rest/vcenter/vm/%s/guest/identity"
	VCenterRestVMPowerPathFmt         = "/rest/vcenter/vm/%s/power"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClient added in v0.13.5

type AWSClient struct {
	AccountID  string
	Region     string
	Keys       *AWSKeys
	HttpClient *http.Client
	Url        string
}

func (*AWSClient) Do added in v0.13.5

func (c *AWSClient) Do(req *http.Request) (*http.Response, error)

Do executes the HTTP request with AWS authentication using the standard AWS4 format.

type AWSEC2 added in v0.13.5

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

func NewAWSEC2 added in v0.13.5

func NewAWSEC2(opts AWSOptions) (*AWSEC2, error)

NewAWSEC2 creates a new instance of AWSEC2 with the given AWS keys. It retrieves available regions and generates clients for each region.

func (*AWSEC2) GetAllAWSEC2Instances added in v0.13.5

func (e *AWSEC2) GetAllAWSEC2Instances() ([]AWSEC2Instance, error)

GetAllEC2Instances retrieves all EC2 instances associated with the AWSEC2 service.

type AWSEC2Instance added in v0.13.5

type AWSEC2Instance struct {
	AccountID string
	Host      string
	IP        string
	Region    string
	OS        string
	Server    string
	Vendor    string
	Cluster   string
}

type AWSKeys added in v0.13.5

type AWSKeys struct {
	AccessKey    string
	SecretKey    string
	SessionToken string
}

type AWSOptions added in v0.15.13

type AWSOptions struct {
	Accounts    string
	Role        string
	RoleTimeout string
	AWSKeys
}

type AWSRegion added in v0.13.5

type AWSRegion struct {
	RegionName     string `xml:"regionName"`
	RegionEndpoint string `xml:"regionEndpoint"`
}

type AWSService added in v0.13.5

type AWSService struct {
	Name   string
	Region string
}

type DashboardMeta added in v0.14.5

type DashboardMeta struct {
	IsStarred bool   `json:"isStarred"`
	Slug      string `json:"slug"`
	Folder    *int64 `json:"folderId"`
	FolderUID string `json:"folderUid"`
	URL       string `json:"url"`
}

type Gitlab added in v0.3.0

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

func NewGitlab added in v0.3.0

func NewGitlab(options GitlabOptions) *Gitlab

func (*Gitlab) CustomGetPipelineVariables added in v0.12.0

func (g *Gitlab) CustomGetPipelineVariables(gitlabOptions GitlabOptions, pipelineOptions GitlabPipelineOptions,
	getVariablesOptions GitlabGetPipelineVariablesOptions) ([]byte, error)

func (Gitlab) GetLastPipeline added in v0.3.0

func (g Gitlab) GetLastPipeline(project int, ref string) ([]byte, error)

func (Gitlab) GetLastPipelineVariables added in v0.3.0

func (g Gitlab) GetLastPipelineVariables(project int, ref string) ([]byte, error)

func (*Gitlab) GetPipelineVariables added in v0.12.0

func (g *Gitlab) GetPipelineVariables(pipelineOptions GitlabPipelineOptions, getVariablesOptions GitlabGetPipelineVariablesOptions) ([]byte, error)

type GitlabGetPipelineVariablesOptions added in v0.12.0

type GitlabGetPipelineVariablesOptions struct {
	Query []string
}

type GitlabOptions added in v0.3.0

type GitlabOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	Token    string
}

type GitlabPipelineOptions added in v0.4.3

type GitlabPipelineOptions struct {
	ProjectID int
	Scope     string
	Status    string
	Source    string
	Ref       string
	OrderBy   string
	Sort      string
	Limit     int
}

type GitlabPipelineVariableResp added in v0.4.3

type GitlabPipelineVariableResp struct {
	VariableType string `json:"variable_type"`
	Key          string `json:"key"`
	Value        string `json:"value"`
}

type GitlabPipelinesResp added in v0.4.3

type GitlabPipelinesResp struct {
	ID        int       `json:"id"`
	Iid       int       `json:"iid"`
	ProjectID int       `json:"project_id"`
	Sha       string    `json:"sha"`
	Ref       string    `json:"ref"`
	Status    string    `json:"status"`
	Source    string    `json:"source"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
	WebURL    string    `json:"web_url"`
}

type Google added in v0.3.0

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

func NewGoogle added in v0.3.0

func NewGoogle(options GoogleOptions, logger common.Logger) *Google

func (*Google) CalendarDeleteEvent added in v0.13.2

func (g *Google) CalendarDeleteEvent(calendarOptions GoogleCalendarOptions, calendarDeleteEventOptions GoogleCalendarDeleteEventOptions) ([]byte, error)

func (*Google) CalendarDeleteEvents added in v0.13.2

func (g *Google) CalendarDeleteEvents(calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CalendarGetEvents added in v0.3.0

func (g *Google) CalendarGetEvents(calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CalendarInsertEvent added in v0.13.2

func (g *Google) CalendarInsertEvent(calendarOptions GoogleCalendarOptions, calendarInsertEventOptions GoogleCalendarInsertEventOptions) ([]byte, error)

func (*Google) CustomCalendarDeleteEvent added in v0.13.2

func (g *Google) CustomCalendarDeleteEvent(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarDeleteEventOptions GoogleCalendarDeleteEventOptions) ([]byte, error)

func (*Google) CustomCalendarDeleteEvents added in v0.13.2

func (g *Google) CustomCalendarDeleteEvents(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CustomCalendarGetEvents added in v0.4.3

func (g *Google) CustomCalendarGetEvents(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CustomCalendarInsertEvent added in v0.13.2

func (g *Google) CustomCalendarInsertEvent(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarInsertEventOptions GoogleCalendarInsertEventOptions) ([]byte, error)

type GoogleCalendarDeleteEventOptions added in v0.13.2

type GoogleCalendarDeleteEventOptions struct {
	ID          string
	SendUpdates string
}

type GoogleCalendarDeleteEventsOptions added in v0.13.2

type GoogleCalendarDeleteEventsOptions struct {
	TimeMin string
	TimeMax string
}

type GoogleCalendarEvent added in v0.13.2

type GoogleCalendarEvent struct {
	ID                      string                         `json:"id,omitempty"`
	Summary                 string                         `json:"summary"`
	Description             string                         `json:"description"`
	EventType               string                         `json:"eventType"`
	Location                string                         `json:"location,omitempty"`
	Transparency            string                         `json:"transparency,omitempty"`
	Visibility              string                         `json:"visibility,omitempty"`
	Start                   GoogleCalendarEventDataTime    `json:"start"`
	End                     GoogleCalendarEventDataTime    `json:"end"`
	Attendees               []*GoogleCalendarEventAttendee `json:"attendees"`
	GuestsCanInviteOthers   bool                           `json:"guestsCanInviteOthers"`
	GuestsCanModify         bool                           `json:"guestsCanModify"`
	GuestsCanSeeOtherGuests bool                           `json:"guestsCanSeeOtherGuests"`
	Source                  *GoogleCalendarEventSource     `json:"source,omitempty"`
	ConferenceData          *GoogleConferenceData          `json:"conferenceData,omitempty"`
}

type GoogleCalendarEventAttendee added in v0.13.2

type GoogleCalendarEventAttendee struct {
	Email    string `json:"email"`
	Optional string `json:"optional,omitempty"`
}

type GoogleCalendarEventDataTime added in v0.13.2

type GoogleCalendarEventDataTime struct {
	Date     string `json:"date,omitempty"`
	DateTime string `json:"dateTime,omitempty"`
	TimeZone string `json:"timeZone,omitempty"`
}

type GoogleCalendarEventSource added in v0.13.2

type GoogleCalendarEventSource struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type GoogleCalendarEvents added in v0.13.2

type GoogleCalendarEvents struct {
	Kind     string                 `json:"kind"`
	Summary  string                 `json:"summary,omitempty"`
	TimeZone string                 `json:"timeZone,omitempty"`
	Items    []*GoogleCalendarEvent `json:"items,omitempty"`
}

type GoogleCalendarGetEventsOptions added in v0.13.2

type GoogleCalendarGetEventsOptions struct {
	TimeMin      string
	TimeMax      string
	TimeZone     string
	OrderBy      string
	Q            string
	SingleEvents bool
}

type GoogleCalendarInsertEventOptions added in v0.13.2

type GoogleCalendarInsertEventOptions struct {
	Summary             string
	Description         string
	Start               string
	End                 string
	TimeZone            string
	Visibility          string
	SendUpdates         string
	SupportsAttachments bool
	SourceTitle         string
	SourceURL           string
	ConferenceID        string
}

type GoogleCalendarOptions added in v0.3.0

type GoogleCalendarOptions struct {
	ID string
}

type GoogleConferenceData added in v0.13.2

type GoogleConferenceData struct {
	ConferenceSolution *GoogleConferenceDataSolution      `json:"conferenceSolution,omitempty"`
	CreateRequest      *GoogleConferenceDataCreateRequest `json:"createRequest,omitempty"`
	EntryPoints        []*GoogleConferenceDataEntryPoint  `json:"entryPoints,omitempty"`
	ConferenceID       string                             `json:"conferenceId,omitempty"`
}

type GoogleConferenceDataCreateRequest added in v0.13.2

type GoogleConferenceDataCreateRequest struct {
	ConferenceSolutionKey GoogleConferenceDataSolutionKey `json:"conferenceSolutionKey"`
	RequestID             string                          `json:"requestId"`
}

type GoogleConferenceDataEntryPoint added in v0.13.2

type GoogleConferenceDataEntryPoint struct {
	EntryPointType string `json:"entryPointType,omitempty"`
	URI            string `json:"uri,omitempty"`
	Label          string `json:"label,omitempty"`
}

type GoogleConferenceDataSolution added in v0.13.2

type GoogleConferenceDataSolution struct {
	Key     GoogleConferenceDataSolutionKey `json:"key"`
	Name    string                          `json:"name"`
	IconURI string                          `json:"iconUri"`
}

type GoogleConferenceDataSolutionKey added in v0.13.2

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

type GoogleOptions added in v0.3.0

type GoogleOptions struct {
	Timeout           int
	Insecure          bool
	OAuthClientID     string
	OAuthClientSecret string
	RefreshToken      string
}

type GoogleTokenReponse added in v0.3.0

type GoogleTokenReponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
}

type Grafana added in v0.2.0

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

func NewGrafana added in v0.2.0

func NewGrafana(options GrafanaOptions) *Grafana

func (*Grafana) CopyDashboard added in v0.14.5

func (g *Grafana) CopyDashboard(grafanaCreateOptions GrafanaCreateDahboardOptions) ([]byte, error)

func (*Grafana) CreateAnnotation added in v0.3.3

func (g *Grafana) CreateAnnotation(options GrafanaCreateAnnotationOptions) ([]byte, error)

func (*Grafana) CreateDashboard added in v0.8.1

func (g *Grafana) CreateDashboard(options GrafanaCreateDahboardOptions) ([]byte, error)

func (Grafana) CustomCopyDashboard added in v0.14.5

func (g Grafana) CustomCopyDashboard(grafanaOptions GrafanaOptions, grafanaCreateOptions GrafanaCreateDahboardOptions) ([]byte, error)

func (Grafana) CustomCreateAnnotation added in v0.4.3

func (g Grafana) CustomCreateAnnotation(grafanaOptions GrafanaOptions, createAnnotationOptions GrafanaCreateAnnotationOptions) ([]byte, error)

func (Grafana) CustomCreateDashboard added in v0.8.1

func (g Grafana) CustomCreateDashboard(grafanaOptions GrafanaOptions, createDashboardOptions GrafanaCreateDahboardOptions) ([]byte, error)

func (*Grafana) CustomGetAnnotations added in v0.4.3

func (g *Grafana) CustomGetAnnotations(grafanaOptions GrafanaOptions, getAnnotationsOptions GrafanaGetAnnotationsOptions) ([]byte, error)

func (*Grafana) CustomGetDashboards added in v0.4.3

func (g *Grafana) CustomGetDashboards(grafanaOptions GrafanaOptions) ([]byte, error)

func (*Grafana) CustomRenderImage added in v0.4.3

func (g *Grafana) CustomRenderImage(grafanaOptions GrafanaOptions, renderImageOptions GrafanaRenderImageOptions) ([]byte, error)

func (*Grafana) GetAnnotations added in v0.3.0

func (g *Grafana) GetAnnotations(options GrafanaGetAnnotationsOptions) ([]byte, error)

func (*Grafana) GetDashboards added in v0.2.0

func (g *Grafana) GetDashboards() ([]byte, error)

func (*Grafana) RenderImage added in v0.2.0

func (g *Grafana) RenderImage(options GrafanaRenderImageOptions) ([]byte, error)

type GrafanaAnnotation added in v0.3.3

type GrafanaAnnotation struct {
	Time    int64    `json:"time"`
	TimeEnd int64    `json:"timeEnd"`
	Tags    []string `json:"tags"`
	Text    string   `json:"text"`
}

type GrafanaBoard added in v0.8.1

type GrafanaBoard struct {
	Dashboard GrafanaDashboard `json:"dashboard,omitempty"`
	FolderID  int              `json:"folderId,omitempty"`
	FolderUID string           `json:"folderUid,omitempty"`
	Message   string           `json:"message,omitempty"`
	Overwrite bool             `json:"overwrite,omitempty"`
	Meta      DashboardMeta    `json:"meta,omitempty"`
}

type GrafanaClonedDahboardOptions added in v0.8.1

type GrafanaClonedDahboardOptions struct {
	UID         string
	Annotations []string
	PanelIDs    []string
	PanelTitles []string
	PanelSeries []string
	LegendRight bool
	Arrange     bool
	Count       int
	Width       int
	Height      int
}

type GrafanaCreateAnnotationOptions added in v0.3.3

type GrafanaCreateAnnotationOptions struct {
	Time    string
	TimeEnd string
	Tags    string
	Text    string
}

type GrafanaCreateDahboardOptions added in v0.8.1

type GrafanaCreateDahboardOptions struct {
	Title     string
	FolderUID string
	Tags      []string
	From      string
	To        string
	Cloned    GrafanaClonedDahboardOptions
}

type GrafanaDashboard added in v0.8.1

type GrafanaDashboard struct {
	ID            *int                        `json:"id,omitempty"`
	UID           string                      `json:"uid,omitempty"`
	Title         string                      `json:"title,omitempty"`
	Tags          []string                    `json:"tags,omitempty"`
	Timezone      string                      `json:"timezone,omitempty"`
	SchemaVersion int                         `json:"schemaVersion,omitempty"`
	Version       int                         `json:"version,omitempty"`
	GraphTooltip  int                         `json:"graphTooltip,omitempty"`
	Time          GrafanaDashboardTime        `json:"time,omitempty"`
	Annotations   GrafanaDashboardAnnotations `json:"annotations,omitempty"`
	Templating    GrafanaDashboardTemplating  `json:"templating,omitempty"`
	Panels        []interface{}               `json:"panels,omitempty"`
}

type GrafanaDashboardAnnotations added in v0.8.1

type GrafanaDashboardAnnotations struct {
	List         []interface{} `json:"list"`
	GraphTooltip int           `json:"graphTooltip"`
}

type GrafanaDashboardTemplating added in v0.14.5

type GrafanaDashboardTemplating struct {
	List []interface{} `json:"list"`
}

type GrafanaDashboardTime added in v0.8.1

type GrafanaDashboardTime struct {
	From string `json:"from"`
	To   string `json:"to"`
}

type GrafanaGetAnnotationsOptions added in v0.3.0

type GrafanaGetAnnotationsOptions struct {
	From        string
	To          string
	Tags        string
	Type        string
	Limit       int
	AlertID     int
	DashboardID int
	PanelID     int
	MatchAny    bool
}

type GrafanaOptions added in v0.2.0

type GrafanaOptions struct {
	URL               string
	Timeout           int
	Insecure          bool
	APIKey            string
	OrgID             string
	DashboardUID      string
	DashboardSlug     string
	DashboardTimezone string
}

type GrafanaRenderImageOptions added in v0.2.0

type GrafanaRenderImageOptions struct {
	PanelID string
	From    string
	To      string
	Width   int
	Height  int
}

type Graylog

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

func NewGraylog

func NewGraylog(options GraylogOptions) *Graylog

func (*Graylog) GetLogs added in v0.2.0

func (g *Graylog) GetLogs() ([]byte, error)

type GraylogOptions

type GraylogOptions struct {
	URL       string
	Timeout   int
	Insecure  bool
	User      string
	Password  string
	Streams   string
	Query     string
	RangeType string
	Sort      string
	Limit     int
	From      string
	To        string
	Range     string
}

type JSON added in v0.2.7

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

func NewJSON added in v0.2.7

func NewJSON(options JSONOptions) *JSON

func (*JSON) Get added in v0.2.7

func (c *JSON) Get() ([]byte, error)

type JSONOptions added in v0.2.7

type JSONOptions struct {
	Timeout  int
	Insecure bool
	URL      string
}

type JSONOutputOptions added in v0.2.7

type JSONOutputOptions struct {
	Output      string // path to output if empty to stdout
	OutputQuery string
}

type Jira added in v0.1.0

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

func NewJira added in v0.1.0

func NewJira(options JiraOptions) *Jira

func (*Jira) AddIssueAttachment added in v0.12.0

func (j *Jira) AddIssueAttachment(issueOptions JiraIssueOptions, addAttachmentOptions JiraAddIssueAttachmentOptions) ([]byte, error)

func (*Jira) ChangeIssueTransitions added in v0.12.0

func (j *Jira) ChangeIssueTransitions(options JiraIssueOptions) ([]byte, error)

func (*Jira) CreateAsset added in v0.13.7

func (j *Jira) CreateAsset(createOptions JiraCreateAssetOptions) ([]byte, error)

func (*Jira) CreateIssue added in v0.2.0

func (j *Jira) CreateIssue(issueCreateOptions JiraIssueOptions) ([]byte, error)

func (*Jira) CustomAddIssueAttachment added in v0.12.0

func (j *Jira) CustomAddIssueAttachment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, addAttachmentOptions JiraAddIssueAttachmentOptions) ([]byte, error)

func (*Jira) CustomAddIssueComment added in v0.12.0

func (j *Jira) CustomAddIssueComment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, addCommentOptions JiraAddIssueCommentOptions) ([]byte, error)

func (*Jira) CustomChangeIssueTransitions added in v0.12.0

func (j *Jira) CustomChangeIssueTransitions(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)

func (*Jira) CustomCreateAsset added in v0.13.7

func (j *Jira) CustomCreateAsset(jiraOptions JiraOptions, createOptions JiraCreateAssetOptions) ([]byte, error)

func (*Jira) CustomCreateIssue added in v0.12.0

func (j *Jira) CustomCreateIssue(jiraOptions JiraOptions, createOptions JiraIssueOptions) ([]byte, error)

func (*Jira) CustomSearchAssets added in v0.12.0

func (j *Jira) CustomSearchAssets(jiraOptions JiraOptions, search JiraSearchAssetOptions) ([]byte, error)

func (*Jira) CustomSearchIssue added in v0.12.0

func (j *Jira) CustomSearchIssue(jiraOptions JiraOptions, search JiraSearchIssueOptions) ([]byte, error)

func (*Jira) CustomUpdateAsset added in v0.14.10

func (j *Jira) CustomUpdateAsset(jiraOptions JiraOptions, updateOptions JiraUpdateAssetOptions) ([]byte, error)

func (*Jira) CustomUpdateIssue added in v0.12.0

func (j *Jira) CustomUpdateIssue(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)

func (*Jira) GetIssueTransitions added in v0.14.15

func (j *Jira) GetIssueTransitions(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)

func (*Jira) IssueAddComment added in v0.2.0

func (j *Jira) IssueAddComment(issueOptions JiraIssueOptions, addCommentOptions JiraAddIssueCommentOptions) ([]byte, error)

func (*Jira) SearchAssets added in v0.12.0

func (j *Jira) SearchAssets(options JiraSearchAssetOptions) ([]byte, error)

func (*Jira) SearchIssue added in v0.12.0

func (j *Jira) SearchIssue(options JiraSearchIssueOptions) ([]byte, error)

func (*Jira) UpdateAsset added in v0.14.10

func (j *Jira) UpdateAsset(updateOptions JiraUpdateAssetOptions) ([]byte, error)

func (*Jira) UpdateIssue added in v0.12.0

func (j *Jira) UpdateIssue(options JiraIssueOptions) ([]byte, error)

type JiraAddIssueAttachmentOptions added in v0.12.0

type JiraAddIssueAttachmentOptions struct {
	File string
	Name string
}

type JiraAddIssueCommentOptions added in v0.12.0

type JiraAddIssueCommentOptions struct {
	Body string
}

type JiraAsset added in v0.13.7

type JiraAsset struct {
	ObjectTypeId int                  `json:"objectTypeId"`
	Attributes   []JiraAssetAttribute `json:"attributes"`
}

type JiraAssetAttribute added in v0.13.7

type JiraAssetAttribute struct {
	ObjectTypeAttributeId int                       `json:"objectTypeAttributeId"`
	ObjectAttributeValues []JiraAssetAttributeValue `json:"objectAttributeValues"`
}

type JiraAssetAttributeValue added in v0.13.7

type JiraAssetAttributeValue struct {
	Value string `json:"value"`
}

type JiraCreateAssetOptions added in v0.13.7

type JiraCreateAssetOptions struct {
	Description    string
	Name           string
	Repository     string
	DescriptionId  int
	NameId         int
	RepositoryId   int
	ObjectSchemeId string
	ObjectTypeId   int
	TitleId        int
	Title          string
	TierId         int
	Tier           string
}

type JiraIssueAddComment added in v0.2.0

type JiraIssueAddComment struct {
	Body string `json:"body"`
}

type JiraIssueAssignee added in v0.2.0

type JiraIssueAssignee struct {
	Name string `json:"name"`
}

type JiraIssueComponents added in v0.14.12

type JiraIssueComponents struct {
	Name string `json:"name"`
}

type JiraIssueCreate added in v0.4.2

type JiraIssueCreate struct {
	Fields *JiraIssueFields `json:"fields"`
}

type JiraIssueFields added in v0.2.0

type JiraIssueFields struct {
	Project     *JiraIssueProject      `json:"project,omitempty"`
	IssueType   *JiraIssueType         `json:"issuetype,omitempty"`
	Summary     string                 `json:"summary,omitempty"`
	Description string                 `json:"description,omitempty"`
	Labels      []string               `json:"labels,omitempty"`
	Priority    *JiraIssuePriority     `json:"priority,omitempty"`
	Components  *[]JiraIssueComponents `json:"components,omitempty"`
	Assignee    *JiraIssueAssignee     `json:"assignee,omitempty"`
	Reporter    *JiraIssueReporter     `json:"reporter,omitempty"`
}

type JiraIssueOptions added in v0.2.0

type JiraIssueOptions struct {
	IdOrKey      string
	ProjectKey   string
	Type         string
	Priority     string
	Assignee     string
	Reporter     string
	Summary      string
	Description  string
	CustomFields string
	TransitionID string
	Components   string
	Labels       []string
}

type JiraIssuePriority added in v0.2.0

type JiraIssuePriority struct {
	Name string `json:"name"`
}

type JiraIssueProject added in v0.2.0

type JiraIssueProject struct {
	Key string `json:"key"`
}

type JiraIssueReporter added in v0.2.0

type JiraIssueReporter struct {
	Name string `json:"name"`
}

type JiraIssueTransition added in v0.6.17

type JiraIssueTransition struct {
	Transition *JiraTransition `json:"transition"`
}

type JiraIssueType added in v0.2.0

type JiraIssueType struct {
	Name string `json:"name"`
}

type JiraIssueUpdate added in v0.4.2

type JiraIssueUpdate struct {
	Fields *JiraIssueFields `json:"fields"`
}

type JiraOptions added in v0.1.0

type JiraOptions struct {
	URL         string
	Timeout     int
	Insecure    bool
	User        string
	Password    string
	AccessToken string
}

type JiraSearchAssetOptions added in v0.14.10

type JiraSearchAssetOptions struct {
	SearchPattern string
	ResultPerPage int
}

type JiraSearchIssueOptions added in v0.12.0

type JiraSearchIssueOptions struct {
	SearchPattern string
	MaxResults    int
	Fields        []string
}

type JiraTransition added in v0.6.17

type JiraTransition struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type JiraTransitions added in v0.14.15

type JiraTransitions struct {
	Transitions []JiraTransition `json:"transitions"`
}

type JiraUpdateAssetOptions added in v0.14.10

type JiraUpdateAssetOptions struct {
	ObjectId string
	Json     string
}

type Observium added in v0.9.15

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

func NewObservium added in v0.9.15

func NewObservium(options ObserviumOptions) *Observium

func (*Observium) CustomGetDevices added in v0.9.15

func (o *Observium) CustomGetDevices(options ObserviumOptions) ([]byte, error)

func (*Observium) GetDevices added in v0.9.15

func (o *Observium) GetDevices() ([]byte, error)

type ObserviumOptions added in v0.9.15

type ObserviumOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	User     string
	Password string
	Token    string
}

type OutputCode added in v0.7.2

type OutputCode struct {
	Code int `json:"code"`
}

type PagerDuty added in v0.12.0

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

func NewPagerDuty added in v0.12.0

func NewPagerDuty(options PagerDutyOptions, logger common.Logger) *PagerDuty

func (*PagerDuty) CreateIncident added in v0.12.0

func (pd *PagerDuty) CreateIncident(incidentOptions PagerDutyIncidentOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CreateIncidentNote added in v0.14.4

func (pd *PagerDuty) CreateIncidentNote(noteOptions PagerDutyIncidentNoteOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomCreateIncident added in v0.12.0

func (pd *PagerDuty) CustomCreateIncident(options PagerDutyOptions, incidentOptions PagerDutyIncidentOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomCreateIncidentNote added in v0.14.4

func (pd *PagerDuty) CustomCreateIncidentNote(options PagerDutyOptions, noteOptions PagerDutyIncidentNoteOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomGetIncidents added in v0.12.0

func (pd *PagerDuty) CustomGetIncidents(options PagerDutyOptions, getOptions PagerDutyGetIncidentsOptions) ([]byte, error)

func (*PagerDuty) GetIncidents added in v0.12.0

func (pd *PagerDuty) GetIncidents(getOptions PagerDutyGetIncidentsOptions) ([]byte, error)

type PagerDutyBody added in v0.12.0

type PagerDutyBody struct {
	Type    string `json:"type"`
	Details string `json:"details"`
}

type PagerDutyCreateIncidentOptions added in v0.12.0

type PagerDutyCreateIncidentOptions struct {
	From string
}

type PagerDutyGetIncidentsOptions added in v0.12.0

type PagerDutyGetIncidentsOptions struct {
	Key   string
	Limit int
}

type PagerDutyIncident added in v0.12.0

type PagerDutyIncident struct {
	Type     string             `json:"type"`
	Title    string             `json:"title"`
	Urgency  string             `json:"urgency,omitempty"`
	Service  *PagerDutyService  `json:"service"`
	Priority *PagerDutyPriority `json:"priority,omitempty"`
	Body     *PagerDutyBody     `json:"body,omitempty"`
}

type PagerDutyIncidentNote added in v0.14.4

type PagerDutyIncidentNote struct {
	Content string `json:"content,omitempty"`
}

type PagerDutyIncidentNoteOptions added in v0.14.4

type PagerDutyIncidentNoteOptions struct {
	IncidentID  string
	NoteContent string
}

type PagerDutyIncidentNoteRequest added in v0.14.4

type PagerDutyIncidentNoteRequest struct {
	Note *PagerDutyIncidentNote `json:"note"`
}

type PagerDutyIncidentOptions added in v0.12.0

type PagerDutyIncidentOptions struct {
	Title      string
	Body       string
	Urgency    string
	ServiceID  string
	PriorityID string
}

type PagerDutyIncidentRequest added in v0.12.0

type PagerDutyIncidentRequest struct {
	Incident *PagerDutyIncident `json:"incident"`
}

type PagerDutyOptions added in v0.12.0

type PagerDutyOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	Token    string
}

type PagerDutyPriority added in v0.12.0

type PagerDutyPriority struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type PagerDutyService added in v0.12.0

type PagerDutyService struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type Prometheus added in v0.6.0

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

func NewPrometheus added in v0.6.0

func NewPrometheus(options PrometheusOptions) *Prometheus

func (*Prometheus) CustomGet added in v0.6.0

func (p *Prometheus) CustomGet(options PrometheusOptions) ([]byte, error)

func (*Prometheus) Get added in v0.6.0

func (p *Prometheus) Get() ([]byte, error)

type PrometheusOptions added in v0.6.0

type PrometheusOptions struct {
	URL      string
	User     string
	Password string
	Timeout  int
	Insecure bool
	Query    string
	From     string
	To       string
	Step     string
	Params   string
}

type PrometheusOutputOptions added in v0.6.0

type PrometheusOutputOptions struct {
	Output      string
	OutputQuery string
}

type SSH added in v0.15.5

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

func NewSSH added in v0.15.5

func NewSSH(options SSHOptions) *SSH

func (*SSH) Run added in v0.15.5

func (s *SSH) Run(options SSHOptions) ([]byte, error)

type SSHOptions added in v0.15.5

type SSHOptions struct {
	User       string
	Address    string
	PrivateKey []byte
	Command    string
	Timeout    int
}

type Site24x7 added in v0.15.0

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

func NewSite24x7 added in v0.15.0

func NewSite24x7(options Site24x7Options, logger common.Logger) *Site24x7

func (*Site24x7) ActivateMonitor added in v0.15.3

func (s *Site24x7) ActivateMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CheckError added in v0.15.2

func (s *Site24x7) CheckError(data []byte, e error) error

func (*Site24x7) CheckResponse added in v0.15.0

func (s *Site24x7) CheckResponse(resp Site24x7Reponse) error

func (*Site24x7) CreateLocationProfile added in v0.15.0

func (s *Site24x7) CreateLocationProfile(options Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CreateWebsiteMonitor added in v0.15.0

func (s *Site24x7) CreateWebsiteMonitor(options Site24x7WebsiteMonitorOptions) ([]byte, error)

func (*Site24x7) CustomActivateMonitor added in v0.15.3

func (s *Site24x7) CustomActivateMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomCreateLocationProfile added in v0.15.0

func (s *Site24x7) CustomCreateLocationProfile(site24x7Options Site24x7Options, createLocationOptions Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CustomCreateWebsiteMonitor added in v0.15.0

func (s *Site24x7) CustomCreateWebsiteMonitor(site24x7Options Site24x7Options, createMonitorOptions Site24x7WebsiteMonitorOptions) ([]byte, error)

func (*Site24x7) CustomDeleteLocationProfile added in v0.15.0

func (s *Site24x7) CustomDeleteLocationProfile(site24x7Options Site24x7Options, deleteLocationOptions Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CustomDeleteMonitor added in v0.15.0

func (s *Site24x7) CustomDeleteMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomGetAccessToken added in v0.15.0

func (s *Site24x7) CustomGetAccessToken(opts Site24x7Options) (string, error)

func (*Site24x7) CustomGetLocationProfiles added in v0.15.3

func (s *Site24x7) CustomGetLocationProfiles(site24x7Options Site24x7Options) ([]byte, error)

func (*Site24x7) CustomGetLocationTemplate added in v0.15.0

func (s *Site24x7) CustomGetLocationTemplate(site24x7Options Site24x7Options) ([]byte, error)

func (*Site24x7) CustomGetLogReport added in v0.15.0

func (s *Site24x7) CustomGetLogReport(site24x7Options Site24x7Options, logReportOptions Site24x7LogReportOptions) ([]byte, error)

func (*Site24x7) CustomGetPollingStatus added in v0.15.0

func (s *Site24x7) CustomGetPollingStatus(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomPollMonitor added in v0.15.0

func (s *Site24x7) CustomPollMonitor(site24x7Options Site24x7Options, pollMonitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomRetrieveMonitorByName added in v0.15.3

func (s *Site24x7) CustomRetrieveMonitorByName(site24x7Options Site24x7Options, name string) ([]byte, error)

func (*Site24x7) CustomSuspendMonitor added in v0.15.3

func (s *Site24x7) CustomSuspendMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) DeleteLocationProfile added in v0.15.0

func (s *Site24x7) DeleteLocationProfile(options Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) DeleteMonitor added in v0.15.0

func (s *Site24x7) DeleteMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) FindLocationByCountry added in v0.15.0

func (s *Site24x7) FindLocationByCountry(locations []*Site24x7LocationTemplateDataLocation, country string) *Site24x7LocationTemplateDataLocation

func (*Site24x7) FindLocationProfileByName added in v0.15.3

func (s *Site24x7) FindLocationProfileByName(site24x7Options Site24x7Options, name string) (string, error)

func (*Site24x7) GetLocationProfiles added in v0.15.3

func (s *Site24x7) GetLocationProfiles() ([]byte, error)

func (*Site24x7) GetLocationTemplate added in v0.15.0

func (s *Site24x7) GetLocationTemplate() ([]byte, error)

func (*Site24x7) GetLogReport added in v0.15.0

func (s *Site24x7) GetLogReport(options Site24x7LogReportOptions) ([]byte, error)

func (*Site24x7) GetPollingStatus added in v0.15.0

func (s *Site24x7) GetPollingStatus(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) PollMonitor added in v0.15.0

func (s *Site24x7) PollMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) RetrieveMonitorByName added in v0.15.3

func (s *Site24x7) RetrieveMonitorByName(name string) ([]byte, error)

func (*Site24x7) SuspendMonitor added in v0.15.3

func (s *Site24x7) SuspendMonitor(options Site24x7MonitorOptions) ([]byte, error)

type Site24x7AuthReponse added in v0.15.0

type Site24x7AuthReponse struct {
	AccessToken string `json:"access_token"`
	ApiDomain   string `json:"api_domain"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

type Site24x7DeleteData added in v0.15.3

type Site24x7DeleteData struct {
	ResourceName string `json:"resource_name"`
}

type Site24x7DeleteResponse added in v0.15.3

type Site24x7DeleteResponse struct {
	Site24x7Reponse
	Data *Site24x7DeleteData `json:"data,omitempty"`
}

type Site24x7ErrorReponse added in v0.15.2

type Site24x7ErrorReponse struct {
	ErrorCode int    `json:"error_code"`
	Message   string `json:"message"`
}

type Site24x7LocationProfile added in v0.15.0

type Site24x7LocationProfile struct {
	ProfileName                 string   `json:"profile_name"`
	PrimaryLocation             string   `json:"primary_location"`
	SecondaryCheckFrequency     string   `json:"secondary_check_frequency,omitempty"`
	SecondaryLocations          []string `json:"secondary_locations,omitempty"`
	RestrictAltLoc              bool     `json:"restrict_alt_loc,omitempty"`
	OuterRegionsLOcationConsent bool     `json:"outer_regions_location_consent,omitempty"`
}

type Site24x7LocationProfileData added in v0.15.0

type Site24x7LocationProfileData struct {
	ProfileID               string   `json:"profile_id"`
	ProfileName             string   `json:"profile_name"`
	PrimaryLocation         string   `json:"primary_location"`
	SecondaryCheckFrequency string   `json:"secondary_check_frequency,omitempty"`
	SecondaryLocations      []string `json:"secondary_locations,omitempty"`
}

type Site24x7LocationProfileOptions added in v0.15.0

type Site24x7LocationProfileOptions struct {
	ID                   string
	Name                 string
	LocationID           string
	SecondaryLocationIDs []string
}

type Site24x7LocationProfileReponse added in v0.15.0

type Site24x7LocationProfileReponse struct {
	Site24x7Reponse
	Data *Site24x7LocationProfileData `json:"data,omitempty"`
}

type Site24x7LocationProfilesReponse added in v0.15.3

type Site24x7LocationProfilesReponse struct {
	Site24x7Reponse
	Data []*Site24x7LocationProfileData `json:"data,omitempty"`
}

type Site24x7LocationTemplateData added in v0.15.0

type Site24x7LocationTemplateData struct {
	Locations []*Site24x7LocationTemplateDataLocation `json:"locations,omitempty"`
}

type Site24x7LocationTemplateDataLocation added in v0.15.0

type Site24x7LocationTemplateDataLocation struct {
	LocationID  string `json:"location_id"`
	DisplayName string `json:"display_name"`
	CityName    string `json:"city_name"`
	CityShort   string `json:"city_short"`
	CountryName string `json:"country_name"`
	Continent   string `json:"continent"`
	UseIpv6     bool   `json:"use_ipv6"`
	ProbInfo    string `json:"probe_info"`
}

type Site24x7LocationTemplateReponse added in v0.15.0

type Site24x7LocationTemplateReponse struct {
	Site24x7Reponse
	Data *Site24x7LocationTemplateData `json:"data,omitempty"`
}

type Site24x7LogReportData added in v0.15.0

type Site24x7LogReportData struct {
	Report []*Site24x7LogReportDataReport
}

type Site24x7LogReportDataReport added in v0.15.0

type Site24x7LogReportDataReport struct {
	ConnectionTime     string `json:"connection_time"`
	DnsTime            string `json:"dns_time"`
	SSLTime            string `json:"ssl_time"`
	ResponseCode       string `json:"response_code"`
	CollectionTime     string `json:"collection_time"`
	Availability       string `json:"availability"`
	ResponseTime       string `json:"response_time"`
	LocationID         string `json:"location_id"`
	Nameserver         string `json:"nameserver"`
	ResolvedIP         string `json:"resolved_ip"`
	Reason             string `json:"reason"`
	ContentLength      string `json:"content_length"`
	DataCollectionType string `json:"data_collection_type"`
}

type Site24x7LogReportOptions added in v0.15.0

type Site24x7LogReportOptions struct {
	Site24x7MonitorOptions
	StartDate string
	EndDate   string
}

type Site24x7LogReportReponse added in v0.15.0

type Site24x7LogReportReponse struct {
	Site24x7Reponse
	Data *Site24x7LogReportData `json:"data,omitempty"`
}

type Site24x7MonitorOptions added in v0.15.0

type Site24x7MonitorOptions struct {
	ID string
}

type Site24x7Options added in v0.15.0

type Site24x7Options struct {
	Timeout      int
	Insecure     bool
	ClientID     string
	ClientSecret string
	RefreshToken string
	AccessToken  string
}

type Site24x7PollStatusData added in v0.15.3

type Site24x7PollStatusData struct {
	Status    string `json:"status"`
	MonitorID string `json:"monitor_id"`
}

type Site24x7PollStatusReponse added in v0.15.3

type Site24x7PollStatusReponse struct {
	Site24x7Reponse
	Data *Site24x7PollStatusData `json:"data,omitempty"`
}

type Site24x7Reponse added in v0.15.0

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

type Site24x7WebsiteMonitor added in v0.15.0

type Site24x7WebsiteMonitor struct {
	DisplayName           string   `json:"display_name"`
	Type                  string   `json:"type"`
	Website               string   `json:"website"`
	CheckFrequency        string   `json:"check_frequency"`
	Timeout               int      `json:"timeout"`
	LocationProfileID     string   `json:"location_profile_id"`
	NotificationProfileID string   `json:"notification_profile_id"`
	ThresholdProfileID    string   `json:"threshold_profile_id"`
	UserGroupIDs          []string `json:"user_group_ids"`
	HttpMethod            string   `json:"http_method"`
	IPType                int      `json:"ip_type,omitempty"`
	UserAgent             string   `json:"user_agent,omitempty"`
	MonitorGroups         []string `json:"monitor_groups,omitempty"`
	UseNameServer         bool     `json:"use_name_server,omitempty"`
}

type Site24x7WebsiteMonitorData added in v0.15.2

type Site24x7WebsiteMonitorData struct {
	MonitorID         string `json:"monitor_id"`
	LocationProfileID string `json:"location_profile_id"`
	DisplayName       string `json:"display_name"`
}

type Site24x7WebsiteMonitorOptions added in v0.15.0

type Site24x7WebsiteMonitorOptions struct {
	Name                  string
	URL                   string
	Method                string
	Frequency             string
	Timeout               int
	Countries             []string
	UserAgent             string
	UseNameServer         bool
	NotificationProfileID string
	ThresholdProfileID    string
	UserGroupIDs          []string
}

type Site24x7WebsiteMonitorResponse added in v0.15.2

type Site24x7WebsiteMonitorResponse struct {
	Site24x7Reponse
	Data *Site24x7WebsiteMonitorData `json:"data,omitempty"`
}

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) *Slack

func (*Slack) AddReaction added in v0.7.3

func (s *Slack) AddReaction(options SlackReactionOptions) ([]byte, error)

func (*Slack) CustomAddReaction added in v0.7.3

func (s *Slack) CustomAddReaction(slackOptions SlackOptions, reactionOptions SlackReactionOptions) ([]byte, error)

func (*Slack) CustomGetUser added in v0.8.6

func (s *Slack) CustomGetUser(slackOptions SlackOptions, slackUser SlackUserEmail) ([]byte, error)

func (*Slack) CustomSendFile added in v0.15.4

func (s *Slack) CustomSendFile(slackOptions SlackOptions, fileOptions SlackFileOptions) ([]byte, error)

func (*Slack) CustomSendMessage added in v0.15.4

func (s *Slack) CustomSendMessage(slackOptions SlackOptions, messageOptions SlackMessageOptions) ([]byte, error)

func (*Slack) CustomUpdateUsergroup added in v0.8.6

func (s *Slack) CustomUpdateUsergroup(slackOptions SlackOptions, slackUpdateUsergroup SlackUsergroupUsers) ([]byte, error)

func (*Slack) GetUser added in v0.8.6

func (s *Slack) GetUser(options SlackUserEmail) ([]byte, error)

func (*Slack) SendFile

func (s *Slack) SendFile(fileOptions SlackFileOptions) ([]byte, error)

func (*Slack) SendMessage added in v0.2.0

func (s *Slack) SendMessage(messageOptions SlackMessageOptions) ([]byte, error)

func (*Slack) UpdateUsergroup added in v0.8.6

func (s *Slack) UpdateUsergroup(options SlackUsergroupUsers) ([]byte, error)

type SlackFileOptions added in v0.15.4

type SlackFileOptions struct {
	Channel string
	Thread  string
	Title   string
	Text    string
	Name    string
	Content string
	Type    string
}

type SlackMessage added in v0.2.0

type SlackMessage struct {
	Subtype string               `json:"subtype"`
	Text    string               `json:"text"`
	Type    string               `json:"type"`
	TS      string               `json:"ts"`
	BotID   string               `json:"bot_id,omitempty"`
	UserID  string               `json:"user_id,omitempty"`
	Blocks  []*SlackMessageBlock `json:"blocks,omitempty"`
}

type SlackMessageBlock added in v0.15.7

type SlackMessageBlock struct {
	Type    string `json:"type"`
	BlockID string `json:"block_id"`
}

type SlackMessageOptions added in v0.15.4

type SlackMessageOptions struct {
	Channel     string
	Thread      string
	Title       string
	Text        string
	Attachments string
	Blocks      string
}

type SlackMessageResponse added in v0.15.7

type SlackMessageResponse struct {
	OK      bool          `json:"ok"`
	Channel string        `json:"channel"`
	TS      string        `json:"ts"`
	Message *SlackMessage `json:"message,omitempty"`
}

type SlackOptions

type SlackOptions struct {
	Timeout  int
	Insecure bool
	Token    string
}

type SlackOutputOptions added in v0.2.0

type SlackOutputOptions struct {
	Output      string // path to output if empty to stdout
	OutputQuery string
}

type SlackReactionOptions added in v0.7.3

type SlackReactionOptions struct {
	Channel string
	Thread  string
	Name    string
}

type SlackUserEmail added in v0.8.6

type SlackUserEmail struct {
	Email string
}

type SlackUsergroupUsers added in v0.8.6

type SlackUsergroupUsers struct {
	Usergroup string   `json:"usergroup"`
	Users     []string `json:"users"`
}

type Telegram

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

func NewTelegram

func NewTelegram(options TelegramOptions) *Telegram

func (*Telegram) CustomSendDocument added in v0.4.3

func (t *Telegram) CustomSendDocument(telegramOptions TelegramOptions, documentOptions TelegramDocumentOptions) ([]byte, error)

func (*Telegram) CustomSendMessage added in v0.4.3

func (t *Telegram) CustomSendMessage(telegramOptions TelegramOptions, messageOptions TelegramMessageOptions) ([]byte, error)

func (*Telegram) CustomSendPhoto added in v0.4.3

func (t *Telegram) CustomSendPhoto(telegramOptions TelegramOptions, photoOptions TelegramPhotoOptions) ([]byte, error)

func (*Telegram) SendDocument added in v0.2.0

func (t *Telegram) SendDocument(options TelegramDocumentOptions) ([]byte, error)

func (*Telegram) SendMessage added in v0.2.1

func (t *Telegram) SendMessage(options TelegramMessageOptions) ([]byte, error)

func (*Telegram) SendPhoto added in v0.2.0

func (t *Telegram) SendPhoto(options TelegramPhotoOptions) ([]byte, error)

type TelegramDocumentOptions added in v0.2.1

type TelegramDocumentOptions struct {
	Caption string
	Name    string
	Content string
}

type TelegramMessageOptions added in v0.2.1

type TelegramMessageOptions struct {
	Text string
}

type TelegramOptions

type TelegramOptions struct {
	IDToken               string
	ChatID                string
	Timeout               int
	Insecure              bool
	DisableNotification   bool
	ParseMode             string
	DisableWebPagePreview bool
}

type TelegramPhotoOptions added in v0.2.1

type TelegramPhotoOptions struct {
	Caption string
	Name    string
	Content string
}

type VCenter added in v0.10.1

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

func NewVCenter added in v0.10.1

func NewVCenter(options VCenterOptions) *VCenter

func (*VCenter) CustomControlVMPower added in v0.15.5

func (vc *VCenter) CustomControlVMPower(options VCenterOptions, vmID string, action string) ([]byte, error)

func (*VCenter) CustomGetClusters added in v0.10.1

func (vc *VCenter) CustomGetClusters(options VCenterOptions) ([]byte, error)

func (*VCenter) CustomGetHosts added in v0.10.1

func (vc *VCenter) CustomGetHosts(options VCenterOptions, hostOptions VCenterHostOptions) ([]byte, error)

func (*VCenter) CustomGetSession added in v0.10.2

func (vc *VCenter) CustomGetSession(options VCenterOptions) (string, error)

func (*VCenter) CustomGetVM added in v0.15.5

func (vc *VCenter) CustomGetVM(options VCenterOptions, vmID string) ([]byte, error)

func (*VCenter) CustomGetVMGuestIdentity added in v0.10.3

func (vc *VCenter) CustomGetVMGuestIdentity(options VCenterOptions, vmGuestidentity VCenterVMGuestIdentityOptions) ([]byte, error)

func (*VCenter) CustomGetVMs added in v0.10.1

func (vc *VCenter) CustomGetVMs(options VCenterOptions, vmOptions VCenterVMOptions) ([]byte, error)

func (*VCenter) CustomGetVMsByName added in v0.15.5

func (vc *VCenter) CustomGetVMsByName(options VCenterOptions, vmNameOptions VCenterVMNameOptions) ([]byte, error)

func (*VCenter) GetClusters added in v0.10.1

func (vc *VCenter) GetClusters() ([]byte, error)

func (*VCenter) GetHosts added in v0.10.1

func (vc *VCenter) GetHosts(options VCenterHostOptions) ([]byte, error)

func (*VCenter) GetVM added in v0.15.5

func (vc *VCenter) GetVM(vmID string) ([]byte, error)

func (*VCenter) GetVMGuestIdentity added in v0.10.3

func (vc *VCenter) GetVMGuestIdentity(options VCenterVMGuestIdentityOptions) ([]byte, error)

func (*VCenter) GetVMs added in v0.10.1

func (vc *VCenter) GetVMs(options VCenterVMOptions) ([]byte, error)

func (*VCenter) GetVMsByName added in v0.15.5

func (vc *VCenter) GetVMsByName(options VCenterVMNameOptions) ([]byte, error)

func (*VCenter) RestartVM added in v0.15.5

func (vc *VCenter) RestartVM(vmID string) ([]byte, error)

func (*VCenter) StartVM added in v0.15.5

func (vc *VCenter) StartVM(vmID string) ([]byte, error)

func (*VCenter) StopVM added in v0.15.5

func (vc *VCenter) StopVM(vmID string) ([]byte, error)

type VCenterHostOptions added in v0.10.1

type VCenterHostOptions struct {
	Cluster string
}

type VCenterOptions added in v0.10.1

type VCenterOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	User     string
	Password string
	Session  string
}

func InitializeVCenterSession added in v0.15.5

func InitializeVCenterSession(options VCenterOptions) (VCenterOptions, error)

type VCenterSessionResponse added in v0.10.1

type VCenterSessionResponse struct {
	Value string `json:"value"`
}

type VCenterVMGuestIdentityOptions added in v0.10.3

type VCenterVMGuestIdentityOptions struct {
	VM string
}

type VCenterVMNameOptions added in v0.15.5

type VCenterVMNameOptions struct {
	Names []string
}

type VCenterVMOptions added in v0.10.1

type VCenterVMOptions struct {
	Cluster string
	Host    string
}

type VMInfo added in v0.15.5

type VMInfo struct {
	MemorySizeMiB int    `json:"memory_size_MiB"`
	VM            string `json:"vm"`
	Name          string `json:"name"`
	PowerState    string `json:"power_state"`
	CPUCount      int    `json:"cpu_count"`
}

type VMsResponse added in v0.15.5

type VMsResponse struct {
	Value []VMInfo `json:"value"`
}

type Zabbix added in v0.10.0

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

func NewZabbix added in v0.10.0

func NewZabbix(options ZabbixOptions) *Zabbix

func (*Zabbix) CustomGetHosts added in v0.10.0

func (o *Zabbix) CustomGetHosts(options ZabbixOptions, hostOptions ZabbixHostOptions) ([]byte, error)

func (*Zabbix) GetHosts added in v0.10.0

func (o *Zabbix) GetHosts(options ZabbixHostOptions) ([]byte, error)

type ZabbixHostGet added in v0.10.0

type ZabbixHostGet struct {
	JsonRPC string               `json:"jsonrpc"`
	Method  string               `json:"method"`
	Params  *ZabbixHostGetParams `json:"params"`
	Auth    string               `json:"auth"`
	ID      int                  `json:"id"`
}

type ZabbixHostGetParams added in v0.10.0

type ZabbixHostGetParams struct {
	Output           []string `json:"output"`
	SelectInventory  []string `json:"selectInventory"`
	SelectInterfaces []string `json:"selectInterfaces"`
}

type ZabbixHostOptions added in v0.10.1

type ZabbixHostOptions struct {
	Fields     []string
	Inventory  []string
	Interfaces []string
}

type ZabbixOptions added in v0.10.0

type ZabbixOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	User     string
	Password string
	Auth     string
}

type ZabbixUserLogin added in v0.10.0

type ZabbixUserLogin struct {
	JsonRPC string                 `json:"jsonrpc"`
	Method  string                 `json:"method"`
	Params  *ZabbixUserLoginParams `json:"params"`
	ID      int                    `json:"id"`
}

type ZabbixUserLoginParams added in v0.10.0

type ZabbixUserLoginParams struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

type ZabbixUserLoginResponse added in v0.10.0

type ZabbixUserLoginResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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