@aws-cdk/metrics-facade-alpha 2.261.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/.jsii +1 -0
  2. package/.jsii.gz +0 -0
  3. package/.jsii.tabl.json.gz +0 -0
  4. package/.warnings.jsii.js +50 -0
  5. package/LICENSE +201 -0
  6. package/NOTICE +2 -0
  7. package/README.md +123 -0
  8. package/awslint.json +4 -0
  9. package/eslint-suppressions.json +2 -0
  10. package/jest.config.js +2 -0
  11. package/lib/index.d.ts +1 -0
  12. package/lib/index.js +3 -0
  13. package/lib/services/aws-amazonmq/.jsiirc.json +16 -0
  14. package/lib/services/aws-amazonmq/index.d.ts +1 -0
  15. package/lib/services/aws-amazonmq/index.js +17 -0
  16. package/lib/services/aws-amazonmq/metrics.generated.d.ts +141 -0
  17. package/lib/services/aws-amazonmq/metrics.generated.js +316 -0
  18. package/lib/services/aws-apigateway/.jsiirc.json +16 -0
  19. package/lib/services/aws-apigateway/index.d.ts +1 -0
  20. package/lib/services/aws-apigateway/index.js +17 -0
  21. package/lib/services/aws-apigateway/metrics.generated.d.ts +358 -0
  22. package/lib/services/aws-apigateway/metrics.generated.js +589 -0
  23. package/lib/services/aws-apigatewayv2/.jsiirc.json +16 -0
  24. package/lib/services/aws-apigatewayv2/index.d.ts +1 -0
  25. package/lib/services/aws-apigatewayv2/index.js +17 -0
  26. package/lib/services/aws-apigatewayv2/metrics.generated.d.ts +441 -0
  27. package/lib/services/aws-apigatewayv2/metrics.generated.js +779 -0
  28. package/lib/services/aws-appstream/.jsiirc.json +16 -0
  29. package/lib/services/aws-appstream/index.d.ts +1 -0
  30. package/lib/services/aws-appstream/index.js +17 -0
  31. package/lib/services/aws-appstream/metrics.generated.d.ts +255 -0
  32. package/lib/services/aws-appstream/metrics.generated.js +487 -0
  33. package/lib/services/aws-appsync/.jsiirc.json +16 -0
  34. package/lib/services/aws-appsync/index.d.ts +1 -0
  35. package/lib/services/aws-appsync/index.js +17 -0
  36. package/lib/services/aws-appsync/metrics.generated.d.ts +51 -0
  37. package/lib/services/aws-appsync/metrics.generated.js +106 -0
  38. package/lib/services/aws-autoscaling/.jsiirc.json +16 -0
  39. package/lib/services/aws-autoscaling/index.d.ts +1 -0
  40. package/lib/services/aws-autoscaling/index.js +17 -0
  41. package/lib/services/aws-autoscaling/metrics.generated.d.ts +86 -0
  42. package/lib/services/aws-autoscaling/metrics.generated.js +184 -0
  43. package/lib/services/aws-bedrock/.jsiirc.json +16 -0
  44. package/lib/services/aws-bedrock/index.d.ts +1 -0
  45. package/lib/services/aws-bedrock/index.js +17 -0
  46. package/lib/services/aws-bedrock/metrics.generated.d.ts +312 -0
  47. package/lib/services/aws-bedrock/metrics.generated.js +563 -0
  48. package/lib/services/aws-cloudfront/.jsiirc.json +16 -0
  49. package/lib/services/aws-cloudfront/index.d.ts +1 -0
  50. package/lib/services/aws-cloudfront/index.js +17 -0
  51. package/lib/services/aws-cloudfront/metrics.generated.d.ts +80 -0
  52. package/lib/services/aws-cloudfront/metrics.generated.js +157 -0
  53. package/lib/services/aws-cloudwatch/.jsiirc.json +16 -0
  54. package/lib/services/aws-cloudwatch/index.d.ts +1 -0
  55. package/lib/services/aws-cloudwatch/index.js +17 -0
  56. package/lib/services/aws-cloudwatch/metrics.generated.d.ts +56 -0
  57. package/lib/services/aws-cloudwatch/metrics.generated.js +114 -0
  58. package/lib/services/aws-codebuild/.jsiirc.json +16 -0
  59. package/lib/services/aws-codebuild/index.d.ts +1 -0
  60. package/lib/services/aws-codebuild/index.js +17 -0
  61. package/lib/services/aws-codebuild/metrics.generated.d.ts +62 -0
  62. package/lib/services/aws-codebuild/metrics.generated.js +128 -0
  63. package/lib/services/aws-codepipeline/.jsiirc.json +16 -0
  64. package/lib/services/aws-codepipeline/index.d.ts +1 -0
  65. package/lib/services/aws-codepipeline/index.js +17 -0
  66. package/lib/services/aws-codepipeline/metrics.generated.d.ts +27 -0
  67. package/lib/services/aws-codepipeline/metrics.generated.js +76 -0
  68. package/lib/services/aws-cognito/.jsiirc.json +16 -0
  69. package/lib/services/aws-cognito/index.d.ts +1 -0
  70. package/lib/services/aws-cognito/index.js +17 -0
  71. package/lib/services/aws-cognito/metrics.generated.d.ts +49 -0
  72. package/lib/services/aws-cognito/metrics.generated.js +93 -0
  73. package/lib/services/aws-datasync/.jsiirc.json +16 -0
  74. package/lib/services/aws-datasync/index.d.ts +1 -0
  75. package/lib/services/aws-datasync/index.js +17 -0
  76. package/lib/services/aws-datasync/metrics.generated.d.ts +138 -0
  77. package/lib/services/aws-datasync/metrics.generated.js +274 -0
  78. package/lib/services/aws-dax/.jsiirc.json +16 -0
  79. package/lib/services/aws-dax/index.d.ts +1 -0
  80. package/lib/services/aws-dax/index.js +17 -0
  81. package/lib/services/aws-dax/metrics.generated.d.ts +105 -0
  82. package/lib/services/aws-dax/metrics.generated.js +258 -0
  83. package/lib/services/aws-dms/.jsiirc.json +16 -0
  84. package/lib/services/aws-dms/index.d.ts +1 -0
  85. package/lib/services/aws-dms/index.js +17 -0
  86. package/lib/services/aws-dms/metrics.generated.d.ts +268 -0
  87. package/lib/services/aws-dms/metrics.generated.js +569 -0
  88. package/lib/services/aws-docdb/.jsiirc.json +16 -0
  89. package/lib/services/aws-docdb/index.d.ts +1 -0
  90. package/lib/services/aws-docdb/index.js +17 -0
  91. package/lib/services/aws-docdb/metrics.generated.d.ts +63 -0
  92. package/lib/services/aws-docdb/metrics.generated.js +134 -0
  93. package/lib/services/aws-dynamodb/.jsiirc.json +16 -0
  94. package/lib/services/aws-dynamodb/index.d.ts +1 -0
  95. package/lib/services/aws-dynamodb/index.js +17 -0
  96. package/lib/services/aws-dynamodb/metrics.generated.d.ts +444 -0
  97. package/lib/services/aws-dynamodb/metrics.generated.js +734 -0
  98. package/lib/services/aws-ec2/.jsiirc.json +16 -0
  99. package/lib/services/aws-ec2/index.d.ts +1 -0
  100. package/lib/services/aws-ec2/index.js +17 -0
  101. package/lib/services/aws-ec2/metrics.generated.d.ts +1226 -0
  102. package/lib/services/aws-ec2/metrics.generated.js +2434 -0
  103. package/lib/services/aws-ecs/.jsiirc.json +16 -0
  104. package/lib/services/aws-ecs/index.d.ts +1 -0
  105. package/lib/services/aws-ecs/index.js +17 -0
  106. package/lib/services/aws-ecs/metrics.generated.d.ts +105 -0
  107. package/lib/services/aws-ecs/metrics.generated.js +185 -0
  108. package/lib/services/aws-efs/.jsiirc.json +16 -0
  109. package/lib/services/aws-efs/index.d.ts +1 -0
  110. package/lib/services/aws-efs/index.js +17 -0
  111. package/lib/services/aws-efs/metrics.generated.d.ts +130 -0
  112. package/lib/services/aws-efs/metrics.generated.js +235 -0
  113. package/lib/services/aws-eks/.jsiirc.json +16 -0
  114. package/lib/services/aws-eks/index.d.ts +1 -0
  115. package/lib/services/aws-eks/index.js +17 -0
  116. package/lib/services/aws-eks/metrics.generated.d.ts +146 -0
  117. package/lib/services/aws-eks/metrics.generated.js +324 -0
  118. package/lib/services/aws-elasticache/.jsiirc.json +16 -0
  119. package/lib/services/aws-elasticache/index.d.ts +1 -0
  120. package/lib/services/aws-elasticache/index.js +17 -0
  121. package/lib/services/aws-elasticache/metrics.generated.d.ts +1729 -0
  122. package/lib/services/aws-elasticache/metrics.generated.js +3969 -0
  123. package/lib/services/aws-elasticbeanstalk/.jsiirc.json +16 -0
  124. package/lib/services/aws-elasticbeanstalk/index.d.ts +1 -0
  125. package/lib/services/aws-elasticbeanstalk/index.js +17 -0
  126. package/lib/services/aws-elasticbeanstalk/metrics.generated.d.ts +68 -0
  127. package/lib/services/aws-elasticbeanstalk/metrics.generated.js +142 -0
  128. package/lib/services/aws-elasticloadbalancing/.jsiirc.json +16 -0
  129. package/lib/services/aws-elasticloadbalancing/index.d.ts +1 -0
  130. package/lib/services/aws-elasticloadbalancing/index.js +17 -0
  131. package/lib/services/aws-elasticloadbalancing/metrics.generated.d.ts +231 -0
  132. package/lib/services/aws-elasticloadbalancing/metrics.generated.js +479 -0
  133. package/lib/services/aws-elasticloadbalancingv2/.jsiirc.json +16 -0
  134. package/lib/services/aws-elasticloadbalancingv2/index.d.ts +1 -0
  135. package/lib/services/aws-elasticloadbalancingv2/index.js +17 -0
  136. package/lib/services/aws-elasticloadbalancingv2/metrics.generated.d.ts +1110 -0
  137. package/lib/services/aws-elasticloadbalancingv2/metrics.generated.js +2168 -0
  138. package/lib/services/aws-emr/.jsiirc.json +16 -0
  139. package/lib/services/aws-emr/index.d.ts +1 -0
  140. package/lib/services/aws-emr/index.js +17 -0
  141. package/lib/services/aws-emr/metrics.generated.d.ts +333 -0
  142. package/lib/services/aws-emr/metrics.generated.js +764 -0
  143. package/lib/services/aws-events/.jsiirc.json +16 -0
  144. package/lib/services/aws-events/index.d.ts +1 -0
  145. package/lib/services/aws-events/index.js +17 -0
  146. package/lib/services/aws-events/metrics.generated.d.ts +75 -0
  147. package/lib/services/aws-events/metrics.generated.js +162 -0
  148. package/lib/services/aws-fsx/.jsiirc.json +16 -0
  149. package/lib/services/aws-fsx/index.d.ts +1 -0
  150. package/lib/services/aws-fsx/index.js +17 -0
  151. package/lib/services/aws-fsx/metrics.generated.d.ts +134 -0
  152. package/lib/services/aws-fsx/metrics.generated.js +296 -0
  153. package/lib/services/aws-gamelift/.jsiirc.json +16 -0
  154. package/lib/services/aws-gamelift/index.d.ts +1 -0
  155. package/lib/services/aws-gamelift/index.js +17 -0
  156. package/lib/services/aws-gamelift/metrics.generated.d.ts +80 -0
  157. package/lib/services/aws-gamelift/metrics.generated.js +170 -0
  158. package/lib/services/aws-iot/.jsiirc.json +16 -0
  159. package/lib/services/aws-iot/index.d.ts +1 -0
  160. package/lib/services/aws-iot/index.js +17 -0
  161. package/lib/services/aws-iot/metrics.generated.d.ts +62 -0
  162. package/lib/services/aws-iot/metrics.generated.js +128 -0
  163. package/lib/services/aws-kinesis/.jsiirc.json +16 -0
  164. package/lib/services/aws-kinesis/index.d.ts +1 -0
  165. package/lib/services/aws-kinesis/index.js +17 -0
  166. package/lib/services/aws-kinesis/metrics.generated.d.ts +110 -0
  167. package/lib/services/aws-kinesis/metrics.generated.js +240 -0
  168. package/lib/services/aws-kinesisanalytics/.jsiirc.json +16 -0
  169. package/lib/services/aws-kinesisanalytics/index.d.ts +1 -0
  170. package/lib/services/aws-kinesisanalytics/index.js +17 -0
  171. package/lib/services/aws-kinesisanalytics/metrics.generated.d.ts +39 -0
  172. package/lib/services/aws-kinesisanalytics/metrics.generated.js +78 -0
  173. package/lib/services/aws-kinesisfirehose/.jsiirc.json +16 -0
  174. package/lib/services/aws-kinesisfirehose/index.d.ts +1 -0
  175. package/lib/services/aws-kinesisfirehose/index.js +17 -0
  176. package/lib/services/aws-kinesisfirehose/metrics.generated.d.ts +182 -0
  177. package/lib/services/aws-kinesisfirehose/metrics.generated.js +408 -0
  178. package/lib/services/aws-kinesisvideo/.jsiirc.json +16 -0
  179. package/lib/services/aws-kinesisvideo/index.d.ts +1 -0
  180. package/lib/services/aws-kinesisvideo/index.js +17 -0
  181. package/lib/services/aws-kinesisvideo/metrics.generated.d.ts +86 -0
  182. package/lib/services/aws-kinesisvideo/metrics.generated.js +184 -0
  183. package/lib/services/aws-kms/.jsiirc.json +16 -0
  184. package/lib/services/aws-kms/index.d.ts +1 -0
  185. package/lib/services/aws-kms/index.js +17 -0
  186. package/lib/services/aws-kms/metrics.generated.d.ts +44 -0
  187. package/lib/services/aws-kms/metrics.generated.js +86 -0
  188. package/lib/services/aws-lambda/.jsiirc.json +16 -0
  189. package/lib/services/aws-lambda/index.d.ts +1 -0
  190. package/lib/services/aws-lambda/index.js +17 -0
  191. package/lib/services/aws-lambda/metrics.generated.d.ts +395 -0
  192. package/lib/services/aws-lambda/metrics.generated.js +801 -0
  193. package/lib/services/aws-lex/.jsiirc.json +16 -0
  194. package/lib/services/aws-lex/index.d.ts +1 -0
  195. package/lib/services/aws-lex/index.js +17 -0
  196. package/lib/services/aws-lex/metrics.generated.d.ts +95 -0
  197. package/lib/services/aws-lex/metrics.generated.js +192 -0
  198. package/lib/services/aws-logs/.jsiirc.json +16 -0
  199. package/lib/services/aws-logs/index.d.ts +1 -0
  200. package/lib/services/aws-logs/index.js +17 -0
  201. package/lib/services/aws-logs/metrics.generated.d.ts +110 -0
  202. package/lib/services/aws-logs/metrics.generated.js +240 -0
  203. package/lib/services/aws-mediaconvert/.jsiirc.json +16 -0
  204. package/lib/services/aws-mediaconvert/index.d.ts +1 -0
  205. package/lib/services/aws-mediaconvert/index.js +17 -0
  206. package/lib/services/aws-mediaconvert/metrics.generated.d.ts +87 -0
  207. package/lib/services/aws-mediaconvert/metrics.generated.js +190 -0
  208. package/lib/services/aws-medialive/.jsiirc.json +16 -0
  209. package/lib/services/aws-medialive/index.d.ts +1 -0
  210. package/lib/services/aws-medialive/index.js +17 -0
  211. package/lib/services/aws-medialive/metrics.generated.d.ts +121 -0
  212. package/lib/services/aws-medialive/metrics.generated.js +261 -0
  213. package/lib/services/aws-mediapackage/.jsiirc.json +16 -0
  214. package/lib/services/aws-mediapackage/index.d.ts +1 -0
  215. package/lib/services/aws-mediapackage/index.js +17 -0
  216. package/lib/services/aws-mediapackage/metrics.generated.d.ts +51 -0
  217. package/lib/services/aws-mediapackage/metrics.generated.js +106 -0
  218. package/lib/services/aws-mediastore/.jsiirc.json +16 -0
  219. package/lib/services/aws-mediastore/index.d.ts +1 -0
  220. package/lib/services/aws-mediastore/index.js +17 -0
  221. package/lib/services/aws-mediastore/metrics.generated.d.ts +79 -0
  222. package/lib/services/aws-mediastore/metrics.generated.js +163 -0
  223. package/lib/services/aws-memorydb/.jsiirc.json +16 -0
  224. package/lib/services/aws-memorydb/index.d.ts +1 -0
  225. package/lib/services/aws-memorydb/index.js +17 -0
  226. package/lib/services/aws-memorydb/metrics.generated.d.ts +236 -0
  227. package/lib/services/aws-memorydb/metrics.generated.js +534 -0
  228. package/lib/services/aws-neptune/.jsiirc.json +16 -0
  229. package/lib/services/aws-neptune/index.d.ts +1 -0
  230. package/lib/services/aws-neptune/index.js +17 -0
  231. package/lib/services/aws-neptune/metrics.generated.d.ts +116 -0
  232. package/lib/services/aws-neptune/metrics.generated.js +254 -0
  233. package/lib/services/aws-opsworks/.jsiirc.json +16 -0
  234. package/lib/services/aws-opsworks/index.d.ts +1 -0
  235. package/lib/services/aws-opsworks/index.js +17 -0
  236. package/lib/services/aws-opsworks/metrics.generated.d.ts +376 -0
  237. package/lib/services/aws-opsworks/metrics.generated.js +788 -0
  238. package/lib/services/aws-qldb/.jsiirc.json +16 -0
  239. package/lib/services/aws-qldb/index.d.ts +1 -0
  240. package/lib/services/aws-qldb/index.js +17 -0
  241. package/lib/services/aws-qldb/metrics.generated.d.ts +93 -0
  242. package/lib/services/aws-qldb/metrics.generated.js +204 -0
  243. package/lib/services/aws-quicksight/.jsiirc.json +16 -0
  244. package/lib/services/aws-quicksight/index.d.ts +1 -0
  245. package/lib/services/aws-quicksight/index.js +17 -0
  246. package/lib/services/aws-quicksight/metrics.generated.d.ts +217 -0
  247. package/lib/services/aws-quicksight/metrics.generated.js +394 -0
  248. package/lib/services/aws-rds/.jsiirc.json +16 -0
  249. package/lib/services/aws-rds/index.d.ts +1 -0
  250. package/lib/services/aws-rds/index.js +17 -0
  251. package/lib/services/aws-rds/metrics.generated.d.ts +189 -0
  252. package/lib/services/aws-rds/metrics.generated.js +388 -0
  253. package/lib/services/aws-redshift/.jsiirc.json +16 -0
  254. package/lib/services/aws-redshift/index.d.ts +1 -0
  255. package/lib/services/aws-redshift/index.js +17 -0
  256. package/lib/services/aws-redshift/metrics.generated.d.ts +594 -0
  257. package/lib/services/aws-redshift/metrics.generated.js +911 -0
  258. package/lib/services/aws-route53/.jsiirc.json +16 -0
  259. package/lib/services/aws-route53/index.d.ts +1 -0
  260. package/lib/services/aws-route53/index.js +17 -0
  261. package/lib/services/aws-route53/metrics.generated.d.ts +74 -0
  262. package/lib/services/aws-route53/metrics.generated.js +156 -0
  263. package/lib/services/aws-route53resolver/.jsiirc.json +16 -0
  264. package/lib/services/aws-route53resolver/index.d.ts +1 -0
  265. package/lib/services/aws-route53resolver/index.js +17 -0
  266. package/lib/services/aws-route53resolver/metrics.generated.d.ts +51 -0
  267. package/lib/services/aws-route53resolver/metrics.generated.js +106 -0
  268. package/lib/services/aws-s3/.jsiirc.json +16 -0
  269. package/lib/services/aws-s3/index.d.ts +1 -0
  270. package/lib/services/aws-s3/index.js +17 -0
  271. package/lib/services/aws-s3/metrics.generated.d.ts +58 -0
  272. package/lib/services/aws-s3/metrics.generated.js +103 -0
  273. package/lib/services/aws-sagemaker/.jsiirc.json +16 -0
  274. package/lib/services/aws-sagemaker/index.d.ts +1 -0
  275. package/lib/services/aws-sagemaker/index.js +17 -0
  276. package/lib/services/aws-sagemaker/metrics.generated.d.ts +73 -0
  277. package/lib/services/aws-sagemaker/metrics.generated.js +149 -0
  278. package/lib/services/aws-servicecatalog/.jsiirc.json +16 -0
  279. package/lib/services/aws-servicecatalog/index.d.ts +1 -0
  280. package/lib/services/aws-servicecatalog/index.js +17 -0
  281. package/lib/services/aws-servicecatalog/metrics.generated.d.ts +39 -0
  282. package/lib/services/aws-servicecatalog/metrics.generated.js +78 -0
  283. package/lib/services/aws-ses/.jsiirc.json +16 -0
  284. package/lib/services/aws-ses/index.d.ts +1 -0
  285. package/lib/services/aws-ses/index.js +17 -0
  286. package/lib/services/aws-ses/metrics.generated.d.ts +162 -0
  287. package/lib/services/aws-ses/metrics.generated.js +356 -0
  288. package/lib/services/aws-sns/.jsiirc.json +16 -0
  289. package/lib/services/aws-sns/index.d.ts +1 -0
  290. package/lib/services/aws-sns/index.js +17 -0
  291. package/lib/services/aws-sns/metrics.generated.d.ts +130 -0
  292. package/lib/services/aws-sns/metrics.generated.js +203 -0
  293. package/lib/services/aws-sqs/.jsiirc.json +16 -0
  294. package/lib/services/aws-sqs/index.d.ts +1 -0
  295. package/lib/services/aws-sqs/index.js +17 -0
  296. package/lib/services/aws-sqs/metrics.generated.d.ts +87 -0
  297. package/lib/services/aws-sqs/metrics.generated.js +190 -0
  298. package/lib/services/aws-stepfunctions/.jsiirc.json +16 -0
  299. package/lib/services/aws-stepfunctions/index.d.ts +1 -0
  300. package/lib/services/aws-stepfunctions/index.js +17 -0
  301. package/lib/services/aws-stepfunctions/metrics.generated.d.ts +159 -0
  302. package/lib/services/aws-stepfunctions/metrics.generated.js +318 -0
  303. package/lib/services/aws-synthetics/.jsiirc.json +16 -0
  304. package/lib/services/aws-synthetics/index.d.ts +1 -0
  305. package/lib/services/aws-synthetics/index.js +17 -0
  306. package/lib/services/aws-synthetics/metrics.generated.d.ts +80 -0
  307. package/lib/services/aws-synthetics/metrics.generated.js +170 -0
  308. package/lib/services/aws-timestream/.jsiirc.json +16 -0
  309. package/lib/services/aws-timestream/index.d.ts +1 -0
  310. package/lib/services/aws-timestream/index.js +17 -0
  311. package/lib/services/aws-timestream/metrics.generated.d.ts +54 -0
  312. package/lib/services/aws-timestream/metrics.generated.js +88 -0
  313. package/lib/services/aws-transfer/.jsiirc.json +16 -0
  314. package/lib/services/aws-transfer/index.d.ts +1 -0
  315. package/lib/services/aws-transfer/index.js +17 -0
  316. package/lib/services/aws-transfer/metrics.generated.d.ts +45 -0
  317. package/lib/services/aws-transfer/metrics.generated.js +92 -0
  318. package/lib/services/aws-workspaces/.jsiirc.json +16 -0
  319. package/lib/services/aws-workspaces/index.d.ts +1 -0
  320. package/lib/services/aws-workspaces/index.js +17 -0
  321. package/lib/services/aws-workspaces/metrics.generated.d.ts +836 -0
  322. package/lib/services/aws-workspaces/metrics.generated.js +1724 -0
  323. package/lib/services/index.d.ts +62 -0
  324. package/lib/services/index.js +99 -0
  325. package/package.json +189 -0
  326. package/rosetta/_generated.ts-fixture +6 -0
  327. package/rosetta/default.ts-fixture +5 -0
  328. package/scripts/config.d.ts +6 -0
  329. package/scripts/config.js +9 -0
  330. package/scripts/gen.d.ts +1 -0
  331. package/scripts/gen.js +133 -0
@@ -0,0 +1,1724 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.WorkSpacesMetrics = void 0;
37
+ /* eslint-disable @stylistic/max-len, eol-last */
38
+ const cloudwatch = __importStar(require("aws-cdk-lib/aws-cloudwatch"));
39
+ /**
40
+ * CloudWatch metrics facade for AWS/WorkSpaces
41
+ * This class contains helper functions to initialize the dimension-sets classes
42
+ * for selected resources if available.
43
+ *
44
+ * @stability external
45
+ */
46
+ class WorkSpacesMetrics {
47
+ /**
48
+ * Create WorkspaceMetrics from a Workspace reference
49
+ */
50
+ static fromWorkspace(ref) {
51
+ return new WorkSpacesMetrics.WorkspaceMetrics({
52
+ workspaceId: ref.workspaceRef.workspaceId
53
+ });
54
+ }
55
+ }
56
+ exports.WorkSpacesMetrics = WorkSpacesMetrics;
57
+ (function (WorkSpacesMetrics) {
58
+ /**
59
+ * Metrics for dimension set: Workspace {WorkspaceId}
60
+ *
61
+ * @stability external
62
+ */
63
+ class WorkspaceMetrics {
64
+ dimensions;
65
+ constructor(props) {
66
+ this.dimensions = {
67
+ WorkspaceId: props.workspaceId
68
+ };
69
+ }
70
+ /**
71
+ * Sum of the Available metric
72
+ *
73
+ * @default - Sum over 5 minutes
74
+ */
75
+ available(options) {
76
+ return new cloudwatch.Metric({
77
+ namespace: "AWS/WorkSpaces",
78
+ metricName: "Available",
79
+ dimensionsMap: this.dimensions,
80
+ statistic: "Sum",
81
+ ...options
82
+ });
83
+ }
84
+ /**
85
+ * Sum of the Unhealthy metric
86
+ *
87
+ * @default - Sum over 5 minutes
88
+ */
89
+ unhealthy(options) {
90
+ return new cloudwatch.Metric({
91
+ namespace: "AWS/WorkSpaces",
92
+ metricName: "Unhealthy",
93
+ dimensionsMap: this.dimensions,
94
+ statistic: "Sum",
95
+ ...options
96
+ });
97
+ }
98
+ /**
99
+ * Sum of the ConnectionAttempt metric
100
+ *
101
+ * @default - Sum over 5 minutes
102
+ */
103
+ connectionAttempt(options) {
104
+ return new cloudwatch.Metric({
105
+ namespace: "AWS/WorkSpaces",
106
+ metricName: "ConnectionAttempt",
107
+ dimensionsMap: this.dimensions,
108
+ statistic: "Sum",
109
+ ...options
110
+ });
111
+ }
112
+ /**
113
+ * Sum of the ConnectionSuccess metric
114
+ *
115
+ * @default - Sum over 5 minutes
116
+ */
117
+ connectionSuccess(options) {
118
+ return new cloudwatch.Metric({
119
+ namespace: "AWS/WorkSpaces",
120
+ metricName: "ConnectionSuccess",
121
+ dimensionsMap: this.dimensions,
122
+ statistic: "Sum",
123
+ ...options
124
+ });
125
+ }
126
+ /**
127
+ * Sum of the ConnectionFailure metric
128
+ *
129
+ * @default - Sum over 5 minutes
130
+ */
131
+ connectionFailure(options) {
132
+ return new cloudwatch.Metric({
133
+ namespace: "AWS/WorkSpaces",
134
+ metricName: "ConnectionFailure",
135
+ dimensionsMap: this.dimensions,
136
+ statistic: "Sum",
137
+ ...options
138
+ });
139
+ }
140
+ /**
141
+ * Average of the SessionLaunchTime metric
142
+ *
143
+ * @default - Average over 5 minutes
144
+ */
145
+ sessionLaunchTime(options) {
146
+ return new cloudwatch.Metric({
147
+ namespace: "AWS/WorkSpaces",
148
+ metricName: "SessionLaunchTime",
149
+ dimensionsMap: this.dimensions,
150
+ statistic: "Average",
151
+ ...options
152
+ });
153
+ }
154
+ /**
155
+ * Average of the InSessionLatency metric
156
+ *
157
+ * @default - Average over 5 minutes
158
+ */
159
+ inSessionLatency(options) {
160
+ return new cloudwatch.Metric({
161
+ namespace: "AWS/WorkSpaces",
162
+ metricName: "InSessionLatency",
163
+ dimensionsMap: this.dimensions,
164
+ statistic: "Average",
165
+ ...options
166
+ });
167
+ }
168
+ /**
169
+ * Sum of the SessionDisconnect metric
170
+ *
171
+ * @default - Sum over 5 minutes
172
+ */
173
+ sessionDisconnect(options) {
174
+ return new cloudwatch.Metric({
175
+ namespace: "AWS/WorkSpaces",
176
+ metricName: "SessionDisconnect",
177
+ dimensionsMap: this.dimensions,
178
+ statistic: "Sum",
179
+ ...options
180
+ });
181
+ }
182
+ /**
183
+ * Sum of the UserConnected metric
184
+ *
185
+ * @default - Sum over 5 minutes
186
+ */
187
+ userConnected(options) {
188
+ return new cloudwatch.Metric({
189
+ namespace: "AWS/WorkSpaces",
190
+ metricName: "UserConnected",
191
+ dimensionsMap: this.dimensions,
192
+ statistic: "Sum",
193
+ ...options
194
+ });
195
+ }
196
+ /**
197
+ * Sum of the Stopped metric
198
+ *
199
+ * @default - Sum over 5 minutes
200
+ */
201
+ stopped(options) {
202
+ return new cloudwatch.Metric({
203
+ namespace: "AWS/WorkSpaces",
204
+ metricName: "Stopped",
205
+ dimensionsMap: this.dimensions,
206
+ statistic: "Sum",
207
+ ...options
208
+ });
209
+ }
210
+ /**
211
+ * Sum of the Maintenance metric
212
+ *
213
+ * @default - Sum over 5 minutes
214
+ */
215
+ maintenance(options) {
216
+ return new cloudwatch.Metric({
217
+ namespace: "AWS/WorkSpaces",
218
+ metricName: "Maintenance",
219
+ dimensionsMap: this.dimensions,
220
+ statistic: "Sum",
221
+ ...options
222
+ });
223
+ }
224
+ /**
225
+ * Sum of the Restoring metric
226
+ *
227
+ * @default - Sum over 5 minutes
228
+ */
229
+ restoring(options) {
230
+ return new cloudwatch.Metric({
231
+ namespace: "AWS/WorkSpaces",
232
+ metricName: "Restoring",
233
+ dimensionsMap: this.dimensions,
234
+ statistic: "Sum",
235
+ ...options
236
+ });
237
+ }
238
+ /**
239
+ * Average of the CPUUsage metric
240
+ *
241
+ * @default - Average over 5 minutes
242
+ */
243
+ cpuUsage(options) {
244
+ return new cloudwatch.Metric({
245
+ namespace: "AWS/WorkSpaces",
246
+ metricName: "CPUUsage",
247
+ dimensionsMap: this.dimensions,
248
+ statistic: "Average",
249
+ ...options
250
+ });
251
+ }
252
+ /**
253
+ * Average of the MemoryUsage metric
254
+ *
255
+ * @default - Average over 5 minutes
256
+ */
257
+ memoryUsage(options) {
258
+ return new cloudwatch.Metric({
259
+ namespace: "AWS/WorkSpaces",
260
+ metricName: "MemoryUsage",
261
+ dimensionsMap: this.dimensions,
262
+ statistic: "Average",
263
+ ...options
264
+ });
265
+ }
266
+ /**
267
+ * Average of the RootVolumeDiskUsage metric
268
+ *
269
+ * @default - Average over 5 minutes
270
+ */
271
+ rootVolumeDiskUsage(options) {
272
+ return new cloudwatch.Metric({
273
+ namespace: "AWS/WorkSpaces",
274
+ metricName: "RootVolumeDiskUsage",
275
+ dimensionsMap: this.dimensions,
276
+ statistic: "Average",
277
+ ...options
278
+ });
279
+ }
280
+ /**
281
+ * Average of the UserVolumeDiskUsage metric
282
+ *
283
+ * @default - Average over 5 minutes
284
+ */
285
+ userVolumeDiskUsage(options) {
286
+ return new cloudwatch.Metric({
287
+ namespace: "AWS/WorkSpaces",
288
+ metricName: "UserVolumeDiskUsage",
289
+ dimensionsMap: this.dimensions,
290
+ statistic: "Average",
291
+ ...options
292
+ });
293
+ }
294
+ /**
295
+ * Average of the UDPPacketLossRate metric
296
+ *
297
+ * @default - Average over 5 minutes
298
+ */
299
+ udpPacketLossRate(options) {
300
+ return new cloudwatch.Metric({
301
+ namespace: "AWS/WorkSpaces",
302
+ metricName: "UDPPacketLossRate",
303
+ dimensionsMap: this.dimensions,
304
+ statistic: "Average",
305
+ ...options
306
+ });
307
+ }
308
+ /**
309
+ * Maximum of the UpTime metric
310
+ *
311
+ * @default - Maximum over 5 minutes
312
+ */
313
+ upTime(options) {
314
+ return new cloudwatch.Metric({
315
+ namespace: "AWS/WorkSpaces",
316
+ metricName: "UpTime",
317
+ dimensionsMap: this.dimensions,
318
+ statistic: "Maximum",
319
+ ...options
320
+ });
321
+ }
322
+ }
323
+ WorkSpacesMetrics.WorkspaceMetrics = WorkspaceMetrics;
324
+ /**
325
+ * Metrics for dimension set: RunningMode {RunningMode}
326
+ *
327
+ * @stability external
328
+ */
329
+ class RunningModeMetrics {
330
+ dimensions;
331
+ constructor(props) {
332
+ this.dimensions = {
333
+ RunningMode: props.runningMode
334
+ };
335
+ }
336
+ /**
337
+ * Sum of the Available metric
338
+ *
339
+ * @default - Sum over 5 minutes
340
+ */
341
+ available(options) {
342
+ return new cloudwatch.Metric({
343
+ namespace: "AWS/WorkSpaces",
344
+ metricName: "Available",
345
+ dimensionsMap: this.dimensions,
346
+ statistic: "Sum",
347
+ ...options
348
+ });
349
+ }
350
+ /**
351
+ * Sum of the Unhealthy metric
352
+ *
353
+ * @default - Sum over 5 minutes
354
+ */
355
+ unhealthy(options) {
356
+ return new cloudwatch.Metric({
357
+ namespace: "AWS/WorkSpaces",
358
+ metricName: "Unhealthy",
359
+ dimensionsMap: this.dimensions,
360
+ statistic: "Sum",
361
+ ...options
362
+ });
363
+ }
364
+ /**
365
+ * Sum of the ConnectionAttempt metric
366
+ *
367
+ * @default - Sum over 5 minutes
368
+ */
369
+ connectionAttempt(options) {
370
+ return new cloudwatch.Metric({
371
+ namespace: "AWS/WorkSpaces",
372
+ metricName: "ConnectionAttempt",
373
+ dimensionsMap: this.dimensions,
374
+ statistic: "Sum",
375
+ ...options
376
+ });
377
+ }
378
+ /**
379
+ * Sum of the ConnectionSuccess metric
380
+ *
381
+ * @default - Sum over 5 minutes
382
+ */
383
+ connectionSuccess(options) {
384
+ return new cloudwatch.Metric({
385
+ namespace: "AWS/WorkSpaces",
386
+ metricName: "ConnectionSuccess",
387
+ dimensionsMap: this.dimensions,
388
+ statistic: "Sum",
389
+ ...options
390
+ });
391
+ }
392
+ /**
393
+ * Sum of the ConnectionFailure metric
394
+ *
395
+ * @default - Sum over 5 minutes
396
+ */
397
+ connectionFailure(options) {
398
+ return new cloudwatch.Metric({
399
+ namespace: "AWS/WorkSpaces",
400
+ metricName: "ConnectionFailure",
401
+ dimensionsMap: this.dimensions,
402
+ statistic: "Sum",
403
+ ...options
404
+ });
405
+ }
406
+ /**
407
+ * Average of the SessionLaunchTime metric
408
+ *
409
+ * @default - Average over 5 minutes
410
+ */
411
+ sessionLaunchTime(options) {
412
+ return new cloudwatch.Metric({
413
+ namespace: "AWS/WorkSpaces",
414
+ metricName: "SessionLaunchTime",
415
+ dimensionsMap: this.dimensions,
416
+ statistic: "Average",
417
+ ...options
418
+ });
419
+ }
420
+ /**
421
+ * Average of the InSessionLatency metric
422
+ *
423
+ * @default - Average over 5 minutes
424
+ */
425
+ inSessionLatency(options) {
426
+ return new cloudwatch.Metric({
427
+ namespace: "AWS/WorkSpaces",
428
+ metricName: "InSessionLatency",
429
+ dimensionsMap: this.dimensions,
430
+ statistic: "Average",
431
+ ...options
432
+ });
433
+ }
434
+ /**
435
+ * Sum of the SessionDisconnect metric
436
+ *
437
+ * @default - Sum over 5 minutes
438
+ */
439
+ sessionDisconnect(options) {
440
+ return new cloudwatch.Metric({
441
+ namespace: "AWS/WorkSpaces",
442
+ metricName: "SessionDisconnect",
443
+ dimensionsMap: this.dimensions,
444
+ statistic: "Sum",
445
+ ...options
446
+ });
447
+ }
448
+ /**
449
+ * Sum of the UserConnected metric
450
+ *
451
+ * @default - Sum over 5 minutes
452
+ */
453
+ userConnected(options) {
454
+ return new cloudwatch.Metric({
455
+ namespace: "AWS/WorkSpaces",
456
+ metricName: "UserConnected",
457
+ dimensionsMap: this.dimensions,
458
+ statistic: "Sum",
459
+ ...options
460
+ });
461
+ }
462
+ /**
463
+ * Sum of the Stopped metric
464
+ *
465
+ * @default - Sum over 5 minutes
466
+ */
467
+ stopped(options) {
468
+ return new cloudwatch.Metric({
469
+ namespace: "AWS/WorkSpaces",
470
+ metricName: "Stopped",
471
+ dimensionsMap: this.dimensions,
472
+ statistic: "Sum",
473
+ ...options
474
+ });
475
+ }
476
+ /**
477
+ * Sum of the Maintenance metric
478
+ *
479
+ * @default - Sum over 5 minutes
480
+ */
481
+ maintenance(options) {
482
+ return new cloudwatch.Metric({
483
+ namespace: "AWS/WorkSpaces",
484
+ metricName: "Maintenance",
485
+ dimensionsMap: this.dimensions,
486
+ statistic: "Sum",
487
+ ...options
488
+ });
489
+ }
490
+ /**
491
+ * Sum of the Restoring metric
492
+ *
493
+ * @default - Sum over 5 minutes
494
+ */
495
+ restoring(options) {
496
+ return new cloudwatch.Metric({
497
+ namespace: "AWS/WorkSpaces",
498
+ metricName: "Restoring",
499
+ dimensionsMap: this.dimensions,
500
+ statistic: "Sum",
501
+ ...options
502
+ });
503
+ }
504
+ /**
505
+ * Average of the CPUUsage metric
506
+ *
507
+ * @default - Average over 5 minutes
508
+ */
509
+ cpuUsage(options) {
510
+ return new cloudwatch.Metric({
511
+ namespace: "AWS/WorkSpaces",
512
+ metricName: "CPUUsage",
513
+ dimensionsMap: this.dimensions,
514
+ statistic: "Average",
515
+ ...options
516
+ });
517
+ }
518
+ /**
519
+ * Average of the MemoryUsage metric
520
+ *
521
+ * @default - Average over 5 minutes
522
+ */
523
+ memoryUsage(options) {
524
+ return new cloudwatch.Metric({
525
+ namespace: "AWS/WorkSpaces",
526
+ metricName: "MemoryUsage",
527
+ dimensionsMap: this.dimensions,
528
+ statistic: "Average",
529
+ ...options
530
+ });
531
+ }
532
+ /**
533
+ * Average of the RootVolumeDiskUsage metric
534
+ *
535
+ * @default - Average over 5 minutes
536
+ */
537
+ rootVolumeDiskUsage(options) {
538
+ return new cloudwatch.Metric({
539
+ namespace: "AWS/WorkSpaces",
540
+ metricName: "RootVolumeDiskUsage",
541
+ dimensionsMap: this.dimensions,
542
+ statistic: "Average",
543
+ ...options
544
+ });
545
+ }
546
+ /**
547
+ * Average of the UserVolumeDiskUsage metric
548
+ *
549
+ * @default - Average over 5 minutes
550
+ */
551
+ userVolumeDiskUsage(options) {
552
+ return new cloudwatch.Metric({
553
+ namespace: "AWS/WorkSpaces",
554
+ metricName: "UserVolumeDiskUsage",
555
+ dimensionsMap: this.dimensions,
556
+ statistic: "Average",
557
+ ...options
558
+ });
559
+ }
560
+ /**
561
+ * Average of the UDPPacketLossRate metric
562
+ *
563
+ * @default - Average over 5 minutes
564
+ */
565
+ udpPacketLossRate(options) {
566
+ return new cloudwatch.Metric({
567
+ namespace: "AWS/WorkSpaces",
568
+ metricName: "UDPPacketLossRate",
569
+ dimensionsMap: this.dimensions,
570
+ statistic: "Average",
571
+ ...options
572
+ });
573
+ }
574
+ /**
575
+ * Maximum of the UpTime metric
576
+ *
577
+ * @default - Maximum over 5 minutes
578
+ */
579
+ upTime(options) {
580
+ return new cloudwatch.Metric({
581
+ namespace: "AWS/WorkSpaces",
582
+ metricName: "UpTime",
583
+ dimensionsMap: this.dimensions,
584
+ statistic: "Maximum",
585
+ ...options
586
+ });
587
+ }
588
+ }
589
+ WorkSpacesMetrics.RunningModeMetrics = RunningModeMetrics;
590
+ /**
591
+ * Metrics for dimension set: Protocol {Protocol}
592
+ *
593
+ * @stability external
594
+ */
595
+ class ProtocolMetrics {
596
+ dimensions;
597
+ constructor(props) {
598
+ this.dimensions = {
599
+ Protocol: props.protocol
600
+ };
601
+ }
602
+ /**
603
+ * Sum of the Available metric
604
+ *
605
+ * @default - Sum over 5 minutes
606
+ */
607
+ available(options) {
608
+ return new cloudwatch.Metric({
609
+ namespace: "AWS/WorkSpaces",
610
+ metricName: "Available",
611
+ dimensionsMap: this.dimensions,
612
+ statistic: "Sum",
613
+ ...options
614
+ });
615
+ }
616
+ /**
617
+ * Sum of the Unhealthy metric
618
+ *
619
+ * @default - Sum over 5 minutes
620
+ */
621
+ unhealthy(options) {
622
+ return new cloudwatch.Metric({
623
+ namespace: "AWS/WorkSpaces",
624
+ metricName: "Unhealthy",
625
+ dimensionsMap: this.dimensions,
626
+ statistic: "Sum",
627
+ ...options
628
+ });
629
+ }
630
+ /**
631
+ * Sum of the ConnectionAttempt metric
632
+ *
633
+ * @default - Sum over 5 minutes
634
+ */
635
+ connectionAttempt(options) {
636
+ return new cloudwatch.Metric({
637
+ namespace: "AWS/WorkSpaces",
638
+ metricName: "ConnectionAttempt",
639
+ dimensionsMap: this.dimensions,
640
+ statistic: "Sum",
641
+ ...options
642
+ });
643
+ }
644
+ /**
645
+ * Sum of the ConnectionSuccess metric
646
+ *
647
+ * @default - Sum over 5 minutes
648
+ */
649
+ connectionSuccess(options) {
650
+ return new cloudwatch.Metric({
651
+ namespace: "AWS/WorkSpaces",
652
+ metricName: "ConnectionSuccess",
653
+ dimensionsMap: this.dimensions,
654
+ statistic: "Sum",
655
+ ...options
656
+ });
657
+ }
658
+ /**
659
+ * Sum of the ConnectionFailure metric
660
+ *
661
+ * @default - Sum over 5 minutes
662
+ */
663
+ connectionFailure(options) {
664
+ return new cloudwatch.Metric({
665
+ namespace: "AWS/WorkSpaces",
666
+ metricName: "ConnectionFailure",
667
+ dimensionsMap: this.dimensions,
668
+ statistic: "Sum",
669
+ ...options
670
+ });
671
+ }
672
+ /**
673
+ * Average of the SessionLaunchTime metric
674
+ *
675
+ * @default - Average over 5 minutes
676
+ */
677
+ sessionLaunchTime(options) {
678
+ return new cloudwatch.Metric({
679
+ namespace: "AWS/WorkSpaces",
680
+ metricName: "SessionLaunchTime",
681
+ dimensionsMap: this.dimensions,
682
+ statistic: "Average",
683
+ ...options
684
+ });
685
+ }
686
+ /**
687
+ * Average of the InSessionLatency metric
688
+ *
689
+ * @default - Average over 5 minutes
690
+ */
691
+ inSessionLatency(options) {
692
+ return new cloudwatch.Metric({
693
+ namespace: "AWS/WorkSpaces",
694
+ metricName: "InSessionLatency",
695
+ dimensionsMap: this.dimensions,
696
+ statistic: "Average",
697
+ ...options
698
+ });
699
+ }
700
+ /**
701
+ * Sum of the SessionDisconnect metric
702
+ *
703
+ * @default - Sum over 5 minutes
704
+ */
705
+ sessionDisconnect(options) {
706
+ return new cloudwatch.Metric({
707
+ namespace: "AWS/WorkSpaces",
708
+ metricName: "SessionDisconnect",
709
+ dimensionsMap: this.dimensions,
710
+ statistic: "Sum",
711
+ ...options
712
+ });
713
+ }
714
+ /**
715
+ * Sum of the UserConnected metric
716
+ *
717
+ * @default - Sum over 5 minutes
718
+ */
719
+ userConnected(options) {
720
+ return new cloudwatch.Metric({
721
+ namespace: "AWS/WorkSpaces",
722
+ metricName: "UserConnected",
723
+ dimensionsMap: this.dimensions,
724
+ statistic: "Sum",
725
+ ...options
726
+ });
727
+ }
728
+ /**
729
+ * Sum of the Stopped metric
730
+ *
731
+ * @default - Sum over 5 minutes
732
+ */
733
+ stopped(options) {
734
+ return new cloudwatch.Metric({
735
+ namespace: "AWS/WorkSpaces",
736
+ metricName: "Stopped",
737
+ dimensionsMap: this.dimensions,
738
+ statistic: "Sum",
739
+ ...options
740
+ });
741
+ }
742
+ /**
743
+ * Sum of the Maintenance metric
744
+ *
745
+ * @default - Sum over 5 minutes
746
+ */
747
+ maintenance(options) {
748
+ return new cloudwatch.Metric({
749
+ namespace: "AWS/WorkSpaces",
750
+ metricName: "Maintenance",
751
+ dimensionsMap: this.dimensions,
752
+ statistic: "Sum",
753
+ ...options
754
+ });
755
+ }
756
+ /**
757
+ * Sum of the Restoring metric
758
+ *
759
+ * @default - Sum over 5 minutes
760
+ */
761
+ restoring(options) {
762
+ return new cloudwatch.Metric({
763
+ namespace: "AWS/WorkSpaces",
764
+ metricName: "Restoring",
765
+ dimensionsMap: this.dimensions,
766
+ statistic: "Sum",
767
+ ...options
768
+ });
769
+ }
770
+ /**
771
+ * Average of the CPUUsage metric
772
+ *
773
+ * @default - Average over 5 minutes
774
+ */
775
+ cpuUsage(options) {
776
+ return new cloudwatch.Metric({
777
+ namespace: "AWS/WorkSpaces",
778
+ metricName: "CPUUsage",
779
+ dimensionsMap: this.dimensions,
780
+ statistic: "Average",
781
+ ...options
782
+ });
783
+ }
784
+ /**
785
+ * Average of the MemoryUsage metric
786
+ *
787
+ * @default - Average over 5 minutes
788
+ */
789
+ memoryUsage(options) {
790
+ return new cloudwatch.Metric({
791
+ namespace: "AWS/WorkSpaces",
792
+ metricName: "MemoryUsage",
793
+ dimensionsMap: this.dimensions,
794
+ statistic: "Average",
795
+ ...options
796
+ });
797
+ }
798
+ /**
799
+ * Average of the RootVolumeDiskUsage metric
800
+ *
801
+ * @default - Average over 5 minutes
802
+ */
803
+ rootVolumeDiskUsage(options) {
804
+ return new cloudwatch.Metric({
805
+ namespace: "AWS/WorkSpaces",
806
+ metricName: "RootVolumeDiskUsage",
807
+ dimensionsMap: this.dimensions,
808
+ statistic: "Average",
809
+ ...options
810
+ });
811
+ }
812
+ /**
813
+ * Average of the UserVolumeDiskUsage metric
814
+ *
815
+ * @default - Average over 5 minutes
816
+ */
817
+ userVolumeDiskUsage(options) {
818
+ return new cloudwatch.Metric({
819
+ namespace: "AWS/WorkSpaces",
820
+ metricName: "UserVolumeDiskUsage",
821
+ dimensionsMap: this.dimensions,
822
+ statistic: "Average",
823
+ ...options
824
+ });
825
+ }
826
+ /**
827
+ * Average of the UDPPacketLossRate metric
828
+ *
829
+ * @default - Average over 5 minutes
830
+ */
831
+ udpPacketLossRate(options) {
832
+ return new cloudwatch.Metric({
833
+ namespace: "AWS/WorkSpaces",
834
+ metricName: "UDPPacketLossRate",
835
+ dimensionsMap: this.dimensions,
836
+ statistic: "Average",
837
+ ...options
838
+ });
839
+ }
840
+ /**
841
+ * Maximum of the UpTime metric
842
+ *
843
+ * @default - Maximum over 5 minutes
844
+ */
845
+ upTime(options) {
846
+ return new cloudwatch.Metric({
847
+ namespace: "AWS/WorkSpaces",
848
+ metricName: "UpTime",
849
+ dimensionsMap: this.dimensions,
850
+ statistic: "Maximum",
851
+ ...options
852
+ });
853
+ }
854
+ }
855
+ WorkSpacesMetrics.ProtocolMetrics = ProtocolMetrics;
856
+ /**
857
+ * Metrics for dimension set: ComputeType {ComputeType}
858
+ *
859
+ * @stability external
860
+ */
861
+ class ComputeTypeMetrics {
862
+ dimensions;
863
+ constructor(props) {
864
+ this.dimensions = {
865
+ ComputeType: props.computeType
866
+ };
867
+ }
868
+ /**
869
+ * Sum of the Available metric
870
+ *
871
+ * @default - Sum over 5 minutes
872
+ */
873
+ available(options) {
874
+ return new cloudwatch.Metric({
875
+ namespace: "AWS/WorkSpaces",
876
+ metricName: "Available",
877
+ dimensionsMap: this.dimensions,
878
+ statistic: "Sum",
879
+ ...options
880
+ });
881
+ }
882
+ /**
883
+ * Sum of the Unhealthy metric
884
+ *
885
+ * @default - Sum over 5 minutes
886
+ */
887
+ unhealthy(options) {
888
+ return new cloudwatch.Metric({
889
+ namespace: "AWS/WorkSpaces",
890
+ metricName: "Unhealthy",
891
+ dimensionsMap: this.dimensions,
892
+ statistic: "Sum",
893
+ ...options
894
+ });
895
+ }
896
+ /**
897
+ * Sum of the ConnectionAttempt metric
898
+ *
899
+ * @default - Sum over 5 minutes
900
+ */
901
+ connectionAttempt(options) {
902
+ return new cloudwatch.Metric({
903
+ namespace: "AWS/WorkSpaces",
904
+ metricName: "ConnectionAttempt",
905
+ dimensionsMap: this.dimensions,
906
+ statistic: "Sum",
907
+ ...options
908
+ });
909
+ }
910
+ /**
911
+ * Sum of the ConnectionSuccess metric
912
+ *
913
+ * @default - Sum over 5 minutes
914
+ */
915
+ connectionSuccess(options) {
916
+ return new cloudwatch.Metric({
917
+ namespace: "AWS/WorkSpaces",
918
+ metricName: "ConnectionSuccess",
919
+ dimensionsMap: this.dimensions,
920
+ statistic: "Sum",
921
+ ...options
922
+ });
923
+ }
924
+ /**
925
+ * Sum of the ConnectionFailure metric
926
+ *
927
+ * @default - Sum over 5 minutes
928
+ */
929
+ connectionFailure(options) {
930
+ return new cloudwatch.Metric({
931
+ namespace: "AWS/WorkSpaces",
932
+ metricName: "ConnectionFailure",
933
+ dimensionsMap: this.dimensions,
934
+ statistic: "Sum",
935
+ ...options
936
+ });
937
+ }
938
+ /**
939
+ * Average of the SessionLaunchTime metric
940
+ *
941
+ * @default - Average over 5 minutes
942
+ */
943
+ sessionLaunchTime(options) {
944
+ return new cloudwatch.Metric({
945
+ namespace: "AWS/WorkSpaces",
946
+ metricName: "SessionLaunchTime",
947
+ dimensionsMap: this.dimensions,
948
+ statistic: "Average",
949
+ ...options
950
+ });
951
+ }
952
+ /**
953
+ * Average of the InSessionLatency metric
954
+ *
955
+ * @default - Average over 5 minutes
956
+ */
957
+ inSessionLatency(options) {
958
+ return new cloudwatch.Metric({
959
+ namespace: "AWS/WorkSpaces",
960
+ metricName: "InSessionLatency",
961
+ dimensionsMap: this.dimensions,
962
+ statistic: "Average",
963
+ ...options
964
+ });
965
+ }
966
+ /**
967
+ * Sum of the SessionDisconnect metric
968
+ *
969
+ * @default - Sum over 5 minutes
970
+ */
971
+ sessionDisconnect(options) {
972
+ return new cloudwatch.Metric({
973
+ namespace: "AWS/WorkSpaces",
974
+ metricName: "SessionDisconnect",
975
+ dimensionsMap: this.dimensions,
976
+ statistic: "Sum",
977
+ ...options
978
+ });
979
+ }
980
+ /**
981
+ * Sum of the UserConnected metric
982
+ *
983
+ * @default - Sum over 5 minutes
984
+ */
985
+ userConnected(options) {
986
+ return new cloudwatch.Metric({
987
+ namespace: "AWS/WorkSpaces",
988
+ metricName: "UserConnected",
989
+ dimensionsMap: this.dimensions,
990
+ statistic: "Sum",
991
+ ...options
992
+ });
993
+ }
994
+ /**
995
+ * Sum of the Stopped metric
996
+ *
997
+ * @default - Sum over 5 minutes
998
+ */
999
+ stopped(options) {
1000
+ return new cloudwatch.Metric({
1001
+ namespace: "AWS/WorkSpaces",
1002
+ metricName: "Stopped",
1003
+ dimensionsMap: this.dimensions,
1004
+ statistic: "Sum",
1005
+ ...options
1006
+ });
1007
+ }
1008
+ /**
1009
+ * Sum of the Maintenance metric
1010
+ *
1011
+ * @default - Sum over 5 minutes
1012
+ */
1013
+ maintenance(options) {
1014
+ return new cloudwatch.Metric({
1015
+ namespace: "AWS/WorkSpaces",
1016
+ metricName: "Maintenance",
1017
+ dimensionsMap: this.dimensions,
1018
+ statistic: "Sum",
1019
+ ...options
1020
+ });
1021
+ }
1022
+ /**
1023
+ * Sum of the Restoring metric
1024
+ *
1025
+ * @default - Sum over 5 minutes
1026
+ */
1027
+ restoring(options) {
1028
+ return new cloudwatch.Metric({
1029
+ namespace: "AWS/WorkSpaces",
1030
+ metricName: "Restoring",
1031
+ dimensionsMap: this.dimensions,
1032
+ statistic: "Sum",
1033
+ ...options
1034
+ });
1035
+ }
1036
+ /**
1037
+ * Average of the CPUUsage metric
1038
+ *
1039
+ * @default - Average over 5 minutes
1040
+ */
1041
+ cpuUsage(options) {
1042
+ return new cloudwatch.Metric({
1043
+ namespace: "AWS/WorkSpaces",
1044
+ metricName: "CPUUsage",
1045
+ dimensionsMap: this.dimensions,
1046
+ statistic: "Average",
1047
+ ...options
1048
+ });
1049
+ }
1050
+ /**
1051
+ * Average of the MemoryUsage metric
1052
+ *
1053
+ * @default - Average over 5 minutes
1054
+ */
1055
+ memoryUsage(options) {
1056
+ return new cloudwatch.Metric({
1057
+ namespace: "AWS/WorkSpaces",
1058
+ metricName: "MemoryUsage",
1059
+ dimensionsMap: this.dimensions,
1060
+ statistic: "Average",
1061
+ ...options
1062
+ });
1063
+ }
1064
+ /**
1065
+ * Average of the RootVolumeDiskUsage metric
1066
+ *
1067
+ * @default - Average over 5 minutes
1068
+ */
1069
+ rootVolumeDiskUsage(options) {
1070
+ return new cloudwatch.Metric({
1071
+ namespace: "AWS/WorkSpaces",
1072
+ metricName: "RootVolumeDiskUsage",
1073
+ dimensionsMap: this.dimensions,
1074
+ statistic: "Average",
1075
+ ...options
1076
+ });
1077
+ }
1078
+ /**
1079
+ * Average of the UserVolumeDiskUsage metric
1080
+ *
1081
+ * @default - Average over 5 minutes
1082
+ */
1083
+ userVolumeDiskUsage(options) {
1084
+ return new cloudwatch.Metric({
1085
+ namespace: "AWS/WorkSpaces",
1086
+ metricName: "UserVolumeDiskUsage",
1087
+ dimensionsMap: this.dimensions,
1088
+ statistic: "Average",
1089
+ ...options
1090
+ });
1091
+ }
1092
+ /**
1093
+ * Average of the UDPPacketLossRate metric
1094
+ *
1095
+ * @default - Average over 5 minutes
1096
+ */
1097
+ udpPacketLossRate(options) {
1098
+ return new cloudwatch.Metric({
1099
+ namespace: "AWS/WorkSpaces",
1100
+ metricName: "UDPPacketLossRate",
1101
+ dimensionsMap: this.dimensions,
1102
+ statistic: "Average",
1103
+ ...options
1104
+ });
1105
+ }
1106
+ /**
1107
+ * Maximum of the UpTime metric
1108
+ *
1109
+ * @default - Maximum over 5 minutes
1110
+ */
1111
+ upTime(options) {
1112
+ return new cloudwatch.Metric({
1113
+ namespace: "AWS/WorkSpaces",
1114
+ metricName: "UpTime",
1115
+ dimensionsMap: this.dimensions,
1116
+ statistic: "Maximum",
1117
+ ...options
1118
+ });
1119
+ }
1120
+ }
1121
+ WorkSpacesMetrics.ComputeTypeMetrics = ComputeTypeMetrics;
1122
+ /**
1123
+ * Metrics for dimension set: Directory {DirectoryId}
1124
+ *
1125
+ * @stability external
1126
+ */
1127
+ class DirectoryMetrics {
1128
+ dimensions;
1129
+ constructor(props) {
1130
+ this.dimensions = {
1131
+ DirectoryId: props.directoryId
1132
+ };
1133
+ }
1134
+ /**
1135
+ * Sum of the Available metric
1136
+ *
1137
+ * @default - Sum over 5 minutes
1138
+ */
1139
+ available(options) {
1140
+ return new cloudwatch.Metric({
1141
+ namespace: "AWS/WorkSpaces",
1142
+ metricName: "Available",
1143
+ dimensionsMap: this.dimensions,
1144
+ statistic: "Sum",
1145
+ ...options
1146
+ });
1147
+ }
1148
+ /**
1149
+ * Sum of the Unhealthy metric
1150
+ *
1151
+ * @default - Sum over 5 minutes
1152
+ */
1153
+ unhealthy(options) {
1154
+ return new cloudwatch.Metric({
1155
+ namespace: "AWS/WorkSpaces",
1156
+ metricName: "Unhealthy",
1157
+ dimensionsMap: this.dimensions,
1158
+ statistic: "Sum",
1159
+ ...options
1160
+ });
1161
+ }
1162
+ /**
1163
+ * Sum of the ConnectionAttempt metric
1164
+ *
1165
+ * @default - Sum over 5 minutes
1166
+ */
1167
+ connectionAttempt(options) {
1168
+ return new cloudwatch.Metric({
1169
+ namespace: "AWS/WorkSpaces",
1170
+ metricName: "ConnectionAttempt",
1171
+ dimensionsMap: this.dimensions,
1172
+ statistic: "Sum",
1173
+ ...options
1174
+ });
1175
+ }
1176
+ /**
1177
+ * Sum of the ConnectionSuccess metric
1178
+ *
1179
+ * @default - Sum over 5 minutes
1180
+ */
1181
+ connectionSuccess(options) {
1182
+ return new cloudwatch.Metric({
1183
+ namespace: "AWS/WorkSpaces",
1184
+ metricName: "ConnectionSuccess",
1185
+ dimensionsMap: this.dimensions,
1186
+ statistic: "Sum",
1187
+ ...options
1188
+ });
1189
+ }
1190
+ /**
1191
+ * Sum of the ConnectionFailure metric
1192
+ *
1193
+ * @default - Sum over 5 minutes
1194
+ */
1195
+ connectionFailure(options) {
1196
+ return new cloudwatch.Metric({
1197
+ namespace: "AWS/WorkSpaces",
1198
+ metricName: "ConnectionFailure",
1199
+ dimensionsMap: this.dimensions,
1200
+ statistic: "Sum",
1201
+ ...options
1202
+ });
1203
+ }
1204
+ /**
1205
+ * Average of the SessionLaunchTime metric
1206
+ *
1207
+ * @default - Average over 5 minutes
1208
+ */
1209
+ sessionLaunchTime(options) {
1210
+ return new cloudwatch.Metric({
1211
+ namespace: "AWS/WorkSpaces",
1212
+ metricName: "SessionLaunchTime",
1213
+ dimensionsMap: this.dimensions,
1214
+ statistic: "Average",
1215
+ ...options
1216
+ });
1217
+ }
1218
+ /**
1219
+ * Average of the InSessionLatency metric
1220
+ *
1221
+ * @default - Average over 5 minutes
1222
+ */
1223
+ inSessionLatency(options) {
1224
+ return new cloudwatch.Metric({
1225
+ namespace: "AWS/WorkSpaces",
1226
+ metricName: "InSessionLatency",
1227
+ dimensionsMap: this.dimensions,
1228
+ statistic: "Average",
1229
+ ...options
1230
+ });
1231
+ }
1232
+ /**
1233
+ * Sum of the SessionDisconnect metric
1234
+ *
1235
+ * @default - Sum over 5 minutes
1236
+ */
1237
+ sessionDisconnect(options) {
1238
+ return new cloudwatch.Metric({
1239
+ namespace: "AWS/WorkSpaces",
1240
+ metricName: "SessionDisconnect",
1241
+ dimensionsMap: this.dimensions,
1242
+ statistic: "Sum",
1243
+ ...options
1244
+ });
1245
+ }
1246
+ /**
1247
+ * Sum of the UserConnected metric
1248
+ *
1249
+ * @default - Sum over 5 minutes
1250
+ */
1251
+ userConnected(options) {
1252
+ return new cloudwatch.Metric({
1253
+ namespace: "AWS/WorkSpaces",
1254
+ metricName: "UserConnected",
1255
+ dimensionsMap: this.dimensions,
1256
+ statistic: "Sum",
1257
+ ...options
1258
+ });
1259
+ }
1260
+ /**
1261
+ * Sum of the Stopped metric
1262
+ *
1263
+ * @default - Sum over 5 minutes
1264
+ */
1265
+ stopped(options) {
1266
+ return new cloudwatch.Metric({
1267
+ namespace: "AWS/WorkSpaces",
1268
+ metricName: "Stopped",
1269
+ dimensionsMap: this.dimensions,
1270
+ statistic: "Sum",
1271
+ ...options
1272
+ });
1273
+ }
1274
+ /**
1275
+ * Sum of the Maintenance metric
1276
+ *
1277
+ * @default - Sum over 5 minutes
1278
+ */
1279
+ maintenance(options) {
1280
+ return new cloudwatch.Metric({
1281
+ namespace: "AWS/WorkSpaces",
1282
+ metricName: "Maintenance",
1283
+ dimensionsMap: this.dimensions,
1284
+ statistic: "Sum",
1285
+ ...options
1286
+ });
1287
+ }
1288
+ /**
1289
+ * Sum of the Restoring metric
1290
+ *
1291
+ * @default - Sum over 5 minutes
1292
+ */
1293
+ restoring(options) {
1294
+ return new cloudwatch.Metric({
1295
+ namespace: "AWS/WorkSpaces",
1296
+ metricName: "Restoring",
1297
+ dimensionsMap: this.dimensions,
1298
+ statistic: "Sum",
1299
+ ...options
1300
+ });
1301
+ }
1302
+ /**
1303
+ * Average of the CPUUsage metric
1304
+ *
1305
+ * @default - Average over 5 minutes
1306
+ */
1307
+ cpuUsage(options) {
1308
+ return new cloudwatch.Metric({
1309
+ namespace: "AWS/WorkSpaces",
1310
+ metricName: "CPUUsage",
1311
+ dimensionsMap: this.dimensions,
1312
+ statistic: "Average",
1313
+ ...options
1314
+ });
1315
+ }
1316
+ /**
1317
+ * Average of the MemoryUsage metric
1318
+ *
1319
+ * @default - Average over 5 minutes
1320
+ */
1321
+ memoryUsage(options) {
1322
+ return new cloudwatch.Metric({
1323
+ namespace: "AWS/WorkSpaces",
1324
+ metricName: "MemoryUsage",
1325
+ dimensionsMap: this.dimensions,
1326
+ statistic: "Average",
1327
+ ...options
1328
+ });
1329
+ }
1330
+ /**
1331
+ * Average of the RootVolumeDiskUsage metric
1332
+ *
1333
+ * @default - Average over 5 minutes
1334
+ */
1335
+ rootVolumeDiskUsage(options) {
1336
+ return new cloudwatch.Metric({
1337
+ namespace: "AWS/WorkSpaces",
1338
+ metricName: "RootVolumeDiskUsage",
1339
+ dimensionsMap: this.dimensions,
1340
+ statistic: "Average",
1341
+ ...options
1342
+ });
1343
+ }
1344
+ /**
1345
+ * Average of the UserVolumeDiskUsage metric
1346
+ *
1347
+ * @default - Average over 5 minutes
1348
+ */
1349
+ userVolumeDiskUsage(options) {
1350
+ return new cloudwatch.Metric({
1351
+ namespace: "AWS/WorkSpaces",
1352
+ metricName: "UserVolumeDiskUsage",
1353
+ dimensionsMap: this.dimensions,
1354
+ statistic: "Average",
1355
+ ...options
1356
+ });
1357
+ }
1358
+ /**
1359
+ * Average of the UDPPacketLossRate metric
1360
+ *
1361
+ * @default - Average over 5 minutes
1362
+ */
1363
+ udpPacketLossRate(options) {
1364
+ return new cloudwatch.Metric({
1365
+ namespace: "AWS/WorkSpaces",
1366
+ metricName: "UDPPacketLossRate",
1367
+ dimensionsMap: this.dimensions,
1368
+ statistic: "Average",
1369
+ ...options
1370
+ });
1371
+ }
1372
+ /**
1373
+ * Maximum of the UpTime metric
1374
+ *
1375
+ * @default - Maximum over 5 minutes
1376
+ */
1377
+ upTime(options) {
1378
+ return new cloudwatch.Metric({
1379
+ namespace: "AWS/WorkSpaces",
1380
+ metricName: "UpTime",
1381
+ dimensionsMap: this.dimensions,
1382
+ statistic: "Maximum",
1383
+ ...options
1384
+ });
1385
+ }
1386
+ /**
1387
+ * Sum of the TrustedDeviceValidationAttempt metric
1388
+ *
1389
+ * @default - Sum over 5 minutes
1390
+ */
1391
+ trustedDeviceValidationAttempt(options) {
1392
+ return new cloudwatch.Metric({
1393
+ namespace: "AWS/WorkSpaces",
1394
+ metricName: "TrustedDeviceValidationAttempt",
1395
+ dimensionsMap: this.dimensions,
1396
+ statistic: "Sum",
1397
+ ...options
1398
+ });
1399
+ }
1400
+ /**
1401
+ * Sum of the TrustedDeviceValidationSuccess metric
1402
+ *
1403
+ * @default - Sum over 5 minutes
1404
+ */
1405
+ trustedDeviceValidationSuccess(options) {
1406
+ return new cloudwatch.Metric({
1407
+ namespace: "AWS/WorkSpaces",
1408
+ metricName: "TrustedDeviceValidationSuccess",
1409
+ dimensionsMap: this.dimensions,
1410
+ statistic: "Sum",
1411
+ ...options
1412
+ });
1413
+ }
1414
+ /**
1415
+ * Sum of the TrustedDeviceValidationFailure metric
1416
+ *
1417
+ * @default - Sum over 5 minutes
1418
+ */
1419
+ trustedDeviceValidationFailure(options) {
1420
+ return new cloudwatch.Metric({
1421
+ namespace: "AWS/WorkSpaces",
1422
+ metricName: "TrustedDeviceValidationFailure",
1423
+ dimensionsMap: this.dimensions,
1424
+ statistic: "Sum",
1425
+ ...options
1426
+ });
1427
+ }
1428
+ }
1429
+ WorkSpacesMetrics.DirectoryMetrics = DirectoryMetrics;
1430
+ /**
1431
+ * Metrics for dimension set: Bundle {BundleId}
1432
+ *
1433
+ * @stability external
1434
+ */
1435
+ class BundleMetrics {
1436
+ dimensions;
1437
+ constructor(props) {
1438
+ this.dimensions = {
1439
+ BundleId: props.bundleId
1440
+ };
1441
+ }
1442
+ /**
1443
+ * Sum of the Available metric
1444
+ *
1445
+ * @default - Sum over 5 minutes
1446
+ */
1447
+ available(options) {
1448
+ return new cloudwatch.Metric({
1449
+ namespace: "AWS/WorkSpaces",
1450
+ metricName: "Available",
1451
+ dimensionsMap: this.dimensions,
1452
+ statistic: "Sum",
1453
+ ...options
1454
+ });
1455
+ }
1456
+ /**
1457
+ * Sum of the Unhealthy metric
1458
+ *
1459
+ * @default - Sum over 5 minutes
1460
+ */
1461
+ unhealthy(options) {
1462
+ return new cloudwatch.Metric({
1463
+ namespace: "AWS/WorkSpaces",
1464
+ metricName: "Unhealthy",
1465
+ dimensionsMap: this.dimensions,
1466
+ statistic: "Sum",
1467
+ ...options
1468
+ });
1469
+ }
1470
+ /**
1471
+ * Sum of the ConnectionAttempt metric
1472
+ *
1473
+ * @default - Sum over 5 minutes
1474
+ */
1475
+ connectionAttempt(options) {
1476
+ return new cloudwatch.Metric({
1477
+ namespace: "AWS/WorkSpaces",
1478
+ metricName: "ConnectionAttempt",
1479
+ dimensionsMap: this.dimensions,
1480
+ statistic: "Sum",
1481
+ ...options
1482
+ });
1483
+ }
1484
+ /**
1485
+ * Sum of the ConnectionSuccess metric
1486
+ *
1487
+ * @default - Sum over 5 minutes
1488
+ */
1489
+ connectionSuccess(options) {
1490
+ return new cloudwatch.Metric({
1491
+ namespace: "AWS/WorkSpaces",
1492
+ metricName: "ConnectionSuccess",
1493
+ dimensionsMap: this.dimensions,
1494
+ statistic: "Sum",
1495
+ ...options
1496
+ });
1497
+ }
1498
+ /**
1499
+ * Sum of the ConnectionFailure metric
1500
+ *
1501
+ * @default - Sum over 5 minutes
1502
+ */
1503
+ connectionFailure(options) {
1504
+ return new cloudwatch.Metric({
1505
+ namespace: "AWS/WorkSpaces",
1506
+ metricName: "ConnectionFailure",
1507
+ dimensionsMap: this.dimensions,
1508
+ statistic: "Sum",
1509
+ ...options
1510
+ });
1511
+ }
1512
+ /**
1513
+ * Average of the SessionLaunchTime metric
1514
+ *
1515
+ * @default - Average over 5 minutes
1516
+ */
1517
+ sessionLaunchTime(options) {
1518
+ return new cloudwatch.Metric({
1519
+ namespace: "AWS/WorkSpaces",
1520
+ metricName: "SessionLaunchTime",
1521
+ dimensionsMap: this.dimensions,
1522
+ statistic: "Average",
1523
+ ...options
1524
+ });
1525
+ }
1526
+ /**
1527
+ * Average of the InSessionLatency metric
1528
+ *
1529
+ * @default - Average over 5 minutes
1530
+ */
1531
+ inSessionLatency(options) {
1532
+ return new cloudwatch.Metric({
1533
+ namespace: "AWS/WorkSpaces",
1534
+ metricName: "InSessionLatency",
1535
+ dimensionsMap: this.dimensions,
1536
+ statistic: "Average",
1537
+ ...options
1538
+ });
1539
+ }
1540
+ /**
1541
+ * Sum of the SessionDisconnect metric
1542
+ *
1543
+ * @default - Sum over 5 minutes
1544
+ */
1545
+ sessionDisconnect(options) {
1546
+ return new cloudwatch.Metric({
1547
+ namespace: "AWS/WorkSpaces",
1548
+ metricName: "SessionDisconnect",
1549
+ dimensionsMap: this.dimensions,
1550
+ statistic: "Sum",
1551
+ ...options
1552
+ });
1553
+ }
1554
+ /**
1555
+ * Sum of the UserConnected metric
1556
+ *
1557
+ * @default - Sum over 5 minutes
1558
+ */
1559
+ userConnected(options) {
1560
+ return new cloudwatch.Metric({
1561
+ namespace: "AWS/WorkSpaces",
1562
+ metricName: "UserConnected",
1563
+ dimensionsMap: this.dimensions,
1564
+ statistic: "Sum",
1565
+ ...options
1566
+ });
1567
+ }
1568
+ /**
1569
+ * Sum of the Stopped metric
1570
+ *
1571
+ * @default - Sum over 5 minutes
1572
+ */
1573
+ stopped(options) {
1574
+ return new cloudwatch.Metric({
1575
+ namespace: "AWS/WorkSpaces",
1576
+ metricName: "Stopped",
1577
+ dimensionsMap: this.dimensions,
1578
+ statistic: "Sum",
1579
+ ...options
1580
+ });
1581
+ }
1582
+ /**
1583
+ * Sum of the Maintenance metric
1584
+ *
1585
+ * @default - Sum over 5 minutes
1586
+ */
1587
+ maintenance(options) {
1588
+ return new cloudwatch.Metric({
1589
+ namespace: "AWS/WorkSpaces",
1590
+ metricName: "Maintenance",
1591
+ dimensionsMap: this.dimensions,
1592
+ statistic: "Sum",
1593
+ ...options
1594
+ });
1595
+ }
1596
+ /**
1597
+ * Sum of the Restoring metric
1598
+ *
1599
+ * @default - Sum over 5 minutes
1600
+ */
1601
+ restoring(options) {
1602
+ return new cloudwatch.Metric({
1603
+ namespace: "AWS/WorkSpaces",
1604
+ metricName: "Restoring",
1605
+ dimensionsMap: this.dimensions,
1606
+ statistic: "Sum",
1607
+ ...options
1608
+ });
1609
+ }
1610
+ /**
1611
+ * Average of the CPUUsage metric
1612
+ *
1613
+ * @default - Average over 5 minutes
1614
+ */
1615
+ cpuUsage(options) {
1616
+ return new cloudwatch.Metric({
1617
+ namespace: "AWS/WorkSpaces",
1618
+ metricName: "CPUUsage",
1619
+ dimensionsMap: this.dimensions,
1620
+ statistic: "Average",
1621
+ ...options
1622
+ });
1623
+ }
1624
+ /**
1625
+ * Average of the MemoryUsage metric
1626
+ *
1627
+ * @default - Average over 5 minutes
1628
+ */
1629
+ memoryUsage(options) {
1630
+ return new cloudwatch.Metric({
1631
+ namespace: "AWS/WorkSpaces",
1632
+ metricName: "MemoryUsage",
1633
+ dimensionsMap: this.dimensions,
1634
+ statistic: "Average",
1635
+ ...options
1636
+ });
1637
+ }
1638
+ /**
1639
+ * Average of the RootVolumeDiskUsage metric
1640
+ *
1641
+ * @default - Average over 5 minutes
1642
+ */
1643
+ rootVolumeDiskUsage(options) {
1644
+ return new cloudwatch.Metric({
1645
+ namespace: "AWS/WorkSpaces",
1646
+ metricName: "RootVolumeDiskUsage",
1647
+ dimensionsMap: this.dimensions,
1648
+ statistic: "Average",
1649
+ ...options
1650
+ });
1651
+ }
1652
+ /**
1653
+ * Average of the UserVolumeDiskUsage metric
1654
+ *
1655
+ * @default - Average over 5 minutes
1656
+ */
1657
+ userVolumeDiskUsage(options) {
1658
+ return new cloudwatch.Metric({
1659
+ namespace: "AWS/WorkSpaces",
1660
+ metricName: "UserVolumeDiskUsage",
1661
+ dimensionsMap: this.dimensions,
1662
+ statistic: "Average",
1663
+ ...options
1664
+ });
1665
+ }
1666
+ /**
1667
+ * Average of the UDPPacketLossRate metric
1668
+ *
1669
+ * @default - Average over 5 minutes
1670
+ */
1671
+ udpPacketLossRate(options) {
1672
+ return new cloudwatch.Metric({
1673
+ namespace: "AWS/WorkSpaces",
1674
+ metricName: "UDPPacketLossRate",
1675
+ dimensionsMap: this.dimensions,
1676
+ statistic: "Average",
1677
+ ...options
1678
+ });
1679
+ }
1680
+ /**
1681
+ * Maximum of the UpTime metric
1682
+ *
1683
+ * @default - Maximum over 5 minutes
1684
+ */
1685
+ upTime(options) {
1686
+ return new cloudwatch.Metric({
1687
+ namespace: "AWS/WorkSpaces",
1688
+ metricName: "UpTime",
1689
+ dimensionsMap: this.dimensions,
1690
+ statistic: "Maximum",
1691
+ ...options
1692
+ });
1693
+ }
1694
+ }
1695
+ WorkSpacesMetrics.BundleMetrics = BundleMetrics;
1696
+ /**
1697
+ * Metrics for dimension set: Certificate {CertificateId}
1698
+ *
1699
+ * @stability external
1700
+ */
1701
+ class CertificateMetrics {
1702
+ dimensions;
1703
+ constructor(props) {
1704
+ this.dimensions = {
1705
+ CertificateId: props.certificateId
1706
+ };
1707
+ }
1708
+ /**
1709
+ * Sum of the TrustedDeviceCertificateDaysBeforeExpiration metric
1710
+ *
1711
+ * @default - Sum over 5 minutes
1712
+ */
1713
+ trustedDeviceCertificateDaysBeforeExpiration(options) {
1714
+ return new cloudwatch.Metric({
1715
+ namespace: "AWS/WorkSpaces",
1716
+ metricName: "TrustedDeviceCertificateDaysBeforeExpiration",
1717
+ dimensionsMap: this.dimensions,
1718
+ statistic: "Sum",
1719
+ ...options
1720
+ });
1721
+ }
1722
+ }
1723
+ WorkSpacesMetrics.CertificateMetrics = CertificateMetrics;
1724
+ })(WorkSpacesMetrics || (exports.WorkSpacesMetrics = WorkSpacesMetrics = {}));