Versions in this module Expand all Collapse all v0 v0.0.1 Oct 9, 2021 Changes in this version + type Agent struct + ID string + type AgentInstallParams struct + AccessKey string + CheckCertificate bool + CollectorAddress string + CollectorPort int + SSLEnabled bool + type Alert struct + AutoCreated bool + Condition string + CreatedOn MilliTime + Criteria AlertCriteria + CustomNotification AlertCustomNotification + CustomerID int + Description string + Enabled bool + GroupName string + ID int + InvalidMetrics []interface{} + ModifiedOn MilliTime + Name string + NotificationCount int + RateOfChange bool + ReNotify bool + ReNotifyMinutes int + Severity Severity + SeverityLabel SeverityLabel + TeamID int + Timespan MicroDuration + Type AlertType + Valid bool + Version int + type AlertCriteria struct + Query interface{} + Scope interface{} + Severity interface{} + Source interface{} + Text string + type AlertCustomNotification struct + TitleTemplate string + UseNewTemplate bool + type AlertResponse struct + Alert Alert + type AlertService service + func (s *AlertService) Delete(ctx context.Context, alertID int) (*http.Response, error) + func (s *AlertService) Get(ctx context.Context, alertID int) (*AlertResponse, *http.Response, error) + func (s *AlertService) List(ctx context.Context) (*ListAlertConfigurationsResponse, *http.Response, error) + type AlertType string + const AlertTypeEvent + type AxesConfiguration struct + Bottom struct{ ... } + Left Axis + Right Axis + type Axis struct + Decimals interface{} + DisplayFormat string + DisplayName *string + Enabled bool + MaxInputFormat string + MaxValue *float64 + MinInputFormat string + MinValue *float64 + Scale string + Unit string + type BasicQuery struct + CompareTo BasicQueryCompareTo + DisplayInfo BasicQueryDisplayInfo + Enabled bool + Format BasicQueryFormat + Metrics []BasicQueryMetric + Scope BasicQueryScope + Segmentation BasicQuerySegmentation + type BasicQueryCompareTo struct + Delta int + Enabled bool + TimeFormat string + type BasicQueryDisplayInfo struct + DisplayName string + TimeSeriesDisplayNameTemplate string + Type string + type BasicQueryFormat struct + Decimals *int + DisplayFormat string + InputFormat string + NullValueDisplayMode string + Unit string + YAxis string + type BasicQueryMetric struct + Descriptor *string + GroupAggregation string + ID string + Sorting interface{} + TimeAggregation string + type BasicQueryScope struct + Expressions []string + ExtendsDashboardScope bool + type BasicQuerySegmentation struct + Direction string + Labels []BasicQuerySegmentationLabel + Limit int + type BasicQuerySegmentationLabel struct + Descriptor *string + DisplayName *string + ID string + Sorting *string + type Categories []Category + type Category string + const CategoryAlert + const CategoryContainerd + const CategoryCustom + const CategoryDocker + const CategoryKubernetes + type Client struct + Alerts *AlertService + BaseURL *url.URL + Dashboards *DashboardService + Events *EventsService + NotificationChannels *NotificationChannelsService + Prometheus v1.API + Teams *TeamsService + UserAgent string + Users *UsersService + func NewClient(authenticator authentication.Authenticator, options ...ClientOption) (*Client, error) + func (c *Client) BareDo(ctx context.Context, req *http.Request) (*http.Response, error) + func (c *Client) CheckResponse(r *http.Response) error + func (c *Client) Client() *http.Client + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRequest(method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) SetLogger(l Logger) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithDebug(debug bool) ClientOption + func WithHTTPClient(client *http.Client) ClientOption + func WithIBMBaseURL(ibmRegion Region, privateEndpoint bool) ClientOption + func WithLogger(l Logger) ClientOption + func WithResponseCompression(shouldCompressResponse bool) ClientOption + func WithUserAgent(userAgent string) ClientOption + type ConnectedAgentsResponse struct + Agents []Agent + Total int + type Customer struct + AccessKey string + DateCreated MilliTime + ExternalID string + ID int + Name string + type CustomerSettings struct + Environment interface{} + Plan Plan + Sysdig UserSysdigSettings + type Dashboard struct + CreatedOn MilliTime + Description string + EventDisplaySettings EventDisplaySettings + Favorite bool + ID int + Layout []Layout + ModifiedOn MilliTime + Name string + Panels []Panel + Permissions []string + Public bool + PublicNotation bool + PublicToken string + Schema int + ScopeExpressionList []ScopeExpression + Shared bool + SharingSettings []SharingSetting + TeamID int + UserID int + Username string + Version int + func NewDashboard(name string) *Dashboard + type DashboardResponse struct + Dashboard Dashboard + type DashboardService service + func (s *DashboardService) Create(ctx context.Context, dashboard Dashboard) (*DashboardResponse, *http.Response, error) + func (s *DashboardService) Delete(ctx context.Context, id int) (*DashboardResponse, *http.Response, error) + func (s *DashboardService) Favorite(ctx context.Context, id int, favorite bool) (*DashboardResponse, *http.Response, error) + func (s *DashboardService) Get(ctx context.Context, dashboardID int) (*DashboardResponse, *http.Response, error) + func (s *DashboardService) List(ctx context.Context) (*ListDashboardsResponse, *http.Response, error) + func (s *DashboardService) Transfer(ctx context.Context, ownerID, targetOwnerID int, simulate bool, ...) (*DashboardTransferResponse, *http.Response, error) + func (s *DashboardService) Update(ctx context.Context, dashboard Dashboard) (*DashboardResponse, *http.Response, error) + type DashboardTransferResponse struct + Results DashboardTransferResults + type DashboardTransferResults struct + CurrentTeamID int + CurrentTeamName string + Excluded []SharingSetting + ID int + Kept []SharingSetting + Name string + Private bool + TargetTeamID int + TargetTeamName string + type Direction string + const DirectionAfter + const DirectionBefore + type Error struct + Message string + Reason string + type ErrorResponse struct + Errors []Error + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Event struct + CreatedOn MilliTime + Description string + ID string + Name string + Scope string + ScopeLabels map[string]string + Severity SeverityLabel + Tags map[string]string + Timestamp MilliTime + Type Category + Version int + type EventDisplaySettings struct + Enabled bool + QueryParams EventDisplaySettingsQueryParams + type EventDisplaySettingsQueryParams struct + AlertStatuses []Status + Categories []Category + Filter *string + Severities []Severity + TeamScope bool + type EventOptions struct + Description string + Name string + Scope string + Severity SeverityLabel + Tags map[string]string + Timestamp MilliTime + type EventResponse struct + Event Event + type EventsService service + func (s *EventsService) Create(ctx context.Context, event EventOptions) (*EventResponse, *http.Response, error) + func (s *EventsService) Delete(ctx context.Context, eventID string) (*http.Response, error) + func (s *EventsService) Get(ctx context.Context, eventID string) (*EventResponse, *http.Response, error) + func (s *EventsService) List(ctx context.Context, options ListEventOptions) (*ListEventsResponse, *http.Response, error) + type Infrastructure struct + AgentMetricOverview InfrastructureAgentMetricOverviews + ContainerCount int + ContainerTypes []interface{} + HostCount int + MetricCount InfrastructureMetricCount + OnPremOverview OnPremOverview + Orchestrations []interface{} + Platforms []interface{} + UnresolvedEvents int + type InfrastructureAgentMetricOverviews struct + ExceedingLimitCount int + ExceedingLimitPct float64 + TotalAgents int + type InfrastructureMetricCount struct + AppCheck int + JMX int + StatsD int + Total int + type InfrastructureResponse struct + Infrastructure Infrastructure + type Layout struct + H int + PanelID int + W int + X int + Y int + type LegacyLimits struct + AppCheck int + AppCheckAggregationCount int + Connections int + ContainerDensity int + ContainerServerPorts int + HostServerPorts int + JMX int + KubernetesJobs int + KubernetesPods int + LimitKubernetesResources bool + MeerkatSuited bool + ProgAggregationCount int + PromMetricsWeight float64 + Prometheus int + PrometheusPerProcess int + Statsd int + TopDevicesCount int + TopFilesCount int + type LegendConfiguration struct + Enabled bool + Height *float64 + Layout string + Position string + ShowCurrent bool + Width *float64 + type Limits struct + AppCheck int + AppCheckAggregationCount int + Connections int + ContainerDensity int + ContainerServerPorts int + HostServerPorts int + JMX int + KubernetesJobs int + KubernetesPods int + LimitKubernetesResources bool + MeerkatSuited bool + ProgAggregationCount int + PromMetricsWeight float64 + Prometheus int + PrometheusPerProcess int + Statsd int + TopDevicesCount int + TopFilesCount int + type ListAlertConfigurationsResponse struct + Alerts []Alert + type ListDashboardsResponse struct + Dashboards []Dashboard + type ListEventOptions struct + AlertStatus Status + Categories Categories + Direction Direction + Filter string + From MilliTime + IncludeTotal bool + Limit int + Pivot string + Scope string + To MilliTime + type ListEventsResponse struct + Events []Event + Matched int + Total int + type ListNotificationChannelsResponse struct + NotificationChannels []NotificationChannel + type ListTeamsResponse struct + Teams []Team + type ListUsersResponse struct + Offset int + Total int + Users []User + type Logger interface + Print func(args ...interface{}) + Printf func(format string, args ...interface{}) + type MeResponse struct + User User + type MetricsSettings struct + EnablePromCalculatedIngestion bool + Enforce bool + EnforceAgentAggregation bool + LegacyLimits LegacyLimits + Limits Limits + ShowExperimentals bool + type MicroDuration struct + func NewMicroDuration(t time.Duration) MicroDuration + func (t *MicroDuration) UnmarshalJSON(b []byte) error + func (t MicroDuration) MarshalJSON() ([]byte, error) + type MilliTime struct + func NewMilliTime(t time.Time) MilliTime + func UnixMilli(msec int64) MilliTime + func (t *MilliTime) UnixMilli() int64 + func (t *MilliTime) UnmarshalJSON(b []byte) error + func (t MilliTime) MarshalJSON() ([]byte, error) + type NotificationChannel struct + CreatedOn *MilliTime + Enabled bool + ID string + ModifiedOn *MilliTime + Name string + Options NotificationChannelOptions + Type NotificationChannelType + Version int + type NotificationChannelOptions struct + APIKey string + Account string + Channel string + EmailRecipients []string + NotifyOnOK bool + NotifyOnResolve bool + ResolveOnOK bool + RoutingKey string + ServiceKey string + ServiceName string + URL string + type NotificationChannelResponse struct + NotificationChannel NotificationChannel + type NotificationChannelType string + const NotificationChannelTypeEmail + const NotificationChannelTypeOpsGenie + const NotificationChannelTypePagerDuty + const NotificationChannelTypeSNS + const NotificationChannelTypeSlack + const NotificationChannelTypeVictorOps + const NotificationChannelTypeWebhook + type NotificationChannelsService service + func (s *NotificationChannelsService) Create(ctx context.Context, t NotificationChannelType, name string, ...) (*NotificationChannelResponse, *http.Response, error) + func (s *NotificationChannelsService) Delete(ctx context.Context, notificationChannelID string) (*http.Response, error) + func (s *NotificationChannelsService) Get(ctx context.Context, id string) (*NotificationChannelResponse, *http.Response, error) + func (s *NotificationChannelsService) List(ctx context.Context, from, to MilliTime) (*ListNotificationChannelsResponse, *http.Response, error) + type OnPremOverview struct + CustomerVersion string + LatestVersion string + ShowPlanInfo bool + type Panel struct + ApplyScopeToAll bool + ApplySegmentationToAll bool + AxesConfiguration AxesConfiguration + BasicQueries []BasicQuery + Description string + ID int + LegendConfiguration LegendConfiguration + MarkdownSource string + Name string + NullValueDisplayText *string + NumberThresholds Thresholds + PanelTitleVisible bool + TextAutosized bool + TransparentBackground bool + Type string + type PaymentsIntegrationID struct + ID string + TTL TTL + type Plan struct + AllocatedAgentsCount int + IndirectCustomer bool + MaxAgents int + MaxTeams int + MetricsSettings MetricsSettings + MigratedToV2Direct bool + MonitorEnabled bool + OnDemandAgents int + OverageAssessmentEligible bool + Partner string + PaymentsIntegrationID PaymentsIntegrationID + PricingPlan string + SecureEnabled bool + Timelines []Timeline + TrialPlanName string + type ProductType string + const ProductTypeAny + const ProductTypeMonitor + const ProductTypeSecure + type Region string + const RegionAUSYD + const RegionBRSAO + const RegionCATOR + const RegionEUDE + const RegionJPOSA + const RegionJPTOK + const RegionUSEast + const RegionUSSouth + type ScopeExpression struct + Descriptor *string + DisplayName string + IsVariable bool + Operand string + Operator string + Value []string + Variable bool + type Severity int + const SeverityAlert + const SeverityCritical + const SeverityDebug + const SeverityEmergency + const SeverityError + const SeverityInformational + const SeverityNotice + const SeverityWarning + type SeverityLabel string + const SeverityHigh + const SeverityInfo + const SeverityLow + const SeverityMedium + const SeverityNone + type SharingMember struct + ID int + Name string + TeamTheme string + Type string + type SharingSetting struct + Member SharingMember + Role string + type Status string + const StatusAcknowledged + const StatusResolved + const StatusTriggered + const StatusUnacknowledged + type TTL struct + TTL int + type Team struct + CanUseAgentCli bool + CanUseAwsMetrics bool + CanUseBeaconMetrics bool + CanUseCustomEvents bool + CanUseRapidResponse bool + CanUseSysdigCapture bool + CustomerID int + DateCreated MilliTime + Default bool + DefaultTeamRole string + Description string + EntryPoint TeamEntryPoint + ID int + Immutable bool + LastUpdated MilliTime + Name string + NamespaceFilters interface{} + Origin string + Products []string + Properties interface{} + Show string + Theme string + UserCount int + Version int + type TeamEntryPoint struct + Module string + type TeamResponse struct + Team Team + type TeamRole struct + Admin bool + Role string + TeamID int + TeamName string + TeamTheme string + UserID int + UserName string + type TeamsService service + func (s *TeamsService) Delete(ctx context.Context, teamID int) (*http.Response, error) + func (s *TeamsService) Get(ctx context.Context, teamID int) (*TeamResponse, *http.Response, error) + func (s *TeamsService) Infrastructure(ctx context.Context) (*InfrastructureResponse, *http.Response, error) + func (s *TeamsService) List(ctx context.Context, product ProductType) (*ListTeamsResponse, *http.Response, error) + func (s *TeamsService) ListUsers(ctx context.Context, teamID int) (*ListUsersResponse, *http.Response, error) + type ThresholdBase struct + DisplayText string + Severity string + type ThresholdValue struct + DisplayText string + InputFormat string + Severity string + Value float64 + type Thresholds struct + Base ThresholdBase + UseDefaults *bool + Values []ThresholdValue + type Timeline struct + From *MilliTime + Sampling int64 + To *MilliTime + type Token struct + Key string + type TokenResponse struct + Token Token + type User struct + AccessKey string + AdditionalRoles []interface{} + AgentInstallParams AgentInstallParams + CurrentTeam int + Customer Customer + CustomerSettings CustomerSettings + DateCreated MilliTime + Enabled bool + FirstName string + ID int + IntercomUserIDHash string + LastName string + LastSeen int64 + LastUpdated MilliTime + Name string + Oauth bool + PictureURL string + Products []string + Properties UserProperties + ResetPassword bool + Status string + SystemRole string + TeamRoles []TeamRole + TermsAndConditions bool + Timezone string + UniqueIntercomUserID string + Username string + Version int + type UserProperties struct + HasBeenInvited bool + IAMID string + OpenID bool + OpenIDConnectProfileID string + ResetPassword bool + UserEmailAlias string + type UserSysdigSettings struct + Buckets []interface{} + Enabled bool + EnabledSSE bool + type UsersService service + func (s *UsersService) ConnectedAgents(ctx context.Context) (*ConnectedAgentsResponse, *http.Response, error) + func (s *UsersService) Me(ctx context.Context) (*MeResponse, *http.Response, error) + func (s *UsersService) Token(ctx context.Context) (*TokenResponse, *http.Response, error)