| 1 | import type * as SVC from "@distilled.cloud/aws/codebuild"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { ReportGroup } from "./ReportGroup.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for `codebuild:GetReportGroupTrend` — aggregates a trend |
| 8 | * statistic (pass rate, duration, …) across the bound report group's most |
| 9 | * recent reports. |
| 10 | * ### Reading Reports |
| 11 | * **Example:** Read the Pass-Rate Trend |
| 12 | * ```typescript |
| 13 | * const getReportGroupTrend = yield* AWS.CodeBuild.GetReportGroupTrend(reportGroup); |
| 14 | * |
| 15 | * const { stats } = yield* getReportGroupTrend({ trendField: "PASS_RATE" }); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface GetReportGroupTrend extends Binding.Service< |
| 21 | GetReportGroupTrend, |
| 22 | "AWS.CodeBuild.GetReportGroupTrend", |
| 23 | <G extends ReportGroup>( |
| 24 | reportGroup: G, |
| 25 | ) => Effect.Effect< |
| 26 | ( |
| 27 | request: Omit<SVC.GetReportGroupTrendInput, "reportGroupArn">, |
| 28 | ) => Effect.Effect< |
| 29 | SVC.GetReportGroupTrendOutput, |
| 30 | SVC.GetReportGroupTrendError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const GetReportGroupTrend = Binding.Service<GetReportGroupTrend>( |
| 35 | "AWS.CodeBuild.GetReportGroupTrend", |
| 36 | ); |