| 1 | import type * as devopsguru from "@distilled.cloud/aws/devops-guru"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `devops-guru:DescribeAccountHealth`. |
| 7 | * |
| 8 | * Returns the number of open reactive and proactive insights, analyzed metrics, and resource hours for the account — the top line of an operations dashboard. |
| 9 | * Provide the implementation with |
| 10 | * `Effect.provide(AWS.DevOpsGuru.DescribeAccountHealthHttp)`. |
| 11 | * ### Account Health |
| 12 | * **Example:** Read Open Insight Counts |
| 13 | * ```typescript |
| 14 | * // init — account-level binding, no resource argument |
| 15 | * const describeAccountHealth = yield* AWS.DevOpsGuru.DescribeAccountHealth(); |
| 16 | * |
| 17 | * // runtime |
| 18 | * const health = yield* describeAccountHealth(); |
| 19 | * yield* Effect.log(`open reactive insights: ${health.OpenReactiveInsights}`); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | */ |
| 24 | export interface DescribeAccountHealth extends Binding.Service< |
| 25 | DescribeAccountHealth, |
| 26 | "AWS.DevOpsGuru.DescribeAccountHealth", |
| 27 | () => Effect.Effect< |
| 28 | ( |
| 29 | request?: devopsguru.DescribeAccountHealthRequest, |
| 30 | ) => Effect.Effect< |
| 31 | devopsguru.DescribeAccountHealthResponse, |
| 32 | devopsguru.DescribeAccountHealthError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const DescribeAccountHealth = Binding.Service<DescribeAccountHealth>( |
| 37 | "AWS.DevOpsGuru.DescribeAccountHealth", |
| 38 | ); |