Skip to content

Commit

Permalink
Merge pull request #10 from PagerDuty/next
Browse files Browse the repository at this point in the history
release: 0.1.2
  • Loading branch information
t1agob authored Mar 19, 2024
2 parents d610e43 + b0a572e commit 39ff8b0
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 3 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
68 changes: 68 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type PagerDutyIncident = {
];
service: PagerDutyService;
created_at: string;
urgency?: string;
}

/** @public */
Expand Down Expand Up @@ -115,6 +116,73 @@ export type PagerDutyVendor = {
html_url?: string;
}

/** @public */
export type PagerDutyServiceStandards = {
resource_id: string;
resource_type: string;
score: {
passing: number;
total: number;
};
standards: PagerDutyServiceStandard[];
}

/** @public */
export type PagerDutyServiceStandard = {
active: boolean;
description: string;
id: string;
name: string;
pass: boolean;
type: string;
}

/** @public */
export type PagerDutyServiceStandardsResponse = {
standards: PagerDutyServiceStandards;
}

/** @public */
export type PagerDutyServiceMetrics = {
mean_assignment_count?: number;
mean_engaged_seconds?: number;
mean_engaged_user_count?: number;
mean_seconds_to_engage?: number;
mean_seconds_to_first_ack?: number;
mean_seconds_to_mobilize?: number;
mean_seconds_to_resolve?: number;
mean_user_defined_engaged_seconds?: number;
service_id: string;
service_name?: string;
team_id?: string;
team_name?: string;
total_business_hour_interruptions?: number;
total_down_time_minutes?: number;
total_engaged_seconds?: number;
total_escalation_count?: number;
total_high_urgency_incidents?: number;
total_incident_count?: number;
total_incidents_acknowledged?: number;
total_incidents_auto_resolved?: number;
total_incidents_manual_escalated?: number;
total_incidents_reassigned?: number;
total_incidents_timeout_escalated?: number;
total_interruptions?: number;
total_low_urgency_incidents?: number;
total_major_incidents?: number;
total_notifications?: number;
total_off_hour_interruptions?: number;
total_sleep_hour_interruptions?: number;
total_snoozed_seconds?: number;
total_user_defined_engaged_seconds?: number;
up_time_pct?: number;
}

/** @public */
export type PagerDutyServiceMetricsResponse = {
metrics: PagerDutyServiceMetrics[]
}

/** @public */
export type PagerDutyServicesResponse = {
services: PagerDutyService[];
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7928,12 +7928,12 @@ __metadata:
linkType: hard

"follow-redirects@npm:^1.0.0":
version: 1.15.5
resolution: "follow-redirects@npm:1.15.5"
version: 1.15.6
resolution: "follow-redirects@npm:1.15.6"
peerDependenciesMeta:
debug:
optional: true
checksum: 5ca49b5ce6f44338cbfc3546823357e7a70813cecc9b7b768158a1d32c1e62e7407c944402a918ea8c38ae2e78266312d617dc68783fac502cbb55e1047b34ec
checksum: a62c378dfc8c00f60b9c80cab158ba54e99ba0239a5dd7c81245e5a5b39d10f0c35e249c3379eae719ff0285fff88c365dd446fab19dee771f1d76252df1bbf5
languageName: node
linkType: hard

Expand Down

0 comments on commit 39ff8b0

Please sign in to comment.