bugsnagapi

package
v0.0.0-...-20fc5da Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package bugsnagapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Package bugsnagapi is the generated client for the Bugsnag Data Access API.

Everything in client.gen.go is generated from the vendored spec plus api/openapi/overlay.yaml — do not hand-edit it. `make verify-codegen` regenerates and fails on any diff.

Callers use the plain Client, never ClientWithResponses: the latter's Parse* helpers discard Body when json.Unmarshal fails, so a single spec/reality mismatch loses the response you wanted, and their per-operation response types make a single generic paginator impossible.

The generated types are used only to render text. The --json path passes the API's own item bytes through, keeping its values intact, because re-marshalling through these types is lossy: metaData is map[string]interface{} so every number round-trips via float64, keys get alphabetised, and the closed _EventApp and _EventDevice structs drop any field a notifier added.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCommentOnErrorRequest

func NewCreateCommentOnErrorRequest(server string, projectId string, errorId string, body CreateCommentOnErrorJSONRequestBody) (*http.Request, error)

NewCreateCommentOnErrorRequest calls the generic CreateCommentOnError builder with application/json body

func NewCreateCommentOnErrorRequestWithBody

func NewCreateCommentOnErrorRequestWithBody(server string, projectId string, errorId string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCommentOnErrorRequestWithBody constructs an http.Request for the CreateCommentOnError method, with any body, and a specified content type

func NewGetBucketedAndUnbucketedTrendsOnErrorRequest

func NewGetBucketedAndUnbucketedTrendsOnErrorRequest(server string, projectId string, errorId string, params *GetBucketedAndUnbucketedTrendsOnErrorParams) (*http.Request, error)

NewGetBucketedAndUnbucketedTrendsOnErrorRequest constructs an http.Request for the GetBucketedAndUnbucketedTrendsOnError method

func NewGetOrganizationProjectsRequest

func NewGetOrganizationProjectsRequest(server string, organizationId string, params *GetOrganizationProjectsParams) (*http.Request, error)

NewGetOrganizationProjectsRequest constructs an http.Request for the GetOrganizationProjects method

func NewGetProjectStabilityTrendRequest

func NewGetProjectStabilityTrendRequest(server string, projectId string) (*http.Request, error)

NewGetProjectStabilityTrendRequest constructs an http.Request for the GetProjectStabilityTrend method

func NewListCommentsOnErrorRequest

func NewListCommentsOnErrorRequest(server string, projectId string, errorId string, params *ListCommentsOnErrorParams) (*http.Request, error)

NewListCommentsOnErrorRequest constructs an http.Request for the ListCommentsOnError method

func NewListEventsOnErrorRequest

func NewListEventsOnErrorRequest(server string, projectId string, errorId string, params *ListEventsOnErrorParams) (*http.Request, error)

NewListEventsOnErrorRequest constructs an http.Request for the ListEventsOnError method

func NewListEventsOnProjectRequest

func NewListEventsOnProjectRequest(server string, projectId string, params *ListEventsOnProjectParams) (*http.Request, error)

NewListEventsOnProjectRequest constructs an http.Request for the ListEventsOnProject method

func NewListPivotsOnAnErrorRequest

func NewListPivotsOnAnErrorRequest(server string, projectId string, errorId string, params *ListPivotsOnAnErrorParams) (*http.Request, error)

NewListPivotsOnAnErrorRequest constructs an http.Request for the ListPivotsOnAnError method

func NewListProjectErrorsRequest

func NewListProjectErrorsRequest(server string, projectId string, params *ListProjectErrorsParams) (*http.Request, error)

NewListProjectErrorsRequest constructs an http.Request for the ListProjectErrors method

func NewListProjectEventFieldsRequest

func NewListProjectEventFieldsRequest(server string, projectId string) (*http.Request, error)

NewListProjectEventFieldsRequest constructs an http.Request for the ListProjectEventFields method

func NewListProjectReleasesRequest

func NewListProjectReleasesRequest(server string, projectId string, params *ListProjectReleasesParams) (*http.Request, error)

NewListProjectReleasesRequest constructs an http.Request for the ListProjectReleases method

func NewListUserOrganizationsRequest

func NewListUserOrganizationsRequest(server string, params *ListUserOrganizationsParams) (*http.Request, error)

NewListUserOrganizationsRequest constructs an http.Request for the ListUserOrganizations method

func NewViewErrorOnProjectRequest

func NewViewErrorOnProjectRequest(server string, projectId string, errorId string) (*http.Request, error)

NewViewErrorOnProjectRequest constructs an http.Request for the ViewErrorOnProject method

func NewViewEventByIdRequest

func NewViewEventByIdRequest(server string, projectId string, eventId string) (*http.Request, error)

NewViewEventByIdRequest constructs an http.Request for the ViewEventById method

func NewViewLatestEventOnErrorRequest

func NewViewLatestEventOnErrorRequest(server string, errorId string) (*http.Request, error)

NewViewLatestEventOnErrorRequest constructs an http.Request for the ViewLatestEventOnError method

Types

type BreadcrumbType string

BreadcrumbType A category which describes the breadcrumb, from the list of allowed values. - `navigation` - Changing screens or content being displayed, with a defined destination and optionally a previous location. - `request` - Sending and receiving requests and responses. - `process` - Performing an intensive task or query. - `log` - Messages and severity sent to a logging platform. - `user` - Actions performed by the user, like text input, button presses, or confirming/cancelling an alert dialog. - `state` - Changing the overall state of an app, such as closing, pausing, or being moved to the background, as well as device state changes like memory or battery warnings and network connectivity changes. - `error` - An error which was reported to Bugsnag encountered in the same session. - `manual` - User-defined, manually added breadcrumbs.

const (
	BreadcrumbTypeError      BreadcrumbType = "error"
	BreadcrumbTypeLog        BreadcrumbType = "log"
	BreadcrumbTypeManual     BreadcrumbType = "manual"
	BreadcrumbTypeNavigation BreadcrumbType = "navigation"
	BreadcrumbTypeProcess    BreadcrumbType = "process"
	BreadcrumbTypeRequest    BreadcrumbType = "request"
	BreadcrumbTypeState      BreadcrumbType = "state"
	BreadcrumbTypeUser       BreadcrumbType = "user"
)

Defines values for BreadcrumbType.

func (e BreadcrumbType) Valid() bool

Valid indicates whether the value is a known member of the BreadcrumbType enum.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateCommentOnError

func (c *Client) CreateCommentOnError(ctx context.Context, projectId string, errorId string, body CreateCommentOnErrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateCommentOnError Create a Comment on an Error

Requires user authentication as the user who will be the author of the comment.

Takes a body of the `application/json` content type.

Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).

func (*Client) CreateCommentOnErrorWithBody

func (c *Client) CreateCommentOnErrorWithBody(ctx context.Context, projectId string, errorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateCommentOnErrorWithBody Create a Comment on an Error

Requires user authentication as the user who will be the author of the comment.

Takes any type of body and a specified content type.

Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).

func (*Client) GetBucketedAndUnbucketedTrendsOnError

func (c *Client) GetBucketedAndUnbucketedTrendsOnError(ctx context.Context, projectId string, errorId string, params *GetBucketedAndUnbucketedTrendsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetBucketedAndUnbucketedTrendsOnError List the Trends for an Error

Counts for an Error in a given time range, suitable for drawing histograms. Will return a maximum of 50 buckets (when using `buckets_count`) or 2000 data points (when using `resolution`).

Corresponds with GET /projects/{project_id}/errors/{error_id}/trends (the `GetBucketedAndUnbucketedTrendsOnError` operationId).

func (*Client) GetOrganizationProjects

func (c *Client) GetOrganizationProjects(ctx context.Context, organizationId string, params *GetOrganizationProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrganizationProjects List an Organization's Projects

Returns a list of projects for the given organization.

Corresponds with GET /organizations/{organization_id}/projects (the `GetOrganizationProjects` operationId).

func (*Client) GetProjectStabilityTrend

func (c *Client) GetProjectStabilityTrend(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProjectStabilityTrend View the stability trend for a project

Request the trend of unhandled session information (grouped by UTC day) in the last 30 days for the project's primary release stage.

Corresponds with GET /projects/{project_id}/stability_trend (the `GetProjectStabilityTrend` operationId).

func (*Client) ListCommentsOnError

func (c *Client) ListCommentsOnError(ctx context.Context, projectId string, errorId string, params *ListCommentsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListCommentsOnError List Comments on an Error

Collaborators are able to comment on Errors to add details, context, and work together toward a fix.

Corresponds with GET /projects/{project_id}/errors/{error_id}/comments (the `ListCommentsOnError` operationId).

func (*Client) ListEventsOnError

func (c *Client) ListEventsOnError(ctx context.Context, projectId string, errorId string, params *ListEventsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListEventsOnError List the Events on an Error

Get a list of the events of an error. If you require a feed of all new events as they are reported consider setting up a webhook integration instead.

Corresponds with GET /projects/{project_id}/errors/{error_id}/events (the `ListEventsOnError` operationId).

func (*Client) ListEventsOnProject

func (c *Client) ListEventsOnProject(ctx context.Context, projectId string, params *ListEventsOnProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListEventsOnProject List the Events on a Project

Corresponds with GET /projects/{project_id}/events (the `ListEventsOnProject` operationId).

func (*Client) ListPivotsOnAnError

func (c *Client) ListPivotsOnAnError(ctx context.Context, projectId string, errorId string, params *ListPivotsOnAnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPivotsOnAnError List Pivots on an Error

Corresponds with GET /projects/{project_id}/errors/{error_id}/pivots (the `ListPivotsOnAnError` operationId).

func (*Client) ListProjectErrors

func (c *Client) ListProjectErrors(ctx context.Context, projectId string, params *ListProjectErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListProjectErrors List the Errors on a Project

Get a list of the errors on a project. If you require a feed of all new errors as they are reported consider setting up a webhook integration instead.

Corresponds with GET /projects/{project_id}/errors (the `ListProjectErrors` operationId).

func (*Client) ListProjectEventFields

func (c *Client) ListProjectEventFields(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ListProjectEventFields List the Event Fields for a Project

Event fields are the fields on event resources that can be used for filtering. This includes built-in fields and any custom filters. The event fields supported vary by project type.

Corresponds with GET /projects/{project_id}/event_fields (the `ListProjectEventFields` operationId).

func (*Client) ListProjectReleases

func (c *Client) ListProjectReleases(ctx context.Context, projectId string, params *ListProjectReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListProjectReleases List Releases on a Project

A release models a particular application version running in a particular release stage. In the case of mobile projects, a release is also associated with a version code or bundle version. To learn more, see the following resources on the [releases dashboard](https://docs.bugsnag.com/product/releases/releases-dashboard) and [build tool integrations](https://docs.bugsnag.com/build-integrations/).

Corresponds with GET /projects/{project_id}/releases (the `ListProjectReleases` operationId).

func (*Client) ListUserOrganizations

func (c *Client) ListUserOrganizations(ctx context.Context, params *ListUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUserOrganizations List the Current User's Organizations

Corresponds with GET /user/organizations (the `ListUserOrganizations` operationId).

func (*Client) ViewErrorOnProject

func (c *Client) ViewErrorOnProject(ctx context.Context, projectId string, errorId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ViewErrorOnProject View an Error

Corresponds with GET /projects/{project_id}/errors/{error_id} (the `ViewErrorOnProject` operationId).

func (*Client) ViewEventById

func (c *Client) ViewEventById(ctx context.Context, projectId string, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ViewEventById View an Event

Note that event objects can include custom metadata and diagnostic fields configured directly in your app or added by the notifier library. The API preserves the original casing and key format as received, so any casing, including both snake_case and camelCase, may be valid for some fields.

Corresponds with GET /projects/{project_id}/events/{event_id} (the `ViewEventById` operationId).

func (*Client) ViewLatestEventOnError

func (c *Client) ViewLatestEventOnError(ctx context.Context, errorId string, reqEditors ...RequestEditorFn) (*http.Response, error)

ViewLatestEventOnError View the latest Event on an Error

Corresponds with GET /errors/{error_id}/latest_event (the `ViewLatestEventOnError` operationId).

type ClientInterface

type ClientInterface interface {

	// ViewLatestEventOnError View the latest Event on an Error
	//
	// Corresponds with GET /errors/{error_id}/latest_event (the `ViewLatestEventOnError` operationId).
	ViewLatestEventOnError(ctx context.Context, errorId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganizationProjects List an Organization's Projects
	//
	// Returns a list of projects for the given organization.
	//
	// Corresponds with GET /organizations/{organization_id}/projects (the `GetOrganizationProjects` operationId).
	GetOrganizationProjects(ctx context.Context, organizationId string, params *GetOrganizationProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjectErrors List the Errors on a Project
	//
	// Get a list of the errors on a project. If you require a feed of all new errors as they are reported consider setting up a webhook integration instead.
	//
	// Corresponds with GET /projects/{project_id}/errors (the `ListProjectErrors` operationId).
	ListProjectErrors(ctx context.Context, projectId string, params *ListProjectErrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ViewErrorOnProject View an Error
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id} (the `ViewErrorOnProject` operationId).
	ViewErrorOnProject(ctx context.Context, projectId string, errorId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCommentsOnError List Comments on an Error
	//
	// Collaborators are able to comment on Errors to add details, context, and work together toward a fix.
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/comments (the `ListCommentsOnError` operationId).
	ListCommentsOnError(ctx context.Context, projectId string, errorId string, params *ListCommentsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCommentOnErrorWithBody Create a Comment on an Error
	//
	// Requires user authentication as the user who will be the author of the comment.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).
	CreateCommentOnErrorWithBody(ctx context.Context, projectId string, errorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCommentOnError Create a Comment on an Error
	//
	// Requires user authentication as the user who will be the author of the comment.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).
	CreateCommentOnError(ctx context.Context, projectId string, errorId string, body CreateCommentOnErrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEventsOnError List the Events on an Error
	//
	// Get a list of the events of an error. If you require a feed of all new events as they are reported consider setting up a webhook integration instead.
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/events (the `ListEventsOnError` operationId).
	ListEventsOnError(ctx context.Context, projectId string, errorId string, params *ListEventsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPivotsOnAnError List Pivots on an Error
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/pivots (the `ListPivotsOnAnError` operationId).
	ListPivotsOnAnError(ctx context.Context, projectId string, errorId string, params *ListPivotsOnAnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetBucketedAndUnbucketedTrendsOnError List the Trends for an Error
	//
	// Counts for an Error in a given time range, suitable for drawing histograms. Will return a maximum of 50 buckets (when using `buckets_count`) or 2000 data points (when using `resolution`).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/trends (the `GetBucketedAndUnbucketedTrendsOnError` operationId).
	GetBucketedAndUnbucketedTrendsOnError(ctx context.Context, projectId string, errorId string, params *GetBucketedAndUnbucketedTrendsOnErrorParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjectEventFields List the Event Fields for a Project
	//
	// Event fields are the fields on event resources that can be used for filtering. This includes built-in fields and any custom filters. The event fields supported vary by project type.
	//
	// Corresponds with GET /projects/{project_id}/event_fields (the `ListProjectEventFields` operationId).
	ListProjectEventFields(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListEventsOnProject List the Events on a Project
	//
	// Corresponds with GET /projects/{project_id}/events (the `ListEventsOnProject` operationId).
	ListEventsOnProject(ctx context.Context, projectId string, params *ListEventsOnProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ViewEventById View an Event
	//
	// Note that event objects can include custom metadata and diagnostic fields configured directly in your app or added by the notifier library. The API preserves the original casing and key format as received, so any casing, including both snake_case and camelCase, may be valid for some fields.
	//
	// Corresponds with GET /projects/{project_id}/events/{event_id} (the `ViewEventById` operationId).
	ViewEventById(ctx context.Context, projectId string, eventId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjectReleases List Releases on a Project
	//
	// A release models a particular application version running in a particular release stage. In the case of mobile projects, a release is also associated with a version code or bundle version. To learn more, see the following resources on the [releases dashboard](https://docs.bugsnag.com/product/releases/releases-dashboard) and [build tool integrations](https://docs.bugsnag.com/build-integrations/).
	//
	// Corresponds with GET /projects/{project_id}/releases (the `ListProjectReleases` operationId).
	ListProjectReleases(ctx context.Context, projectId string, params *ListProjectReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectStabilityTrend View the stability trend for a project
	//
	// Request the trend of unhandled session information (grouped by UTC day) in the last 30 days for the project's primary release stage.
	//
	// Corresponds with GET /projects/{project_id}/stability_trend (the `GetProjectStabilityTrend` operationId).
	GetProjectStabilityTrend(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserOrganizations List the Current User's Organizations
	//
	// Corresponds with GET /user/organizations (the `ListUserOrganizations` operationId).
	ListUserOrganizations(ctx context.Context, params *ListUserOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateCommentOnErrorWithBodyWithResponse

func (c *ClientWithResponses) CreateCommentOnErrorWithBodyWithResponse(ctx context.Context, projectId string, errorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentOnErrorResponse, error)

CreateCommentOnErrorWithBodyWithResponse Create a Comment on an Error

Requires user authentication as the user who will be the author of the comment.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).

func (*ClientWithResponses) CreateCommentOnErrorWithResponse

func (c *ClientWithResponses) CreateCommentOnErrorWithResponse(ctx context.Context, projectId string, errorId string, body CreateCommentOnErrorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentOnErrorResponse, error)

CreateCommentOnErrorWithResponse Create a Comment on an Error

Requires user authentication as the user who will be the author of the comment.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).

func (*ClientWithResponses) GetBucketedAndUnbucketedTrendsOnErrorWithResponse

func (c *ClientWithResponses) GetBucketedAndUnbucketedTrendsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *GetBucketedAndUnbucketedTrendsOnErrorParams, reqEditors ...RequestEditorFn) (*GetBucketedAndUnbucketedTrendsOnErrorResponse, error)

GetBucketedAndUnbucketedTrendsOnErrorWithResponse List the Trends for an Error

Counts for an Error in a given time range, suitable for drawing histograms. Will return a maximum of 50 buckets (when using `buckets_count`) or 2000 data points (when using `resolution`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors/{error_id}/trends (the `GetBucketedAndUnbucketedTrendsOnError` operationId).

func (*ClientWithResponses) GetOrganizationProjectsWithResponse

func (c *ClientWithResponses) GetOrganizationProjectsWithResponse(ctx context.Context, organizationId string, params *GetOrganizationProjectsParams, reqEditors ...RequestEditorFn) (*GetOrganizationProjectsResponse, error)

GetOrganizationProjectsWithResponse List an Organization's Projects

Returns a list of projects for the given organization.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /organizations/{organization_id}/projects (the `GetOrganizationProjects` operationId).

func (*ClientWithResponses) GetProjectStabilityTrendWithResponse

func (c *ClientWithResponses) GetProjectStabilityTrendWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*GetProjectStabilityTrendResponse, error)

GetProjectStabilityTrendWithResponse View the stability trend for a project

Request the trend of unhandled session information (grouped by UTC day) in the last 30 days for the project's primary release stage.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/stability_trend (the `GetProjectStabilityTrend` operationId).

func (*ClientWithResponses) ListCommentsOnErrorWithResponse

func (c *ClientWithResponses) ListCommentsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListCommentsOnErrorParams, reqEditors ...RequestEditorFn) (*ListCommentsOnErrorResponse, error)

ListCommentsOnErrorWithResponse List Comments on an Error

Collaborators are able to comment on Errors to add details, context, and work together toward a fix.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors/{error_id}/comments (the `ListCommentsOnError` operationId).

func (*ClientWithResponses) ListEventsOnErrorWithResponse

func (c *ClientWithResponses) ListEventsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListEventsOnErrorParams, reqEditors ...RequestEditorFn) (*ListEventsOnErrorResponse, error)

ListEventsOnErrorWithResponse List the Events on an Error

Get a list of the events of an error. If you require a feed of all new events as they are reported consider setting up a webhook integration instead.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors/{error_id}/events (the `ListEventsOnError` operationId).

func (*ClientWithResponses) ListEventsOnProjectWithResponse

func (c *ClientWithResponses) ListEventsOnProjectWithResponse(ctx context.Context, projectId string, params *ListEventsOnProjectParams, reqEditors ...RequestEditorFn) (*ListEventsOnProjectResponse, error)

ListEventsOnProjectWithResponse List the Events on a Project

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/events (the `ListEventsOnProject` operationId).

func (*ClientWithResponses) ListPivotsOnAnErrorWithResponse

func (c *ClientWithResponses) ListPivotsOnAnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListPivotsOnAnErrorParams, reqEditors ...RequestEditorFn) (*ListPivotsOnAnErrorResponse, error)

ListPivotsOnAnErrorWithResponse List Pivots on an Error

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors/{error_id}/pivots (the `ListPivotsOnAnError` operationId).

func (*ClientWithResponses) ListProjectErrorsWithResponse

func (c *ClientWithResponses) ListProjectErrorsWithResponse(ctx context.Context, projectId string, params *ListProjectErrorsParams, reqEditors ...RequestEditorFn) (*ListProjectErrorsResponse, error)

ListProjectErrorsWithResponse List the Errors on a Project

Get a list of the errors on a project. If you require a feed of all new errors as they are reported consider setting up a webhook integration instead.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors (the `ListProjectErrors` operationId).

func (*ClientWithResponses) ListProjectEventFieldsWithResponse

func (c *ClientWithResponses) ListProjectEventFieldsWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ListProjectEventFieldsResponse, error)

ListProjectEventFieldsWithResponse List the Event Fields for a Project

Event fields are the fields on event resources that can be used for filtering. This includes built-in fields and any custom filters. The event fields supported vary by project type.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/event_fields (the `ListProjectEventFields` operationId).

func (*ClientWithResponses) ListProjectReleasesWithResponse

func (c *ClientWithResponses) ListProjectReleasesWithResponse(ctx context.Context, projectId string, params *ListProjectReleasesParams, reqEditors ...RequestEditorFn) (*ListProjectReleasesResponse, error)

ListProjectReleasesWithResponse List Releases on a Project

A release models a particular application version running in a particular release stage. In the case of mobile projects, a release is also associated with a version code or bundle version. To learn more, see the following resources on the [releases dashboard](https://docs.bugsnag.com/product/releases/releases-dashboard) and [build tool integrations](https://docs.bugsnag.com/build-integrations/).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/releases (the `ListProjectReleases` operationId).

func (*ClientWithResponses) ListUserOrganizationsWithResponse

func (c *ClientWithResponses) ListUserOrganizationsWithResponse(ctx context.Context, params *ListUserOrganizationsParams, reqEditors ...RequestEditorFn) (*ListUserOrganizationsResponse, error)

ListUserOrganizationsWithResponse List the Current User's Organizations

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user/organizations (the `ListUserOrganizations` operationId).

func (*ClientWithResponses) ViewErrorOnProjectWithResponse

func (c *ClientWithResponses) ViewErrorOnProjectWithResponse(ctx context.Context, projectId string, errorId string, reqEditors ...RequestEditorFn) (*ViewErrorOnProjectResponse, error)

ViewErrorOnProjectWithResponse View an Error

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/errors/{error_id} (the `ViewErrorOnProject` operationId).

func (*ClientWithResponses) ViewEventByIdWithResponse

func (c *ClientWithResponses) ViewEventByIdWithResponse(ctx context.Context, projectId string, eventId string, reqEditors ...RequestEditorFn) (*ViewEventByIdResponse, error)

ViewEventByIdWithResponse View an Event

Note that event objects can include custom metadata and diagnostic fields configured directly in your app or added by the notifier library. The API preserves the original casing and key format as received, so any casing, including both snake_case and camelCase, may be valid for some fields.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /projects/{project_id}/events/{event_id} (the `ViewEventById` operationId).

func (*ClientWithResponses) ViewLatestEventOnErrorWithResponse

func (c *ClientWithResponses) ViewLatestEventOnErrorWithResponse(ctx context.Context, errorId string, reqEditors ...RequestEditorFn) (*ViewLatestEventOnErrorResponse, error)

ViewLatestEventOnErrorWithResponse View the latest Event on an Error

Returns a wrapper object for the known response body format(s).

Corresponds with GET /errors/{error_id}/latest_event (the `ViewLatestEventOnError` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ViewLatestEventOnErrorWithResponse View the latest Event on an Error
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /errors/{error_id}/latest_event (the `ViewLatestEventOnError` operationId).
	ViewLatestEventOnErrorWithResponse(ctx context.Context, errorId string, reqEditors ...RequestEditorFn) (*ViewLatestEventOnErrorResponse, error)

	// GetOrganizationProjectsWithResponse List an Organization's Projects
	//
	// Returns a list of projects for the given organization.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /organizations/{organization_id}/projects (the `GetOrganizationProjects` operationId).
	GetOrganizationProjectsWithResponse(ctx context.Context, organizationId string, params *GetOrganizationProjectsParams, reqEditors ...RequestEditorFn) (*GetOrganizationProjectsResponse, error)

	// ListProjectErrorsWithResponse List the Errors on a Project
	//
	// Get a list of the errors on a project. If you require a feed of all new errors as they are reported consider setting up a webhook integration instead.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors (the `ListProjectErrors` operationId).
	ListProjectErrorsWithResponse(ctx context.Context, projectId string, params *ListProjectErrorsParams, reqEditors ...RequestEditorFn) (*ListProjectErrorsResponse, error)

	// ViewErrorOnProjectWithResponse View an Error
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id} (the `ViewErrorOnProject` operationId).
	ViewErrorOnProjectWithResponse(ctx context.Context, projectId string, errorId string, reqEditors ...RequestEditorFn) (*ViewErrorOnProjectResponse, error)

	// ListCommentsOnErrorWithResponse List Comments on an Error
	//
	// Collaborators are able to comment on Errors to add details, context, and work together toward a fix.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/comments (the `ListCommentsOnError` operationId).
	ListCommentsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListCommentsOnErrorParams, reqEditors ...RequestEditorFn) (*ListCommentsOnErrorResponse, error)

	// CreateCommentOnErrorWithBodyWithResponse Create a Comment on an Error
	//
	// Requires user authentication as the user who will be the author of the comment.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).
	CreateCommentOnErrorWithBodyWithResponse(ctx context.Context, projectId string, errorId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentOnErrorResponse, error)

	// CreateCommentOnErrorWithResponse Create a Comment on an Error
	//
	// Requires user authentication as the user who will be the author of the comment.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /projects/{project_id}/errors/{error_id}/comments (the `CreateCommentOnError` operationId).
	CreateCommentOnErrorWithResponse(ctx context.Context, projectId string, errorId string, body CreateCommentOnErrorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentOnErrorResponse, error)

	// ListEventsOnErrorWithResponse List the Events on an Error
	//
	// Get a list of the events of an error. If you require a feed of all new events as they are reported consider setting up a webhook integration instead.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/events (the `ListEventsOnError` operationId).
	ListEventsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListEventsOnErrorParams, reqEditors ...RequestEditorFn) (*ListEventsOnErrorResponse, error)

	// ListPivotsOnAnErrorWithResponse List Pivots on an Error
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/pivots (the `ListPivotsOnAnError` operationId).
	ListPivotsOnAnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *ListPivotsOnAnErrorParams, reqEditors ...RequestEditorFn) (*ListPivotsOnAnErrorResponse, error)

	// GetBucketedAndUnbucketedTrendsOnErrorWithResponse List the Trends for an Error
	//
	// Counts for an Error in a given time range, suitable for drawing histograms. Will return a maximum of 50 buckets (when using `buckets_count`) or 2000 data points (when using `resolution`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/errors/{error_id}/trends (the `GetBucketedAndUnbucketedTrendsOnError` operationId).
	GetBucketedAndUnbucketedTrendsOnErrorWithResponse(ctx context.Context, projectId string, errorId string, params *GetBucketedAndUnbucketedTrendsOnErrorParams, reqEditors ...RequestEditorFn) (*GetBucketedAndUnbucketedTrendsOnErrorResponse, error)

	// ListProjectEventFieldsWithResponse List the Event Fields for a Project
	//
	// Event fields are the fields on event resources that can be used for filtering. This includes built-in fields and any custom filters. The event fields supported vary by project type.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/event_fields (the `ListProjectEventFields` operationId).
	ListProjectEventFieldsWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*ListProjectEventFieldsResponse, error)

	// ListEventsOnProjectWithResponse List the Events on a Project
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/events (the `ListEventsOnProject` operationId).
	ListEventsOnProjectWithResponse(ctx context.Context, projectId string, params *ListEventsOnProjectParams, reqEditors ...RequestEditorFn) (*ListEventsOnProjectResponse, error)

	// ViewEventByIdWithResponse View an Event
	//
	// Note that event objects can include custom metadata and diagnostic fields configured directly in your app or added by the notifier library. The API preserves the original casing and key format as received, so any casing, including both snake_case and camelCase, may be valid for some fields.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/events/{event_id} (the `ViewEventById` operationId).
	ViewEventByIdWithResponse(ctx context.Context, projectId string, eventId string, reqEditors ...RequestEditorFn) (*ViewEventByIdResponse, error)

	// ListProjectReleasesWithResponse List Releases on a Project
	//
	// A release models a particular application version running in a particular release stage. In the case of mobile projects, a release is also associated with a version code or bundle version. To learn more, see the following resources on the [releases dashboard](https://docs.bugsnag.com/product/releases/releases-dashboard) and [build tool integrations](https://docs.bugsnag.com/build-integrations/).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/releases (the `ListProjectReleases` operationId).
	ListProjectReleasesWithResponse(ctx context.Context, projectId string, params *ListProjectReleasesParams, reqEditors ...RequestEditorFn) (*ListProjectReleasesResponse, error)

	// GetProjectStabilityTrendWithResponse View the stability trend for a project
	//
	// Request the trend of unhandled session information (grouped by UTC day) in the last 30 days for the project's primary release stage.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /projects/{project_id}/stability_trend (the `GetProjectStabilityTrend` operationId).
	GetProjectStabilityTrendWithResponse(ctx context.Context, projectId string, reqEditors ...RequestEditorFn) (*GetProjectStabilityTrendResponse, error)

	// ListUserOrganizationsWithResponse List the Current User's Organizations
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user/organizations (the `ListUserOrganizations` operationId).
	ListUserOrganizationsWithResponse(ctx context.Context, params *ListUserOrganizationsParams, reqEditors ...RequestEditorFn) (*ListUserOrganizationsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CommentApiView

type CommentApiView struct {
	Collaborator *User `json:"collaborator,omitempty"`

	// CreatedAt The time the Comment was created.
	//
	// Example: 2017-03-02T05:55:55.555Z
	CreatedAt *string `json:"created_at,omitempty"`

	// Id Example: 515fb9337c1074f6fd000007
	Id string `json:"id"`

	// Message the comment body itself
	Message *string `json:"message,omitempty"`

	// UpdatedAt The time the Comment was updated.
	//
	// Example: 2017-08-10T06:66:66.666Z
	UpdatedAt *string `json:"updated_at,omitempty"`

	// Url a permalink to the Comment.
	//
	// Example: https://api.bugsnag.com/comments/515fb9337c1074f6fd000007
	Url *string `json:"url,omitempty"`
}

CommentApiView defines model for CommentApiView.

type CreateCommentOnErrorJSONBody

type CreateCommentOnErrorJSONBody struct {
	Message string `json:"message"`
}

CreateCommentOnErrorJSONBody defines parameters for CreateCommentOnError.

type CreateCommentOnErrorJSONRequestBody

type CreateCommentOnErrorJSONRequestBody CreateCommentOnErrorJSONBody

CreateCommentOnErrorJSONRequestBody defines body for CreateCommentOnError for application/json ContentType.

type CreateCommentOnErrorResponse

type CreateCommentOnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CommentApiView
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseCreateCommentOnErrorResponse

func ParseCreateCommentOnErrorResponse(rsp *http.Response) (*CreateCommentOnErrorResponse, error)

ParseCreateCommentOnErrorResponse parses an HTTP response from a CreateCommentOnErrorWithResponse call

func (CreateCommentOnErrorResponse) ContentType

func (r CreateCommentOnErrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateCommentOnErrorResponse) GetBody

func (r CreateCommentOnErrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateCommentOnErrorResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateCommentOnErrorResponse) GetJSON403

func (r CreateCommentOnErrorResponse) GetJSON403() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateCommentOnErrorResponse) GetJSON422

func (r CreateCommentOnErrorResponse) GetJSON422() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateCommentOnErrorResponse) Status

Status returns HTTPResponse.Status

func (CreateCommentOnErrorResponse) StatusCode

func (r CreateCommentOnErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ElasticSearchEventApiView

type ElasticSearchEventApiView struct {
	App *struct {
		// ReleaseStage release stage where this Event occurred
		//
		// Example: production
		ReleaseStage *string `json:"releaseStage,omitempty"`

		// Type The application type, such as a web framework or mobile platform, for example "rails" or "android".
		//
		// Example: rails
		Type *string `json:"type,omitempty"`
	} `json:"app,omitempty"`

	// Context This refers to the action that was happening when the event occurred.
	//
	// Example: users#show
	Context *string `json:"context,omitempty"`

	// ErrorClass Example: NoMethodError
	ErrorClass *string `json:"error_class,omitempty"`

	// ErrorId The Error this Event is an occurrence of
	//
	// Example: 515fb9337c1074f6fd000001
	ErrorId *string `json:"error_id,omitempty"`

	// Exceptions An array of exceptions that occurred during this event. Most of the time there will only be one exception, but some languages support "nested" or "caused by" exceptions. The first item in the array represents the outermost exception. Each subsequent item represents the exception that caused the preceding one.
	Exceptions *[]map[string]interface{} `json:"exceptions,omitempty"`

	// Id Example: 595301a6ae48dd0018aedd61
	Id *string `json:"id,omitempty"`

	// IsFullReport Example: false
	IsFullReport *bool   `json:"is_full_report,omitempty"`
	Message      *string `json:"message,omitempty"`

	// ProjectUrl Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10
	ProjectUrl *string `json:"project_url,omitempty"`

	// ReceivedAt The time the [Error Reporting API](https://developer.smartbear.com/bugsnag/docs/reporting-events-and-sessions/) was notified of this Event
	//
	// Example: 2017-04-19T09:16:50.000Z
	ReceivedAt *string `json:"received_at,omitempty"`

	// Severity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	Severity *SeverityOptions `json:"severity,omitempty"`

	// Unhandled Whether or not the event was from an unhandled exception
	//
	// Example: true
	Unhandled *bool `json:"unhandled,omitempty"`

	// Url Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10/events/515fb9337c1074f6fd000001
	Url *string `json:"url,omitempty"`
}

ElasticSearchEventApiView defines model for ElasticSearchEventApiView.

type ErrorApiView

type ErrorApiView struct {
	// AssignedCollaboratorId Identifies the collaborator, if any, who has been assigned to the Error.
	//
	// Example: 515fb9337c1074f6fd000002
	AssignedCollaboratorId *string `json:"assigned_collaborator_id,omitempty"`

	// AssignedTeamId Identifies the team, if any, that has been assigned to the Error.
	//
	// Example: 515fb9337c1074f6fd000002
	AssignedTeamId *string `json:"assigned_team_id,omitempty"`

	// CommentCount The number of comments on the Error. This count does not consider time Filters.
	//
	// Example: 5
	CommentCount *int `json:"comment_count,omitempty"`

	// Context Example: users#show
	Context      *string            `json:"context,omitempty"`
	CreatedIssue *ErrorCreatedIssue `json:"created_issue,omitempty"`

	// Discarded Whether future Events for this error are being discarded.
	//
	// Example: true
	Discarded *bool `json:"discarded,omitempty"`

	// ErrorClass Example: NoMethodError
	ErrorClass *string `json:"error_class,omitempty"`

	// Events The number of occurrences of the Error. If the Error request includes filters, this will be a filtered count.
	//
	// Example: 10
	Events *int `json:"events,omitempty"`

	// EventsUrl The API URL for the Error's Events.
	//
	// Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10/errors/515fb9337c1074f6fd000001/events
	EventsUrl *string `json:"events_url,omitempty"`

	// FirstSeen The time of the first occurrence of the Error. This time will be within the bounds of any applied time Filters.
	//
	// Example: 2017-03-20T00:00:00Z
	FirstSeen *string `json:"first_seen,omitempty"`

	// FirstSeenUnfiltered The time of the first occurrence of this Error. This is an absolute time which may extend beyond the bounds of any applied time Filters.
	//
	// Example: 2017-03-19T08:41:13Z
	FirstSeenUnfiltered *string `json:"first_seen_unfiltered,omitempty"`

	// GroupingFields A map of the fields and their values that were used for the grouping of this error. Long field values may be truncated. The specific fields included in this response are dependent on the `grouping_reason`.
	//
	// Example: {"errorClass":"ErrorClass","lineNumber":5}
	GroupingFields *map[string]interface{} `json:"grouping_fields,omitempty"`

	// GroupingReason The reason that events were grouped into this error.
	// - `frame-code` - same code location
	// - `frame-inner` - top in-project stackframe
	// - `context-inner` - context
	// - `error_class-inner` - error class
	// - `user_defined` - custom grouping hash
	// - `js-blob` - from blobs (JS only)
	// - `js-tag` - same inline script (JS only)
	// - `js-html` - same page location (JS only)
	// - `js-eval` - originate from eval statements (JS only)
	// - `js-structure` - same point in the code using the structure of the surrounding minified code (JS only)
	// - `js-codebase` - same point in the code using the surrounding minified code (JS only)
	// - `js-location` - similar location (JS only)
	//
	//
	// Example: frame-inner
	GroupingReason *ErrorApiViewGroupingReason `json:"grouping_reason,omitempty"`

	// Id Example: 515fb9337c1074f6fd000001
	Id *string `json:"id,omitempty"`

	// IntroducedInReleases Details of the Release that the Error was introduced in per release stage that the Error was seen in.
	IntroducedInReleases *[]ErrorIntroducedInRelease `json:"introduced_in_releases,omitempty"`

	// LastSeen The time of the last occurrence of the Error. This time will be within the bounds of any applied time Filters.
	//
	// Example: 2017-03-27T00:00:00Z
	LastSeen *string `json:"last_seen,omitempty"`

	// LastSeenUnfiltered The time of the last occurrence of this Error. This is an absolute time which may extend beyond the bounds of any applied time Filters.
	//
	// Example: 2017-03-31:00:00Z
	LastSeenUnfiltered *string `json:"last_seen_unfiltered,omitempty"`

	// LinkedIssues Issues linked to this error
	LinkedIssues *[]ErrorCreatedIssue `json:"linked_issues,omitempty"`

	// Message Example: undefined method `foo` for nil:NilClass
	Message *string `json:"message,omitempty"`

	// MissingDsyms An array of UUIDs for dSYMs that were not [uploaded](https://docs.bugsnag.com/platforms/ios/symbolication-guide/) but are required to symbolicate the Error. Applies to iOS, macOS, and tvOS projects.
	MissingDsyms *[]string `json:"missing_dsyms,omitempty"`

	// OriginalSeverity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	OriginalSeverity *SeverityOptions `json:"original_severity,omitempty"`

	// OverriddenSeverity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	OverriddenSeverity *SeverityOptions `json:"overridden_severity,omitempty"`

	// ProjectId Example: 74f6fd000001515fb9337c10
	ProjectId *string `json:"project_id,omitempty"`

	// ProjectUrl Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10
	ProjectUrl *string `json:"project_url,omitempty"`

	// ReleaseStages The release stages where this Error has occurred.
	//
	// Example: ["staging","production"]
	ReleaseStages *[]string         `json:"release_stages,omitempty"`
	ReopenRules   *ErrorReopenRules `json:"reopen_rules,omitempty"`

	// Severity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	Severity *SeverityOptions `json:"severity,omitempty"`
	Status   *ErrorStatus     `json:"status,omitempty"`

	// Trend The trend in the Error's daily occurrence frequency. Only included when the `histogram` parameter is provided in the request. If set to `dynamic`, the data is scoped to the time range being requested. If set to `two_week` or not provided, it covers the last 14 days. It's represented as an array of [`date`, `count`] pairs. This trend will take non-time Filters into account.
	//
	//
	// Example: [["2017-03-28T00:00:00.000Z",5],["2017-03-29T00:00:00.000Z",4],["2017-03-30T00:00:00.000Z",0],["2017-03-31T00:00:00.000Z",1],["2017-04-01T00:00:00.000Z",0],["2017-04-02T00:00:00.000Z",0],["2017-04-03T00:00:00.000Z",2],["2017-04-04T00:00:00.000Z",0],["2017-04-05T00:00:00.000Z",0],["2017-04-06T00:00:00.000Z",0],["2017-04-07T00:00:00.000Z",6],["2017-04-08T00:00:00.000Z",0],["2017-04-09T00:00:00.000Z",0],["2017-04-10T00:00:00.000Z",0],["2017-04-11T00:00:00.000Z",0]]
	Trend *[][]interface{} `json:"trend,omitempty"`

	// UnthrottledOccurrenceCount The absolute count of all received Events for the Error.
	//
	// Example: 10
	UnthrottledOccurrenceCount *int `json:"unthrottled_occurrence_count,omitempty"`

	// Url Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10/errors/515fb9337c1074f6fd000001
	Url *string `json:"url,omitempty"`

	// Users The number of users affected by the Error. If the Error request includes filters, this will be a filtered count.
	//
	// Example: 5
	Users *int `json:"users,omitempty"`
}

ErrorApiView defines model for ErrorApiView.

type ErrorApiViewGroupingReason

type ErrorApiViewGroupingReason string

ErrorApiViewGroupingReason The reason that events were grouped into this error. - `frame-code` - same code location - `frame-inner` - top in-project stackframe - `context-inner` - context - `error_class-inner` - error class - `user_defined` - custom grouping hash - `js-blob` - from blobs (JS only) - `js-tag` - same inline script (JS only) - `js-html` - same page location (JS only) - `js-eval` - originate from eval statements (JS only) - `js-structure` - same point in the code using the structure of the surrounding minified code (JS only) - `js-codebase` - same point in the code using the surrounding minified code (JS only) - `js-location` - similar location (JS only)

Example: frame-inner

const (
	ContextInner    ErrorApiViewGroupingReason = "context-inner"
	ErrorClassInner ErrorApiViewGroupingReason = "error_class-inner"
	FrameCode       ErrorApiViewGroupingReason = "frame-code"
	FrameInner      ErrorApiViewGroupingReason = "frame-inner"
	JsBlob          ErrorApiViewGroupingReason = "js-blob"
	JsCodebase      ErrorApiViewGroupingReason = "js-codebase"
	JsEval          ErrorApiViewGroupingReason = "js-eval"
	JsHtml          ErrorApiViewGroupingReason = "js-html"
	JsLocation      ErrorApiViewGroupingReason = "js-location"
	JsStructure     ErrorApiViewGroupingReason = "js-structure"
	JsTag           ErrorApiViewGroupingReason = "js-tag"
	UserDefined     ErrorApiViewGroupingReason = "user_defined"
)

Defines values for ErrorApiViewGroupingReason.

func (ErrorApiViewGroupingReason) Valid

func (e ErrorApiViewGroupingReason) Valid() bool

Valid indicates whether the value is a known member of the ErrorApiViewGroupingReason enum.

type ErrorBase

type ErrorBase struct {
	// Severity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	Severity *SeverityOptions `json:"severity,omitempty"`
}

ErrorBase defines model for ErrorBase.

type ErrorCreatedIssue

type ErrorCreatedIssue struct {
	// Id The immutable issue id.
	//
	// Example: 1246284
	Id string `json:"id"`

	// Key The issue key (if applicable). For example, in the case of a Jira story, this will be the mutable key (e.g. ENG-10)
	//
	// Example: ENG-10
	Key *string `json:"key,omitempty"`

	// Number The issue number (if applicable). For example, in the case of a github issue with the url `https://github.com/foo/bar/issues/123` this field will be set to `123`.
	//
	// Example: 123
	Number *int `json:"number,omitempty"`

	// Type An identifier for the 3rd party service
	//
	// Example: jira
	Type string `json:"type"`

	// Url The url to the issue on the 3rd party service
	//
	// Example: https://example.atlassian.net/browse/ENG-10
	Url string `json:"url"`
}

ErrorCreatedIssue defines model for ErrorCreatedIssue.

type ErrorIntroducedInRelease

type ErrorIntroducedInRelease struct {
	// BuildLabel The label for the build associated with the Release.
	//
	// Example: 1.2.3
	BuildLabel string `json:"build_label"`

	// ReleaseId The ID of the Release that the Error was seen in for this release stage.
	//
	// Example: 587826d70000000000000005
	ReleaseId string `json:"release_id"`

	// ReleaseStage The name of the release stage that the Error was seen in.
	//
	// Example: production
	ReleaseStage string `json:"release_stage"`
}

ErrorIntroducedInRelease defines model for ErrorIntroducedInRelease.

type ErrorReopenRules

type ErrorReopenRules struct {
	// AdditionalOccurrences for `n_additional_occurrences` reopen rules, the number of additional occurrences allowed before reopening.
	AdditionalOccurrences *int `json:"additional_occurrences,omitempty"`

	// AdditionalUsers for `n_additional_users` reopen rules, the number of additional users to be affected by an Error before the Error is automatically reopened. Value cannot exceed 100,000.
	AdditionalUsers *int `json:"additional_users,omitempty"`

	// Hours for `n_occurrences_in_m_hours` reopen rules, the number of hours.
	Hours *int `json:"hours,omitempty"`

	// OccurrenceThreshold for `n_additional_occurrences` reopen rules, the number of total occurrences at which the Error should be reopened.
	OccurrenceThreshold *int `json:"occurrence_threshold,omitempty"`

	// Occurrences for `n_occurrences_in_m_hours` reopen rules, the number of occurrences to allow in the number of hours indicated by the `hours` field, before the Error is automatically reopened.
	Occurrences *int `json:"occurrences,omitempty"`

	// ReopenAfter for `occurs_after` reopen rules, this field indicates the time after which the Error should be reopened if there is an additional occurrence.
	ReopenAfter *string `json:"reopen_after,omitempty"`

	// ReopenIf Must be one of the following:
	// - `n_additional_occurrences` - Indicates that the Error should be reopened after n more occurrences. In this case, the `occurrence_threshold` field indicates the number of total occurrences at which the Error should be reopened, and the `additional_occurrences` field indicates the number of additional occurrences that were allowed before reopening.
	// - `n_occurrences_in_m_hours` - Indicates that the Error should be reopened after n occurrences over some configurable number of hours. In this case, the `occurrences` and `hours` fields will both be present.
	// - `occurs_after` - Indicates that the error should be reopened if there are any occurrences after the specified time period. The `seconds` field contains the number of seconds that the Error has been snoozed for. In this case, the `seconds` and `reopen_after` fields will both be present.
	// - `n_additional_users` - Reopen the error after `n` more users are affected. In this case, the `additional_users` field must be provided.
	ReopenIf ErrorReopenRulesReopenIf `json:"reopen_if"`

	// Seconds for `occurs_after` reopen rules, the number of seconds that the Error was set to snooze for.
	Seconds *int `json:"seconds,omitempty"`
}

ErrorReopenRules defines model for ErrorReopenRules.

type ErrorReopenRulesReopenIf

type ErrorReopenRulesReopenIf string

ErrorReopenRulesReopenIf Must be one of the following: - `n_additional_occurrences` - Indicates that the Error should be reopened after n more occurrences. In this case, the `occurrence_threshold` field indicates the number of total occurrences at which the Error should be reopened, and the `additional_occurrences` field indicates the number of additional occurrences that were allowed before reopening. - `n_occurrences_in_m_hours` - Indicates that the Error should be reopened after n occurrences over some configurable number of hours. In this case, the `occurrences` and `hours` fields will both be present. - `occurs_after` - Indicates that the error should be reopened if there are any occurrences after the specified time period. The `seconds` field contains the number of seconds that the Error has been snoozed for. In this case, the `seconds` and `reopen_after` fields will both be present. - `n_additional_users` - Reopen the error after `n` more users are affected. In this case, the `additional_users` field must be provided.

const (
	NAdditionalOccurrences ErrorReopenRulesReopenIf = "n_additional_occurrences"
	NAdditionalUsers       ErrorReopenRulesReopenIf = "n_additional_users"
	NOccurrencesInMHours   ErrorReopenRulesReopenIf = "n_occurrences_in_m_hours"
	OccursAfter            ErrorReopenRulesReopenIf = "occurs_after"
)

Defines values for ErrorReopenRulesReopenIf.

func (ErrorReopenRulesReopenIf) Valid

func (e ErrorReopenRulesReopenIf) Valid() bool

Valid indicates whether the value is a known member of the ErrorReopenRulesReopenIf enum.

type ErrorStatus

type ErrorStatus string

ErrorStatus defines model for ErrorStatus.

const (
	Fixed      ErrorStatus = "fixed"
	ForReview  ErrorStatus = "for_review"
	Ignored    ErrorStatus = "ignored"
	InProgress ErrorStatus = "in progress"
	Open       ErrorStatus = "open"
	Snoozed    ErrorStatus = "snoozed"
)

Defines values for ErrorStatus.

func (ErrorStatus) Valid

func (e ErrorStatus) Valid() bool

Valid indicates whether the value is a known member of the ErrorStatus enum.

type EventApiView

type EventApiView struct {
	App *UnderscoreEventApp `json:"app,omitempty"`

	// Breadcrumbs An array of user- and system-initiated events which led up to an error, providing additional context. This list is sequential and ordered newest to oldest.
	Breadcrumbs *[]UnderscoreBreadcrumb `json:"breadcrumbs,omitempty"`

	// Context This refers to the action that was happening when the event occurred.
	//
	// Example: users#show
	Context     *string                     `json:"context,omitempty"`
	Correlation *UnderscoreEventCorrelation `json:"correlation,omitempty"`
	Device      *UnderscoreEventDevice      `json:"device,omitempty"`

	// ErrorId The Error this Event is an occurrence of
	//
	// Example: 515fb9337c1074f6fd000001
	ErrorId *string `json:"error_id,omitempty"`

	// Exceptions An array of exceptions that occurred during this event. Most of the time there will only be one exception, but some languages support "nested" or "caused by" exceptions. The first item in the array represents the outermost exception. Each subsequent item represents the exception that caused the preceding one.
	Exceptions *[]UnderscoreEventException `json:"exceptions,omitempty"`

	// FeatureFlags Feature flags and variants that were active when the event occurred.
	FeatureFlags *[]UnderscoreFeatureFlagSummary `json:"feature_flags,omitempty"`

	// Id Example: 595301a6ae48dd0018aedd61
	Id *string `json:"id,omitempty"`

	// IsFullReport Example: false
	IsFullReport *bool `json:"is_full_report,omitempty"`

	// MetaData Custom metadata passed with the event manually or via the notifier library. The API preserves the original casing and key format as received.
	MetaData *map[string]interface{} `json:"metaData,omitempty"`

	// MissingDsym Whether or not there's a missing dSYM (only included in response if event includes a dsym_uuid).
	MissingDsym *bool `json:"missing_dsym,omitempty"`

	// ProjectUrl Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c10
	ProjectUrl *string `json:"project_url,omitempty"`

	// ReceivedAt The time the [Error Reporting API](https://developer.smartbear.com/bugsnag/docs/reporting-events-and-sessions/) was notified of this Event
	//
	// Example: 2017-04-19T09:16:50.000Z
	ReceivedAt *string                 `json:"received_at,omitempty"`
	Request    *UnderscoreEventRequest `json:"request,omitempty"`

	// Severity - info - can be used in manual Bugsnag.notify calls
	// - warning - the default severity when Bugsnag.notify is called manually
	// - error - the default severity for uncaught exceptions and crashes
	Severity *SeverityOptions `json:"severity,omitempty"`

	// Threads An array of the threads running when this event was reported.
	Threads *[]UnderscoreEventThread `json:"threads,omitempty"`

	// Unhandled Whether or not the event was from an unhandled exception.
	//
	// Example: true
	Unhandled *bool `json:"unhandled,omitempty"`

	// Url The URL for the event
	//
	// Example: https://api.bugsnag.com/projects/74f6fd000001515fb9337c/events/515fb9337c1074f6fd000765
	Url  *string              `json:"url,omitempty"`
	User *UnderscoreEventUser `json:"user,omitempty"`
}

EventApiView defines model for EventApiView.

type EventAppBinaryArch

type EventAppBinaryArch string

EventAppBinaryArch The architecture of the running binary (Android only). - `x86` - x86/i386 (32-bit). - `x86_64` - x86 (64-bit). - `arm32` - armeabi/armeabi-v7a (32-bit). - `arm64` - arm64-v8a (64-bit). - `amd64` - amd64 (64-bit).

Example: x86_64

const (
	Amd64 EventAppBinaryArch = "amd64"
	Arm32 EventAppBinaryArch = "arm32"
	Arm64 EventAppBinaryArch = "arm64"
	X86   EventAppBinaryArch = "x86"
	X8664 EventAppBinaryArch = "x86_64"
)

Defines values for EventAppBinaryArch.

func (EventAppBinaryArch) Valid

func (e EventAppBinaryArch) Valid() bool

Valid indicates whether the value is a known member of the EventAppBinaryArch enum.

type EventField

type EventField struct {
	// Custom Whether the field is a custom event field created by your organization
	//
	// Example: false
	Custom *bool `json:"custom,omitempty"`

	// DisplayId Identifier which is the key to use for filtering by this field
	//
	// Example: user.id
	DisplayId     *string `json:"display_id,omitempty"`
	FilterOptions struct {
		// Aliases Other possible names that match this field when filtering
		//
		// Example: ["user","uid"]
		Aliases *[]string `json:"aliases,omitempty"`

		// Description Description of what the filter is
		//
		// Example: user impacted by an event
		Description *string `json:"description,omitempty"`

		// HintText Hint text to clarify the use of the field for filtering
		//
		// Example: Exact match only
		HintText *string `json:"hint_text,omitempty"`

		// HintUrl Link to Bugsnag documentation about this filter
		//
		// Example: http://docs.bugsnag.com/product/filtering-dashboard#user-id
		HintUrl *string `json:"hint_url,omitempty"`

		// Name Human readable display name for the filter
		//
		// Example: User ID
		Name string `json:"name"`
	} `json:"filter_options"`

	// MatchTypes The valid match types when filtering by this field
	//   - eq - Results must equal the value
	//   - ne - Results must not equal the value
	MatchTypes   *[]EventFieldMatchTypes `json:"match_types,omitempty"`
	PivotOptions PivotOptions            `json:"pivot_options"`

	// ReindexInProgress Whether a reindex of this field is currently in progress (applicable to custom fields only)
	//
	// Example: true
	ReindexInProgress *bool `json:"reindex_in_progress,omitempty"`

	// ReindexPercentage The percentage complete of the reindexing of this field (applicable to custom fields only)
	//
	// Example: 100
	ReindexPercentage *float64 `json:"reindex_percentage,omitempty"`

	// Values Possible values for this filter, only if this filter has a finite set of values
	Values *[]UnderscoreFilterValue `json:"values,omitempty"`
}

EventField defines model for EventField.

type EventFieldMatchTypes

type EventFieldMatchTypes string

EventFieldMatchTypes defines model for EventField.MatchTypes.

const (
	Eq EventFieldMatchTypes = "eq"
	Ne EventFieldMatchTypes = "ne"
)

Defines values for EventFieldMatchTypes.

func (EventFieldMatchTypes) Valid

func (e EventFieldMatchTypes) Valid() bool

Valid indicates whether the value is a known member of the EventFieldMatchTypes enum.

type GenericTimelinePointWithUserSessions

type GenericTimelinePointWithUserSessions struct {
	// BucketEnd The timestamp marking the end of the range for the timeline point.
	//
	// Example: 2019-03-03T00:00:00.000Z
	BucketEnd *string `json:"bucket_end,omitempty"`

	// BucketStart The timestamp marking the beginning of the range for the timeline point.
	//
	// Example: 2019-03-02T00:00:00.000Z
	BucketStart *string `json:"bucket_start,omitempty"`

	// TotalSessionsCount The total number of sessions that occurred within the time range.
	//
	// Example: 10000
	TotalSessionsCount *float32 `json:"total_sessions_count,omitempty"`

	// UnhandledSessionsCount The number of unhandled sessions seen in the time range.
	//
	// Example: 20
	UnhandledSessionsCount *float32 `json:"unhandled_sessions_count,omitempty"`

	// UsersSeen The total number of users sessions that occurred within the time range.
	//
	// Example: 1000
	UsersSeen *float32 `json:"users_seen,omitempty"`

	// UsersWithUnhandled The number of users experiencing an unhandled session seen in the time range.
	//
	// Example: 2
	UsersWithUnhandled *float32 `json:"users_with_unhandled,omitempty"`
}

GenericTimelinePointWithUserSessions defines model for GenericTimelinePointWithUserSessions.

type GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item

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

GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item defines parameters for GetBucketedAndUnbucketedTrendsOnError.

func (GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) AsTrend1

AsTrend1 returns the union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item as a Trend1

func (GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) AsTrend2

AsTrend2 returns the union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item as a Trend2

func (*GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) FromTrend1

FromTrend1 overwrites any union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item as the provided Trend1

func (*GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) FromTrend2

FromTrend2 overwrites any union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item as the provided Trend2

func (GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) MarshalJSON

func (*GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) MergeTrend1

MergeTrend1 performs a merge with any union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item, using the provided Trend1

func (*GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) MergeTrend2

MergeTrend2 performs a merge with any union data inside the GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item, using the provided Trend2

func (*GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item) UnmarshalJSON

type GetBucketedAndUnbucketedTrendsOnErrorParams

type GetBucketedAndUnbucketedTrendsOnErrorParams struct {
	// BucketsCount Number of buckets to group trend data into (max 50)
	BucketsCount *int `form:"buckets_count,omitempty" json:"buckets_count,omitempty"`

	// Resolution The trend data will be grouped so that each bucket spans the given time period
	Resolution *GetBucketedAndUnbucketedTrendsOnErrorParamsResolution `form:"resolution,omitempty" json:"resolution,omitempty"`
}

GetBucketedAndUnbucketedTrendsOnErrorParams defines parameters for GetBucketedAndUnbucketedTrendsOnError.

type GetBucketedAndUnbucketedTrendsOnErrorParamsResolution

type GetBucketedAndUnbucketedTrendsOnErrorParamsResolution string

GetBucketedAndUnbucketedTrendsOnErrorParamsResolution defines parameters for GetBucketedAndUnbucketedTrendsOnError.

func (GetBucketedAndUnbucketedTrendsOnErrorParamsResolution) Valid

Valid indicates whether the value is a known member of the GetBucketedAndUnbucketedTrendsOnErrorParamsResolution enum.

type GetBucketedAndUnbucketedTrendsOnErrorResponse

type GetBucketedAndUnbucketedTrendsOnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]GetBucketedAndUnbucketedTrendsOnError200JSONResponseBody_Item
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseGetBucketedAndUnbucketedTrendsOnErrorResponse

func ParseGetBucketedAndUnbucketedTrendsOnErrorResponse(rsp *http.Response) (*GetBucketedAndUnbucketedTrendsOnErrorResponse, error)

ParseGetBucketedAndUnbucketedTrendsOnErrorResponse parses an HTTP response from a GetBucketedAndUnbucketedTrendsOnErrorWithResponse call

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) GetBody

GetBody returns the raw response body bytes

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) GetJSON400

func (r GetBucketedAndUnbucketedTrendsOnErrorResponse) GetJSON400() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) Status

Status returns HTTPResponse.Status

func (GetBucketedAndUnbucketedTrendsOnErrorResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationProjectsParams

type GetOrganizationProjectsParams struct {
	// Q Search projects with names matching parameter
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Sort Which field to sort the results by
	Sort *GetOrganizationProjectsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Direction Which direction to sort the results by. Defaults to `desc` for all sorts except `favorite`. Defaults to `asc` if sorting by `favorite` (cannot sort `favorite`s `desc`).
	Direction *GetOrganizationProjectsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// PerPage How many results to return per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetOrganizationProjectsParams defines parameters for GetOrganizationProjects.

type GetOrganizationProjectsParamsDirection

type GetOrganizationProjectsParamsDirection string

GetOrganizationProjectsParamsDirection defines parameters for GetOrganizationProjects.

const (
	GetOrganizationProjectsParamsDirectionAsc  GetOrganizationProjectsParamsDirection = "asc"
	GetOrganizationProjectsParamsDirectionDesc GetOrganizationProjectsParamsDirection = "desc"
)

Defines values for GetOrganizationProjectsParamsDirection.

func (GetOrganizationProjectsParamsDirection) Valid

Valid indicates whether the value is a known member of the GetOrganizationProjectsParamsDirection enum.

type GetOrganizationProjectsParamsSort

type GetOrganizationProjectsParamsSort string

GetOrganizationProjectsParamsSort defines parameters for GetOrganizationProjects.

const (
	CreatedAt GetOrganizationProjectsParamsSort = "created_at"
	Favorite  GetOrganizationProjectsParamsSort = "favorite"
	Name      GetOrganizationProjectsParamsSort = "name"
)

Defines values for GetOrganizationProjectsParamsSort.

func (GetOrganizationProjectsParamsSort) Valid

Valid indicates whether the value is a known member of the GetOrganizationProjectsParamsSort enum.

type GetOrganizationProjectsResponse

type GetOrganizationProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ProjectApiView
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetOrganizationProjectsResponse200Headers
}

func ParseGetOrganizationProjectsResponse

func ParseGetOrganizationProjectsResponse(rsp *http.Response) (*GetOrganizationProjectsResponse, error)

ParseGetOrganizationProjectsResponse parses an HTTP response from a GetOrganizationProjectsWithResponse call

func (GetOrganizationProjectsResponse) ContentType

func (r GetOrganizationProjectsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrganizationProjectsResponse) GetBody

func (r GetOrganizationProjectsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrganizationProjectsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrganizationProjectsResponse) GetJSON400

func (r GetOrganizationProjectsResponse) GetJSON400() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetOrganizationProjectsResponse) GetJSON404

func (r GetOrganizationProjectsResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetOrganizationProjectsResponse) Status

Status returns HTTPResponse.Status

func (GetOrganizationProjectsResponse) StatusCode

func (r GetOrganizationProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationProjectsResponse200Headers

type GetOrganizationProjectsResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

GetOrganizationProjectsResponse200Headers the declared response headers of an HTTP 200 response for GetOrganizationProjects

type GetProjectStabilityTrendResponse

type GetProjectStabilityTrendResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectStabilityTrendApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		// Errors Example: ["Project not found","This project does not have a primary release stage"]
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseGetProjectStabilityTrendResponse

func ParseGetProjectStabilityTrendResponse(rsp *http.Response) (*GetProjectStabilityTrendResponse, error)

ParseGetProjectStabilityTrendResponse parses an HTTP response from a GetProjectStabilityTrendWithResponse call

func (GetProjectStabilityTrendResponse) ContentType

func (r GetProjectStabilityTrendResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectStabilityTrendResponse) GetBody

func (r GetProjectStabilityTrendResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectStabilityTrendResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectStabilityTrendResponse) GetJSON404

func (r GetProjectStabilityTrendResponse) GetJSON404() *struct {
	// Errors Example: ["Project not found","This project does not have a primary release stage"]
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectStabilityTrendResponse) Status

Status returns HTTPResponse.Status

func (GetProjectStabilityTrendResponse) StatusCode

func (r GetProjectStabilityTrendResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListCommentsOnErrorParams

type ListCommentsOnErrorParams struct {
	// Sort Comments are only sortable by creation time
	Sort *string `form:"sort,omitempty" json:"sort,omitempty"`

	// Direction Which direction to sort the results by
	Direction *ListCommentsOnErrorParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`

	// PerPage How many results to return per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Offset The pagination offset. This will not typically need to be set manually, as the `link` header will contain the full url to the next page of results.
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

ListCommentsOnErrorParams defines parameters for ListCommentsOnError.

type ListCommentsOnErrorParamsDirection

type ListCommentsOnErrorParamsDirection string

ListCommentsOnErrorParamsDirection defines parameters for ListCommentsOnError.

const (
	ListCommentsOnErrorParamsDirectionAsc  ListCommentsOnErrorParamsDirection = "asc"
	ListCommentsOnErrorParamsDirectionDesc ListCommentsOnErrorParamsDirection = "desc"
)

Defines values for ListCommentsOnErrorParamsDirection.

func (ListCommentsOnErrorParamsDirection) Valid

Valid indicates whether the value is a known member of the ListCommentsOnErrorParamsDirection enum.

type ListCommentsOnErrorResponse

type ListCommentsOnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]CommentApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListCommentsOnErrorResponse200Headers
}

func ParseListCommentsOnErrorResponse

func ParseListCommentsOnErrorResponse(rsp *http.Response) (*ListCommentsOnErrorResponse, error)

ParseListCommentsOnErrorResponse parses an HTTP response from a ListCommentsOnErrorWithResponse call

func (ListCommentsOnErrorResponse) ContentType

func (r ListCommentsOnErrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListCommentsOnErrorResponse) GetBody

func (r ListCommentsOnErrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListCommentsOnErrorResponse) GetJSON200

func (r ListCommentsOnErrorResponse) GetJSON200() *[]CommentApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListCommentsOnErrorResponse) GetJSON404

func (r ListCommentsOnErrorResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListCommentsOnErrorResponse) Status

Status returns HTTPResponse.Status

func (ListCommentsOnErrorResponse) StatusCode

func (r ListCommentsOnErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCommentsOnErrorResponse200Headers

type ListCommentsOnErrorResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListCommentsOnErrorResponse200Headers the declared response headers of an HTTP 200 response for ListCommentsOnError

type ListEventsOnErrorParams

type ListEventsOnErrorParams struct {
	Base        *time.Time                        `form:"base,omitempty" json:"base,omitempty"`
	Sort        *ListEventsOnErrorParamsSort      `form:"sort,omitempty" json:"sort,omitempty"`
	Direction   *ListEventsOnErrorParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
	PerPage     *int                              `form:"per_page,omitempty" json:"per_page,omitempty"`
	FullReports *bool                             `form:"full_reports,omitempty" json:"full_reports,omitempty"`
}

ListEventsOnErrorParams defines parameters for ListEventsOnError.

type ListEventsOnErrorParamsDirection

type ListEventsOnErrorParamsDirection string

ListEventsOnErrorParamsDirection defines parameters for ListEventsOnError.

const (
	ListEventsOnErrorParamsDirectionAsc  ListEventsOnErrorParamsDirection = "asc"
	ListEventsOnErrorParamsDirectionDesc ListEventsOnErrorParamsDirection = "desc"
)

Defines values for ListEventsOnErrorParamsDirection.

func (ListEventsOnErrorParamsDirection) Valid

Valid indicates whether the value is a known member of the ListEventsOnErrorParamsDirection enum.

type ListEventsOnErrorParamsSort

type ListEventsOnErrorParamsSort string

ListEventsOnErrorParamsSort defines parameters for ListEventsOnError.

const (
	ListEventsOnErrorParamsSortTimestamp ListEventsOnErrorParamsSort = "timestamp"
)

Defines values for ListEventsOnErrorParamsSort.

func (ListEventsOnErrorParamsSort) Valid

Valid indicates whether the value is a known member of the ListEventsOnErrorParamsSort enum.

type ListEventsOnErrorResponse

type ListEventsOnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ElasticSearchEventApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListEventsOnErrorResponse200Headers
}

func ParseListEventsOnErrorResponse

func ParseListEventsOnErrorResponse(rsp *http.Response) (*ListEventsOnErrorResponse, error)

ParseListEventsOnErrorResponse parses an HTTP response from a ListEventsOnErrorWithResponse call

func (ListEventsOnErrorResponse) ContentType

func (r ListEventsOnErrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEventsOnErrorResponse) GetBody

func (r ListEventsOnErrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListEventsOnErrorResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListEventsOnErrorResponse) GetJSON404

func (r ListEventsOnErrorResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListEventsOnErrorResponse) Status

func (r ListEventsOnErrorResponse) Status() string

Status returns HTTPResponse.Status

func (ListEventsOnErrorResponse) StatusCode

func (r ListEventsOnErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEventsOnErrorResponse200Headers

type ListEventsOnErrorResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListEventsOnErrorResponse200Headers the declared response headers of an HTTP 200 response for ListEventsOnError

type ListEventsOnProjectParams

type ListEventsOnProjectParams struct {
	Base        *time.Time                          `form:"base,omitempty" json:"base,omitempty"`
	Sort        *ListEventsOnProjectParamsSort      `form:"sort,omitempty" json:"sort,omitempty"`
	Direction   *ListEventsOnProjectParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
	PerPage     *int                                `form:"per_page,omitempty" json:"per_page,omitempty"`
	FullReports *bool                               `form:"full_reports,omitempty" json:"full_reports,omitempty"`
}

ListEventsOnProjectParams defines parameters for ListEventsOnProject.

type ListEventsOnProjectParamsDirection

type ListEventsOnProjectParamsDirection string

ListEventsOnProjectParamsDirection defines parameters for ListEventsOnProject.

const (
	ListEventsOnProjectParamsDirectionAsc  ListEventsOnProjectParamsDirection = "asc"
	ListEventsOnProjectParamsDirectionDesc ListEventsOnProjectParamsDirection = "desc"
)

Defines values for ListEventsOnProjectParamsDirection.

func (ListEventsOnProjectParamsDirection) Valid

Valid indicates whether the value is a known member of the ListEventsOnProjectParamsDirection enum.

type ListEventsOnProjectParamsSort

type ListEventsOnProjectParamsSort string

ListEventsOnProjectParamsSort defines parameters for ListEventsOnProject.

const (
	ListEventsOnProjectParamsSortTimestamp ListEventsOnProjectParamsSort = "timestamp"
)

Defines values for ListEventsOnProjectParamsSort.

func (ListEventsOnProjectParamsSort) Valid

Valid indicates whether the value is a known member of the ListEventsOnProjectParamsSort enum.

type ListEventsOnProjectResponse

type ListEventsOnProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ElasticSearchEventApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListEventsOnProjectResponse200Headers
}

func ParseListEventsOnProjectResponse

func ParseListEventsOnProjectResponse(rsp *http.Response) (*ListEventsOnProjectResponse, error)

ParseListEventsOnProjectResponse parses an HTTP response from a ListEventsOnProjectWithResponse call

func (ListEventsOnProjectResponse) ContentType

func (r ListEventsOnProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListEventsOnProjectResponse) GetBody

func (r ListEventsOnProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListEventsOnProjectResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListEventsOnProjectResponse) GetJSON404

func (r ListEventsOnProjectResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListEventsOnProjectResponse) Status

Status returns HTTPResponse.Status

func (ListEventsOnProjectResponse) StatusCode

func (r ListEventsOnProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEventsOnProjectResponse200Headers

type ListEventsOnProjectResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListEventsOnProjectResponse200Headers the declared response headers of an HTTP 200 response for ListEventsOnProject

type ListPivotsOnAnErrorParams

type ListPivotsOnAnErrorParams struct {
	SummarySize *int      `form:"summary_size,omitempty" json:"summary_size,omitempty"`
	Pivots      *[]string `form:"pivots,omitempty" json:"pivots,omitempty"`
	PerPage     *int      `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListPivotsOnAnErrorParams defines parameters for ListPivotsOnAnError.

type ListPivotsOnAnErrorResponse

type ListPivotsOnAnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]PivotApiView
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPivotsOnAnErrorResponse200Headers
}

func ParseListPivotsOnAnErrorResponse

func ParseListPivotsOnAnErrorResponse(rsp *http.Response) (*ListPivotsOnAnErrorResponse, error)

ParseListPivotsOnAnErrorResponse parses an HTTP response from a ListPivotsOnAnErrorWithResponse call

func (ListPivotsOnAnErrorResponse) ContentType

func (r ListPivotsOnAnErrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPivotsOnAnErrorResponse) GetBody

func (r ListPivotsOnAnErrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPivotsOnAnErrorResponse) GetJSON200

func (r ListPivotsOnAnErrorResponse) GetJSON200() *[]PivotApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPivotsOnAnErrorResponse) GetJSON400

func (r ListPivotsOnAnErrorResponse) GetJSON400() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListPivotsOnAnErrorResponse) GetJSON404

func (r ListPivotsOnAnErrorResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListPivotsOnAnErrorResponse) Status

Status returns HTTPResponse.Status

func (ListPivotsOnAnErrorResponse) StatusCode

func (r ListPivotsOnAnErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPivotsOnAnErrorResponse200Headers

type ListPivotsOnAnErrorResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListPivotsOnAnErrorResponse200Headers the declared response headers of an HTTP 200 response for ListPivotsOnAnError

type ListProjectErrorsParams

type ListProjectErrorsParams struct {
	Base      *time.Time                        `form:"base,omitempty" json:"base,omitempty"`
	Sort      *ListProjectErrorsParamsSort      `form:"sort,omitempty" json:"sort,omitempty"`
	Direction *ListProjectErrorsParamsDirection `form:"direction,omitempty" json:"direction,omitempty"`
	PerPage   *int                              `form:"per_page,omitempty" json:"per_page,omitempty"`

	// Histogram The type of histogram to include in the response. Only specific values are accepted. When provided, adds trend data to each error in the response.
	Histogram *ListProjectErrorsParamsHistogram `form:"histogram,omitempty" json:"histogram,omitempty"`
}

ListProjectErrorsParams defines parameters for ListProjectErrors.

type ListProjectErrorsParamsDirection

type ListProjectErrorsParamsDirection string

ListProjectErrorsParamsDirection defines parameters for ListProjectErrors.

const (
	ListProjectErrorsParamsDirectionAsc  ListProjectErrorsParamsDirection = "asc"
	ListProjectErrorsParamsDirectionDesc ListProjectErrorsParamsDirection = "desc"
)

Defines values for ListProjectErrorsParamsDirection.

func (ListProjectErrorsParamsDirection) Valid

Valid indicates whether the value is a known member of the ListProjectErrorsParamsDirection enum.

type ListProjectErrorsParamsHistogram

type ListProjectErrorsParamsHistogram string

ListProjectErrorsParamsHistogram defines parameters for ListProjectErrors.

const (
	Dynamic ListProjectErrorsParamsHistogram = "dynamic"
	TwoWeek ListProjectErrorsParamsHistogram = "two_week"
)

Defines values for ListProjectErrorsParamsHistogram.

func (ListProjectErrorsParamsHistogram) Valid

Valid indicates whether the value is a known member of the ListProjectErrorsParamsHistogram enum.

type ListProjectErrorsParamsSort

type ListProjectErrorsParamsSort string

ListProjectErrorsParamsSort defines parameters for ListProjectErrors.

const (
	Events    ListProjectErrorsParamsSort = "events"
	FirstSeen ListProjectErrorsParamsSort = "first_seen"
	LastSeen  ListProjectErrorsParamsSort = "last_seen"
	Unsorted  ListProjectErrorsParamsSort = "unsorted"
	Users     ListProjectErrorsParamsSort = "users"
)

Defines values for ListProjectErrorsParamsSort.

func (ListProjectErrorsParamsSort) Valid

Valid indicates whether the value is a known member of the ListProjectErrorsParamsSort enum.

type ListProjectErrorsResponse

type ListProjectErrorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ErrorApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *struct {
		Code   *int      `json:"code,omitempty"`
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListProjectErrorsResponse200Headers
}

func ParseListProjectErrorsResponse

func ParseListProjectErrorsResponse(rsp *http.Response) (*ListProjectErrorsResponse, error)

ParseListProjectErrorsResponse parses an HTTP response from a ListProjectErrorsWithResponse call

func (ListProjectErrorsResponse) ContentType

func (r ListProjectErrorsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectErrorsResponse) GetBody

func (r ListProjectErrorsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectErrorsResponse) GetJSON200

func (r ListProjectErrorsResponse) GetJSON200() *[]ErrorApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectErrorsResponse) GetJSON404

func (r ListProjectErrorsResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListProjectErrorsResponse) GetJSON422

func (r ListProjectErrorsResponse) GetJSON422() *struct {
	Code   *int      `json:"code,omitempty"`
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListProjectErrorsResponse) Status

func (r ListProjectErrorsResponse) Status() string

Status returns HTTPResponse.Status

func (ListProjectErrorsResponse) StatusCode

func (r ListProjectErrorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectErrorsResponse200Headers

type ListProjectErrorsResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListProjectErrorsResponse200Headers the declared response headers of an HTTP 200 response for ListProjectErrors

type ListProjectEventFieldsResponse

type ListProjectEventFieldsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]EventField
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseListProjectEventFieldsResponse

func ParseListProjectEventFieldsResponse(rsp *http.Response) (*ListProjectEventFieldsResponse, error)

ParseListProjectEventFieldsResponse parses an HTTP response from a ListProjectEventFieldsWithResponse call

func (ListProjectEventFieldsResponse) ContentType

func (r ListProjectEventFieldsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectEventFieldsResponse) GetBody

func (r ListProjectEventFieldsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectEventFieldsResponse) GetJSON200

func (r ListProjectEventFieldsResponse) GetJSON200() *[]EventField

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectEventFieldsResponse) GetJSON404

func (r ListProjectEventFieldsResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListProjectEventFieldsResponse) Status

Status returns HTTPResponse.Status

func (ListProjectEventFieldsResponse) StatusCode

func (r ListProjectEventFieldsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectReleasesParams

type ListProjectReleasesParams struct {
	// ReleaseStage release stage to filter by
	ReleaseStage *string `form:"release_stage,omitempty" json:"release_stage,omitempty"`

	// Base date and time (in ISO 8601 format) to search for releases before
	Base *string `form:"base,omitempty" json:"base,omitempty"`

	// Sort How to sort the results
	Sort *ListProjectReleasesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Offset The pagination offset
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`

	// PerPage How many results (between 1 and 10) to return per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListProjectReleasesParams defines parameters for ListProjectReleases.

type ListProjectReleasesParamsSort

type ListProjectReleasesParamsSort string

ListProjectReleasesParamsSort defines parameters for ListProjectReleases.

const (
	ListProjectReleasesParamsSortPercentOfSessions ListProjectReleasesParamsSort = "percent_of_sessions"
	ListProjectReleasesParamsSortTimestamp         ListProjectReleasesParamsSort = "timestamp"
)

Defines values for ListProjectReleasesParamsSort.

func (ListProjectReleasesParamsSort) Valid

Valid indicates whether the value is a known member of the ListProjectReleasesParamsSort enum.

type ListProjectReleasesResponse

type ListProjectReleasesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]ReleaseApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ProjectNotFound
}

func ParseListProjectReleasesResponse

func ParseListProjectReleasesResponse(rsp *http.Response) (*ListProjectReleasesResponse, error)

ParseListProjectReleasesResponse parses an HTTP response from a ListProjectReleasesWithResponse call

func (ListProjectReleasesResponse) ContentType

func (r ListProjectReleasesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectReleasesResponse) GetBody

func (r ListProjectReleasesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectReleasesResponse) GetJSON200

func (r ListProjectReleasesResponse) GetJSON200() *[]ReleaseApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectReleasesResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListProjectReleasesResponse) Status

Status returns HTTPResponse.Status

func (ListProjectReleasesResponse) StatusCode

func (r ListProjectReleasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserOrganizationsParams

type ListUserOrganizationsParams struct {
	// Admin `true` if only Organizations the Current User is an admin of should be returned
	Admin *bool `form:"admin,omitempty" json:"admin,omitempty"`

	// PerPage Number of results per page
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

ListUserOrganizationsParams defines parameters for ListUserOrganizations.

type ListUserOrganizationsResponse

type ListUserOrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *[]OrganizationApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListUserOrganizationsResponse200Headers
}

func ParseListUserOrganizationsResponse

func ParseListUserOrganizationsResponse(rsp *http.Response) (*ListUserOrganizationsResponse, error)

ParseListUserOrganizationsResponse parses an HTTP response from a ListUserOrganizationsWithResponse call

func (ListUserOrganizationsResponse) ContentType

func (r ListUserOrganizationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUserOrganizationsResponse) GetBody

func (r ListUserOrganizationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUserOrganizationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUserOrganizationsResponse) GetJSON404

func (r ListUserOrganizationsResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListUserOrganizationsResponse) Status

Status returns HTTPResponse.Status

func (ListUserOrganizationsResponse) StatusCode

func (r ListUserOrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserOrganizationsResponse200Headers

type ListUserOrganizationsResponse200Headers struct {
	Link        *string
	XTotalCount *int
}

ListUserOrganizationsResponse200Headers the declared response headers of an HTTP 200 response for ListUserOrganizations

type OrganizationApiView

type OrganizationApiView struct {
	// ApiKey The notifier API used to send traces to this organization.
	//
	// Example: ac21b75c8b74c472cbdb74d6fcd475660d
	ApiKey *string `json:"api_key,omitempty"`

	// AutoUpgrade whether we should upgrade your plan in response to the organization reaching its plan limit of events. If this value is `false` your events will be throttled when you reach your plan limit.
	//
	// Example: true
	AutoUpgrade bool `json:"auto_upgrade"`

	// BillingEmails Example: ["emily@example.com"]
	BillingEmails *[]string `json:"billing_emails,omitempty"`

	// CollaboratorsUrl API URL for the Organization's Collaborators.
	//
	// Example: https://api.bugsnag.com/organizations/515fb9337c1074f6fd000007/collaborators
	CollaboratorsUrl *string `json:"collaborators_url,omitempty"`

	// CreatedAt Example: 2017-04-24T22:17:13.000Z
	CreatedAt time.Time `json:"created_at"`
	Creator   *struct {
		// Email Example: emily@example.com
		Email *string `json:"email,omitempty"`

		// Id Example: 58c9b9b09ef17217f1fb8b30
		Id *string `json:"id,omitempty"`

		// Name Example: James Smith
		Name *string `json:"name,omitempty"`
	} `json:"creator,omitempty"`

	// Id Example: 515fb9337c1074f6fd000007
	Id string `json:"id"`

	// ManagedByPlatformServices Whether the organization is managed by SmartBear Platform Services.
	//
	// Example: false
	ManagedByPlatformServices bool `json:"managed_by_platform_services"`

	// Name Example: Acme Co.
	Name string `json:"name"`

	// ProjectsUrl API URL for the Organization's Projects.
	//
	// Example: https://api.bugsnag.com/organizations/515fb9337c1074f6fd000007/projects
	ProjectsUrl *string `json:"projects_url,omitempty"`

	// Slug Example: acme-co
	Slug string `json:"slug"`

	// UpdatedAt Example: 2017-04-24T22:17:13.000Z
	UpdatedAt time.Time `json:"updated_at"`

	// UpgradeUrl Example: http://app.bugsnag.com/settings/acme-co/plans-billing/select-plan
	UpgradeUrl *string `json:"upgrade_url,omitempty"`
}

OrganizationApiView defines model for OrganizationApiView.

type OrganizationBase

type OrganizationBase struct {
	// AutoUpgrade whether we should upgrade your plan in response to the organization reaching its plan limit of events. If this value is `false` your events will be throttled when you reach your plan limit.
	//
	// Example: true
	AutoUpgrade bool `json:"auto_upgrade"`

	// BillingEmails Example: ["emily@example.com"]
	BillingEmails *[]string `json:"billing_emails,omitempty"`

	// Name Example: Acme Co.
	Name string `json:"name"`
}

OrganizationBase defines model for OrganizationBase.

type PerformanceDisplayType

type PerformanceDisplayType string

PerformanceDisplayType defines model for PerformanceDisplayType.

const (
	PerformanceDisplayTypeJs                PerformanceDisplayType = "js"
	PerformanceDisplayTypeMobile            PerformanceDisplayType = "mobile"
	PerformanceDisplayTypeServer            PerformanceDisplayType = "server"
	PerformanceDisplayTypeUnsupported       PerformanceDisplayType = "unsupported"
	PerformanceDisplayTypeWebserverBackend  PerformanceDisplayType = "webserver_backend"
	PerformanceDisplayTypeWebserverFrontend PerformanceDisplayType = "webserver_frontend"
	PerformanceDisplayTypeWebserverMixed    PerformanceDisplayType = "webserver_mixed"
)

Defines values for PerformanceDisplayType.

func (PerformanceDisplayType) Valid

func (e PerformanceDisplayType) Valid() bool

Valid indicates whether the value is a known member of the PerformanceDisplayType enum.

type PivotApiView

type PivotApiView struct {
	// Average The average value for the given Event Field. Applicable to some Event Fields. This will be null if there is no average value (if there are no values to be averaged).
	//
	// Example: 1000
	Average *float64 `json:"average,omitempty"`

	// Cardinality how many unique values of the given Event Field are present in the Events matching the provided Filters. For example, in the case of the `app.release_stage` Pivot, if the Events matching the provided Filters occurred only in production and staging, then the cardinality would be 2.  Applicable to some Event Fields.
	//
	// Example: 2
	Cardinality *int `json:"cardinality,omitempty"`

	// EventFieldDisplayId the ID of the Event Field that this Pivot describes
	//
	// Example: app.release_stage
	EventFieldDisplayId string `json:"event_field_display_id"`

	// List A list of the values of the Event Field which have had the most occurrences. The data in this list along with the `no_value` and `other` properties will account for all of the occurrences of the Event that match the Filters.
	List *[]struct {
		// Events The number of Events that matched the provided Filters that had this value for the given Event Field
		//
		// Example: 34
		Events *int `json:"events,omitempty"`

		// Value A particular value for the given Event Field
		//
		// Example: production
		Value *string `json:"value,omitempty"`
	} `json:"list,omitempty"`

	// Name Example: Release Stages
	Name string `json:"name"`

	// NoValue The number of Events that matched the provided Filters that had no value for the given Event Field
	//
	// Example: 0
	NoValue *int `json:"no_value,omitempty"`

	// Other The number of Events that matched the provided Filters that had a value for the given Event Field other than those described in `list`
	//
	// Example: 0
	Other *int `json:"other,omitempty"`

	// Summary A summary of the top values for this Pivot. Applicable to some Event Fields.
	Summary interface{} `json:"summary,omitempty"`
}

PivotApiView defines model for PivotApiView.

type PivotOptions

type PivotOptions struct {
	// Average Whether an average value of this field is calculated
	//
	// Example: false
	Average *bool `json:"average,omitempty"`

	// Cardinality Whether the unique values of this field are calculated
	//
	// Example: true
	Cardinality *bool `json:"cardinality,omitempty"`

	// Fields Additional fields that are displayed in the pivot tab, for example the users pivot displays user name and email in addition to ID.
	Fields *[]UnderscoreFilterValue `json:"fields,omitempty"`

	// Name Human readable display name of the pivot.
	//
	// Example: Errors
	Name *string `json:"name,omitempty"`

	// Summary Whether this field is displayed in the error summary section of the dashboard
	//
	// Example: false
	Summary *bool `json:"summary,omitempty"`

	// Values Whether this field is displayed as a pivot tab in the dashboard
	//
	// Example: true
	Values *bool `json:"values,omitempty"`
}

PivotOptions defines model for PivotOptions.

type ProjectApiView

type ProjectApiView struct {
	// ApiKey the notifier API key used to configure the [notifier
	// library](https://docs.bugsnag.com/platforms/) being used to report errors in
	// the project
	//
	//
	// Example: deadbeef1234deadbeef1234deadbeef
	ApiKey *string `json:"api_key,omitempty"`

	// CollaboratorsCount The number of collaborators with access to the Project.
	//
	//
	// Example: 15
	CollaboratorsCount *int `json:"collaborators_count,omitempty"`

	// CreatedAt The time of the Project's creation.
	//
	//
	// Example: 2017-03-02T05:55:55.555Z
	CreatedAt         *string          `json:"created_at,omitempty"`
	CriticalStability *StabilityTarget `json:"critical_stability,omitempty"`

	// CustomEventFieldsUsed The count of how many [Custom Filters](https://docs.bugsnag.com/product/custom-filters/) have been created for the Project.
	//
	//
	// Example: 5
	CustomEventFieldsUsed *int `json:"custom_event_fields_used,omitempty"`

	// DiscardedAppVersions A list of app versions whose events will be [discarded](https://docs.bugsnag.com/product/event-usage/#discard-by-app-version) if received for the Project. Supports [regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Special_characters_meaning_in_regular_expressions) and [semver ranges](https://github.com/npm/node-semver#ranges). Errors matching these versions won't be processed by Bugsnag, and you won't receive notifications about them.
	DiscardedAppVersions *[]interface{} `json:"discarded_app_versions,omitempty"`

	// DiscardedErrors A list of Error classes whose events will be [discarded](https://docs.bugsnag.com/product/event-usage/#discard-by-error-class) if received for the Project. Errors with these classes won't be processed by Bugsnag, and you won't receive notifications about them.
	DiscardedErrors *[]interface{} `json:"discarded_errors,omitempty"`

	// EcmascriptParseVersion The details of the ECMAScript version used to parse JavaScript events. Only present for Browser JavaScript Projects.
	EcmascriptParseVersion *map[string]interface{} `json:"ecmascript_parse_version,omitempty"`

	// ErrorsUrl The API URL for the Project's Errors.
	//
	//
	// Example: https://api.bugsnag.com/projects/515fb9337c1074f6fd000003/errors
	ErrorsUrl *string `json:"errors_url,omitempty"`

	// EventsUrl The API URL for the Project's Events.
	//
	//
	// Example: https://api.bugsnag.com/projects/515fb9337c1074f6fd000003/events
	EventsUrl *string `json:"events_url,omitempty"`

	// ForReviewErrorCount The number of errors for review the Project has. Considers all events currently stored
	// for the Project.
	//
	//
	// Example: 5
	ForReviewErrorCount *int `json:"for_review_error_count,omitempty"`

	// GlobalGrouping A list of error classes. Events with these classes will be grouped by their
	// class, regardless of the location that they occur in the Project's source
	// code. Altering a Project's `global_grouping` will not cause existing errors
	// to be regrouped.
	//
	// Note: In the UI this is referred to as grouping by error class.
	//
	// Example:
	//
	// “`
	// ["foo", "bar"]
	// “`
	GlobalGrouping *[]interface{} `json:"global_grouping,omitempty"`

	// HtmlUrl The dashboard URL for the project.
	//
	//
	// Example: https://app.bugsnag.com/example-account/example-project
	HtmlUrl *string `json:"html_url,omitempty"`

	// Id Example: 515fb9337c1074f6fd000003
	Id *string `json:"id,omitempty"`

	// IgnoreOldBrowsers Whether the Events in the Project will be ignored if they originate from
	// old web browsers.
	//
	// Relevant to JavaScript Projects only.
	//
	//
	// Example: true
	IgnoreOldBrowsers *bool `json:"ignore_old_browsers,omitempty"`

	// IgnoredBrowserVersions Relevant to JavaScript Projects only.
	//
	// A mapping a of browser name to browser version. If set, Events in the
	// Project will be ignored if they originate from a browser specified here
	// whose version is earlier than the given version.
	//
	// Keys must be one of the following strings: chrome, ie, firefox, safari, android, uc, opera, opera_mini, samsung, blackberry, sogou, other.
	//
	// Values must be a number indicating which which version to ignore up to (but not including), or one of the strings: `ignore_all`, `ignore_none`
	//
	// Example:
	//
	// “`
	// {
	// "chrome": "ignore_none",
	// "safari": 6,
	// "other": "ignore_all"
	// }
	// “`
	IgnoredBrowserVersions *map[string]interface{} `json:"ignored_browser_versions,omitempty"`

	// IsFullView Always true for this endpoint. Used to differentiate between terse and complete project
	// representations.
	//
	//
	// Example: true
	IsFullView *bool `json:"is_full_view,omitempty"`

	// Language The Project's programming language as derived from the framework represented in the `type` field
	//
	//
	// Example: ruby
	Language *string `json:"language,omitempty"`

	// LocationGrouping A list of error classes. Events with these classes will be grouped by their
	// `context`. Altering a Project's `location_grouping` will not cause existing errors
	// to be regrouped.
	//
	// Note: In the UI this is referred to as grouping by error context.
	LocationGrouping *[]interface{} `json:"location_grouping,omitempty"`

	// MustUseUploadApiKey whether upload requests must use the upload_api_key for authentication.
	// If true, the regular api_key will not be accepted for upload endpoints.
	//
	//
	// Example: false
	MustUseUploadApiKey *bool `json:"must_use_upload_api_key,omitempty"`

	// Name Example: Example Project
	Name *string `json:"name,omitempty"`

	// OpenErrorCount The number of open errors the Project has. Considers all events currently stored
	// for the Project.
	//
	//
	// Example: 10
	OpenErrorCount *int `json:"open_error_count,omitempty"`

	// OrganizationId Example: 515fb9337c1074f6fd000007
	OrganizationId         *string                 `json:"organization_id,omitempty"`
	PerformanceDisplayType *PerformanceDisplayType `json:"performance_display_type,omitempty"`

	// ReleaseStages The release stages for which this project has received events.
	// This will be an array of strings whose values will depend on your Project.
	ReleaseStages *[]interface{} `json:"release_stages,omitempty"`

	// ResolveOnDeploy If true, every error in the Project will be marked as 'fixed' after using the Deploy Tracking API to notify Bugsnag of a new production deploy.
	//
	// Applies to non-JavaScript Projects only.
	//
	//
	// Example: true
	ResolveOnDeploy *bool `json:"resolve_on_deploy,omitempty"`

	// Slug unique, human-readable identifier that can be used in place of `id` in URLs
	//
	//
	// Example: example-project
	Slug *string `json:"slug,omitempty"`

	// StabilityTargetType Whether the project should use stability targets based on sessions or users. Values are `user` or `session`.
	//
	//
	// Example: session
	StabilityTargetType *string          `json:"stability_target_type,omitempty"`
	TargetStability     *StabilityTarget `json:"target_stability,omitempty"`

	// TeamsCount The number of teams with access to the Project.
	//
	//
	// Example: 5
	TeamsCount *int `json:"teams_count,omitempty"`

	// Type used for Projects that use a framework other than those listed above
	Type *ProjectType `json:"type,omitempty"`

	// UpdatedAt The time the Project was last modified.
	//
	//
	// Example: 2017-03-03T05:55:55.555Z
	UpdatedAt *string `json:"updated_at,omitempty"`

	// UploadApiKey the upload API key used to authenticate file upload requests (source maps, proguard files, etc.).
	// If null, the project does not have a separate upload API key configured.
	//
	//
	// Example: cafe1234cafe1234cafe1234cafe1234
	UploadApiKey *string `json:"upload_api_key,omitempty"`

	// Url The API URL for the Project.
	//
	//
	// Example: https://api.bugsnag.com/projects/515fb9337c1074f6fd000003
	Url *string `json:"url,omitempty"`

	// UrlWhitelist When configured, the script source of each error's innermost stack trace's top frame is checked. If the script was not served from a matching domain the error will not be processed by BugSnag and will be discarded.
	//
	// Provide a list of newline separated domain names. To match example.com and its subdomains specify *.example.com.
	//
	// Relevant to JavaScript Projects only.
	UrlWhitelist *[]interface{} `json:"url_whitelist,omitempty"`
}

ProjectApiView defines model for ProjectApiView.

type ProjectBase

type ProjectBase struct {
	// DiscardedAppVersions A list of app versions whose events will be [discarded](https://docs.bugsnag.com/product/event-usage/#discard-by-app-version) if received for the Project. Supports [regular expressions](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/RegExp#Special_characters_meaning_in_regular_expressions) and [semver ranges](https://github.com/npm/node-semver#ranges). Errors matching these versions won't be processed by Bugsnag, and you won't receive notifications about them.
	DiscardedAppVersions *[]interface{} `json:"discarded_app_versions,omitempty"`

	// DiscardedErrors A list of Error classes whose events will be [discarded](https://docs.bugsnag.com/product/event-usage/#discard-by-error-class) if received for the Project. Errors with these classes won't be processed by Bugsnag, and you won't receive notifications about them.
	DiscardedErrors *[]interface{} `json:"discarded_errors,omitempty"`

	// GlobalGrouping A list of error classes. Events with these classes will be grouped by their
	// class, regardless of the location that they occur in the Project's source
	// code. Altering a Project's `global_grouping` will not cause existing errors
	// to be regrouped.
	//
	// Note: In the UI this is referred to as grouping by error class.
	//
	// Example:
	//
	// “`
	// ["foo", "bar"]
	// “`
	GlobalGrouping *[]interface{} `json:"global_grouping,omitempty"`

	// IgnoreOldBrowsers Whether the Events in the Project will be ignored if they originate from
	// old web browsers.
	//
	// Relevant to JavaScript Projects only.
	//
	//
	// Example: true
	IgnoreOldBrowsers *bool `json:"ignore_old_browsers,omitempty"`

	// IgnoredBrowserVersions Relevant to JavaScript Projects only.
	//
	// A mapping a of browser name to browser version. If set, Events in the
	// Project will be ignored if they originate from a browser specified here
	// whose version is earlier than the given version.
	//
	// Keys must be one of the following strings: chrome, ie, firefox, safari, android, uc, opera, opera_mini, samsung, blackberry, sogou, other.
	//
	// Values must be a number indicating which which version to ignore up to (but not including), or one of the strings: `ignore_all`, `ignore_none`
	//
	// Example:
	//
	// “`
	// {
	// "chrome": "ignore_none",
	// "safari": 6,
	// "other": "ignore_all"
	// }
	// “`
	IgnoredBrowserVersions *map[string]interface{} `json:"ignored_browser_versions,omitempty"`

	// LocationGrouping A list of error classes. Events with these classes will be grouped by their
	// `context`. Altering a Project's `location_grouping` will not cause existing errors
	// to be regrouped.
	//
	// Note: In the UI this is referred to as grouping by error context.
	LocationGrouping *[]interface{} `json:"location_grouping,omitempty"`

	// Name Example: Example Project
	Name *string `json:"name,omitempty"`

	// ResolveOnDeploy If true, every error in the Project will be marked as 'fixed' after using the Deploy Tracking API to notify Bugsnag of a new production deploy.
	//
	// Applies to non-JavaScript Projects only.
	//
	//
	// Example: true
	ResolveOnDeploy *bool `json:"resolve_on_deploy,omitempty"`

	// UrlWhitelist When configured, the script source of each error's innermost stack trace's top frame is checked. If the script was not served from a matching domain the error will not be processed by BugSnag and will be discarded.
	//
	// Provide a list of newline separated domain names. To match example.com and its subdomains specify *.example.com.
	//
	// Relevant to JavaScript Projects only.
	UrlWhitelist *[]interface{} `json:"url_whitelist,omitempty"`
}

ProjectBase defines model for ProjectBase.

type ProjectNotFound

type ProjectNotFound struct {
	// Errors Example: ["Project not found"]
	Errors *[]string `json:"errors,omitempty"`
}

ProjectNotFound defines model for project_not_found.

type ProjectStabilityTrendApiView

type ProjectStabilityTrendApiView struct {
	// ProjectId Example: 515fb9337c1074f6fd000001
	ProjectId *string `json:"project_id,omitempty"`

	// ReleaseStageName The name of the primary release stage for the given project.
	//
	// Example: production
	ReleaseStageName *string `json:"release_stage_name,omitempty"`

	// TimelinePoints Unhandled session information for each UTC day in the last 30 days.
	TimelinePoints *[]GenericTimelinePointWithUserSessions `json:"timeline_points,omitempty"`
}

ProjectStabilityTrendApiView defines model for ProjectStabilityTrendApiView.

type ProjectType

type ProjectType string

ProjectType used for Projects that use a framework other than those listed above

const (
	ProjectTypeAndroid        ProjectType = "android"
	ProjectTypeAngular        ProjectType = "angular"
	ProjectTypeAsgi           ProjectType = "asgi"
	ProjectTypeAspnet         ProjectType = "aspnet"
	ProjectTypeAspnetCore     ProjectType = "aspnet_core"
	ProjectTypeBackbone       ProjectType = "backbone"
	ProjectTypeBottle         ProjectType = "bottle"
	ProjectTypeCocos2dx       ProjectType = "cocos2dx"
	ProjectTypeConnect        ProjectType = "connect"
	ProjectTypeDjango         ProjectType = "django"
	ProjectTypeDotnet         ProjectType = "dotnet"
	ProjectTypeDotnetDesktop  ProjectType = "dotnet_desktop"
	ProjectTypeDotnetMvc      ProjectType = "dotnet_mvc"
	ProjectTypeElectron       ProjectType = "electron"
	ProjectTypeEmber          ProjectType = "ember"
	ProjectTypeEventmachine   ProjectType = "eventmachine"
	ProjectTypeExpo           ProjectType = "expo"
	ProjectTypeExpress        ProjectType = "express"
	ProjectTypeFlask          ProjectType = "flask"
	ProjectTypeFlutter        ProjectType = "flutter"
	ProjectTypeGin            ProjectType = "gin"
	ProjectTypeGo             ProjectType = "go"
	ProjectTypeGoNetHttp      ProjectType = "go_net_http"
	ProjectTypeHeroku         ProjectType = "heroku"
	ProjectTypeIos            ProjectType = "ios"
	ProjectTypeJava           ProjectType = "java"
	ProjectTypeJavaDesktop    ProjectType = "java_desktop"
	ProjectTypeJs             ProjectType = "js"
	ProjectTypeKoa            ProjectType = "koa"
	ProjectTypeLaravel        ProjectType = "laravel"
	ProjectTypeLumen          ProjectType = "lumen"
	ProjectTypeMagento        ProjectType = "magento"
	ProjectTypeMartini        ProjectType = "martini"
	ProjectTypeMinidump       ProjectType = "minidump"
	ProjectTypeNdk            ProjectType = "ndk"
	ProjectTypeNegroni        ProjectType = "negroni"
	ProjectTypeNintendoSwitch ProjectType = "nintendo_switch"
	ProjectTypeNode           ProjectType = "node"
	ProjectTypeOsx            ProjectType = "osx"
	ProjectTypeOther          ProjectType = "other"
	ProjectTypeOtherDesktop   ProjectType = "other_desktop"
	ProjectTypeOtherMobile    ProjectType = "other_mobile"
	ProjectTypeOtherTv        ProjectType = "other_tv"
	ProjectTypePhp            ProjectType = "php"
	ProjectTypePython         ProjectType = "python"
	ProjectTypeRack           ProjectType = "rack"
	ProjectTypeRails          ProjectType = "rails"
	ProjectTypeReact          ProjectType = "react"
	ProjectTypeReactnative    ProjectType = "reactnative"
	ProjectTypeRestify        ProjectType = "restify"
	ProjectTypeRevel          ProjectType = "revel"
	ProjectTypeRuby           ProjectType = "ruby"
	ProjectTypeSilex          ProjectType = "silex"
	ProjectTypeSinatra        ProjectType = "sinatra"
	ProjectTypeSpring         ProjectType = "spring"
	ProjectTypeSymfony        ProjectType = "symfony"
	ProjectTypeTornado        ProjectType = "tornado"
	ProjectTypeTvos           ProjectType = "tvos"
	ProjectTypeUnity          ProjectType = "unity"
	ProjectTypeUnrealengine   ProjectType = "unrealengine"
	ProjectTypeVega           ProjectType = "vega"
	ProjectTypeVue            ProjectType = "vue"
	ProjectTypeWatchos        ProjectType = "watchos"
	ProjectTypeWebapi         ProjectType = "webapi"
	ProjectTypeWordpress      ProjectType = "wordpress"
	ProjectTypeWpf            ProjectType = "wpf"
	ProjectTypeWsgi           ProjectType = "wsgi"
)

Defines values for ProjectType.

func (ProjectType) Valid

func (e ProjectType) Valid() bool

Valid indicates whether the value is a known member of the ProjectType enum.

type ReleaseApiView

type ReleaseApiView struct {
	// AccumulativeDailyUsersSeen number of user with at least one session in this release group
	//
	// Example: 5124
	AccumulativeDailyUsersSeen *float32 `json:"accumulative_daily_users_seen,omitempty"`

	// AccumulativeDailyUsersWithUnhandled number of user sessions with at least one unhandled event. User Stability can be computed with (1 - (accumulative_daily_users_with_unhandled / accumulative_daily_users_seen)) * 100
	//
	// Example: 11
	AccumulativeDailyUsersWithUnhandled *float32 `json:"accumulative_daily_users_with_unhandled,omitempty"`

	// AppBundleVersion bundle version/build number of release (applicable to iOS/macOS/tvOS)
	//
	// Example: 1.2.3
	AppBundleVersion *string `json:"app_bundle_version,omitempty"`

	// AppVersion version name/number
	//
	// Example: 1.2.3
	AppVersion *string `json:"app_version,omitempty"`

	// AppVersionCode version code of release (applicable to Android)
	//
	// Example: 1234
	AppVersionCode *string `json:"app_version_code,omitempty"`

	// BuildLabel auto-generated descriptive label describing the build
	//
	// Example: 1.2.3
	BuildLabel *string `json:"build_label,omitempty"`

	// BuildTool tool used to report this release
	//
	// Example: webpack-bugsnag-plugins
	BuildTool *string `json:"build_tool,omitempty"`

	// BuilderName name of person or system that triggered the release/build
	//
	// Example: Daniel Deployer
	BuilderName *string `json:"builder_name,omitempty"`

	// ErrorsIntroducedCount number of errors introduced in this release
	//
	// Example: 2
	ErrorsIntroducedCount *float32 `json:"errors_introduced_count,omitempty"`

	// ErrorsSeenCount number of errors that happened in this release
	//
	// Example: 10
	ErrorsSeenCount *float32 `json:"errors_seen_count,omitempty"`

	// Id ID of the release
	//
	// Example: 5a8f7294d1befa07f361fcde
	Id *string `json:"id,omitempty"`

	// Metadata metadata about the release
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// ProjectId ID of project this release belongs to
	//
	// Example: 5a907f72d1befa043987dedf
	ProjectId *string `json:"project_id,omitempty"`

	// ReleaseGroupId ID of release group that this release belongs to
	//
	// Example: 5cf9a562d1befa0021e6a600
	ReleaseGroupId *string `json:"release_group_id,omitempty"`

	// ReleaseSource - unknown_source - source is unknown
	// - event - originated from an event
	// - session - originated from a session
	// - api - obtained from an API request
	// - deploy - obtained from a deploy request
	// - error - obtained from an error (with complete information)
	// - error_incomplete_build - obtained from an error (but the build information is incomplete)
	ReleaseSource *ReleaseRequestSource `json:"release_source,omitempty"`

	// ReleaseStage information about this release's release stage
	ReleaseStage *struct {
		// Name name of the release stage
		//
		// Example: production
		Name *string `json:"name,omitempty"`
	} `json:"release_stage,omitempty"`

	// ReleaseTime when the release happened (in ISO 8601 format)
	//
	// Example: 2018-02-21T21:30:16+00:00
	ReleaseTime *string `json:"release_time,omitempty"`

	// SessionsCountInLast24h number of sessions started for this release in the last 24 hours
	//
	// Example: 6500
	SessionsCountInLast24h *float32              `json:"sessions_count_in_last_24h,omitempty"`
	SourceControl          *ReleaseSourceControl `json:"source_control,omitempty"`

	// TotalSessionsCount number of sessions that started in this release
	//
	// Example: 3000
	TotalSessionsCount *float32 `json:"total_sessions_count,omitempty"`

	// UnhandledSessionsCount number of sessions in this release that have seen at least one unhandled event. Session Stability can be computed with (1 - (unhandled_sessions_count / total_sessions_count)) * 100
	//
	// Example: 60
	UnhandledSessionsCount *float32 `json:"unhandled_sessions_count,omitempty"`
}

ReleaseApiView defines model for ReleaseApiView.

type ReleaseRequestSource

type ReleaseRequestSource string

ReleaseRequestSource - unknown_source - source is unknown - event - originated from an event - session - originated from a session - api - obtained from an API request - deploy - obtained from a deploy request - error - obtained from an error (with complete information) - error_incomplete_build - obtained from an error (but the build information is incomplete)

const (
	ReleaseRequestSourceApi                  ReleaseRequestSource = "api"
	ReleaseRequestSourceDeploy               ReleaseRequestSource = "deploy"
	ReleaseRequestSourceError                ReleaseRequestSource = "error"
	ReleaseRequestSourceErrorIncompleteBuild ReleaseRequestSource = "error_incomplete_build"
	ReleaseRequestSourceEvent                ReleaseRequestSource = "event"
	ReleaseRequestSourceSession              ReleaseRequestSource = "session"
	ReleaseRequestSourceUnknownSource        ReleaseRequestSource = "unknown_source"
)

Defines values for ReleaseRequestSource.

func (ReleaseRequestSource) Valid

func (e ReleaseRequestSource) Valid() bool

Valid indicates whether the value is a known member of the ReleaseRequestSource enum.

type ReleaseSourceControl

type ReleaseSourceControl struct {
	// CommitUrl URL to the revision/commit corresponding to the release
	CommitUrl *string `json:"commit_url,omitempty"`

	// DiffUrlToPrevious URL to view the changes from the previous release
	DiffUrlToPrevious *string `json:"diff_url_to_previous,omitempty"`

	// Revision identifier for the revision of the release
	Revision *string `json:"revision,omitempty"`

	// Service the source control provider/service
	//
	// Example: github
	Service *string `json:"service,omitempty"`
}

ReleaseSourceControl defines model for ReleaseSourceControl.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SeverityOptions

type SeverityOptions string

SeverityOptions - info - can be used in manual Bugsnag.notify calls - warning - the default severity when Bugsnag.notify is called manually - error - the default severity for uncaught exceptions and crashes

const (
	SeverityOptionsError   SeverityOptions = "error"
	SeverityOptionsInfo    SeverityOptions = "info"
	SeverityOptionsWarning SeverityOptions = "warning"
)

Defines values for SeverityOptions.

func (SeverityOptions) Valid

func (e SeverityOptions) Valid() bool

Valid indicates whether the value is a known member of the SeverityOptions enum.

type StabilityTarget

type StabilityTarget struct {
	// UpdatedAt (Updated automatically) The time the target was last updated.
	//
	// Example: 2017-03-02T05:55:55.555Z
	UpdatedAt *string `json:"updated_at,omitempty"`

	// UpdatedById (Updated automatically) The id of the collaborator that last updated the value.
	//
	// Example: 515fb9337c1074f6fd000001
	UpdatedById *string `json:"updated_by_id,omitempty"`

	// Value The target value of the proportion of unhandled_sessions/total_sessions.
	//
	// Example: 0.99
	Value float64 `json:"value"`
}

StabilityTarget defines model for StabilityTarget.

type Trend1

type Trend1 struct {
	// EventsCount Example: 0
	EventsCount float32 `json:"events_count"`

	// From Example: 2017-04-03T22:43:49Z
	From string `json:"from"`

	// To Example: 2017-04-04T10:43:49Z
	To string `json:"to"`
}

Trend1 defines model for Trend1.

type Trend2

type Trend2 struct {
	// EventsCount Example: 1
	EventsCount float32 `json:"events_count"`

	// From Example: 2017-04-04T10:43:49Z
	From string `json:"from"`

	// To Example: 2017-04-04T22:43:49Z
	To string `json:"to"`
}

Trend2 defines model for Trend2.

type UnderscoreBreadcrumb

type UnderscoreBreadcrumb struct {
	// MetaData An object containing extra information about a breadcrumb
	MetaData *map[string]interface{} `json:"metaData,omitempty"`

	// Name A short summary describing the event, such as the user action taken or a new application state.
	//
	// Example: Open menu
	Name string `json:"name"`

	// Timestamp The time at which the event occurred, in [ISO 8601 format](https://tools.ietf.org/html/rfc3339#section-5.8).
	//
	// Example: 2016-07-19T12:17:27.000Z
	Timestamp time.Time `json:"timestamp"`

	// Type A category which describes the breadcrumb, from the list of allowed values.
	// - `navigation` - Changing screens or content being displayed, with a defined destination and optionally a previous location.
	// - `request` - Sending and receiving requests and responses.
	// - `process` - Performing an intensive task or query.
	// - `log` - Messages and severity sent to a logging platform.
	// - `user` - Actions performed by the user, like text input, button presses, or confirming/cancelling an alert dialog.
	// - `state` - Changing the overall state of an app, such as closing, pausing, or being moved to the background, as well as device state changes like memory or battery warnings and network connectivity changes.
	// - `error` - An error which was reported to Bugsnag encountered in the same session.
	// - `manual` - User-defined, manually added breadcrumbs.
	Type BreadcrumbType `json:"type"`
}

UnderscoreBreadcrumb defines model for _Breadcrumb.

type UnderscoreCoreFrameFields

type UnderscoreCoreFrameFields struct {
	// AddressOffset Offset of the frame's return address from the base of the line, function, or module in a minidump.
	//
	// Example: 0x5
	AddressOffset *string `json:"addressOffset,omitempty"`

	// Code The code in the file surrounding this line, with up to three lines on either side of the line that crashed.
	//
	// Example: {"1231":"  def a","1232":"","1233":"    if problem?","1234":"      raise 'something went wrong'","1235":"    end","1236":"","1237":"  end"}
	Code *map[string]interface{} `json:"code,omitempty"`

	// CodeFile Path of the code file for the module referenced.
	//
	// Example: filename.xyz
	CodeFile *string `json:"codeFile,omitempty"`

	// ColumnNumber The column of the file that this frame of the stack was in.
	ColumnNumber *int `json:"columnNumber,omitempty"`

	// File The file that this stack frame was executing
	//
	// Example: controllers/users_controller.rb
	File *string `json:"file,omitempty"`

	// FrameAddress the frame's return address from the base of the line, function, or module in a minidump.
	//
	// Example: 0x5
	FrameAddress *string `json:"frameAddress,omitempty"`

	// InProject Indicates if this stack trace line is in the project's application code (true) or form a 3rd party library (false).
	//
	// Example: true
	InProject *bool `json:"inProject,omitempty"`

	// Inlined Indicates if this is an inlined function
	//
	// Example: true
	Inlined *bool `json:"inlined,omitempty"`

	// LineNumber The line of the file that this frame of the stack was in.
	//
	// Example: 1234
	LineNumber *int `json:"lineNumber,omitempty"`

	// Method The method that this particular stack frame is within.
	//
	// Example: set_user_id
	Method *string `json:"method,omitempty"`

	// RelativeAddress Offset of the frame's return address from the base of the line, function, or module.
	//
	// Example: 0x5
	RelativeAddress *string `json:"relativeAddress,omitempty"`

	// SourceControlLink A link to the affected line of code in source control.
	SourceControlLink *string `json:"source_control_link,omitempty"`

	// SourceControlName The name of the source control service being used.
	//
	// Example: github
	SourceControlName *string `json:"source_control_name,omitempty"`

	// Type The type of the stackframe. This may be different for each stackframe, for example when the error occurs in native extension of a scripting language.
	//
	// Example: reactnativejs
	Type *string `json:"type,omitempty"`
}

UnderscoreCoreFrameFields defines model for _CoreFrameFields.

type UnderscoreEventApp

type UnderscoreEventApp struct {
	// BinaryArch The architecture of the running binary (Android only).
	// - `x86` - x86/i386 (32-bit).
	// - `x86_64` - x86 (64-bit).
	// - `arm32` - armeabi/armeabi-v7a (32-bit).
	// - `arm64` - arm64-v8a (64-bit).
	// - `amd64` - amd64 (64-bit).
	//
	//
	// Example: x86_64
	BinaryArch *EventAppBinaryArch `json:"binaryArch,omitempty"`

	// BuildUUID A build ID that is required to identify a specific build when the version and version code are the same.
	//
	// Example: BE5BA3D0-971C-4418-9ECF-E2D1ABCB66BE
	BuildUUID *string `json:"buildUUID,omitempty"`

	// BundleVersion The [bundle version/build number](https://developer.apple.com/library/content/technotes/tn2420/_index.html) of the application (iOS/macOS/tvOS only)
	//
	// Example: 1.0.2
	BundleVersion *string `json:"bundleVersion,omitempty"`

	// CodeBundleId A unique identifier to identify a code bundle release when using tools like CodePush (mobile only).
	//
	// Example: 1.0-1234
	CodeBundleId *string `json:"codeBundleId,omitempty"`

	// DsymUUIDs The UUIDs of the [debug symbols file](http://lldb.llvm.org/symbols.html) corresponding to this application, if any.
	//
	// Example: ["e6173678256785afd940392abee"]
	DsymUUIDs *[]string `json:"dsymUUIDs,omitempty"`

	// Duration How long the app has been running for in milliseconds.
	//
	// Example: 1275
	Duration *int `json:"duration,omitempty"`

	// DurationInForeground How long the app has been in the foreground of the device in milliseconds.
	//
	// Example: 983
	DurationInForeground *int `json:"durationInForeground,omitempty"`

	// Id A unique ID for the application.
	//
	// Example: com.bugsnag.android.example.debug
	Id *string `json:"id,omitempty"`

	// InForeground Whether or not the app was in the foreground when the error occurred.
	//
	// Example: true
	InForeground *bool `json:"inForeground,omitempty"`

	// IsLaunching Whether or not the application was still in the process of launching when the event was created.
	//
	// Example: false
	IsLaunching *bool `json:"isLaunching,omitempty"`

	// ReleaseStage The release stage that this error occurred in, for example "development", "staging" or "production".
	//
	// Example: staging
	ReleaseStage *string `json:"releaseStage,omitempty"`

	// RunningOnRosetta Whether or not the application was running through Rosetta (iOS only).
	//
	// Example: true
	RunningOnRosetta *bool `json:"runningOnRosetta,omitempty"`

	// Type The application type, such as a web framework or mobile platform, for example "rails" or "android".
	//
	// Example: rails
	Type *string `json:"type,omitempty"`

	// Version The version number of the application which generated the error.
	//
	// Example: 1.1.3
	Version *string `json:"version,omitempty"`

	// VersionCode The [version code](https://developer.android.com/studio/publish/versioning.html) of the application (Android only)
	//
	// Example: 12
	VersionCode *int `json:"versionCode,omitempty"`
}

UnderscoreEventApp defines model for _EventApp.

type UnderscoreEventCorrelation

type UnderscoreEventCorrelation struct {
	// SpanId The ID of the OTel span during which this event occurred
	//
	// Example: 6368f07a518fa064ce036bdb
	SpanId *string `json:"spanId,omitempty"`

	// TraceId The ID of the OTel trace during which this event occurred
	//
	// Example: 6368f07a518fa064ce036bdb
	TraceId *string `json:"traceId,omitempty"`
}

UnderscoreEventCorrelation defines model for _EventCorrelation.

type UnderscoreEventDevice

type UnderscoreEventDevice struct {
	// BatteryLevel The battery level of the device as a decimal
	BatteryLevel *float64 `json:"batteryLevel,omitempty"`

	// BrowserName If a web application, the web browser used by the device.
	//
	// Example: Chrome
	BrowserName *string `json:"browserName,omitempty"`

	// BrowserVersion If a web application, the version of the browser used by the device.
	//
	// Example: 61.0.3163.100
	BrowserVersion *string `json:"browserVersion,omitempty"`

	// Charging Whether the device was charging
	Charging *bool `json:"charging,omitempty"`

	// CpuAbi The [ABIs](https://developer.android.com/ndk/guides/abis) supported by the device (Android only).
	//
	// Example: ["x86_64"]
	CpuAbi *[]string `json:"cpuAbi,omitempty"`

	// FreeDisk The number of unused bytes on the drive running the application.
	//
	// Example: 13478064128
	FreeDisk *int `json:"freeDisk,omitempty"`

	// FreeMemory The number of bytes unused in the device's RAM.
	//
	// Example: 183879616
	FreeMemory *int `json:"freeMemory,omitempty"`

	// Hostname The hostname of the server running your code, if applicable.
	//
	// Example: web1.internal
	Hostname *string `json:"hostname,omitempty"`

	// Id A unique identifier for the device.
	//
	// Example: fd124e87760c4281aef
	Id *string `json:"id,omitempty"`

	// Jailbroken Whether or not the device has been modified to give users root access.
	//
	// Example: false
	Jailbroken *bool `json:"jailbroken,omitempty"`

	// Locale The locale of the device
	Locale *string `json:"locale,omitempty"`

	// MacCatalystIosVersion The Mac Catalyst version (iOS only).
	//
	// Example: 13.5
	MacCatalystIosVersion *string `json:"macCatalystIosVersion,omitempty"`

	// Manufacturer The manufacturer of the device.
	//
	// Example: LGE
	Manufacturer *string `json:"manufacturer,omitempty"`

	// Model The model of the device.
	//
	// Example: Nexus 6P
	Model *string `json:"model,omitempty"`

	// ModelNumber The model number of the device.
	//
	// Example: 600
	ModelNumber *string `json:"modelNumber,omitempty"`

	// Orientation The orientation of the device at the time of the error.
	//
	// Example: portrait
	Orientation *string `json:"orientation,omitempty"`

	// OsName The device's operating system name.
	//
	// Example: android
	OsName *string `json:"osName,omitempty"`

	// OsVersion The device's operating system version.
	//
	// Example: 8.0.1
	OsVersion *string `json:"osVersion,omitempty"`

	// RuntimeVersions Hash of the versions of the relevant runtimes, languages and/or frameworks for the platform.
	RuntimeVersions *map[string]interface{} `json:"runtimeVersions,omitempty"`

	// Time The time at which the error occurred, in [ISO 8601 format](https://tools.ietf.org/html/rfc3339#section-5.8).
	//
	// Example: 2018-08-07T10:16:34.564Z
	Time *time.Time `json:"time,omitempty"`

	// Timezone The timezone in which the error occurred
	Timezone *string `json:"timezone,omitempty"`

	// TotalMemory The number of total bytes in the device's RAM.
	//
	// Example: 201326592
	TotalMemory *int `json:"totalMemory,omitempty"`
}

UnderscoreEventDevice defines model for _EventDevice.

type UnderscoreEventException

type UnderscoreEventException struct {
	// ErrorClass Example: NoMethodError
	ErrorClass *string `json:"errorClass,omitempty"`

	// Message Example: undefined method `foo` for nil:NilClass
	Message *string `json:"message,omitempty"`

	// Registers An array of register details for minidump stackframes.
	Registers *[]UnderscoreEventExceptionRegister `json:"registers,omitempty"`

	// Stacktrace An array of stack trace objects. Each object represents one line in the exception's stack trace. Bugsnag uses this information to help with error grouping, as well as displaying it to the user.
	Stacktrace *[]UnderscoreEventExceptionStacktrace `json:"stacktrace,omitempty"`

	// Type The type of the exception. `null` if not recorded.
	//
	// Example: browserjs
	Type *string `json:"type,omitempty"`
}

UnderscoreEventException defines model for _EventException.

type UnderscoreEventExceptionRegister

type UnderscoreEventExceptionRegister struct {
	// FrameIndex The index of the frame in the stacktrace that the registers apply to
	//
	// Example: 1
	FrameIndex *int `json:"frame_index,omitempty"`

	// RegisterValues Details of a register
	RegisterValues *[]UnderscoreEventExceptionRegisterValue `json:"register_values,omitempty"`
}

UnderscoreEventExceptionRegister defines model for _EventExceptionRegister.

type UnderscoreEventExceptionRegisterValue

type UnderscoreEventExceptionRegisterValue struct {
	// RegisterName The name of the register
	//
	// Example: reg
	RegisterName *string `json:"register_name,omitempty"`

	// RegisterValue The value of the register
	//
	// Example: 0x1012d41a40dd145f
	RegisterValue *string `json:"register_value,omitempty"`
}

UnderscoreEventExceptionRegisterValue defines model for _EventExceptionRegisterValue.

type UnderscoreEventExceptionStacktrace

type UnderscoreEventExceptionStacktrace struct {
	// AddressOffset Offset of the frame's return address from the base of the line, function, or module in a minidump.
	//
	// Example: 0x5
	AddressOffset *string `json:"address_offset,omitempty"`

	// Code The code in the file surrounding this line, with up to three lines on either side of the line that crashed.
	//
	// Example: {"1231":"  def a","1232":"","1233":"    if problem?","1234":"      raise 'something went wrong'","1235":"    end","1236":"","1237":"  end"}
	Code *map[string]interface{} `json:"code,omitempty"`

	// CodeFile Path of the code file for the module referenced.
	//
	// Example: filename.xyz
	CodeFile *string `json:"code_file,omitempty"`

	// ColumnNumber The column of the file that this frame of the stack was in.
	ColumnNumber *int `json:"column_number,omitempty"`

	// File The file that this stack frame was executing
	//
	// Example: controllers/users_controller.rb
	File *string `json:"file,omitempty"`

	// FrameAddress The frame's return address from the base of the line, function, or module in a minidump.
	//
	// Example: 0x5
	FrameAddress *string `json:"frame_address,omitempty"`

	// InProject Indicates if this stack trace line is in the project's application code (true) or form a 3rd party library (false).
	//
	// Example: true
	InProject *bool `json:"in_project,omitempty"`

	// Inlined Indicates if this is an inlined function
	//
	// Example: true
	Inlined *bool `json:"inlined,omitempty"`

	// LineNumber The line of the file that this frame of the stack was in.
	//
	// Example: 1234
	LineNumber *int    `json:"line_number,omitempty"`
	MachoUuid  *string `json:"macho_uuid,omitempty"`

	// Method The method that this particular stack frame is within.
	//
	// Example: set_user_id
	Method *string `json:"method,omitempty"`

	// RelativeAddress Offset of the frame's return address from the base of the line, function, or module.
	//
	// Example: 0x5
	RelativeAddress *string `json:"relative_address,omitempty"`

	// SourceControlLink A link to the affected line of code in source control.
	SourceControlLink *string `json:"source_control_link,omitempty"`

	// SourceControlName The name of the source control service being used.
	//
	// Example: github
	SourceControlName *string `json:"source_control_name,omitempty"`
}

UnderscoreEventExceptionStacktrace defines model for _EventExceptionStacktrace.

type UnderscoreEventRequest

type UnderscoreEventRequest struct {
	// ClientIp The IP making the request
	//
	// Example: 192.168.44.0
	ClientIp *string `json:"clientIp,omitempty"`

	// Headers Hash of headers sent with the request
	Headers *map[string]interface{} `json:"headers,omitempty"`

	// HttpMethod The HTTP method used for the request
	//
	// Example: PUT
	HttpMethod *string `json:"httpMethod,omitempty"`

	// Params Hash of parameter sent with the request
	Params *map[string]interface{} `json:"params,omitempty"`

	// Referer The URL referring the user
	//
	// Example: http://example.com?q=awesome
	Referer *string `json:"referer,omitempty"`

	// Url The URL the request was made to
	//
	// Example: http://example.com/users/19/settings
	Url *string `json:"url,omitempty"`
}

UnderscoreEventRequest defines model for _EventRequest.

type UnderscoreEventThread

type UnderscoreEventThread struct {
	// ErrorReportingThread Indicates if this is the thread from which the error was reported.
	//
	// Example: true
	ErrorReportingThread *bool `json:"error_reporting_thread,omitempty"`

	// Id The id of the thread in the application.
	//
	// Example: 1
	Id *int `json:"id,omitempty"`

	// Name A human readable name for the thread.
	//
	// Example: main
	Name *string `json:"name,omitempty"`

	// Stacktrace An array of stack trace objects. Each object represents one line in the exception's stack trace. Bugsnag uses this information to help with error grouping, as well as displaying it to the user.
	Stacktrace *[]UnderscoreCoreFrameFields `json:"stacktrace,omitempty"`

	// State The state of the thread
	//
	// Example: TH_STATE_RUNNING
	State *string `json:"state,omitempty"`

	// Type The type of the thread
	//
	// Example: ruby
	Type *string `json:"type,omitempty"`
}

UnderscoreEventThread defines model for _EventThread.

type UnderscoreEventUser

type UnderscoreEventUser struct {
	// Email The user's email address.
	//
	// Example: bob@example.com
	Email *string `json:"email,omitempty"`

	// Id A unique identifier for a user affected by this event. This could be any distinct identifier that makes sense for your application/platform.
	//
	// Example: 19
	Id *string `json:"id,omitempty"`

	// Name The user's name, or a string you use to identify them.
	//
	// Example: Robert Hawkins
	Name *string `json:"name,omitempty"`
}

UnderscoreEventUser defines model for _EventUser.

type UnderscoreFeatureFlagSummary

type UnderscoreFeatureFlagSummary struct {
	// FeatureFlagId The ID of the feature_flag.
	//
	// Example: 5f688f55d1befa016c94de00
	FeatureFlagId *string `json:"feature_flag_id,omitempty"`

	// FeatureFlagName The name of the feature_flag.
	//
	// Example: share_ios_photo_sharing_button
	FeatureFlagName *string `json:"feature_flag_name,omitempty"`

	// VariantId The ID of the variant if present.
	//
	// Example: 173c8f55d1befa016c94df1c
	VariantId *string `json:"variant_id,omitempty"`

	// VariantName The name of the variant if present.
	//
	// Example: blue_button
	VariantName *string `json:"variant_name,omitempty"`
}

UnderscoreFeatureFlagSummary defines model for _FeatureFlagSummary.

type UnderscoreFilterValue

type UnderscoreFilterValue struct {
	// Id The identifier to use when filtering by this value
	//
	// Example: new
	Id *string `json:"id,omitempty"`

	// Name A human readable representation of this value
	//
	// Example: New
	Name *string `json:"name,omitempty"`
}

UnderscoreFilterValue defines model for _FilterValue.

type User

type User struct {
	// CreatedAt when the user was created
	//
	// Example: 2018-02-01T22:31:26.696Z
	CreatedAt string `json:"created_at"`

	// Email Example: james@example.com
	Email string `json:"email"`

	// FavoriteProjectIds list of IDs of the User's favorite projects
	//
	// Example: ["5e3bf879d1befa00093b8638"]
	FavoriteProjectIds *[]string `json:"favorite_project_ids,omitempty"`

	// Heroku Example: false
	Heroku bool `json:"heroku"`

	// Id Example: 515fb9337c1074f6fd000007
	Id string `json:"id"`

	// ManagedBySmartbearId Whether the user is managed by SmartBear ID
	//
	// Example: true
	ManagedBySmartbearId bool `json:"managed_by_smartbear_id"`

	// Name Example: James Smith
	Name *string `json:"name,omitempty"`

	// PasswordUpdatedOn The time the User's password was last changed.
	//
	// Example: 2017-04-04T22:43:49Z
	PasswordUpdatedOn *string `json:"password_updated_on,omitempty"`

	// RecoveryCodesRemaining The number of two factor recovery codes the User has left.
	//
	// Example: 2
	RecoveryCodesRemaining *int `json:"recovery_codes_remaining,omitempty"`

	// ShowTimeInUtc Whether the user has opted to have times displayed in UTC instead of local time.
	//
	// Example: true
	ShowTimeInUtc bool `json:"show_time_in_utc"`

	// TwoFactorEnabled Example: true
	TwoFactorEnabled bool `json:"two_factor_enabled"`

	// TwoFactorEnabledOn Example: 2017-04-04T22:43:49Z
	TwoFactorEnabledOn *string `json:"two_factor_enabled_on,omitempty"`
}

User defines model for User.

type ViewErrorOnProjectResponse

type ViewErrorOnProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ErrorApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseViewErrorOnProjectResponse

func ParseViewErrorOnProjectResponse(rsp *http.Response) (*ViewErrorOnProjectResponse, error)

ParseViewErrorOnProjectResponse parses an HTTP response from a ViewErrorOnProjectWithResponse call

func (ViewErrorOnProjectResponse) ContentType

func (r ViewErrorOnProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ViewErrorOnProjectResponse) GetBody

func (r ViewErrorOnProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ViewErrorOnProjectResponse) GetJSON200

func (r ViewErrorOnProjectResponse) GetJSON200() *ErrorApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ViewErrorOnProjectResponse) GetJSON404

func (r ViewErrorOnProjectResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ViewErrorOnProjectResponse) Status

Status returns HTTPResponse.Status

func (ViewErrorOnProjectResponse) StatusCode

func (r ViewErrorOnProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ViewEventByIdResponse

type ViewEventByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EventApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseViewEventByIdResponse

func ParseViewEventByIdResponse(rsp *http.Response) (*ViewEventByIdResponse, error)

ParseViewEventByIdResponse parses an HTTP response from a ViewEventByIdWithResponse call

func (ViewEventByIdResponse) ContentType

func (r ViewEventByIdResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ViewEventByIdResponse) GetBody

func (r ViewEventByIdResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ViewEventByIdResponse) GetJSON200

func (r ViewEventByIdResponse) GetJSON200() *EventApiView

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ViewEventByIdResponse) GetJSON404

func (r ViewEventByIdResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ViewEventByIdResponse) Status

func (r ViewEventByIdResponse) Status() string

Status returns HTTPResponse.Status

func (ViewEventByIdResponse) StatusCode

func (r ViewEventByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ViewLatestEventOnErrorResponse

type ViewLatestEventOnErrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EventApiView
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *struct {
		Errors *[]string `json:"errors,omitempty"`
	}
}

func ParseViewLatestEventOnErrorResponse

func ParseViewLatestEventOnErrorResponse(rsp *http.Response) (*ViewLatestEventOnErrorResponse, error)

ParseViewLatestEventOnErrorResponse parses an HTTP response from a ViewLatestEventOnErrorWithResponse call

func (ViewLatestEventOnErrorResponse) ContentType

func (r ViewLatestEventOnErrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ViewLatestEventOnErrorResponse) GetBody

func (r ViewLatestEventOnErrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ViewLatestEventOnErrorResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ViewLatestEventOnErrorResponse) GetJSON404

func (r ViewLatestEventOnErrorResponse) GetJSON404() *struct {
	Errors *[]string `json:"errors,omitempty"`
}

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ViewLatestEventOnErrorResponse) Status

Status returns HTTPResponse.Status

func (ViewLatestEventOnErrorResponse) StatusCode

func (r ViewLatestEventOnErrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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