Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 3, 2024
1 parent 8d71777 commit c6b2a75
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
73 changes: 73 additions & 0 deletions src/resources/zero-trust/dex/http-tests/http-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ export interface DigitalExperienceMonitoringHTTPDetails {
* The name of the HTTP synthetic application test
*/
name?: string;

target_policies?: Array<DigitalExperienceMonitoringHTTPDetails.TargetPolicy>;

targeted?: boolean;
}

export namespace DigitalExperienceMonitoringHTTPDetails {
export interface HTTPStats {
availabilityPct: HTTPStats.AvailabilityPct;

dnsResponseTimeMs: HTTPStats.DNSResponseTimeMs;

httpStatusCode: Array<HTTPStats.HTTPStatusCode>;
Expand All @@ -72,6 +78,33 @@ export namespace DigitalExperienceMonitoringHTTPDetails {
}

export namespace HTTPStats {
export interface AvailabilityPct {
slots: Array<AvailabilityPct.Slot>;

/**
* average observed in the time period
*/
avg?: number | null;

/**
* highest observed in the time period
*/
max?: number | null;

/**
* lowest observed in the time period
*/
min?: number | null;
}

export namespace AvailabilityPct {
export interface Slot {
timestamp: string;

value: number;
}
}

export interface DNSResponseTimeMs {
slots: Array<DNSResponseTimeMs.Slot>;

Expand Down Expand Up @@ -167,6 +200,8 @@ export namespace DigitalExperienceMonitoringHTTPDetails {
}

export interface HTTPStatsByColo {
availabilityPct: HTTPStatsByColo.AvailabilityPct;

colo: string;

dnsResponseTimeMs: HTTPStatsByColo.DNSResponseTimeMs;
Expand All @@ -184,6 +219,33 @@ export namespace DigitalExperienceMonitoringHTTPDetails {
}

export namespace HTTPStatsByColo {
export interface AvailabilityPct {
slots: Array<AvailabilityPct.Slot>;

/**
* average observed in the time period
*/
avg?: number | null;

/**
* highest observed in the time period
*/
max?: number | null;

/**
* lowest observed in the time period
*/
min?: number | null;
}

export namespace AvailabilityPct {
export interface Slot {
timestamp: string;

value: number;
}
}

export interface DNSResponseTimeMs {
slots: Array<DNSResponseTimeMs.Slot>;

Expand Down Expand Up @@ -277,6 +339,17 @@ export namespace DigitalExperienceMonitoringHTTPDetails {
}
}
}

export interface TargetPolicy {
id: string;

/**
* Whether the policy is the default for the account
*/
default: boolean;

name: string;
}
}

export interface HTTPTestGetParams {
Expand Down
20 changes: 20 additions & 0 deletions src/resources/zero-trust/dex/tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ export namespace DigitalExperienceMonitoringTests {
*/
testsTotal: number;

/**
* percentage availability for all HTTP test results in response
*/
avgHttpAvailabilityPct?: number | null;

/**
* percentage availability for all traceroutes results in response
*/
Expand Down Expand Up @@ -98,6 +103,10 @@ export namespace DigitalExperienceMonitoringTests {
*/
method?: string;

target_policies?: Array<Test.TargetPolicy>;

targeted?: boolean;

tracerouteResults?: Test.TracerouteResults | null;

tracerouteResultsByColo?: Array<Test.TracerouteResultsByColo>;
Expand Down Expand Up @@ -213,6 +222,17 @@ export namespace DigitalExperienceMonitoringTests {
}
}

export interface TargetPolicy {
id: string;

/**
* Whether the policy is the default for the account
*/
default: boolean;

name: string;
}

export interface TracerouteResults {
roundTripTime: TracerouteResults.RoundTripTime;
}
Expand Down
15 changes: 15 additions & 0 deletions src/resources/zero-trust/dex/traceroute-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,27 @@ export interface DigitalExperienceMonitoringTracerouteDetails {
*/
name: string;

target_policies?: Array<DigitalExperienceMonitoringTracerouteDetails.TargetPolicy>;

targeted?: boolean;

tracerouteStats?: DigitalExperienceMonitoringTracerouteDetails.TracerouteStats | null;

tracerouteStatsByColo?: Array<DigitalExperienceMonitoringTracerouteDetails.TracerouteStatsByColo>;
}

export namespace DigitalExperienceMonitoringTracerouteDetails {
export interface TargetPolicy {
id: string;

/**
* Whether the policy is the default for the account
*/
default: boolean;

name: string;
}

export interface TracerouteStats {
availabilityPct: TracerouteStats.AvailabilityPct;

Expand Down

0 comments on commit c6b2a75

Please sign in to comment.