Documentation
¶
Overview ¶
Package syschecks is the official Go client for the Syschecks API — monitoring, incidents, on-call, status pages, playbooks and more.
Create a client with a personal access token and call endpoints through their resource namespace:
sc, err := syschecks.New("https://api.syschecks.com", "sk_...")
if err != nil {
log.Fatal(err)
}
check, err := sc.Checks.GetCheckDetails(ctx, 42)
Path parameters are positional; query filters and request bodies are passed as typed values from the models package. An unexpected HTTP status is returned as *Error.
The typed core in the models package is generated from the curated OpenAPI spec; the resource facade in this package is generated on top of it. See scripts/generate.sh.
Index ¶
- Constants
- type ActionItems
- func (r *ActionItems) GetActionItemsSummary(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *ActionItems) ListActionItems(ctx context.Context, orgId int, params *models.ListActionItemsParams) (json.RawMessage, error)
- func (r *ActionItems) UpdateActionItem(ctx context.Context, orgId int, itemId int, ...) (json.RawMessage, error)
- type ChangeEvents
- func (r *ChangeEvents) CorrelateChangeEvents(ctx context.Context, orgId int, incidentId int) (json.RawMessage, error)
- func (r *ChangeEvents) CreateChangeEvent(ctx context.Context, body models.CreateChangeEventJSONRequestBody) (json.RawMessage, error)
- func (r *ChangeEvents) DeleteChangeEvent(ctx context.Context, orgId int, eventId int) (json.RawMessage, error)
- func (r *ChangeEvents) ListChangeEvents(ctx context.Context, orgId int, params *models.ListChangeEventsParams) (json.RawMessage, error)
- type Checks
- func (r *Checks) AddCheckDependency(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) AddCheckProviderDependency(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) ApproveDnsSnapshot(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) CloneCheck(ctx context.Context, checkId int) (*models.CheckResponse, error)
- func (r *Checks) CreateCheckSlo(ctx context.Context, checkId int, body models.CreateCheckSloJSONRequestBody) (*models.SLOResponse, error)
- func (r *Checks) CreateNewCheck(ctx context.Context, body models.CreateNewCheckJSONRequestBody) (*models.CheckResponse, error)
- func (r *Checks) DeleteCheckProviderDependency(ctx context.Context, checkId int, linkId int) (json.RawMessage, error)
- func (r *Checks) DeleteCheckSlo(ctx context.Context, checkId int, sloId int) (json.RawMessage, error)
- func (r *Checks) ExportCheckIncidentsCsv(ctx context.Context, checkId int, params *models.ExportCheckIncidentsCsvParams) (json.RawMessage, error)
- func (r *Checks) ExportCheckLogsCsv(ctx context.Context, checkId int, params *models.ExportCheckLogsCsvParams) (json.RawMessage, error)
- func (r *Checks) GetCheckChannels(ctx context.Context, checkId int) (*[]models.NotificationChannelBrief, error)
- func (r *Checks) GetCheckDependencies(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetCheckDetails(ctx context.Context, checkId int) (*models.CheckResponse, error)
- func (r *Checks) GetCheckIncidentDetail(ctx context.Context, checkId int, logId int) (json.RawMessage, error)
- func (r *Checks) GetCheckIncidents(ctx context.Context, checkId int, params *models.GetCheckIncidentsParams) (json.RawMessage, error)
- func (r *Checks) GetCheckLogs(ctx context.Context, checkId int, params *models.GetCheckLogsParams) (*models.CheckLogPaginatedResponse, error)
- func (r *Checks) GetCheckPagespeedHistory(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) GetCheckPreferences(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetCheckProviderDependencies(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetCheckSla(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetCheckSlo(ctx context.Context, checkId int) (*models.SLOStatusResponse, error)
- func (r *Checks) GetCheckStats(ctx context.Context, checkId int, params *models.GetCheckStatsParams) (json.RawMessage, error)
- func (r *Checks) GetCheckTimeseries(ctx context.Context, checkId int, params *models.GetCheckTimeseriesParams) (json.RawMessage, error)
- func (r *Checks) GetCheckTimeseriesRange(ctx context.Context, checkId int, params *models.GetCheckTimeseriesRangeParams) (json.RawMessage, error)
- func (r *Checks) GetDnsMultiRecord(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetDnsSnapshot(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetGeoHistogram(ctx context.Context, checkId int, params *models.GetGeoHistogramParams) (json.RawMessage, error)
- func (r *Checks) GetOidcRealmStatuses(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) GetSloSummary(ctx context.Context) (*models.SLOSummaryResponse, error)
- func (r *Checks) ListChecks(ctx context.Context, params *models.ListChecksParams) (*[]models.CheckResponse, error)
- func (r *Checks) RefreshCheckSlo(ctx context.Context, checkId int, sloId int) (*models.SLOStatusResponse, error)
- func (r *Checks) RemoveCheck(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) RemoveCheckDependency(ctx context.Context, checkId int, depId int) (json.RawMessage, error)
- func (r *Checks) ResolveCheckIncident(ctx context.Context, checkId int, logId int) (json.RawMessage, error)
- func (r *Checks) RotateCheckUuid(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) RunCheckNow(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Checks) SendTestAlert(ctx context.Context, checkId int, body models.SendTestAlertJSONRequestBody) (json.RawMessage, error)
- func (r *Checks) SetCheckChannels(ctx context.Context, checkId int, body models.SetCheckChannelsJSONRequestBody) (*[]models.NotificationChannelBrief, error)
- func (r *Checks) UpdateCheck(ctx context.Context, checkId int, body models.UpdateCheckJSONRequestBody) (*models.CheckResponse, error)
- func (r *Checks) UpdateCheckPreferences(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) UpdateCheckProviderDependency(ctx context.Context, checkId int, linkId int, ...) (json.RawMessage, error)
- func (r *Checks) UpdateCheckSlo(ctx context.Context, checkId int, sloId int, ...) (*models.SLOResponse, error)
- func (r *Checks) UpdateDnsHijackAlerts(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) UpdateDnsMultiRecord(ctx context.Context, checkId int, ...) (json.RawMessage, error)
- func (r *Checks) UpdateDomainAlerts(ctx context.Context, checkId int, params *models.UpdateDomainAlertsParams) (json.RawMessage, error)
- func (r *Checks) UpdateSslAlerts(ctx context.Context, checkId int, params *models.UpdateSslAlertsParams) (json.RawMessage, error)
- type Client
- type CloudStatus
- func (r *CloudStatus) CreateCustomStatusPage(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- func (r *CloudStatus) DeleteCloudSubscription(ctx context.Context, orgId int, provider string) (json.RawMessage, error)
- func (r *CloudStatus) DeleteCustomStatusPage(ctx context.Context, orgId int, pageId int) (json.RawMessage, error)
- func (r *CloudStatus) GetCheckCloudContext(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *CloudStatus) GetCloudCorrelation(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *CloudStatus) GetCloudStatusDetail(ctx context.Context, provider string) (json.RawMessage, error)
- func (r *CloudStatus) GetEarlyWarnings(ctx context.Context) (*models.EarlyWarningsResponse, error)
- func (r *CloudStatus) ListCloudStatuses(ctx context.Context) (*[]models.CloudProviderStatusItem, error)
- func (r *CloudStatus) ListCloudSubscriptions(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *CloudStatus) ListCustomStatusPages(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *CloudStatus) TestCustomStatusPage(ctx context.Context, orgId int, pageId int) (json.RawMessage, error)
- func (r *CloudStatus) UpdateCustomStatusPage(ctx context.Context, orgId int, pageId int, ...) (json.RawMessage, error)
- func (r *CloudStatus) UpsertCloudSubscription(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- type ContactMethods
- func (r *ContactMethods) CreateContactMethod(ctx context.Context, body models.CreateContactMethodJSONRequestBody) (*models.ContactMethodResponse, error)
- func (r *ContactMethods) DeleteContactMethod(ctx context.Context, methodId int) (json.RawMessage, error)
- func (r *ContactMethods) ListContactMethods(ctx context.Context) (*[]models.ContactMethodResponse, error)
- func (r *ContactMethods) ListNotificationRules(ctx context.Context) (*[]models.NotificationRuleItem, error)
- func (r *ContactMethods) ReplaceNotificationRules(ctx context.Context, body models.ReplaceNotificationRulesJSONRequestBody) (*[]models.NotificationRuleItem, error)
- func (r *ContactMethods) ResendVerification(ctx context.Context, methodId int) (*models.ContactMethodVerifyResponse, error)
- func (r *ContactMethods) TestContactMethod(ctx context.Context, methodId int) (*models.ContactMethodVerifyResponse, error)
- func (r *ContactMethods) UpdateContactMethod(ctx context.Context, methodId int, ...) (*models.ContactMethodResponse, error)
- func (r *ContactMethods) VerifyContactMethod(ctx context.Context, methodId int, ...) (*models.ContactMethodVerifyResponse, error)
- type Error
- type EventStream
- type Events
- type IncidentAnalytics
- func (r *IncidentAnalytics) CategorizeIncident(ctx context.Context, orgId int, incidentId int, ...) (json.RawMessage, error)
- func (r *IncidentAnalytics) GetIncidentAnalytics(ctx context.Context, orgId int, params *models.GetIncidentAnalyticsParams) (json.RawMessage, error)
- func (r *IncidentAnalytics) GetIncidentTags(ctx context.Context, orgId int) (json.RawMessage, error)
- type Incidents
- func (r *Incidents) AcknowledgeIncident(ctx context.Context, checkId int, logId int, ...) (json.RawMessage, error)
- func (r *Incidents) AcknowledgeIncidentByToken(ctx context.Context, token string) (json.RawMessage, error)
- func (r *Incidents) AcknowledgeIncidentPage(ctx context.Context, token string) (json.RawMessage, error)
- func (r *Incidents) AddIncidentNote(ctx context.Context, orgId int, incidentType string, refId int, ...) (json.RawMessage, error)
- func (r *Incidents) AssignIncidentRole(ctx context.Context, orgId int, incidentType string, refId int, ...) (json.RawMessage, error)
- func (r *Incidents) GetIncidentAcknowledgments(ctx context.Context, checkId int, logId int) (json.RawMessage, error)
- func (r *Incidents) GetIncidentNotificationDeliveries(ctx context.Context, orgId int, incidentType string, refId int) (json.RawMessage, error)
- func (r *Incidents) GetIncidentTimeline(ctx context.Context, orgId int, incidentType string, refId int) (json.RawMessage, error)
- func (r *Incidents) ListIncidentNotes(ctx context.Context, orgId int, incidentType string, refId int) (json.RawMessage, error)
- func (r *Incidents) ListIncidentRoles(ctx context.Context, orgId int, incidentType string, refId int) (json.RawMessage, error)
- func (r *Incidents) ListIncidents(ctx context.Context, params *models.ListIncidentsParams) (json.RawMessage, error)
- func (r *Incidents) StarTimelineEvent(ctx context.Context, orgId int, incidentType string, refId int, activityId int) (json.RawMessage, error)
- func (r *Incidents) UnassignIncidentRole(ctx context.Context, orgId int, incidentType string, refId int, ...) (json.RawMessage, error)
- func (r *Incidents) UnstarTimelineEvent(ctx context.Context, orgId int, incidentType string, refId int, activityId int) (json.RawMessage, error)
- type IntegrationKeys
- func (r *IntegrationKeys) CreateIntegrationKey(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- func (r *IntegrationKeys) ListIntegrationKeys(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *IntegrationKeys) RevokeIntegrationKey(ctx context.Context, orgId int, keyId int) (json.RawMessage, error)
- type Lifecycle
- func (r *Lifecycle) DeleteLifecycleWatch(ctx context.Context, orgId int, watchId int) (json.RawMessage, error)
- func (r *Lifecycle) GetLifecycleCatalogue(ctx context.Context) (*[]models.LifecycleCatalogueItem, error)
- func (r *Lifecycle) GetLifecycleWatch(ctx context.Context, orgId int, watchId int) (*models.LifecycleWatchResponse, error)
- func (r *Lifecycle) ListLifecycleEvents(ctx context.Context) (*[]models.LifecycleEventItem, error)
- func (r *Lifecycle) ListLifecycleWatches(ctx context.Context, orgId int) (*[]models.LifecycleWatchResponse, error)
- func (r *Lifecycle) UpsertLifecycleWatch(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- type Maintenance
- func (r *Maintenance) CheckMaintenanceStatus(ctx context.Context, checkId int) (json.RawMessage, error)
- func (r *Maintenance) CreateMaintenanceWindow(ctx context.Context, body models.CreateMaintenanceWindowJSONRequestBody) (*models.MaintenanceWindowResponse, error)
- func (r *Maintenance) DeleteMaintenanceWindow(ctx context.Context, windowId int) (json.RawMessage, error)
- func (r *Maintenance) GetMaintenanceWindow(ctx context.Context, windowId int) (*models.MaintenanceWindowResponse, error)
- func (r *Maintenance) ListActiveMaintenanceWindows(ctx context.Context) (*[]models.MaintenanceWindowResponse, error)
- func (r *Maintenance) ListMaintenanceWindows(ctx context.Context, params *models.ListMaintenanceWindowsParams) (*[]models.MaintenanceWindowResponse, error)
- func (r *Maintenance) UpdateMaintenanceWindow(ctx context.Context, windowId int, ...) (*models.MaintenanceWindowResponse, error)
- type Metrics
- func (r *Metrics) CreateMetricsKey(ctx context.Context, projectId int, ...) (*models.MetricsKeyCreatedResponse, error)
- func (r *Metrics) DeactivateMetricsKey(ctx context.Context, projectId int, keyId int) (json.RawMessage, error)
- func (r *Metrics) GetMetricsByKey(ctx context.Context, metricsKey string, params *models.GetMetricsByKeyParams) (json.RawMessage, error)
- func (r *Metrics) ListMetricsKeys(ctx context.Context, projectId int) (*[]models.MetricsKeyResponse, error)
- func (r *Metrics) RotateMetricsKey(ctx context.Context, projectId int, keyId int) (*models.MetricsKeyCreatedResponse, error)
- type NotificationChannels
- func (r *NotificationChannels) CreateChannel(ctx context.Context, body models.CreateChannelJSONRequestBody) (*models.NotificationChannelResponse, error)
- func (r *NotificationChannels) DeleteChannel(ctx context.Context, channelId int) (json.RawMessage, error)
- func (r *NotificationChannels) GetChannel(ctx context.Context, channelId int) (*models.NotificationChannelResponse, error)
- func (r *NotificationChannels) ListChannels(ctx context.Context, params *models.ListChannelsParams) (*[]models.NotificationChannelResponse, error)
- func (r *NotificationChannels) RotateWebhookSecret(ctx context.Context, channelId int) (json.RawMessage, error)
- func (r *NotificationChannels) TestChannel(ctx context.Context, channelId int) (*models.ChannelTestResponse, error)
- func (r *NotificationChannels) TestSmtpConnection(ctx context.Context, body models.TestSmtpConnectionJSONRequestBody) (*models.ChannelTestResponse, error)
- func (r *NotificationChannels) UpdateChannel(ctx context.Context, channelId int, body models.UpdateChannelJSONRequestBody) (*models.NotificationChannelResponse, error)
- type Oncall
- func (r *Oncall) AcceptCoverRequest(ctx context.Context, orgId int, crId int) (json.RawMessage, error)
- func (r *Oncall) CreateCoverRequest(ctx context.Context, orgId int, scheduleId int, ...) (json.RawMessage, error)
- func (r *Oncall) CreateLayer(ctx context.Context, orgId int, scheduleId int, ...) (json.RawMessage, error)
- func (r *Oncall) CreateOverride(ctx context.Context, orgId int, scheduleId int, ...) (json.RawMessage, error)
- func (r *Oncall) CreatePolicy(ctx context.Context, orgId int, body models.CreatePolicyJSONRequestBody) (*models.EscalationPolicyResponse, error)
- func (r *Oncall) CreateSchedule(ctx context.Context, orgId int, body models.CreateScheduleJSONRequestBody) (*models.OncallScheduleResponse, error)
- func (r *Oncall) DeclineCoverRequest(ctx context.Context, orgId int, crId int) (json.RawMessage, error)
- func (r *Oncall) DeleteLayer(ctx context.Context, orgId int, scheduleId int, layerId int) (json.RawMessage, error)
- func (r *Oncall) DeleteOverride(ctx context.Context, orgId int, overrideId int) (json.RawMessage, error)
- func (r *Oncall) DeletePolicy(ctx context.Context, orgId int, policyId int) (json.RawMessage, error)
- func (r *Oncall) DeleteSchedule(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) GetCurrentOncall(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) GetOncallHandoff(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *Oncall) GetOncallHealth(ctx context.Context, orgId int, params *models.GetOncallHealthParams) (json.RawMessage, error)
- func (r *Oncall) GetPolicy(ctx context.Context, orgId int, policyId int) (*models.EscalationPolicyResponse, error)
- func (r *Oncall) GetSchedule(ctx context.Context, orgId int, scheduleId int) (*models.OncallScheduleResponse, error)
- func (r *Oncall) GetScheduleContacts(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) GetScheduleQuality(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) GetScheduleTimeline(ctx context.Context, orgId int, scheduleId int, ...) (json.RawMessage, error)
- func (r *Oncall) ListCoverRequests(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) ListPolicies(ctx context.Context, orgId int, params *models.ListPoliciesParams) (*[]models.EscalationPolicyResponse, error)
- func (r *Oncall) ListSchedules(ctx context.Context, orgId int, params *models.ListSchedulesParams) (*[]models.OncallScheduleResponse, error)
- func (r *Oncall) MarkUnavailable(ctx context.Context, orgId int, scheduleId int) (json.RawMessage, error)
- func (r *Oncall) UpdateLayer(ctx context.Context, orgId int, scheduleId int, layerId int, ...) (json.RawMessage, error)
- func (r *Oncall) UpdatePolicy(ctx context.Context, orgId int, policyId int, ...) (*models.EscalationPolicyResponse, error)
- func (r *Oncall) UpdateSchedule(ctx context.Context, orgId int, scheduleId int, ...) (*models.OncallScheduleResponse, error)
- type Option
- type Organizations
- func (r *Organizations) AcceptInvitation(ctx context.Context, orgId int, body models.AcceptInvitationJSONRequestBody) (json.RawMessage, error)
- func (r *Organizations) AcceptInvitationByToken(ctx context.Context, params *models.AcceptInvitationByTokenParams) (json.RawMessage, error)
- func (r *Organizations) AddProjectMember(ctx context.Context, orgId int, projectId int, ...) (*models.ProjectMembershipResponse, error)
- func (r *Organizations) BulkAddProjectMembers(ctx context.Context, orgId int, projectId int, ...) (*[]models.ProjectMembershipResponse, error)
- func (r *Organizations) BulkRemoveProjectMembers(ctx context.Context, orgId int, projectId int, ...) (json.RawMessage, error)
- func (r *Organizations) CreateOrgAgentRegistrationToken(ctx context.Context, orgId int) (*models.AgentRegistrationTokenResponse, error)
- func (r *Organizations) CreateOrganization(ctx context.Context, body models.CreateOrganizationJSONRequestBody) (*models.OrganizationWithPlanResponse, error)
- func (r *Organizations) CreateOrganizationProject(ctx context.Context, orgId int, ...) (*models.ProjectResponse, error)
- func (r *Organizations) CreateOrganizationToken(ctx context.Context, orgId int, ...) (*models.PersonalAccessTokenCreatedResponse, error)
- func (r *Organizations) DeleteOrgAgent(ctx context.Context, orgId int, agentId int) (json.RawMessage, error)
- func (r *Organizations) DeleteOrganization(ctx context.Context, orgId int, params *models.DeleteOrganizationParams) (json.RawMessage, error)
- func (r *Organizations) DeleteOrganizationProject(ctx context.Context, orgId int, projectId int) (json.RawMessage, error)
- func (r *Organizations) DeleteOrganizationToken(ctx context.Context, orgId int, tokenId int) (json.RawMessage, error)
- func (r *Organizations) ExportOrganizationAuditLogs(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- func (r *Organizations) ExportOrganizationConfig(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *Organizations) GetDependencyAlerts(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *Organizations) GetOrganization(ctx context.Context, orgId int) (*models.OrganizationWithPlanResponse, error)
- func (r *Organizations) GetOrganizationAuditLogs(ctx context.Context, orgId int, params *models.GetOrganizationAuditLogsParams) (*models.AuditLogListResponse, error)
- func (r *Organizations) GetOrganizationAuditStats(ctx context.Context, orgId int, params *models.GetOrganizationAuditStatsParams) (json.RawMessage, error)
- func (r *Organizations) GetOrganizationBySlug(ctx context.Context, slug string) (*models.OrganizationWithPlanResponse, error)
- func (r *Organizations) GetOrganizationPlan(ctx context.Context, orgId int) (*models.PlanResponse, error)
- func (r *Organizations) GetOrganizationProject(ctx context.Context, orgId int, projectId int) (*models.ProjectResponse, error)
- func (r *Organizations) GetOrganizationSettings(ctx context.Context, orgId int) (*models.OrganizationSettingsResponse, error)
- func (r *Organizations) GetOrganizationSettingsLimits(ctx context.Context, orgId int) (*models.OrganizationSettingsLimitsResponse, error)
- func (r *Organizations) GetOrganizationUsage(ctx context.Context, orgId int) (*models.OrganizationUsageResponse, error)
- func (r *Organizations) ImportOrganizationConfig(ctx context.Context, orgId int, ...) (json.RawMessage, error)
- func (r *Organizations) InviteMember(ctx context.Context, orgId int, body models.InviteMemberJSONRequestBody) (*models.MembershipResponse, error)
- func (r *Organizations) ListAvailablePlans(ctx context.Context) (*[]models.PlanResponse, error)
- func (r *Organizations) ListMembers(ctx context.Context, orgId int, params *models.ListMembersParams) (*[]models.MembershipWithUserResponse, error)
- func (r *Organizations) ListOrgAgents(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *Organizations) ListOrganizationProjects(ctx context.Context, orgId int, params *models.ListOrganizationProjectsParams) (*[]models.ProjectResponse, error)
- func (r *Organizations) ListOrganizationTokens(ctx context.Context, orgId int) (*[]models.PersonalAccessTokenResponse, error)
- func (r *Organizations) ListOrganizations(ctx context.Context) (*[]models.OrganizationWithPlanResponse, error)
- func (r *Organizations) ListProjectMembers(ctx context.Context, orgId int, projectId int) (*[]models.ProjectMembershipResponse, error)
- func (r *Organizations) RemoveMember(ctx context.Context, orgId int, userId int) (json.RawMessage, error)
- func (r *Organizations) RemoveProjectMember(ctx context.Context, orgId int, projectId int, userId int) (json.RawMessage, error)
- func (r *Organizations) UpdateMemberRole(ctx context.Context, orgId int, userId int, ...) (*models.MembershipResponse, error)
- func (r *Organizations) UpdateOrganization(ctx context.Context, orgId int, body models.UpdateOrganizationJSONRequestBody) (*models.OrganizationWithPlanResponse, error)
- func (r *Organizations) UpdateOrganizationProject(ctx context.Context, orgId int, projectId int, ...) (*models.ProjectResponse, error)
- func (r *Organizations) UpdateOrganizationSettings(ctx context.Context, orgId int, ...) (*models.OrganizationSettingsResponse, error)
- func (r *Organizations) UpdateProjectMember(ctx context.Context, orgId int, projectId int, userId int, ...) (*models.ProjectMembershipResponse, error)
- type Playbooks
- func (r *Playbooks) CancelExecution(ctx context.Context, orgId int, executionId int) (json.RawMessage, error)
- func (r *Playbooks) CompleteManualStep(ctx context.Context, orgId int, executionId int, stepOrder int) (json.RawMessage, error)
- func (r *Playbooks) CreatePlaybook(ctx context.Context, orgId int, body models.CreatePlaybookJSONRequestBody) (*models.PlaybookResponse, error)
- func (r *Playbooks) DeletePlaybook(ctx context.Context, orgId int, playbookId int) (json.RawMessage, error)
- func (r *Playbooks) DuplicatePlaybook(ctx context.Context, orgId int, playbookId int) (*models.PlaybookResponse, error)
- func (r *Playbooks) ExecutePlaybook(ctx context.Context, orgId int, playbookId int, ...) (json.RawMessage, error)
- func (r *Playbooks) GetExecution(ctx context.Context, orgId int, executionId int) (json.RawMessage, error)
- func (r *Playbooks) GetPlaybook(ctx context.Context, orgId int, playbookId int) (*models.PlaybookResponse, error)
- func (r *Playbooks) ListExecutions(ctx context.Context, orgId int, params *models.ListExecutionsParams) (json.RawMessage, error)
- func (r *Playbooks) ListPlaybooks(ctx context.Context, orgId int, params *models.ListPlaybooksParams) (*[]models.PlaybookResponse, error)
- func (r *Playbooks) UpdatePlaybook(ctx context.Context, orgId int, playbookId int, ...) (*models.PlaybookResponse, error)
- type Postmortems
- func (r *Postmortems) CreatePostmortem(ctx context.Context, orgId int, body models.CreatePostmortemJSONRequestBody) (json.RawMessage, error)
- func (r *Postmortems) DeletePostmortem(ctx context.Context, orgId int, pmId int) (json.RawMessage, error)
- func (r *Postmortems) ExportPostmortem(ctx context.Context, orgId int, pmId int, ...) (json.RawMessage, error)
- func (r *Postmortems) GetPostmortem(ctx context.Context, orgId int, pmId int) (json.RawMessage, error)
- func (r *Postmortems) GetPublicPostmortem(ctx context.Context, shareToken string) (json.RawMessage, error)
- func (r *Postmortems) ListPostmortems(ctx context.Context, orgId int, params *models.ListPostmortemsParams) (json.RawMessage, error)
- func (r *Postmortems) ToggleShare(ctx context.Context, orgId int, pmId int, ...) (json.RawMessage, error)
- func (r *Postmortems) UpdatePostmortem(ctx context.Context, orgId int, pmId int, ...) (json.RawMessage, error)
- type Profile
- func (r *Profile) GetProfile(ctx context.Context) (*models.UserResponse, error)
- func (r *Profile) UpdatePassword(ctx context.Context, body models.UpdatePasswordJSONRequestBody) (*models.UserResponse, error)
- func (r *Profile) UpdateProfile(ctx context.Context, body models.UpdateProfileJSONRequestBody) (*models.UserResponse, error)
- type Reports
- func (r *Reports) CreateScheduledReport(ctx context.Context, body models.CreateScheduledReportJSONRequestBody) (*models.ScheduledReportResponse, error)
- func (r *Reports) DeleteReport(ctx context.Context, reportUuid string) (json.RawMessage, error)
- func (r *Reports) DeleteScheduledReport(ctx context.Context, reportId int) (json.RawMessage, error)
- func (r *Reports) DownloadReport(ctx context.Context, reportUuid string) (json.RawMessage, error)
- func (r *Reports) GenerateReport(ctx context.Context, body models.GenerateReportJSONRequestBody) (json.RawMessage, error)
- func (r *Reports) GetReportStatus(ctx context.Context, reportUuid string) (*models.ReportStatusResponse, error)
- func (r *Reports) ListReports(ctx context.Context) (*[]models.ReportResponse, error)
- func (r *Reports) ListScheduledReports(ctx context.Context, params *models.ListScheduledReportsParams) (*[]models.ScheduledReportResponse, error)
- func (r *Reports) SendScheduledReportNowEndpoint(ctx context.Context, reportId int) (json.RawMessage, error)
- func (r *Reports) UpdateScheduledReport(ctx context.Context, reportId int, ...) (*models.ScheduledReportResponse, error)
- type Services
- func (r *Services) AddDependency(ctx context.Context, orgId int, serviceId int, ...) (json.RawMessage, error)
- func (r *Services) CreateService(ctx context.Context, orgId int, body models.CreateServiceJSONRequestBody) (*models.ServiceResponse, error)
- func (r *Services) DeleteService(ctx context.Context, orgId int, serviceId int) (json.RawMessage, error)
- func (r *Services) GetService(ctx context.Context, orgId int, serviceId int) (*models.ServiceDetailResponse, error)
- func (r *Services) ListServices(ctx context.Context, orgId int) (*[]models.ServiceListItemResponse, error)
- func (r *Services) RemoveDependency(ctx context.Context, orgId int, serviceId int, depId int) (json.RawMessage, error)
- func (r *Services) UpdateService(ctx context.Context, orgId int, serviceId int, ...) (*models.ServiceResponse, error)
- type StatusPages
- func (r *StatusPages) ConfirmSubscription(ctx context.Context, slug string, token string) (json.RawMessage, error)
- func (r *StatusPages) CreateStatusPage(ctx context.Context, body models.CreateStatusPageJSONRequestBody) (*models.StatusPageResponse, error)
- func (r *StatusPages) DeleteStatusPage(ctx context.Context, pageId int) (json.RawMessage, error)
- func (r *StatusPages) DownloadPublicReport(ctx context.Context, slug string, params *models.DownloadPublicReportParams) (json.RawMessage, error)
- func (r *StatusPages) GetDomainStatus(ctx context.Context, pageId int) (json.RawMessage, error)
- func (r *StatusPages) GetPrivateStatusPage(ctx context.Context, slug string) (json.RawMessage, error)
- func (r *StatusPages) GetPublicDailyStatus(ctx context.Context, slug string, params *models.GetPublicDailyStatusParams) (json.RawMessage, error)
- func (r *StatusPages) GetPublicIncidents(ctx context.Context, slug string, params *models.GetPublicIncidentsParams) (json.RawMessage, error)
- func (r *StatusPages) GetPublicStatusPage(ctx context.Context, slug string) (json.RawMessage, error)
- func (r *StatusPages) GetPublicUptime(ctx context.Context, slug string) (json.RawMessage, error)
- func (r *StatusPages) GetStatusPage(ctx context.Context, pageId int) (*models.StatusPageResponse, error)
- func (r *StatusPages) GetStatusPageAtomFeed(ctx context.Context, slug string) (json.RawMessage, error)
- func (r *StatusPages) GetStatusPageByDomain(ctx context.Context, domain string) (json.RawMessage, error)
- func (r *StatusPages) ListStatusPages(ctx context.Context, params *models.ListStatusPagesParams) (*[]models.StatusPageResponse, error)
- func (r *StatusPages) SubscribeToStatusPage(ctx context.Context, slug string, ...) (json.RawMessage, error)
- func (r *StatusPages) Unsubscribe(ctx context.Context, slug string, token string) (json.RawMessage, error)
- func (r *StatusPages) UpdateStatusPage(ctx context.Context, pageId int, body models.UpdateStatusPageJSONRequestBody) (*models.StatusPageResponse, error)
- func (r *StatusPages) VerifyCustomDomain(ctx context.Context, pageId int) (json.RawMessage, error)
- type Teams
- func (r *Teams) AddTeamMember(ctx context.Context, orgId int, teamId int, ...) (*models.TeamMemberResponse, error)
- func (r *Teams) AssignTeamResources(ctx context.Context, orgId int, teamId int, ...) (json.RawMessage, error)
- func (r *Teams) CreateTeam(ctx context.Context, orgId int, body models.CreateTeamJSONRequestBody) (*models.TeamResponse, error)
- func (r *Teams) DeleteTeam(ctx context.Context, orgId int, teamId int) (json.RawMessage, error)
- func (r *Teams) GetTeam(ctx context.Context, orgId int, teamId int) (*models.TeamDetailResponse, error)
- func (r *Teams) GetTeamResources(ctx context.Context, orgId int, teamId int) (json.RawMessage, error)
- func (r *Teams) ListTeams(ctx context.Context, orgId int) (*[]models.TeamWithCountsResponse, error)
- func (r *Teams) RemoveTeamMember(ctx context.Context, orgId int, teamId int, userId int) (json.RawMessage, error)
- func (r *Teams) UpdateTeam(ctx context.Context, orgId int, teamId int, ...) (*models.TeamResponse, error)
- func (r *Teams) UpdateTeamMemberRole(ctx context.Context, orgId int, teamId int, userId int, ...) (*models.TeamMemberResponse, error)
- type WarRooms
- func (r *WarRooms) AddWarRoomMember(ctx context.Context, orgId int, roomId int, ...) (json.RawMessage, error)
- func (r *WarRooms) CloseWarRoom(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) CreateWarRoom(ctx context.Context, orgId int, body models.CreateWarRoomJSONRequestBody) (json.RawMessage, error)
- func (r *WarRooms) DeleteWarRoom(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) DownloadAttachment(ctx context.Context, orgId int, roomId int, attachmentId int) (json.RawMessage, error)
- func (r *WarRooms) GetPresence(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) GetWarRoom(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) LeavePresence(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) ListMessages(ctx context.Context, orgId int, roomId int, params *models.ListMessagesParams) (json.RawMessage, error)
- func (r *WarRooms) ListWarRoomMembers(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) ListWarRooms(ctx context.Context, orgId int, params *models.ListWarRoomsParams) (json.RawMessage, error)
- func (r *WarRooms) PingPresence(ctx context.Context, orgId int, roomId int) (json.RawMessage, error)
- func (r *WarRooms) PostMessage(ctx context.Context, orgId int, roomId int, ...) (json.RawMessage, error)
- func (r *WarRooms) RemoveWarRoomMember(ctx context.Context, orgId int, roomId int, memberId int) (json.RawMessage, error)
- func (r *WarRooms) TestWarroomBot(ctx context.Context, orgId int) (json.RawMessage, error)
- func (r *WarRooms) UnfurlLink(ctx context.Context, orgId int, roomId int, params *models.UnfurlLinkParams) (json.RawMessage, error)
- func (r *WarRooms) UpdateWarRoom(ctx context.Context, orgId int, roomId int, ...) (json.RawMessage, error)
- func (r *WarRooms) UploadAttachment(ctx context.Context, orgID, roomID int, filename string, content io.Reader) (json.RawMessage, error)
Constants ¶
const Version = "0.3.3"
Version is the SDK release, sent as part of the User-Agent header.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionItems ¶
type ActionItems struct {
// contains filtered or unexported fields
}
ActionItems groups the ActionItems endpoints.
func (*ActionItems) GetActionItemsSummary ¶
func (r *ActionItems) GetActionItemsSummary(ctx context.Context, orgId int) (json.RawMessage, error)
func (*ActionItems) ListActionItems ¶
func (r *ActionItems) ListActionItems(ctx context.Context, orgId int, params *models.ListActionItemsParams) (json.RawMessage, error)
func (*ActionItems) UpdateActionItem ¶
func (r *ActionItems) UpdateActionItem(ctx context.Context, orgId int, itemId int, body models.UpdateActionItemJSONRequestBody) (json.RawMessage, error)
type ChangeEvents ¶
type ChangeEvents struct {
// contains filtered or unexported fields
}
ChangeEvents groups the ChangeEvents endpoints.
func (*ChangeEvents) CorrelateChangeEvents ¶
func (r *ChangeEvents) CorrelateChangeEvents(ctx context.Context, orgId int, incidentId int) (json.RawMessage, error)
func (*ChangeEvents) CreateChangeEvent ¶
func (r *ChangeEvents) CreateChangeEvent(ctx context.Context, body models.CreateChangeEventJSONRequestBody) (json.RawMessage, error)
func (*ChangeEvents) DeleteChangeEvent ¶
func (r *ChangeEvents) DeleteChangeEvent(ctx context.Context, orgId int, eventId int) (json.RawMessage, error)
func (*ChangeEvents) ListChangeEvents ¶
func (r *ChangeEvents) ListChangeEvents(ctx context.Context, orgId int, params *models.ListChangeEventsParams) (json.RawMessage, error)
type Checks ¶
type Checks struct {
// contains filtered or unexported fields
}
Checks groups the Checks endpoints.
func (*Checks) AddCheckDependency ¶
func (r *Checks) AddCheckDependency(ctx context.Context, checkId int, body models.AddCheckDependencyJSONRequestBody) (json.RawMessage, error)
func (*Checks) AddCheckProviderDependency ¶
func (r *Checks) AddCheckProviderDependency(ctx context.Context, checkId int, body models.AddCheckProviderDependencyJSONRequestBody) (json.RawMessage, error)
func (*Checks) ApproveDnsSnapshot ¶
func (*Checks) CloneCheck ¶
func (*Checks) CreateCheckSlo ¶
func (r *Checks) CreateCheckSlo(ctx context.Context, checkId int, body models.CreateCheckSloJSONRequestBody) (*models.SLOResponse, error)
func (*Checks) CreateNewCheck ¶
func (r *Checks) CreateNewCheck(ctx context.Context, body models.CreateNewCheckJSONRequestBody) (*models.CheckResponse, error)
func (*Checks) DeleteCheckProviderDependency ¶
func (*Checks) DeleteCheckSlo ¶
func (*Checks) ExportCheckIncidentsCsv ¶
func (r *Checks) ExportCheckIncidentsCsv(ctx context.Context, checkId int, params *models.ExportCheckIncidentsCsvParams) (json.RawMessage, error)
func (*Checks) ExportCheckLogsCsv ¶
func (r *Checks) ExportCheckLogsCsv(ctx context.Context, checkId int, params *models.ExportCheckLogsCsvParams) (json.RawMessage, error)
func (*Checks) GetCheckChannels ¶
func (*Checks) GetCheckDependencies ¶
func (*Checks) GetCheckDetails ¶
func (*Checks) GetCheckIncidentDetail ¶
func (*Checks) GetCheckIncidents ¶
func (r *Checks) GetCheckIncidents(ctx context.Context, checkId int, params *models.GetCheckIncidentsParams) (json.RawMessage, error)
func (*Checks) GetCheckLogs ¶
func (r *Checks) GetCheckLogs(ctx context.Context, checkId int, params *models.GetCheckLogsParams) (*models.CheckLogPaginatedResponse, error)
func (*Checks) GetCheckPagespeedHistory ¶
func (r *Checks) GetCheckPagespeedHistory(ctx context.Context, checkId int, params *models.GetCheckPagespeedHistoryParams) (json.RawMessage, error)
func (*Checks) GetCheckPreferences ¶
func (*Checks) GetCheckProviderDependencies ¶
func (*Checks) GetCheckSla ¶
func (*Checks) GetCheckSlo ¶
func (*Checks) GetCheckStats ¶
func (r *Checks) GetCheckStats(ctx context.Context, checkId int, params *models.GetCheckStatsParams) (json.RawMessage, error)
func (*Checks) GetCheckTimeseries ¶
func (r *Checks) GetCheckTimeseries(ctx context.Context, checkId int, params *models.GetCheckTimeseriesParams) (json.RawMessage, error)
func (*Checks) GetCheckTimeseriesRange ¶
func (r *Checks) GetCheckTimeseriesRange(ctx context.Context, checkId int, params *models.GetCheckTimeseriesRangeParams) (json.RawMessage, error)
func (*Checks) GetDnsMultiRecord ¶
func (*Checks) GetDnsSnapshot ¶
func (*Checks) GetGeoHistogram ¶
func (r *Checks) GetGeoHistogram(ctx context.Context, checkId int, params *models.GetGeoHistogramParams) (json.RawMessage, error)
func (*Checks) GetOidcRealmStatuses ¶
func (*Checks) GetSloSummary ¶
func (*Checks) ListChecks ¶
func (r *Checks) ListChecks(ctx context.Context, params *models.ListChecksParams) (*[]models.CheckResponse, error)
func (*Checks) RefreshCheckSlo ¶
func (*Checks) RemoveCheck ¶
func (*Checks) RemoveCheckDependency ¶
func (*Checks) ResolveCheckIncident ¶
func (*Checks) RotateCheckUuid ¶
func (*Checks) RunCheckNow ¶
func (*Checks) SendTestAlert ¶
func (r *Checks) SendTestAlert(ctx context.Context, checkId int, body models.SendTestAlertJSONRequestBody) (json.RawMessage, error)
func (*Checks) SetCheckChannels ¶
func (r *Checks) SetCheckChannels(ctx context.Context, checkId int, body models.SetCheckChannelsJSONRequestBody) (*[]models.NotificationChannelBrief, error)
func (*Checks) UpdateCheck ¶
func (r *Checks) UpdateCheck(ctx context.Context, checkId int, body models.UpdateCheckJSONRequestBody) (*models.CheckResponse, error)
func (*Checks) UpdateCheckPreferences ¶
func (r *Checks) UpdateCheckPreferences(ctx context.Context, checkId int, body models.UpdateCheckPreferencesJSONRequestBody) (json.RawMessage, error)
func (*Checks) UpdateCheckProviderDependency ¶
func (r *Checks) UpdateCheckProviderDependency(ctx context.Context, checkId int, linkId int, body models.UpdateCheckProviderDependencyJSONRequestBody) (json.RawMessage, error)
func (*Checks) UpdateCheckSlo ¶
func (r *Checks) UpdateCheckSlo(ctx context.Context, checkId int, sloId int, body models.UpdateCheckSloJSONRequestBody) (*models.SLOResponse, error)
func (*Checks) UpdateDnsHijackAlerts ¶
func (r *Checks) UpdateDnsHijackAlerts(ctx context.Context, checkId int, body models.UpdateDnsHijackAlertsJSONRequestBody) (json.RawMessage, error)
func (*Checks) UpdateDnsMultiRecord ¶
func (r *Checks) UpdateDnsMultiRecord(ctx context.Context, checkId int, body models.UpdateDnsMultiRecordJSONRequestBody) (json.RawMessage, error)
func (*Checks) UpdateDomainAlerts ¶
func (r *Checks) UpdateDomainAlerts(ctx context.Context, checkId int, params *models.UpdateDomainAlertsParams) (json.RawMessage, error)
func (*Checks) UpdateSslAlerts ¶
func (r *Checks) UpdateSslAlerts(ctx context.Context, checkId int, params *models.UpdateSslAlertsParams) (json.RawMessage, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the entry point to the Syschecks API. Every endpoint hangs off a resource namespace, e.g. c.Checks.ListChecks(ctx, nil).
type CloudStatus ¶
type CloudStatus struct {
// contains filtered or unexported fields
}
CloudStatus groups the CloudStatus endpoints.
func (*CloudStatus) CreateCustomStatusPage ¶
func (r *CloudStatus) CreateCustomStatusPage(ctx context.Context, orgId int, body models.CreateCustomStatusPageJSONRequestBody) (json.RawMessage, error)
func (*CloudStatus) DeleteCloudSubscription ¶
func (r *CloudStatus) DeleteCloudSubscription(ctx context.Context, orgId int, provider string) (json.RawMessage, error)
func (*CloudStatus) DeleteCustomStatusPage ¶
func (r *CloudStatus) DeleteCustomStatusPage(ctx context.Context, orgId int, pageId int) (json.RawMessage, error)
func (*CloudStatus) GetCheckCloudContext ¶
func (r *CloudStatus) GetCheckCloudContext(ctx context.Context, checkId int) (json.RawMessage, error)
func (*CloudStatus) GetCloudCorrelation ¶
func (r *CloudStatus) GetCloudCorrelation(ctx context.Context, orgId int) (json.RawMessage, error)
func (*CloudStatus) GetCloudStatusDetail ¶
func (r *CloudStatus) GetCloudStatusDetail(ctx context.Context, provider string) (json.RawMessage, error)
func (*CloudStatus) GetEarlyWarnings ¶
func (r *CloudStatus) GetEarlyWarnings(ctx context.Context) (*models.EarlyWarningsResponse, error)
func (*CloudStatus) ListCloudStatuses ¶
func (r *CloudStatus) ListCloudStatuses(ctx context.Context) (*[]models.CloudProviderStatusItem, error)
func (*CloudStatus) ListCloudSubscriptions ¶
func (r *CloudStatus) ListCloudSubscriptions(ctx context.Context, orgId int) (json.RawMessage, error)
func (*CloudStatus) ListCustomStatusPages ¶
func (r *CloudStatus) ListCustomStatusPages(ctx context.Context, orgId int) (json.RawMessage, error)
func (*CloudStatus) TestCustomStatusPage ¶
func (r *CloudStatus) TestCustomStatusPage(ctx context.Context, orgId int, pageId int) (json.RawMessage, error)
func (*CloudStatus) UpdateCustomStatusPage ¶
func (r *CloudStatus) UpdateCustomStatusPage(ctx context.Context, orgId int, pageId int, body models.UpdateCustomStatusPageJSONRequestBody) (json.RawMessage, error)
func (*CloudStatus) UpsertCloudSubscription ¶
func (r *CloudStatus) UpsertCloudSubscription(ctx context.Context, orgId int, body models.UpsertCloudSubscriptionJSONRequestBody) (json.RawMessage, error)
type ContactMethods ¶
type ContactMethods struct {
// contains filtered or unexported fields
}
ContactMethods groups the ContactMethods endpoints.
func (*ContactMethods) CreateContactMethod ¶
func (r *ContactMethods) CreateContactMethod(ctx context.Context, body models.CreateContactMethodJSONRequestBody) (*models.ContactMethodResponse, error)
func (*ContactMethods) DeleteContactMethod ¶
func (r *ContactMethods) DeleteContactMethod(ctx context.Context, methodId int) (json.RawMessage, error)
func (*ContactMethods) ListContactMethods ¶
func (r *ContactMethods) ListContactMethods(ctx context.Context) (*[]models.ContactMethodResponse, error)
func (*ContactMethods) ListNotificationRules ¶
func (r *ContactMethods) ListNotificationRules(ctx context.Context) (*[]models.NotificationRuleItem, error)
func (*ContactMethods) ReplaceNotificationRules ¶
func (r *ContactMethods) ReplaceNotificationRules(ctx context.Context, body models.ReplaceNotificationRulesJSONRequestBody) (*[]models.NotificationRuleItem, error)
func (*ContactMethods) ResendVerification ¶
func (r *ContactMethods) ResendVerification(ctx context.Context, methodId int) (*models.ContactMethodVerifyResponse, error)
func (*ContactMethods) TestContactMethod ¶
func (r *ContactMethods) TestContactMethod(ctx context.Context, methodId int) (*models.ContactMethodVerifyResponse, error)
func (*ContactMethods) UpdateContactMethod ¶
func (r *ContactMethods) UpdateContactMethod(ctx context.Context, methodId int, body models.UpdateContactMethodJSONRequestBody) (*models.ContactMethodResponse, error)
func (*ContactMethods) VerifyContactMethod ¶
func (r *ContactMethods) VerifyContactMethod(ctx context.Context, methodId int, body models.VerifyContactMethodJSONRequestBody) (*models.ContactMethodVerifyResponse, error)
type Error ¶
Error is returned when the API responds with an unexpected (non-2xx) status. Body holds the raw response payload, which for validation failures is the JSON-encoded detail returned by the API.
type EventStream ¶
type EventStream struct {
// contains filtered or unexported fields
}
EventStream is a live reader over the /api/events server-sent event stream. Iterate with Next, read the current payload with Event, and always Close it.
stream, err := sc.Events.EventStream(ctx)
if err != nil {
return err
}
defer stream.Close()
for stream.Next() {
fmt.Println(string(stream.Event()))
}
return stream.Err()
func (*EventStream) Close ¶
func (s *EventStream) Close() error
Close releases the underlying connection.
func (*EventStream) Err ¶
func (s *EventStream) Err() error
Err returns the first error encountered while reading the stream, if any.
func (*EventStream) Event ¶
func (s *EventStream) Event() json.RawMessage
Event returns the payload of the current event: the raw bytes of the joined data frame, which is JSON when the server sends JSON.
func (*EventStream) Next ¶
func (s *EventStream) Next() bool
Next advances to the next event, returning false when the stream ends or on error (check Err). The payload is then available from Event.
type Events ¶
type Events struct {
// contains filtered or unexported fields
}
Events groups the Events endpoints.
func (*Events) EventStream ¶
func (r *Events) EventStream(ctx context.Context) (*EventStream, error)
EventStream opens the SSE stream. The connection stays open until Close is called or ctx is cancelled. The stream is not modelled in the OpenAPI spec, so this is hand-written rather than generated.
type IncidentAnalytics ¶
type IncidentAnalytics struct {
// contains filtered or unexported fields
}
IncidentAnalytics groups the IncidentAnalytics endpoints.
func (*IncidentAnalytics) CategorizeIncident ¶
func (r *IncidentAnalytics) CategorizeIncident(ctx context.Context, orgId int, incidentId int, body models.CategorizeIncidentJSONRequestBody) (json.RawMessage, error)
func (*IncidentAnalytics) GetIncidentAnalytics ¶
func (r *IncidentAnalytics) GetIncidentAnalytics(ctx context.Context, orgId int, params *models.GetIncidentAnalyticsParams) (json.RawMessage, error)
func (*IncidentAnalytics) GetIncidentTags ¶
func (r *IncidentAnalytics) GetIncidentTags(ctx context.Context, orgId int) (json.RawMessage, error)
type Incidents ¶
type Incidents struct {
// contains filtered or unexported fields
}
Incidents groups the Incidents endpoints.
func (*Incidents) AcknowledgeIncident ¶
func (r *Incidents) AcknowledgeIncident(ctx context.Context, checkId int, logId int, body models.AcknowledgeIncidentJSONRequestBody) (json.RawMessage, error)
func (*Incidents) AcknowledgeIncidentByToken ¶
func (*Incidents) AcknowledgeIncidentPage ¶
func (*Incidents) AddIncidentNote ¶
func (*Incidents) AssignIncidentRole ¶
func (*Incidents) GetIncidentAcknowledgments ¶
func (*Incidents) GetIncidentNotificationDeliveries ¶
func (*Incidents) GetIncidentTimeline ¶
func (*Incidents) ListIncidentNotes ¶
func (*Incidents) ListIncidentRoles ¶
func (*Incidents) ListIncidents ¶
func (r *Incidents) ListIncidents(ctx context.Context, params *models.ListIncidentsParams) (json.RawMessage, error)
func (*Incidents) StarTimelineEvent ¶
func (*Incidents) UnassignIncidentRole ¶
type IntegrationKeys ¶ added in v0.2.0
type IntegrationKeys struct {
// contains filtered or unexported fields
}
IntegrationKeys groups the IntegrationKeys endpoints.
func (*IntegrationKeys) CreateIntegrationKey ¶ added in v0.2.0
func (r *IntegrationKeys) CreateIntegrationKey(ctx context.Context, orgId int, body models.CreateIntegrationKeyJSONRequestBody) (json.RawMessage, error)
func (*IntegrationKeys) ListIntegrationKeys ¶ added in v0.2.0
func (r *IntegrationKeys) ListIntegrationKeys(ctx context.Context, orgId int) (json.RawMessage, error)
func (*IntegrationKeys) RevokeIntegrationKey ¶ added in v0.2.0
func (r *IntegrationKeys) RevokeIntegrationKey(ctx context.Context, orgId int, keyId int) (json.RawMessage, error)
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle groups the Lifecycle endpoints.
func (*Lifecycle) DeleteLifecycleWatch ¶
func (*Lifecycle) GetLifecycleCatalogue ¶
func (*Lifecycle) GetLifecycleWatch ¶
func (*Lifecycle) ListLifecycleEvents ¶
func (*Lifecycle) ListLifecycleWatches ¶
func (*Lifecycle) UpsertLifecycleWatch ¶
func (r *Lifecycle) UpsertLifecycleWatch(ctx context.Context, orgId int, body models.UpsertLifecycleWatchJSONRequestBody) (json.RawMessage, error)
type Maintenance ¶
type Maintenance struct {
// contains filtered or unexported fields
}
Maintenance groups the Maintenance endpoints.
func (*Maintenance) CheckMaintenanceStatus ¶
func (r *Maintenance) CheckMaintenanceStatus(ctx context.Context, checkId int) (json.RawMessage, error)
func (*Maintenance) CreateMaintenanceWindow ¶
func (r *Maintenance) CreateMaintenanceWindow(ctx context.Context, body models.CreateMaintenanceWindowJSONRequestBody) (*models.MaintenanceWindowResponse, error)
func (*Maintenance) DeleteMaintenanceWindow ¶
func (r *Maintenance) DeleteMaintenanceWindow(ctx context.Context, windowId int) (json.RawMessage, error)
func (*Maintenance) GetMaintenanceWindow ¶
func (r *Maintenance) GetMaintenanceWindow(ctx context.Context, windowId int) (*models.MaintenanceWindowResponse, error)
func (*Maintenance) ListActiveMaintenanceWindows ¶
func (r *Maintenance) ListActiveMaintenanceWindows(ctx context.Context) (*[]models.MaintenanceWindowResponse, error)
func (*Maintenance) ListMaintenanceWindows ¶
func (r *Maintenance) ListMaintenanceWindows(ctx context.Context, params *models.ListMaintenanceWindowsParams) (*[]models.MaintenanceWindowResponse, error)
func (*Maintenance) UpdateMaintenanceWindow ¶
func (r *Maintenance) UpdateMaintenanceWindow(ctx context.Context, windowId int, body models.UpdateMaintenanceWindowJSONRequestBody) (*models.MaintenanceWindowResponse, error)
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics groups the Metrics endpoints.
func (*Metrics) CreateMetricsKey ¶
func (r *Metrics) CreateMetricsKey(ctx context.Context, projectId int, body models.CreateMetricsKeyJSONRequestBody) (*models.MetricsKeyCreatedResponse, error)
func (*Metrics) DeactivateMetricsKey ¶
func (*Metrics) GetMetricsByKey ¶
func (r *Metrics) GetMetricsByKey(ctx context.Context, metricsKey string, params *models.GetMetricsByKeyParams) (json.RawMessage, error)
func (*Metrics) ListMetricsKeys ¶
func (*Metrics) RotateMetricsKey ¶
type NotificationChannels ¶
type NotificationChannels struct {
// contains filtered or unexported fields
}
NotificationChannels groups the NotificationChannels endpoints.
func (*NotificationChannels) CreateChannel ¶
func (r *NotificationChannels) CreateChannel(ctx context.Context, body models.CreateChannelJSONRequestBody) (*models.NotificationChannelResponse, error)
func (*NotificationChannels) DeleteChannel ¶
func (r *NotificationChannels) DeleteChannel(ctx context.Context, channelId int) (json.RawMessage, error)
func (*NotificationChannels) GetChannel ¶
func (r *NotificationChannels) GetChannel(ctx context.Context, channelId int) (*models.NotificationChannelResponse, error)
func (*NotificationChannels) ListChannels ¶
func (r *NotificationChannels) ListChannels(ctx context.Context, params *models.ListChannelsParams) (*[]models.NotificationChannelResponse, error)
func (*NotificationChannels) RotateWebhookSecret ¶
func (r *NotificationChannels) RotateWebhookSecret(ctx context.Context, channelId int) (json.RawMessage, error)
func (*NotificationChannels) TestChannel ¶
func (r *NotificationChannels) TestChannel(ctx context.Context, channelId int) (*models.ChannelTestResponse, error)
func (*NotificationChannels) TestSmtpConnection ¶
func (r *NotificationChannels) TestSmtpConnection(ctx context.Context, body models.TestSmtpConnectionJSONRequestBody) (*models.ChannelTestResponse, error)
func (*NotificationChannels) UpdateChannel ¶
func (r *NotificationChannels) UpdateChannel(ctx context.Context, channelId int, body models.UpdateChannelJSONRequestBody) (*models.NotificationChannelResponse, error)
type Oncall ¶
type Oncall struct {
// contains filtered or unexported fields
}
Oncall groups the Oncall endpoints.
func (*Oncall) AcceptCoverRequest ¶
func (*Oncall) CreateCoverRequest ¶
func (r *Oncall) CreateCoverRequest(ctx context.Context, orgId int, scheduleId int, body models.CreateCoverRequestJSONRequestBody) (json.RawMessage, error)
func (*Oncall) CreateLayer ¶
func (r *Oncall) CreateLayer(ctx context.Context, orgId int, scheduleId int, body models.CreateLayerJSONRequestBody) (json.RawMessage, error)
func (*Oncall) CreateOverride ¶
func (r *Oncall) CreateOverride(ctx context.Context, orgId int, scheduleId int, body models.CreateOverrideJSONRequestBody) (json.RawMessage, error)
func (*Oncall) CreatePolicy ¶
func (r *Oncall) CreatePolicy(ctx context.Context, orgId int, body models.CreatePolicyJSONRequestBody) (*models.EscalationPolicyResponse, error)
func (*Oncall) CreateSchedule ¶
func (r *Oncall) CreateSchedule(ctx context.Context, orgId int, body models.CreateScheduleJSONRequestBody) (*models.OncallScheduleResponse, error)
func (*Oncall) DeclineCoverRequest ¶
func (*Oncall) DeleteLayer ¶
func (*Oncall) DeleteOverride ¶
func (*Oncall) DeletePolicy ¶
func (*Oncall) DeleteSchedule ¶
func (*Oncall) GetCurrentOncall ¶
func (*Oncall) GetOncallHandoff ¶
func (*Oncall) GetOncallHealth ¶
func (r *Oncall) GetOncallHealth(ctx context.Context, orgId int, params *models.GetOncallHealthParams) (json.RawMessage, error)
func (*Oncall) GetSchedule ¶
func (*Oncall) GetScheduleContacts ¶
func (*Oncall) GetScheduleQuality ¶
func (*Oncall) GetScheduleTimeline ¶
func (r *Oncall) GetScheduleTimeline(ctx context.Context, orgId int, scheduleId int, params *models.GetScheduleTimelineParams) (json.RawMessage, error)
func (*Oncall) ListCoverRequests ¶
func (*Oncall) ListPolicies ¶
func (r *Oncall) ListPolicies(ctx context.Context, orgId int, params *models.ListPoliciesParams) (*[]models.EscalationPolicyResponse, error)
func (*Oncall) ListSchedules ¶
func (r *Oncall) ListSchedules(ctx context.Context, orgId int, params *models.ListSchedulesParams) (*[]models.OncallScheduleResponse, error)
func (*Oncall) MarkUnavailable ¶
func (*Oncall) UpdateLayer ¶
func (*Oncall) UpdatePolicy ¶
func (r *Oncall) UpdatePolicy(ctx context.Context, orgId int, policyId int, body models.UpdatePolicyJSONRequestBody) (*models.EscalationPolicyResponse, error)
func (*Oncall) UpdateSchedule ¶
func (r *Oncall) UpdateSchedule(ctx context.Context, orgId int, scheduleId int, body models.UpdateScheduleJSONRequestBody) (*models.OncallScheduleResponse, error)
type Option ¶
type Option func(*config)
Option configures a Client.
func WithHTTPClient ¶
WithHTTPClient sets the underlying HTTP client used for every request.
type Organizations ¶
type Organizations struct {
// contains filtered or unexported fields
}
Organizations groups the Organizations endpoints.
func (*Organizations) AcceptInvitation ¶
func (r *Organizations) AcceptInvitation(ctx context.Context, orgId int, body models.AcceptInvitationJSONRequestBody) (json.RawMessage, error)
func (*Organizations) AcceptInvitationByToken ¶
func (r *Organizations) AcceptInvitationByToken(ctx context.Context, params *models.AcceptInvitationByTokenParams) (json.RawMessage, error)
func (*Organizations) AddProjectMember ¶
func (r *Organizations) AddProjectMember(ctx context.Context, orgId int, projectId int, body models.AddProjectMemberJSONRequestBody) (*models.ProjectMembershipResponse, error)
func (*Organizations) BulkAddProjectMembers ¶
func (r *Organizations) BulkAddProjectMembers(ctx context.Context, orgId int, projectId int, body models.BulkAddProjectMembersJSONRequestBody) (*[]models.ProjectMembershipResponse, error)
func (*Organizations) BulkRemoveProjectMembers ¶
func (r *Organizations) BulkRemoveProjectMembers(ctx context.Context, orgId int, projectId int, body models.BulkRemoveProjectMembersJSONRequestBody) (json.RawMessage, error)
func (*Organizations) CreateOrgAgentRegistrationToken ¶
func (r *Organizations) CreateOrgAgentRegistrationToken(ctx context.Context, orgId int) (*models.AgentRegistrationTokenResponse, error)
func (*Organizations) CreateOrganization ¶
func (r *Organizations) CreateOrganization(ctx context.Context, body models.CreateOrganizationJSONRequestBody) (*models.OrganizationWithPlanResponse, error)
func (*Organizations) CreateOrganizationProject ¶
func (r *Organizations) CreateOrganizationProject(ctx context.Context, orgId int, body models.CreateOrganizationProjectJSONRequestBody) (*models.ProjectResponse, error)
func (*Organizations) CreateOrganizationToken ¶
func (r *Organizations) CreateOrganizationToken(ctx context.Context, orgId int, body models.CreateOrganizationTokenJSONRequestBody) (*models.PersonalAccessTokenCreatedResponse, error)
func (*Organizations) DeleteOrgAgent ¶
func (r *Organizations) DeleteOrgAgent(ctx context.Context, orgId int, agentId int) (json.RawMessage, error)
func (*Organizations) DeleteOrganization ¶
func (r *Organizations) DeleteOrganization(ctx context.Context, orgId int, params *models.DeleteOrganizationParams) (json.RawMessage, error)
func (*Organizations) DeleteOrganizationProject ¶
func (r *Organizations) DeleteOrganizationProject(ctx context.Context, orgId int, projectId int) (json.RawMessage, error)
func (*Organizations) DeleteOrganizationToken ¶
func (r *Organizations) DeleteOrganizationToken(ctx context.Context, orgId int, tokenId int) (json.RawMessage, error)
func (*Organizations) ExportOrganizationAuditLogs ¶
func (r *Organizations) ExportOrganizationAuditLogs(ctx context.Context, orgId int, params *models.ExportOrganizationAuditLogsParams) (json.RawMessage, error)
func (*Organizations) ExportOrganizationConfig ¶
func (r *Organizations) ExportOrganizationConfig(ctx context.Context, orgId int) (json.RawMessage, error)
func (*Organizations) GetDependencyAlerts ¶
func (r *Organizations) GetDependencyAlerts(ctx context.Context, orgId int) (json.RawMessage, error)
func (*Organizations) GetOrganization ¶
func (r *Organizations) GetOrganization(ctx context.Context, orgId int) (*models.OrganizationWithPlanResponse, error)
func (*Organizations) GetOrganizationAuditLogs ¶
func (r *Organizations) GetOrganizationAuditLogs(ctx context.Context, orgId int, params *models.GetOrganizationAuditLogsParams) (*models.AuditLogListResponse, error)
func (*Organizations) GetOrganizationAuditStats ¶
func (r *Organizations) GetOrganizationAuditStats(ctx context.Context, orgId int, params *models.GetOrganizationAuditStatsParams) (json.RawMessage, error)
func (*Organizations) GetOrganizationBySlug ¶
func (r *Organizations) GetOrganizationBySlug(ctx context.Context, slug string) (*models.OrganizationWithPlanResponse, error)
func (*Organizations) GetOrganizationPlan ¶
func (r *Organizations) GetOrganizationPlan(ctx context.Context, orgId int) (*models.PlanResponse, error)
func (*Organizations) GetOrganizationProject ¶
func (r *Organizations) GetOrganizationProject(ctx context.Context, orgId int, projectId int) (*models.ProjectResponse, error)
func (*Organizations) GetOrganizationSettings ¶
func (r *Organizations) GetOrganizationSettings(ctx context.Context, orgId int) (*models.OrganizationSettingsResponse, error)
func (*Organizations) GetOrganizationSettingsLimits ¶
func (r *Organizations) GetOrganizationSettingsLimits(ctx context.Context, orgId int) (*models.OrganizationSettingsLimitsResponse, error)
func (*Organizations) GetOrganizationUsage ¶
func (r *Organizations) GetOrganizationUsage(ctx context.Context, orgId int) (*models.OrganizationUsageResponse, error)
func (*Organizations) ImportOrganizationConfig ¶
func (r *Organizations) ImportOrganizationConfig(ctx context.Context, orgId int, body models.ImportOrganizationConfigJSONRequestBody) (json.RawMessage, error)
func (*Organizations) InviteMember ¶
func (r *Organizations) InviteMember(ctx context.Context, orgId int, body models.InviteMemberJSONRequestBody) (*models.MembershipResponse, error)
func (*Organizations) ListAvailablePlans ¶
func (r *Organizations) ListAvailablePlans(ctx context.Context) (*[]models.PlanResponse, error)
func (*Organizations) ListMembers ¶
func (r *Organizations) ListMembers(ctx context.Context, orgId int, params *models.ListMembersParams) (*[]models.MembershipWithUserResponse, error)
func (*Organizations) ListOrgAgents ¶
func (r *Organizations) ListOrgAgents(ctx context.Context, orgId int) (json.RawMessage, error)
func (*Organizations) ListOrganizationProjects ¶
func (r *Organizations) ListOrganizationProjects(ctx context.Context, orgId int, params *models.ListOrganizationProjectsParams) (*[]models.ProjectResponse, error)
func (*Organizations) ListOrganizationTokens ¶
func (r *Organizations) ListOrganizationTokens(ctx context.Context, orgId int) (*[]models.PersonalAccessTokenResponse, error)
func (*Organizations) ListOrganizations ¶
func (r *Organizations) ListOrganizations(ctx context.Context) (*[]models.OrganizationWithPlanResponse, error)
func (*Organizations) ListProjectMembers ¶
func (r *Organizations) ListProjectMembers(ctx context.Context, orgId int, projectId int) (*[]models.ProjectMembershipResponse, error)
func (*Organizations) RemoveMember ¶
func (r *Organizations) RemoveMember(ctx context.Context, orgId int, userId int) (json.RawMessage, error)
func (*Organizations) RemoveProjectMember ¶
func (r *Organizations) RemoveProjectMember(ctx context.Context, orgId int, projectId int, userId int) (json.RawMessage, error)
func (*Organizations) UpdateMemberRole ¶
func (r *Organizations) UpdateMemberRole(ctx context.Context, orgId int, userId int, body models.UpdateMemberRoleJSONRequestBody) (*models.MembershipResponse, error)
func (*Organizations) UpdateOrganization ¶
func (r *Organizations) UpdateOrganization(ctx context.Context, orgId int, body models.UpdateOrganizationJSONRequestBody) (*models.OrganizationWithPlanResponse, error)
func (*Organizations) UpdateOrganizationProject ¶
func (r *Organizations) UpdateOrganizationProject(ctx context.Context, orgId int, projectId int, body models.UpdateOrganizationProjectJSONRequestBody) (*models.ProjectResponse, error)
func (*Organizations) UpdateOrganizationSettings ¶
func (r *Organizations) UpdateOrganizationSettings(ctx context.Context, orgId int, body models.UpdateOrganizationSettingsJSONRequestBody) (*models.OrganizationSettingsResponse, error)
func (*Organizations) UpdateProjectMember ¶
func (r *Organizations) UpdateProjectMember(ctx context.Context, orgId int, projectId int, userId int, body models.UpdateProjectMemberJSONRequestBody) (*models.ProjectMembershipResponse, error)
type Playbooks ¶
type Playbooks struct {
// contains filtered or unexported fields
}
Playbooks groups the Playbooks endpoints.
func (*Playbooks) CancelExecution ¶
func (*Playbooks) CompleteManualStep ¶
func (*Playbooks) CreatePlaybook ¶
func (r *Playbooks) CreatePlaybook(ctx context.Context, orgId int, body models.CreatePlaybookJSONRequestBody) (*models.PlaybookResponse, error)
func (*Playbooks) DeletePlaybook ¶
func (*Playbooks) DuplicatePlaybook ¶
func (*Playbooks) ExecutePlaybook ¶
func (r *Playbooks) ExecutePlaybook(ctx context.Context, orgId int, playbookId int, body models.ExecutePlaybookJSONRequestBody) (json.RawMessage, error)
func (*Playbooks) GetExecution ¶
func (*Playbooks) GetPlaybook ¶
func (*Playbooks) ListExecutions ¶
func (r *Playbooks) ListExecutions(ctx context.Context, orgId int, params *models.ListExecutionsParams) (json.RawMessage, error)
func (*Playbooks) ListPlaybooks ¶
func (r *Playbooks) ListPlaybooks(ctx context.Context, orgId int, params *models.ListPlaybooksParams) (*[]models.PlaybookResponse, error)
func (*Playbooks) UpdatePlaybook ¶
func (r *Playbooks) UpdatePlaybook(ctx context.Context, orgId int, playbookId int, body models.UpdatePlaybookJSONRequestBody) (*models.PlaybookResponse, error)
type Postmortems ¶
type Postmortems struct {
// contains filtered or unexported fields
}
Postmortems groups the Postmortems endpoints.
func (*Postmortems) CreatePostmortem ¶
func (r *Postmortems) CreatePostmortem(ctx context.Context, orgId int, body models.CreatePostmortemJSONRequestBody) (json.RawMessage, error)
func (*Postmortems) DeletePostmortem ¶
func (r *Postmortems) DeletePostmortem(ctx context.Context, orgId int, pmId int) (json.RawMessage, error)
func (*Postmortems) ExportPostmortem ¶
func (r *Postmortems) ExportPostmortem(ctx context.Context, orgId int, pmId int, params *models.ExportPostmortemParams) (json.RawMessage, error)
func (*Postmortems) GetPostmortem ¶
func (r *Postmortems) GetPostmortem(ctx context.Context, orgId int, pmId int) (json.RawMessage, error)
func (*Postmortems) GetPublicPostmortem ¶
func (r *Postmortems) GetPublicPostmortem(ctx context.Context, shareToken string) (json.RawMessage, error)
func (*Postmortems) ListPostmortems ¶
func (r *Postmortems) ListPostmortems(ctx context.Context, orgId int, params *models.ListPostmortemsParams) (json.RawMessage, error)
func (*Postmortems) ToggleShare ¶
func (r *Postmortems) ToggleShare(ctx context.Context, orgId int, pmId int, body models.ToggleShareJSONRequestBody) (json.RawMessage, error)
func (*Postmortems) UpdatePostmortem ¶
func (r *Postmortems) UpdatePostmortem(ctx context.Context, orgId int, pmId int, body models.UpdatePostmortemJSONRequestBody) (json.RawMessage, error)
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile groups the Profile endpoints.
func (*Profile) GetProfile ¶
func (*Profile) UpdatePassword ¶
func (r *Profile) UpdatePassword(ctx context.Context, body models.UpdatePasswordJSONRequestBody) (*models.UserResponse, error)
func (*Profile) UpdateProfile ¶
func (r *Profile) UpdateProfile(ctx context.Context, body models.UpdateProfileJSONRequestBody) (*models.UserResponse, error)
type Reports ¶
type Reports struct {
// contains filtered or unexported fields
}
Reports groups the Reports endpoints.
func (*Reports) CreateScheduledReport ¶
func (r *Reports) CreateScheduledReport(ctx context.Context, body models.CreateScheduledReportJSONRequestBody) (*models.ScheduledReportResponse, error)
func (*Reports) DeleteReport ¶
func (*Reports) DeleteScheduledReport ¶
func (*Reports) DownloadReport ¶
func (*Reports) GenerateReport ¶
func (r *Reports) GenerateReport(ctx context.Context, body models.GenerateReportJSONRequestBody) (json.RawMessage, error)
func (*Reports) GetReportStatus ¶
func (*Reports) ListReports ¶
func (*Reports) ListScheduledReports ¶
func (r *Reports) ListScheduledReports(ctx context.Context, params *models.ListScheduledReportsParams) (*[]models.ScheduledReportResponse, error)
func (*Reports) SendScheduledReportNowEndpoint ¶
func (*Reports) UpdateScheduledReport ¶
func (r *Reports) UpdateScheduledReport(ctx context.Context, reportId int, body models.UpdateScheduledReportJSONRequestBody) (*models.ScheduledReportResponse, error)
type Services ¶
type Services struct {
// contains filtered or unexported fields
}
Services groups the Services endpoints.
func (*Services) AddDependency ¶
func (r *Services) AddDependency(ctx context.Context, orgId int, serviceId int, body models.AddDependencyJSONRequestBody) (json.RawMessage, error)
func (*Services) CreateService ¶
func (r *Services) CreateService(ctx context.Context, orgId int, body models.CreateServiceJSONRequestBody) (*models.ServiceResponse, error)
func (*Services) DeleteService ¶
func (*Services) GetService ¶
func (*Services) ListServices ¶
func (*Services) RemoveDependency ¶
func (*Services) UpdateService ¶
func (r *Services) UpdateService(ctx context.Context, orgId int, serviceId int, body models.UpdateServiceJSONRequestBody) (*models.ServiceResponse, error)
type StatusPages ¶
type StatusPages struct {
// contains filtered or unexported fields
}
StatusPages groups the StatusPages endpoints.
func (*StatusPages) ConfirmSubscription ¶
func (r *StatusPages) ConfirmSubscription(ctx context.Context, slug string, token string) (json.RawMessage, error)
func (*StatusPages) CreateStatusPage ¶
func (r *StatusPages) CreateStatusPage(ctx context.Context, body models.CreateStatusPageJSONRequestBody) (*models.StatusPageResponse, error)
func (*StatusPages) DeleteStatusPage ¶
func (r *StatusPages) DeleteStatusPage(ctx context.Context, pageId int) (json.RawMessage, error)
func (*StatusPages) DownloadPublicReport ¶
func (r *StatusPages) DownloadPublicReport(ctx context.Context, slug string, params *models.DownloadPublicReportParams) (json.RawMessage, error)
func (*StatusPages) GetDomainStatus ¶
func (r *StatusPages) GetDomainStatus(ctx context.Context, pageId int) (json.RawMessage, error)
func (*StatusPages) GetPrivateStatusPage ¶
func (r *StatusPages) GetPrivateStatusPage(ctx context.Context, slug string) (json.RawMessage, error)
func (*StatusPages) GetPublicDailyStatus ¶
func (r *StatusPages) GetPublicDailyStatus(ctx context.Context, slug string, params *models.GetPublicDailyStatusParams) (json.RawMessage, error)
func (*StatusPages) GetPublicIncidents ¶
func (r *StatusPages) GetPublicIncidents(ctx context.Context, slug string, params *models.GetPublicIncidentsParams) (json.RawMessage, error)
func (*StatusPages) GetPublicStatusPage ¶
func (r *StatusPages) GetPublicStatusPage(ctx context.Context, slug string) (json.RawMessage, error)
func (*StatusPages) GetPublicUptime ¶
func (r *StatusPages) GetPublicUptime(ctx context.Context, slug string) (json.RawMessage, error)
func (*StatusPages) GetStatusPage ¶
func (r *StatusPages) GetStatusPage(ctx context.Context, pageId int) (*models.StatusPageResponse, error)
func (*StatusPages) GetStatusPageAtomFeed ¶
func (r *StatusPages) GetStatusPageAtomFeed(ctx context.Context, slug string) (json.RawMessage, error)
func (*StatusPages) GetStatusPageByDomain ¶
func (r *StatusPages) GetStatusPageByDomain(ctx context.Context, domain string) (json.RawMessage, error)
func (*StatusPages) ListStatusPages ¶
func (r *StatusPages) ListStatusPages(ctx context.Context, params *models.ListStatusPagesParams) (*[]models.StatusPageResponse, error)
func (*StatusPages) SubscribeToStatusPage ¶
func (r *StatusPages) SubscribeToStatusPage(ctx context.Context, slug string, body models.SubscribeToStatusPageJSONRequestBody) (json.RawMessage, error)
func (*StatusPages) Unsubscribe ¶
func (r *StatusPages) Unsubscribe(ctx context.Context, slug string, token string) (json.RawMessage, error)
func (*StatusPages) UpdateStatusPage ¶
func (r *StatusPages) UpdateStatusPage(ctx context.Context, pageId int, body models.UpdateStatusPageJSONRequestBody) (*models.StatusPageResponse, error)
func (*StatusPages) VerifyCustomDomain ¶
func (r *StatusPages) VerifyCustomDomain(ctx context.Context, pageId int) (json.RawMessage, error)
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
Teams groups the Teams endpoints.
func (*Teams) AddTeamMember ¶
func (r *Teams) AddTeamMember(ctx context.Context, orgId int, teamId int, body models.AddTeamMemberJSONRequestBody) (*models.TeamMemberResponse, error)
func (*Teams) AssignTeamResources ¶
func (r *Teams) AssignTeamResources(ctx context.Context, orgId int, teamId int, body models.AssignTeamResourcesJSONRequestBody) (json.RawMessage, error)
func (*Teams) CreateTeam ¶
func (r *Teams) CreateTeam(ctx context.Context, orgId int, body models.CreateTeamJSONRequestBody) (*models.TeamResponse, error)
func (*Teams) DeleteTeam ¶
func (*Teams) GetTeamResources ¶
func (*Teams) RemoveTeamMember ¶
func (*Teams) UpdateTeam ¶
func (r *Teams) UpdateTeam(ctx context.Context, orgId int, teamId int, body models.UpdateTeamJSONRequestBody) (*models.TeamResponse, error)
func (*Teams) UpdateTeamMemberRole ¶
type WarRooms ¶
type WarRooms struct {
// contains filtered or unexported fields
}
WarRooms groups the WarRooms endpoints.
func (*WarRooms) AddWarRoomMember ¶
func (r *WarRooms) AddWarRoomMember(ctx context.Context, orgId int, roomId int, body models.AddWarRoomMemberJSONRequestBody) (json.RawMessage, error)
func (*WarRooms) CloseWarRoom ¶
func (*WarRooms) CreateWarRoom ¶
func (r *WarRooms) CreateWarRoom(ctx context.Context, orgId int, body models.CreateWarRoomJSONRequestBody) (json.RawMessage, error)
func (*WarRooms) DeleteWarRoom ¶
func (*WarRooms) DownloadAttachment ¶
func (*WarRooms) GetPresence ¶
func (*WarRooms) GetWarRoom ¶
func (*WarRooms) LeavePresence ¶
func (*WarRooms) ListMessages ¶
func (r *WarRooms) ListMessages(ctx context.Context, orgId int, roomId int, params *models.ListMessagesParams) (json.RawMessage, error)
func (*WarRooms) ListWarRoomMembers ¶
func (*WarRooms) ListWarRooms ¶
func (r *WarRooms) ListWarRooms(ctx context.Context, orgId int, params *models.ListWarRoomsParams) (json.RawMessage, error)
func (*WarRooms) PingPresence ¶
func (*WarRooms) PostMessage ¶
func (r *WarRooms) PostMessage(ctx context.Context, orgId int, roomId int, body models.PostMessageJSONRequestBody) (json.RawMessage, error)
func (*WarRooms) RemoveWarRoomMember ¶
func (*WarRooms) TestWarroomBot ¶
func (*WarRooms) UnfurlLink ¶
func (r *WarRooms) UnfurlLink(ctx context.Context, orgId int, roomId int, params *models.UnfurlLinkParams) (json.RawMessage, error)
func (*WarRooms) UpdateWarRoom ¶
func (r *WarRooms) UpdateWarRoom(ctx context.Context, orgId int, roomId int, body models.UpdateWarRoomJSONRequestBody) (json.RawMessage, error)
func (*WarRooms) UploadAttachment ¶ added in v0.1.1
func (r *WarRooms) UploadAttachment(ctx context.Context, orgID, roomID int, filename string, content io.Reader) (json.RawMessage, error)
UploadAttachment uploads a file to a war room. It is hand-written rather than generated because the endpoint takes multipart/form-data, which the generated facade does not model. The response is returned as raw JSON.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
cmd/genfacade
command
Command genfacade renders the fluent resource facade over the oapi-codegen core.
|
Command genfacade renders the fluent resource facade over the oapi-codegen core. |
|
Package models provides primitives to interact with the openapi HTTP API.
|
Package models provides primitives to interact with the openapi HTTP API. |