/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.js'; import { type IncidentParticipantWorkloadsListHoursResultV2 } from '../models/IncidentParticipantWorkloadsListHoursResultV2.js'; import { type IncidentParticipantWorkloadsListResultV2 } from '../models/IncidentParticipantWorkloadsListResultV2.js'; export interface IncidentParticipantWorkloadsV2ListRequest { /** * Find participant workload for this incident */ incident_id: string; } export interface IncidentParticipantWorkloadsV2ListHoursRequest { /** * Integer number of records to return */ page_size?: number; /** * The cursor from a previous response's `pagination_meta.after`. Returns the rows older than that page. */ after?: string; /** * Only return hours that start before this time */ before?: Date; /** * Only return workload on this incident */ incident_id?: string; /** * Only return workload for this user */ user_id?: string; } /** * */ export declare class IncidentParticipantWorkloadsV2Api extends runtime.BaseAPI { /** * Creates request options for incidentParticipantWorkloadsV2List without sending the request */ incidentParticipantWorkloadsV2ListRequestOpts(requestParameters: IncidentParticipantWorkloadsV2ListRequest): Promise; /** * List the participants of an incident with their workload. We calculate how much time each participant has spent working on the incident, aggregated per participant. Each participant is annotated with their participant type and, if they have left the incident, when they were archived. Workload is calculated periodically, so values can lag real time and the most recent period may still be filling. The metadata reports the time the figures are calculated up to. Workload for private incidents is only returned to API keys with the `incident_workloads.view.private_incidents` scope. * List IncidentParticipantWorkloads V2 */ incidentParticipantWorkloadsV2ListRaw(requestParameters: IncidentParticipantWorkloadsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List the participants of an incident with their workload. We calculate how much time each participant has spent working on the incident, aggregated per participant. Each participant is annotated with their participant type and, if they have left the incident, when they were archived. Workload is calculated periodically, so values can lag real time and the most recent period may still be filling. The metadata reports the time the figures are calculated up to. Workload for private incidents is only returned to API keys with the `incident_workloads.view.private_incidents` scope. * List IncidentParticipantWorkloads V2 */ incidentParticipantWorkloadsV2List(requestParameters: IncidentParticipantWorkloadsV2ListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Creates request options for incidentParticipantWorkloadsV2ListHours without sending the request */ incidentParticipantWorkloadsV2ListHoursRequestOpts(requestParameters: IncidentParticipantWorkloadsV2ListHoursRequest): Promise; /** * List each user\'s workload on each incident, hour by hour, newest first. Each row is the time one user spent on one incident in one hour. Sum the rows to get any total you need, such as the time each person spent on incidents last month. Rows come newest first. To cover a period, set `before` to its end, then follow `pagination_meta.after` until you reach rows older than its start. A page can hold fewer rows than `page_size`, so keep following `after` until it is absent. Workload is calculated periodically, so values can lag real time and the most recent period may still be filling. The metadata reports the time the figures are calculated up to. Workload on private incidents is only included for API keys with the `incident_workloads.view.private_incidents` scope. * ListHours IncidentParticipantWorkloads V2 */ incidentParticipantWorkloadsV2ListHoursRaw(requestParameters: IncidentParticipantWorkloadsV2ListHoursRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * List each user\'s workload on each incident, hour by hour, newest first. Each row is the time one user spent on one incident in one hour. Sum the rows to get any total you need, such as the time each person spent on incidents last month. Rows come newest first. To cover a period, set `before` to its end, then follow `pagination_meta.after` until you reach rows older than its start. A page can hold fewer rows than `page_size`, so keep following `after` until it is absent. Workload is calculated periodically, so values can lag real time and the most recent period may still be filling. The metadata reports the time the figures are calculated up to. Workload on private incidents is only included for API keys with the `incident_workloads.view.private_incidents` scope. * ListHours IncidentParticipantWorkloads V2 */ incidentParticipantWorkloadsV2ListHours(requestParameters?: IncidentParticipantWorkloadsV2ListHoursRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }