Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetV1ReportsMeanTimeOK
- func (o *GetV1ReportsMeanTimeOK) Error() string
- func (o *GetV1ReportsMeanTimeOK) GetPayload() *models.ReportEntity
- func (o *GetV1ReportsMeanTimeOK) IsClientError() bool
- func (o *GetV1ReportsMeanTimeOK) IsCode(code int) bool
- func (o *GetV1ReportsMeanTimeOK) IsRedirect() bool
- func (o *GetV1ReportsMeanTimeOK) IsServerError() bool
- func (o *GetV1ReportsMeanTimeOK) IsSuccess() bool
- func (o *GetV1ReportsMeanTimeOK) String() string
- type GetV1ReportsMeanTimeParams
- func NewGetV1ReportsMeanTimeParams() *GetV1ReportsMeanTimeParams
- func NewGetV1ReportsMeanTimeParamsWithContext(ctx context.Context) *GetV1ReportsMeanTimeParams
- func NewGetV1ReportsMeanTimeParamsWithHTTPClient(client *http.Client) *GetV1ReportsMeanTimeParams
- func NewGetV1ReportsMeanTimeParamsWithTimeout(timeout time.Duration) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) SetContext(ctx context.Context)
- func (o *GetV1ReportsMeanTimeParams) SetCurrentMilestones(currentMilestones *string)
- func (o *GetV1ReportsMeanTimeParams) SetDefaults()
- func (o *GetV1ReportsMeanTimeParams) SetEndDate(endDate *strfmt.Date)
- func (o *GetV1ReportsMeanTimeParams) SetEnvironments(environments *string)
- func (o *GetV1ReportsMeanTimeParams) SetHTTPClient(client *http.Client)
- func (o *GetV1ReportsMeanTimeParams) SetPriorities(priorities *string)
- func (o *GetV1ReportsMeanTimeParams) SetPriorityNotSet(priorityNotSet *bool)
- func (o *GetV1ReportsMeanTimeParams) SetQuery(query *string)
- func (o *GetV1ReportsMeanTimeParams) SetSavedSearchID(savedSearchID *string)
- func (o *GetV1ReportsMeanTimeParams) SetServices(services *string)
- func (o *GetV1ReportsMeanTimeParams) SetSeverities(severities *string)
- func (o *GetV1ReportsMeanTimeParams) SetSeverityNotSet(severityNotSet *bool)
- func (o *GetV1ReportsMeanTimeParams) SetStartDate(startDate *strfmt.Date)
- func (o *GetV1ReportsMeanTimeParams) SetStatus(status *string)
- func (o *GetV1ReportsMeanTimeParams) SetTeams(teams *string)
- func (o *GetV1ReportsMeanTimeParams) SetTimeout(timeout time.Duration)
- func (o *GetV1ReportsMeanTimeParams) WithContext(ctx context.Context) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithCurrentMilestones(currentMilestones *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithDefaults() *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithEndDate(endDate *strfmt.Date) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithEnvironments(environments *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithHTTPClient(client *http.Client) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithPriorities(priorities *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithPriorityNotSet(priorityNotSet *bool) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithQuery(query *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithSavedSearchID(savedSearchID *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithServices(services *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithSeverities(severities *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithSeverityNotSet(severityNotSet *bool) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithStartDate(startDate *strfmt.Date) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithStatus(status *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithTeams(teams *string) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WithTimeout(timeout time.Duration) *GetV1ReportsMeanTimeParams
- func (o *GetV1ReportsMeanTimeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1ReportsMeanTimeReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for reports API
func (*Client) GetV1ReportsMeanTime ¶
func (a *Client) GetV1ReportsMeanTime(params *GetV1ReportsMeanTimeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1ReportsMeanTimeOK, error)
GetV1ReportsMeanTime gets mean time report
Returns a report with time bucketed analytics data
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetV1ReportsMeanTime(params *GetV1ReportsMeanTimeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1ReportsMeanTimeOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new reports API client.
type GetV1ReportsMeanTimeOK ¶
type GetV1ReportsMeanTimeOK struct {
Payload *models.ReportEntity
}
GetV1ReportsMeanTimeOK describes a response with status code 200, with default header values.
Returns a report with time bucketed analytics data
func NewGetV1ReportsMeanTimeOK ¶
func NewGetV1ReportsMeanTimeOK() *GetV1ReportsMeanTimeOK
NewGetV1ReportsMeanTimeOK creates a GetV1ReportsMeanTimeOK with default headers values
func (*GetV1ReportsMeanTimeOK) Error ¶
func (o *GetV1ReportsMeanTimeOK) Error() string
func (*GetV1ReportsMeanTimeOK) GetPayload ¶
func (o *GetV1ReportsMeanTimeOK) GetPayload() *models.ReportEntity
func (*GetV1ReportsMeanTimeOK) IsClientError ¶
func (o *GetV1ReportsMeanTimeOK) IsClientError() bool
IsClientError returns true when this get v1 reports mean time o k response has a 4xx status code
func (*GetV1ReportsMeanTimeOK) IsCode ¶
func (o *GetV1ReportsMeanTimeOK) IsCode(code int) bool
IsCode returns true when this get v1 reports mean time o k response a status code equal to that given
func (*GetV1ReportsMeanTimeOK) IsRedirect ¶
func (o *GetV1ReportsMeanTimeOK) IsRedirect() bool
IsRedirect returns true when this get v1 reports mean time o k response has a 3xx status code
func (*GetV1ReportsMeanTimeOK) IsServerError ¶
func (o *GetV1ReportsMeanTimeOK) IsServerError() bool
IsServerError returns true when this get v1 reports mean time o k response has a 5xx status code
func (*GetV1ReportsMeanTimeOK) IsSuccess ¶
func (o *GetV1ReportsMeanTimeOK) IsSuccess() bool
IsSuccess returns true when this get v1 reports mean time o k response has a 2xx status code
func (*GetV1ReportsMeanTimeOK) String ¶
func (o *GetV1ReportsMeanTimeOK) String() string
type GetV1ReportsMeanTimeParams ¶
type GetV1ReportsMeanTimeParams struct { /* CurrentMilestones. A comma separated list of current milestones */ CurrentMilestones *string /* EndDate. The end date to return incidents from Format: date */ EndDate *strfmt.Date /* Environments. A comma separated list of environment IDs */ Environments *string /* Priorities. A comma separated list of priorities */ Priorities *string /* PriorityNotSet. Flag for including incidents where priority has not been set */ PriorityNotSet *bool /* Query. A text query for an incident that searches on name, summary, and desciption */ Query *string /* SavedSearchID. The id of a previously saved search. */ SavedSearchID *string /* Services. A comma separated list of service IDs */ Services *string /* Severities. A comma separated list of severities */ Severities *string /* SeverityNotSet. Flag for including incidents where severity has not been set */ SeverityNotSet *bool /* StartDate. The start date to return incidents from Format: date */ StartDate *strfmt.Date /* Status. Incident status */ Status *string /* Teams. A comma separated list of team IDs */ Teams *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1ReportsMeanTimeParams contains all the parameters to send to the API endpoint
for the get v1 reports mean time operation. Typically these are written to a http.Request.
func NewGetV1ReportsMeanTimeParams ¶
func NewGetV1ReportsMeanTimeParams() *GetV1ReportsMeanTimeParams
NewGetV1ReportsMeanTimeParams creates a new GetV1ReportsMeanTimeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1ReportsMeanTimeParamsWithContext ¶
func NewGetV1ReportsMeanTimeParamsWithContext(ctx context.Context) *GetV1ReportsMeanTimeParams
NewGetV1ReportsMeanTimeParamsWithContext creates a new GetV1ReportsMeanTimeParams object with the ability to set a context for a request.
func NewGetV1ReportsMeanTimeParamsWithHTTPClient ¶
func NewGetV1ReportsMeanTimeParamsWithHTTPClient(client *http.Client) *GetV1ReportsMeanTimeParams
NewGetV1ReportsMeanTimeParamsWithHTTPClient creates a new GetV1ReportsMeanTimeParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1ReportsMeanTimeParamsWithTimeout ¶
func NewGetV1ReportsMeanTimeParamsWithTimeout(timeout time.Duration) *GetV1ReportsMeanTimeParams
NewGetV1ReportsMeanTimeParamsWithTimeout creates a new GetV1ReportsMeanTimeParams object with the ability to set a timeout on a request.
func (*GetV1ReportsMeanTimeParams) SetContext ¶
func (o *GetV1ReportsMeanTimeParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetCurrentMilestones ¶
func (o *GetV1ReportsMeanTimeParams) SetCurrentMilestones(currentMilestones *string)
SetCurrentMilestones adds the currentMilestones to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetDefaults ¶
func (o *GetV1ReportsMeanTimeParams) SetDefaults()
SetDefaults hydrates default values in the get v1 reports mean time params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1ReportsMeanTimeParams) SetEndDate ¶
func (o *GetV1ReportsMeanTimeParams) SetEndDate(endDate *strfmt.Date)
SetEndDate adds the endDate to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetEnvironments ¶
func (o *GetV1ReportsMeanTimeParams) SetEnvironments(environments *string)
SetEnvironments adds the environments to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetHTTPClient ¶
func (o *GetV1ReportsMeanTimeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetPriorities ¶
func (o *GetV1ReportsMeanTimeParams) SetPriorities(priorities *string)
SetPriorities adds the priorities to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetPriorityNotSet ¶
func (o *GetV1ReportsMeanTimeParams) SetPriorityNotSet(priorityNotSet *bool)
SetPriorityNotSet adds the priorityNotSet to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetQuery ¶
func (o *GetV1ReportsMeanTimeParams) SetQuery(query *string)
SetQuery adds the query to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetSavedSearchID ¶
func (o *GetV1ReportsMeanTimeParams) SetSavedSearchID(savedSearchID *string)
SetSavedSearchID adds the savedSearchId to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetServices ¶
func (o *GetV1ReportsMeanTimeParams) SetServices(services *string)
SetServices adds the services to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetSeverities ¶
func (o *GetV1ReportsMeanTimeParams) SetSeverities(severities *string)
SetSeverities adds the severities to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetSeverityNotSet ¶
func (o *GetV1ReportsMeanTimeParams) SetSeverityNotSet(severityNotSet *bool)
SetSeverityNotSet adds the severityNotSet to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetStartDate ¶
func (o *GetV1ReportsMeanTimeParams) SetStartDate(startDate *strfmt.Date)
SetStartDate adds the startDate to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetStatus ¶
func (o *GetV1ReportsMeanTimeParams) SetStatus(status *string)
SetStatus adds the status to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetTeams ¶
func (o *GetV1ReportsMeanTimeParams) SetTeams(teams *string)
SetTeams adds the teams to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) SetTimeout ¶
func (o *GetV1ReportsMeanTimeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithContext ¶
func (o *GetV1ReportsMeanTimeParams) WithContext(ctx context.Context) *GetV1ReportsMeanTimeParams
WithContext adds the context to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithCurrentMilestones ¶
func (o *GetV1ReportsMeanTimeParams) WithCurrentMilestones(currentMilestones *string) *GetV1ReportsMeanTimeParams
WithCurrentMilestones adds the currentMilestones to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithDefaults ¶
func (o *GetV1ReportsMeanTimeParams) WithDefaults() *GetV1ReportsMeanTimeParams
WithDefaults hydrates default values in the get v1 reports mean time params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1ReportsMeanTimeParams) WithEndDate ¶
func (o *GetV1ReportsMeanTimeParams) WithEndDate(endDate *strfmt.Date) *GetV1ReportsMeanTimeParams
WithEndDate adds the endDate to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithEnvironments ¶
func (o *GetV1ReportsMeanTimeParams) WithEnvironments(environments *string) *GetV1ReportsMeanTimeParams
WithEnvironments adds the environments to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithHTTPClient ¶
func (o *GetV1ReportsMeanTimeParams) WithHTTPClient(client *http.Client) *GetV1ReportsMeanTimeParams
WithHTTPClient adds the HTTPClient to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithPriorities ¶
func (o *GetV1ReportsMeanTimeParams) WithPriorities(priorities *string) *GetV1ReportsMeanTimeParams
WithPriorities adds the priorities to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithPriorityNotSet ¶
func (o *GetV1ReportsMeanTimeParams) WithPriorityNotSet(priorityNotSet *bool) *GetV1ReportsMeanTimeParams
WithPriorityNotSet adds the priorityNotSet to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithQuery ¶
func (o *GetV1ReportsMeanTimeParams) WithQuery(query *string) *GetV1ReportsMeanTimeParams
WithQuery adds the query to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithSavedSearchID ¶
func (o *GetV1ReportsMeanTimeParams) WithSavedSearchID(savedSearchID *string) *GetV1ReportsMeanTimeParams
WithSavedSearchID adds the savedSearchID to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithServices ¶
func (o *GetV1ReportsMeanTimeParams) WithServices(services *string) *GetV1ReportsMeanTimeParams
WithServices adds the services to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithSeverities ¶
func (o *GetV1ReportsMeanTimeParams) WithSeverities(severities *string) *GetV1ReportsMeanTimeParams
WithSeverities adds the severities to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithSeverityNotSet ¶
func (o *GetV1ReportsMeanTimeParams) WithSeverityNotSet(severityNotSet *bool) *GetV1ReportsMeanTimeParams
WithSeverityNotSet adds the severityNotSet to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithStartDate ¶
func (o *GetV1ReportsMeanTimeParams) WithStartDate(startDate *strfmt.Date) *GetV1ReportsMeanTimeParams
WithStartDate adds the startDate to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithStatus ¶
func (o *GetV1ReportsMeanTimeParams) WithStatus(status *string) *GetV1ReportsMeanTimeParams
WithStatus adds the status to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithTeams ¶
func (o *GetV1ReportsMeanTimeParams) WithTeams(teams *string) *GetV1ReportsMeanTimeParams
WithTeams adds the teams to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WithTimeout ¶
func (o *GetV1ReportsMeanTimeParams) WithTimeout(timeout time.Duration) *GetV1ReportsMeanTimeParams
WithTimeout adds the timeout to the get v1 reports mean time params
func (*GetV1ReportsMeanTimeParams) WriteToRequest ¶
func (o *GetV1ReportsMeanTimeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1ReportsMeanTimeReader ¶
type GetV1ReportsMeanTimeReader struct {
// contains filtered or unexported fields
}
GetV1ReportsMeanTimeReader is a Reader for the GetV1ReportsMeanTime structure.
func (*GetV1ReportsMeanTimeReader) ReadResponse ¶
func (o *GetV1ReportsMeanTimeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.