Documentation ¶
Index ¶
- func CommitCommentEventJSON() string
- func CreateEventJSON() string
- func DeleteEventJSON() string
- func DeploymentEventJSON() string
- func DeploymentStatusEventJSON() string
- func ForkEventJSON() string
- func GollumEventJSON() string
- func IssueCommentEventJSON() string
- func IssuesEventJSON() string
- func MemberEventJSON() string
- func MembershipEventJSON() string
- func PageBuildEventJSON() string
- func PublicEventJSON() string
- func PullRequestEventJSON() string
- func PullRequestReviewCommentEventJSON() string
- func PushEventJSON() string
- func ReleaseEventJSON() string
- func RepositoryEventJSON() string
- func StatusEventJSON() string
- func TeamAddEventJSON() string
- func WatchEventJSON() string
- type CommitComment
- type CommitCommentEvent
- type CreateEvent
- type DeleteEvent
- type Deployment
- type DeploymentEvent
- type DeploymentStatus
- type DeploymentStatusEvent
- type Event
- type ForkEvent
- type GithubWebhook
- type GollumEvent
- type Issue
- type IssueComment
- type IssueCommentEvent
- type IssuesEvent
- type MemberEvent
- type MembershipEvent
- type Page
- type PageBuildEvent
- type PublicEvent
- type PullRequest
- type PullRequestEvent
- type PullRequestReviewComment
- type PullRequestReviewCommentEvent
- type PushEvent
- type Release
- type ReleaseEvent
- type Repository
- type RepositoryEvent
- type Sender
- type StatusEvent
- type Team
- type TeamAddEvent
- type WatchEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitCommentEventJSON ¶
func CommitCommentEventJSON() string
func CreateEventJSON ¶
func CreateEventJSON() string
func DeleteEventJSON ¶
func DeleteEventJSON() string
func DeploymentEventJSON ¶
func DeploymentEventJSON() string
func DeploymentStatusEventJSON ¶
func DeploymentStatusEventJSON() string
func ForkEventJSON ¶
func ForkEventJSON() string
func GollumEventJSON ¶
func GollumEventJSON() string
func IssueCommentEventJSON ¶
func IssueCommentEventJSON() string
func IssuesEventJSON ¶
func IssuesEventJSON() string
func MemberEventJSON ¶
func MemberEventJSON() string
func MembershipEventJSON ¶
func MembershipEventJSON() string
func PageBuildEventJSON ¶
func PageBuildEventJSON() string
func PublicEventJSON ¶
func PublicEventJSON() string
func PullRequestEventJSON ¶
func PullRequestEventJSON() string
func PullRequestReviewCommentEventJSON ¶
func PullRequestReviewCommentEventJSON() string
func PushEventJSON ¶
func PushEventJSON() string
func ReleaseEventJSON ¶
func ReleaseEventJSON() string
func RepositoryEventJSON ¶
func RepositoryEventJSON() string
func StatusEventJSON ¶
func StatusEventJSON() string
func TeamAddEventJSON ¶
func TeamAddEventJSON() string
func WatchEventJSON ¶
func WatchEventJSON() string
Types ¶
type CommitComment ¶
type CommitCommentEvent ¶
type CommitCommentEvent struct { Comment CommitComment `json:"comment"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (CommitCommentEvent) NewMetric ¶
func (s CommitCommentEvent) NewMetric() telegraf.Metric
type CreateEvent ¶
type CreateEvent struct { Ref string `json:"ref"` RefType string `json:"ref_type"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (CreateEvent) NewMetric ¶
func (s CreateEvent) NewMetric() telegraf.Metric
type DeleteEvent ¶
type DeleteEvent struct { Ref string `json:"ref"` RefType string `json:"ref_type"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (DeleteEvent) NewMetric ¶
func (s DeleteEvent) NewMetric() telegraf.Metric
type Deployment ¶
type DeploymentEvent ¶
type DeploymentEvent struct { Deployment Deployment `json:"deployment"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (DeploymentEvent) NewMetric ¶
func (s DeploymentEvent) NewMetric() telegraf.Metric
type DeploymentStatus ¶
type DeploymentStatusEvent ¶
type DeploymentStatusEvent struct { Deployment Deployment `json:"deployment"` DeploymentStatus DeploymentStatus `json:"deployment_status"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (DeploymentStatusEvent) NewMetric ¶
func (s DeploymentStatusEvent) NewMetric() telegraf.Metric
type ForkEvent ¶
type ForkEvent struct { Forkee Repository `json:"forkee"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
type GithubWebhook ¶
type GithubWebhook struct { Path string Secret string auth.BasicAuth // contains filtered or unexported fields }
func (*GithubWebhook) NewEvent ¶ added in v1.21.0
func (gh *GithubWebhook) NewEvent(data []byte, name string) (Event, error)
func (*GithubWebhook) Register ¶
func (gh *GithubWebhook) Register(router *mux.Router, acc telegraf.Accumulator, log telegraf.Logger)
type GollumEvent ¶
type GollumEvent struct { Pages []Page `json:"pages"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (GollumEvent) NewMetric ¶
func (s GollumEvent) NewMetric() telegraf.Metric
REVIEW: Going to be lazy and not deal with the pages.
type IssueComment ¶
type IssueComment struct {
Body string `json:"body"`
}
type IssueCommentEvent ¶
type IssueCommentEvent struct { Issue Issue `json:"issue"` Comment IssueComment `json:"comment"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (IssueCommentEvent) NewMetric ¶
func (s IssueCommentEvent) NewMetric() telegraf.Metric
type IssuesEvent ¶
type IssuesEvent struct { Action string `json:"action"` Issue Issue `json:"issue"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (IssuesEvent) NewMetric ¶
func (s IssuesEvent) NewMetric() telegraf.Metric
type MemberEvent ¶
type MemberEvent struct { Member Sender `json:"member"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (MemberEvent) NewMetric ¶
func (s MemberEvent) NewMetric() telegraf.Metric
type MembershipEvent ¶
type MembershipEvent struct { Action string `json:"action"` Member Sender `json:"member"` Sender Sender `json:"sender"` Team Team `json:"team"` }
func (MembershipEvent) NewMetric ¶
func (s MembershipEvent) NewMetric() telegraf.Metric
type PageBuildEvent ¶
type PageBuildEvent struct { Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (PageBuildEvent) NewMetric ¶
func (s PageBuildEvent) NewMetric() telegraf.Metric
type PublicEvent ¶
type PublicEvent struct { Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (PublicEvent) NewMetric ¶
func (s PublicEvent) NewMetric() telegraf.Metric
type PullRequest ¶
type PullRequestEvent ¶
type PullRequestEvent struct { Action string `json:"action"` PullRequest PullRequest `json:"pull_request"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (PullRequestEvent) NewMetric ¶
func (s PullRequestEvent) NewMetric() telegraf.Metric
type PullRequestReviewCommentEvent ¶
type PullRequestReviewCommentEvent struct { Comment PullRequestReviewComment `json:"comment"` PullRequest PullRequest `json:"pull_request"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (PullRequestReviewCommentEvent) NewMetric ¶
func (s PullRequestReviewCommentEvent) NewMetric() telegraf.Metric
type PushEvent ¶
type PushEvent struct { Ref string `json:"ref"` Before string `json:"before"` After string `json:"after"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
type ReleaseEvent ¶
type ReleaseEvent struct { Release Release `json:"release"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (ReleaseEvent) NewMetric ¶
func (s ReleaseEvent) NewMetric() telegraf.Metric
type Repository ¶
type RepositoryEvent ¶
type RepositoryEvent struct { Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (RepositoryEvent) NewMetric ¶
func (s RepositoryEvent) NewMetric() telegraf.Metric
type StatusEvent ¶
type StatusEvent struct { Commit string `json:"sha"` State string `json:"state"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (StatusEvent) NewMetric ¶
func (s StatusEvent) NewMetric() telegraf.Metric
type TeamAddEvent ¶
type TeamAddEvent struct { Team Team `json:"team"` Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (TeamAddEvent) NewMetric ¶
func (s TeamAddEvent) NewMetric() telegraf.Metric
type WatchEvent ¶
type WatchEvent struct { Repository Repository `json:"repository"` Sender Sender `json:"sender"` }
func (WatchEvent) NewMetric ¶
func (s WatchEvent) NewMetric() telegraf.Metric
Click to show internal directories.
Click to hide internal directories.