@azure/arm-monitor 7.0.1-alpha.20220412.1 → 7.0.1-alpha.20220427.1

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 (419) hide show
  1. package/CHANGELOG.md +3 -7
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +450 -333
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js +136 -0
  11. package/dist-esm/samples-dev/actionGroupsCreateOrUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/actionGroupsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/actionGroupsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/actionGroupsDeleteSample.js +31 -0
  15. package/dist-esm/samples-dev/actionGroupsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js +32 -0
  19. package/dist-esm/samples-dev/actionGroupsEnableReceiverSample.js.map +1 -0
  20. package/dist-esm/samples-dev/actionGroupsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/actionGroupsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/actionGroupsGetSample.js +31 -0
  23. package/dist-esm/samples-dev/actionGroupsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js +30 -0
  27. package/dist-esm/samples-dev/actionGroupsGetTestNotificationsSample.js.map +1 -0
  28. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js +44 -0
  31. package/dist-esm/samples-dev/actionGroupsListByResourceGroupSample.js.map +1 -0
  32. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js +43 -0
  35. package/dist-esm/samples-dev/actionGroupsListBySubscriptionIdSample.js.map +1 -0
  36. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js +124 -0
  39. package/dist-esm/samples-dev/actionGroupsPostTestNotificationsSample.js.map +1 -0
  40. package/dist-esm/samples-dev/actionGroupsUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/actionGroupsUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/actionGroupsUpdateSample.js +35 -0
  43. package/dist-esm/samples-dev/actionGroupsUpdateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js +52 -0
  47. package/dist-esm/samples-dev/activityLogAlertsCreateOrUpdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js +31 -0
  51. package/dist-esm/samples-dev/activityLogAlertsDeleteSample.js.map +1 -0
  52. package/dist-esm/samples-dev/activityLogAlertsGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/activityLogAlertsGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/activityLogAlertsGetSample.js +31 -0
  55. package/dist-esm/samples-dev/activityLogAlertsGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js +44 -0
  59. package/dist-esm/samples-dev/activityLogAlertsListByResourceGroupSample.js.map +1 -0
  60. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js +43 -0
  63. package/dist-esm/samples-dev/activityLogAlertsListBySubscriptionIdSample.js.map +1 -0
  64. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js +35 -0
  67. package/dist-esm/samples-dev/activityLogAlertsUpdateSample.js.map +1 -0
  68. package/dist-esm/samples-dev/activityLogsListSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/activityLogsListSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/activityLogsListSample.js +77 -0
  71. package/dist-esm/samples-dev/activityLogsListSample.js.map +1 -0
  72. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js +32 -0
  75. package/dist-esm/samples-dev/alertRuleIncidentsGetSample.js.map +1 -0
  76. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js +45 -0
  79. package/dist-esm/samples-dev/alertRuleIncidentsListByAlertRuleSample.js.map +1 -0
  80. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js +51 -0
  83. package/dist-esm/samples-dev/alertRulesCreateOrUpdateSample.js.map +1 -0
  84. package/dist-esm/samples-dev/alertRulesDeleteSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/alertRulesDeleteSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/alertRulesDeleteSample.js +31 -0
  87. package/dist-esm/samples-dev/alertRulesDeleteSample.js.map +1 -0
  88. package/dist-esm/samples-dev/alertRulesGetSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/alertRulesGetSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/alertRulesGetSample.js +31 -0
  91. package/dist-esm/samples-dev/alertRulesGetSample.js.map +1 -0
  92. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js +44 -0
  95. package/dist-esm/samples-dev/alertRulesListByResourceGroupSample.js.map +1 -0
  96. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js +43 -0
  99. package/dist-esm/samples-dev/alertRulesListBySubscriptionSample.js.map +1 -0
  100. package/dist-esm/samples-dev/alertRulesUpdateSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/alertRulesUpdateSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/alertRulesUpdateSample.js +52 -0
  103. package/dist-esm/samples-dev/alertRulesUpdateSample.js.map +1 -0
  104. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js +147 -0
  107. package/dist-esm/samples-dev/autoscaleSettingsCreateOrUpdateSample.js.map +1 -0
  108. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js +31 -0
  111. package/dist-esm/samples-dev/autoscaleSettingsDeleteSample.js.map +1 -0
  112. package/dist-esm/samples-dev/autoscaleSettingsGetSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/autoscaleSettingsGetSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/autoscaleSettingsGetSample.js +31 -0
  115. package/dist-esm/samples-dev/autoscaleSettingsGetSample.js.map +1 -0
  116. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js +44 -0
  119. package/dist-esm/samples-dev/autoscaleSettingsListByResourceGroupSample.js.map +1 -0
  120. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js +43 -0
  123. package/dist-esm/samples-dev/autoscaleSettingsListBySubscriptionSample.js.map +1 -0
  124. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js +148 -0
  127. package/dist-esm/samples-dev/autoscaleSettingsUpdateSample.js.map +1 -0
  128. package/dist-esm/samples-dev/baselinesListSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/baselinesListSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/baselinesListSample.js +54 -0
  131. package/dist-esm/samples-dev/baselinesListSample.js.map +1 -0
  132. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.d.ts +2 -0
  133. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.d.ts.map +1 -0
  134. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js +36 -0
  135. package/dist-esm/samples-dev/dataCollectionEndpointsCreateSample.js.map +1 -0
  136. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.d.ts +2 -0
  137. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.d.ts.map +1 -0
  138. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js +31 -0
  139. package/dist-esm/samples-dev/dataCollectionEndpointsDeleteSample.js.map +1 -0
  140. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.d.ts +2 -0
  141. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.d.ts.map +1 -0
  142. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js +31 -0
  143. package/dist-esm/samples-dev/dataCollectionEndpointsGetSample.js.map +1 -0
  144. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.d.ts +2 -0
  145. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.d.ts.map +1 -0
  146. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js +44 -0
  147. package/dist-esm/samples-dev/dataCollectionEndpointsListByResourceGroupSample.js.map +1 -0
  148. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.d.ts +2 -0
  149. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.d.ts.map +1 -0
  150. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js +43 -0
  151. package/dist-esm/samples-dev/dataCollectionEndpointsListBySubscriptionSample.js.map +1 -0
  152. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.d.ts +2 -0
  153. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.d.ts.map +1 -0
  154. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js +33 -0
  155. package/dist-esm/samples-dev/dataCollectionEndpointsUpdateSample.js.map +1 -0
  156. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.d.ts +2 -0
  157. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.d.ts.map +1 -0
  158. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js +35 -0
  159. package/dist-esm/samples-dev/dataCollectionRuleAssociationsCreateSample.js.map +1 -0
  160. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.d.ts +2 -0
  161. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.d.ts.map +1 -0
  162. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js +31 -0
  163. package/dist-esm/samples-dev/dataCollectionRuleAssociationsDeleteSample.js.map +1 -0
  164. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.d.ts +2 -0
  165. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.d.ts.map +1 -0
  166. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js +31 -0
  167. package/dist-esm/samples-dev/dataCollectionRuleAssociationsGetSample.js.map +1 -0
  168. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.d.ts +2 -0
  169. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.d.ts.map +1 -0
  170. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js +44 -0
  171. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByResourceSample.js.map +1 -0
  172. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.d.ts +2 -0
  173. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.d.ts.map +1 -0
  174. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js +45 -0
  175. package/dist-esm/samples-dev/dataCollectionRuleAssociationsListByRuleSample.js.map +1 -0
  176. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.d.ts +2 -0
  177. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.d.ts.map +1 -0
  178. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js +103 -0
  179. package/dist-esm/samples-dev/dataCollectionRulesCreateSample.js.map +1 -0
  180. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.d.ts +2 -0
  181. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.d.ts.map +1 -0
  182. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js +31 -0
  183. package/dist-esm/samples-dev/dataCollectionRulesDeleteSample.js.map +1 -0
  184. package/dist-esm/samples-dev/dataCollectionRulesGetSample.d.ts +2 -0
  185. package/dist-esm/samples-dev/dataCollectionRulesGetSample.d.ts.map +1 -0
  186. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js +31 -0
  187. package/dist-esm/samples-dev/dataCollectionRulesGetSample.js.map +1 -0
  188. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.d.ts +2 -0
  189. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.d.ts.map +1 -0
  190. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js +44 -0
  191. package/dist-esm/samples-dev/dataCollectionRulesListByResourceGroupSample.js.map +1 -0
  192. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.d.ts +2 -0
  193. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.d.ts.map +1 -0
  194. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js +43 -0
  195. package/dist-esm/samples-dev/dataCollectionRulesListBySubscriptionSample.js.map +1 -0
  196. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.d.ts +2 -0
  197. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.d.ts.map +1 -0
  198. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js +33 -0
  199. package/dist-esm/samples-dev/dataCollectionRulesUpdateSample.js.map +1 -0
  200. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.d.ts +2 -0
  201. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.d.ts.map +1 -0
  202. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js +31 -0
  203. package/dist-esm/samples-dev/diagnosticSettingsCategoryGetSample.js.map +1 -0
  204. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts +2 -0
  205. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.d.ts.map +1 -0
  206. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js +30 -0
  207. package/dist-esm/samples-dev/diagnosticSettingsCategoryListSample.js.map +1 -0
  208. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts +2 -0
  209. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.d.ts.map +1 -0
  210. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js +52 -0
  211. package/dist-esm/samples-dev/diagnosticSettingsCreateOrUpdateSample.js.map +1 -0
  212. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts +2 -0
  213. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.d.ts.map +1 -0
  214. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js +31 -0
  215. package/dist-esm/samples-dev/diagnosticSettingsDeleteSample.js.map +1 -0
  216. package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts +2 -0
  217. package/dist-esm/samples-dev/diagnosticSettingsGetSample.d.ts.map +1 -0
  218. package/dist-esm/samples-dev/diagnosticSettingsGetSample.js +31 -0
  219. package/dist-esm/samples-dev/diagnosticSettingsGetSample.js.map +1 -0
  220. package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts +2 -0
  221. package/dist-esm/samples-dev/diagnosticSettingsListSample.d.ts.map +1 -0
  222. package/dist-esm/samples-dev/diagnosticSettingsListSample.js +30 -0
  223. package/dist-esm/samples-dev/diagnosticSettingsListSample.js.map +1 -0
  224. package/dist-esm/samples-dev/eventCategoriesListSample.d.ts +2 -0
  225. package/dist-esm/samples-dev/eventCategoriesListSample.d.ts.map +1 -0
  226. package/dist-esm/samples-dev/eventCategoriesListSample.js +43 -0
  227. package/dist-esm/samples-dev/eventCategoriesListSample.js.map +1 -0
  228. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.d.ts +2 -0
  229. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.d.ts.map +1 -0
  230. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js +39 -0
  231. package/dist-esm/samples-dev/logProfilesCreateOrUpdateSample.js.map +1 -0
  232. package/dist-esm/samples-dev/logProfilesDeleteSample.d.ts +2 -0
  233. package/dist-esm/samples-dev/logProfilesDeleteSample.d.ts.map +1 -0
  234. package/dist-esm/samples-dev/logProfilesDeleteSample.js +30 -0
  235. package/dist-esm/samples-dev/logProfilesDeleteSample.js.map +1 -0
  236. package/dist-esm/samples-dev/logProfilesGetSample.d.ts +2 -0
  237. package/dist-esm/samples-dev/logProfilesGetSample.d.ts.map +1 -0
  238. package/dist-esm/samples-dev/logProfilesGetSample.js +30 -0
  239. package/dist-esm/samples-dev/logProfilesGetSample.js.map +1 -0
  240. package/dist-esm/samples-dev/logProfilesListSample.d.ts +2 -0
  241. package/dist-esm/samples-dev/logProfilesListSample.d.ts.map +1 -0
  242. package/dist-esm/samples-dev/logProfilesListSample.js +43 -0
  243. package/dist-esm/samples-dev/logProfilesListSample.js.map +1 -0
  244. package/dist-esm/samples-dev/logProfilesUpdateSample.d.ts +2 -0
  245. package/dist-esm/samples-dev/logProfilesUpdateSample.d.ts.map +1 -0
  246. package/dist-esm/samples-dev/logProfilesUpdateSample.js +38 -0
  247. package/dist-esm/samples-dev/logProfilesUpdateSample.js.map +1 -0
  248. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.d.ts +2 -0
  249. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.d.ts.map +1 -0
  250. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js +438 -0
  251. package/dist-esm/samples-dev/metricAlertsCreateOrUpdateSample.js.map +1 -0
  252. package/dist-esm/samples-dev/metricAlertsDeleteSample.d.ts +2 -0
  253. package/dist-esm/samples-dev/metricAlertsDeleteSample.d.ts.map +1 -0
  254. package/dist-esm/samples-dev/metricAlertsDeleteSample.js +31 -0
  255. package/dist-esm/samples-dev/metricAlertsDeleteSample.js.map +1 -0
  256. package/dist-esm/samples-dev/metricAlertsGetSample.d.ts +2 -0
  257. package/dist-esm/samples-dev/metricAlertsGetSample.d.ts.map +1 -0
  258. package/dist-esm/samples-dev/metricAlertsGetSample.js +139 -0
  259. package/dist-esm/samples-dev/metricAlertsGetSample.js.map +1 -0
  260. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.d.ts +2 -0
  261. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.d.ts.map +1 -0
  262. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js +44 -0
  263. package/dist-esm/samples-dev/metricAlertsListByResourceGroupSample.js.map +1 -0
  264. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.d.ts +2 -0
  265. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.d.ts.map +1 -0
  266. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js +43 -0
  267. package/dist-esm/samples-dev/metricAlertsListBySubscriptionSample.js.map +1 -0
  268. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.d.ts +2 -0
  269. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.d.ts.map +1 -0
  270. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js +32 -0
  271. package/dist-esm/samples-dev/metricAlertsStatusListByNameSample.js.map +1 -0
  272. package/dist-esm/samples-dev/metricAlertsStatusListSample.d.ts +2 -0
  273. package/dist-esm/samples-dev/metricAlertsStatusListSample.d.ts.map +1 -0
  274. package/dist-esm/samples-dev/metricAlertsStatusListSample.js +31 -0
  275. package/dist-esm/samples-dev/metricAlertsStatusListSample.js.map +1 -0
  276. package/dist-esm/samples-dev/metricAlertsUpdateSample.d.ts +2 -0
  277. package/dist-esm/samples-dev/metricAlertsUpdateSample.d.ts.map +1 -0
  278. package/dist-esm/samples-dev/metricAlertsUpdateSample.js +63 -0
  279. package/dist-esm/samples-dev/metricAlertsUpdateSample.js.map +1 -0
  280. package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts +2 -0
  281. package/dist-esm/samples-dev/metricDefinitionsListSample.d.ts.map +1 -0
  282. package/dist-esm/samples-dev/metricDefinitionsListSample.js +112 -0
  283. package/dist-esm/samples-dev/metricDefinitionsListSample.js.map +1 -0
  284. package/dist-esm/samples-dev/metricNamespacesListSample.d.ts +2 -0
  285. package/dist-esm/samples-dev/metricNamespacesListSample.d.ts.map +1 -0
  286. package/dist-esm/samples-dev/metricNamespacesListSample.js +46 -0
  287. package/dist-esm/samples-dev/metricNamespacesListSample.js.map +1 -0
  288. package/dist-esm/samples-dev/metricsListSample.d.ts +2 -0
  289. package/dist-esm/samples-dev/metricsListSample.d.ts.map +1 -0
  290. package/dist-esm/samples-dev/metricsListSample.js +108 -0
  291. package/dist-esm/samples-dev/metricsListSample.js.map +1 -0
  292. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  293. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  294. package/dist-esm/samples-dev/operationsListSample.js +29 -0
  295. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  296. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +2 -0
  297. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +1 -0
  298. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +38 -0
  299. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -0
  300. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  301. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  302. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +32 -0
  303. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  304. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  305. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  306. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +32 -0
  307. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  308. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.d.ts +2 -0
  309. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.d.ts.map +1 -0
  310. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js +45 -0
  311. package/dist-esm/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.js.map +1 -0
  312. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +2 -0
  313. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +1 -0
  314. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +32 -0
  315. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +1 -0
  316. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.d.ts +2 -0
  317. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.d.ts.map +1 -0
  318. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js +45 -0
  319. package/dist-esm/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.js.map +1 -0
  320. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.d.ts +2 -0
  321. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.d.ts.map +1 -0
  322. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js +31 -0
  323. package/dist-esm/samples-dev/privateLinkScopeOperationStatusGetSample.js.map +1 -0
  324. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.d.ts +2 -0
  325. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.d.ts.map +1 -0
  326. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js +35 -0
  327. package/dist-esm/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.js.map +1 -0
  328. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.d.ts +2 -0
  329. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.d.ts.map +1 -0
  330. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js +32 -0
  331. package/dist-esm/samples-dev/privateLinkScopedResourcesDeleteSample.js.map +1 -0
  332. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.d.ts +2 -0
  333. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.d.ts.map +1 -0
  334. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js +32 -0
  335. package/dist-esm/samples-dev/privateLinkScopedResourcesGetSample.js.map +1 -0
  336. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.d.ts +2 -0
  337. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.d.ts.map +1 -0
  338. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js +45 -0
  339. package/dist-esm/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.js.map +1 -0
  340. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.d.ts +2 -0
  341. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.d.ts.map +1 -0
  342. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js +56 -0
  343. package/dist-esm/samples-dev/privateLinkScopesCreateOrUpdateSample.js.map +1 -0
  344. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.d.ts +2 -0
  345. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.d.ts.map +1 -0
  346. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js +31 -0
  347. package/dist-esm/samples-dev/privateLinkScopesDeleteSample.js.map +1 -0
  348. package/dist-esm/samples-dev/privateLinkScopesGetSample.d.ts +2 -0
  349. package/dist-esm/samples-dev/privateLinkScopesGetSample.d.ts.map +1 -0
  350. package/dist-esm/samples-dev/privateLinkScopesGetSample.js +31 -0
  351. package/dist-esm/samples-dev/privateLinkScopesGetSample.js.map +1 -0
  352. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.d.ts +2 -0
  353. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.d.ts.map +1 -0
  354. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js +44 -0
  355. package/dist-esm/samples-dev/privateLinkScopesListByResourceGroupSample.js.map +1 -0
  356. package/dist-esm/samples-dev/privateLinkScopesListSample.d.ts +2 -0
  357. package/dist-esm/samples-dev/privateLinkScopesListSample.d.ts.map +1 -0
  358. package/dist-esm/samples-dev/privateLinkScopesListSample.js +43 -0
  359. package/dist-esm/samples-dev/privateLinkScopesListSample.js.map +1 -0
  360. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.d.ts +2 -0
  361. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.d.ts.map +1 -0
  362. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js +34 -0
  363. package/dist-esm/samples-dev/privateLinkScopesUpdateTagsSample.js.map +1 -0
  364. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.d.ts +2 -0
  365. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.d.ts.map +1 -0
  366. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js +138 -0
  367. package/dist-esm/samples-dev/scheduledQueryRulesCreateOrUpdateSample.js.map +1 -0
  368. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.d.ts +2 -0
  369. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.d.ts.map +1 -0
  370. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js +31 -0
  371. package/dist-esm/samples-dev/scheduledQueryRulesDeleteSample.js.map +1 -0
  372. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.d.ts +2 -0
  373. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.d.ts.map +1 -0
  374. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js +31 -0
  375. package/dist-esm/samples-dev/scheduledQueryRulesGetSample.js.map +1 -0
  376. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.d.ts +2 -0
  377. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.d.ts.map +1 -0
  378. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js +44 -0
  379. package/dist-esm/samples-dev/scheduledQueryRulesListByResourceGroupSample.js.map +1 -0
  380. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.d.ts +2 -0
  381. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.d.ts.map +1 -0
  382. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js +43 -0
  383. package/dist-esm/samples-dev/scheduledQueryRulesListBySubscriptionSample.js.map +1 -0
  384. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.d.ts +2 -0
  385. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.d.ts.map +1 -0
  386. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js +32 -0
  387. package/dist-esm/samples-dev/scheduledQueryRulesUpdateSample.js.map +1 -0
  388. package/dist-esm/samples-dev/tenantActivityLogsListSample.d.ts +2 -0
  389. package/dist-esm/samples-dev/tenantActivityLogsListSample.d.ts.map +1 -0
  390. package/dist-esm/samples-dev/tenantActivityLogsListSample.js +140 -0
  391. package/dist-esm/samples-dev/tenantActivityLogsListSample.js.map +1 -0
  392. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.d.ts +2 -0
  393. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.d.ts.map +1 -0
  394. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js +98 -0
  395. package/dist-esm/samples-dev/vmInsightsGetOnboardingStatusSample.js.map +1 -0
  396. package/dist-esm/src/monitorClient.d.ts.map +1 -1
  397. package/dist-esm/src/monitorClient.js +20 -2
  398. package/dist-esm/src/monitorClient.js.map +1 -1
  399. package/dist-esm/src/operations/actionGroups.d.ts.map +1 -1
  400. package/dist-esm/src/operations/actionGroups.js +3 -1
  401. package/dist-esm/src/operations/actionGroups.js.map +1 -1
  402. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  403. package/dist-esm/src/operations/privateEndpointConnections.js +6 -2
  404. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  405. package/dist-esm/src/operations/privateLinkScopedResources.d.ts.map +1 -1
  406. package/dist-esm/src/operations/privateLinkScopedResources.js +6 -2
  407. package/dist-esm/src/operations/privateLinkScopedResources.js.map +1 -1
  408. package/dist-esm/src/operations/privateLinkScopes.d.ts.map +1 -1
  409. package/dist-esm/src/operations/privateLinkScopes.js +3 -1
  410. package/dist-esm/src/operations/privateLinkScopes.js.map +1 -1
  411. package/package.json +27 -11
  412. package/rollup.config.js +6 -72
  413. package/src/monitorClient.ts +27 -2
  414. package/src/operations/actionGroups.ts +3 -1
  415. package/src/operations/privateEndpointConnections.ts +6 -2
  416. package/src/operations/privateLinkScopedResources.ts +6 -2
  417. package/src/operations/privateLinkScopes.ts +3 -1
  418. package/tsconfig.json +19 -5
  419. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricAlertsListByResourceGroupSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieve alert rule definitions in a resource group.
15
+ *
16
+ * @summary Retrieve alert rule definitions in a resource group.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json
18
+ */
19
+ function listMetricAlertRules() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7";
23
+ const resourceGroupName = "gigtest";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.metricAlerts.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ listMetricAlertRules().catch(console.error);
44
+ //# sourceMappingURL=metricAlertsListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/metricAlertsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricAlertsListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricAlertsListBySubscriptionSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieve alert rule definitions in a subscription.
15
+ *
16
+ * @summary Retrieve alert rule definitions in a subscription.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json
18
+ */
19
+ function listMetricAlertRules() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new MonitorClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.metricAlerts.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listMetricAlertRules().catch(console.error);
43
+ //# sourceMappingURL=metricAlertsListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/metricAlertsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAApD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricAlertsStatusListByNameSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsStatusListByNameSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricAlertsStatusListByNameSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieve an alert rule status.
15
+ *
16
+ * @summary Retrieve an alert rule status.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json
18
+ */
19
+ function getAnAlertRuleStatus() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "009f6022-67ec-423e-9aa7-691182870588";
22
+ const resourceGroupName = "EastUs";
23
+ const ruleName = "custom1";
24
+ const statusName = "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MonitorClient(credential, subscriptionId);
27
+ const result = yield client.metricAlertsStatus.listByName(resourceGroupName, ruleName, statusName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getAnAlertRuleStatus().catch(console.error);
32
+ //# sourceMappingURL=metricAlertsStatusListByNameSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsStatusListByNameSample.js","sourceRoot":"","sources":["../../samples-dev/metricAlertsStatusListByNameSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,QAAQ,GAAG,SAAS,CAAC;QAC3B,MAAM,UAAU,GACd,0LAA0L,CAAC;QAC7L,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,UAAU,CACvD,iBAAiB,EACjB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricAlertsStatusListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsStatusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricAlertsStatusListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Retrieve an alert rule status.
15
+ *
16
+ * @summary Retrieve an alert rule status.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json
18
+ */
19
+ function getAnAlertRuleStatus() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7";
22
+ const resourceGroupName = "gigtest";
23
+ const ruleName = "chiricutin";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const result = yield client.metricAlertsStatus.list(resourceGroupName, ruleName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAnAlertRuleStatus().catch(console.error);
31
+ //# sourceMappingURL=metricAlertsStatusListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsStatusListSample.js","sourceRoot":"","sources":["../../samples-dev/metricAlertsStatusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,IAAI,CACjD,iBAAiB,EACjB,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricAlertsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricAlertsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update an metric alert definition.
15
+ *
16
+ * @summary Update an metric alert definition.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json
18
+ */
19
+ function createOrUpdateAnAlertRule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7";
22
+ const resourceGroupName = "gigtest";
23
+ const ruleName = "chiricutin";
24
+ const parameters = {
25
+ description: "This is the description of the rule1",
26
+ actions: [
27
+ {
28
+ actionGroupId: "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
29
+ webHookProperties: { key11: "value11", key12: "value12" }
30
+ }
31
+ ],
32
+ autoMitigate: true,
33
+ criteria: {
34
+ allOf: [
35
+ {
36
+ name: "High_CPU_80",
37
+ criterionType: "StaticThresholdCriterion",
38
+ dimensions: [],
39
+ metricName: "Processor(_Total)% Processor Time",
40
+ operator: "GreaterThan",
41
+ threshold: 80.5,
42
+ timeAggregation: "Average"
43
+ }
44
+ ],
45
+ odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
46
+ },
47
+ enabled: true,
48
+ evaluationFrequency: "Pt1m",
49
+ scopes: [
50
+ "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"
51
+ ],
52
+ severity: 3,
53
+ tags: {},
54
+ windowSize: "Pt15m"
55
+ };
56
+ const credential = new DefaultAzureCredential();
57
+ const client = new MonitorClient(credential, subscriptionId);
58
+ const result = yield client.metricAlerts.update(resourceGroupName, ruleName, parameters);
59
+ console.log(result);
60
+ });
61
+ }
62
+ createOrUpdateAnAlertRule().catch(console.error);
63
+ //# sourceMappingURL=metricAlertsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricAlertsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/metricAlertsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAA4B,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAA6B;YAC3C,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE;gBACP;oBACE,aAAa,EACX,6HAA6H;oBAC/H,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBAC1D;aACF;YACD,YAAY,EAAE,IAAI;YAClB,QAAQ,EAAE;gBACR,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,aAAa;wBACnB,aAAa,EAAE,0BAA0B;wBACzC,UAAU,EAAE,EAAE;wBACd,UAAU,EAAE,mCAAmC;wBAC/C,QAAQ,EAAE,aAAa;wBACvB,SAAS,EAAE,IAAI;wBACf,eAAe,EAAE,SAAS;qBAC3B;iBACF;gBACD,SAAS,EAAE,8DAA8D;aAC1E;YACD,OAAO,EAAE,IAAI;YACb,mBAAmB,EAAE,MAAM;YAC3B,MAAM,EAAE;gBACN,iIAAiI;aAClI;YACD,QAAQ,EAAE,CAAC;YACX,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,OAAO;SACpB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAC7C,iBAAiB,EACjB,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricDefinitionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricDefinitionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricDefinitionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,112 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the metric definitions for the resource.
15
+ *
16
+ * @summary Lists the metric definitions for the resource.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json
18
+ */
19
+ function getApplicationInsightsMetricDefinitionsWithoutFilter() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const resourceUri = "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions";
24
+ const metricnamespace = "microsoft.insights/components";
25
+ const options = { metricnamespace };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MonitorClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.metricDefinitions.list(resourceUri, options)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ getApplicationInsightsMetricDefinitionsWithoutFilter().catch(console.error);
46
+ /**
47
+ * This sample demonstrates how to Lists the metric definitions for the resource.
48
+ *
49
+ * @summary Lists the metric definitions for the resource.
50
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json
51
+ */
52
+ function getMetricDefinitionsWithoutFilter() {
53
+ var e_2, _a;
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
56
+ const resourceUri = "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions";
57
+ const metricnamespace = "Microsoft.Web/sites";
58
+ const options = { metricnamespace };
59
+ const credential = new DefaultAzureCredential();
60
+ const client = new MonitorClient(credential, subscriptionId);
61
+ const resArray = new Array();
62
+ try {
63
+ for (var _b = __asyncValues(client.metricDefinitions.list(resourceUri, options)), _c; _c = yield _b.next(), !_c.done;) {
64
+ let item = _c.value;
65
+ resArray.push(item);
66
+ }
67
+ }
68
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
69
+ finally {
70
+ try {
71
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
72
+ }
73
+ finally { if (e_2) throw e_2.error; }
74
+ }
75
+ console.log(resArray);
76
+ });
77
+ }
78
+ getMetricDefinitionsWithoutFilter().catch(console.error);
79
+ /**
80
+ * This sample demonstrates how to Lists the metric definitions for the resource.
81
+ *
82
+ * @summary Lists the metric definitions for the resource.
83
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsMetricClass.json
84
+ */
85
+ function getStorageCacheMetricDefinitionsWithMetricClass() {
86
+ var e_3, _a;
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
89
+ const resourceUri = "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache";
90
+ const metricnamespace = "microsoft.storagecache/caches";
91
+ const options = { metricnamespace };
92
+ const credential = new DefaultAzureCredential();
93
+ const client = new MonitorClient(credential, subscriptionId);
94
+ const resArray = new Array();
95
+ try {
96
+ for (var _b = __asyncValues(client.metricDefinitions.list(resourceUri, options)), _c; _c = yield _b.next(), !_c.done;) {
97
+ let item = _c.value;
98
+ resArray.push(item);
99
+ }
100
+ }
101
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
102
+ finally {
103
+ try {
104
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
105
+ }
106
+ finally { if (e_3) throw e_3.error; }
107
+ }
108
+ console.log(resArray);
109
+ });
110
+ }
111
+ getStorageCacheMetricDefinitionsWithMetricClass().catch(console.error);
112
+ //# sourceMappingURL=metricDefinitionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricDefinitionsListSample.js","sourceRoot":"","sources":["../../samples-dev/metricDefinitionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oDAAoD;;;QACjE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,0KAA0K,CAAC;QAC7K,MAAM,eAAe,GAAG,+BAA+B,CAAC;QACxD,MAAM,OAAO,GAAwC,EAAE,eAAe,EAAE,CAAC;QACzE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA,IAAA;gBAA/D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,oDAAoD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,SAAe,iCAAiC;;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,8KAA8K,CAAC;QACjL,MAAM,eAAe,GAAG,qBAAqB,CAAC;QAC9C,MAAM,OAAO,GAAwC,EAAE,eAAe,EAAE,CAAC;QACzE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA,IAAA;gBAA/D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+CAA+C;;;QAC5D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,4IAA4I,CAAC;QAC/I,MAAM,eAAe,GAAG,+BAA+B,CAAC;QACxD,MAAM,OAAO,GAAwC,EAAE,eAAe,EAAE,CAAC;QACzE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA,IAAA;gBAA/D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,+CAA+C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricNamespacesListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricNamespacesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricNamespacesListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the metric namespaces for the resource.
15
+ *
16
+ * @summary Lists the metric namespaces for the resource.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-12-01-preview/examples/GetMetricNamespaces.json
18
+ */
19
+ function getMetricNamespacesWithoutFilter() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
23
+ const resourceUri = "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill";
24
+ const startTime = "2020-08-31T15:53:00Z";
25
+ const options = { startTime };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MonitorClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.metricNamespaces.list(resourceUri, options)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ getMetricNamespacesWithoutFilter().catch(console.error);
46
+ //# sourceMappingURL=metricNamespacesListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricNamespacesListSample.js","sourceRoot":"","sources":["../../samples-dev/metricNamespacesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,2HAA2H,CAAC;QAC9H,MAAM,SAAS,GAAG,sBAAsB,CAAC;QACzC,MAAM,OAAO,GAAuC,EAAE,SAAS,EAAE,CAAC;QAClE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA,IAAA;gBAA9D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=metricsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/metricsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to **Lists the metric values for a resource**.
15
+ *
16
+ * @summary **Lists the metric values for a resource**.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetric.json
18
+ */
19
+ function getMetricForData() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceUri = "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default";
23
+ const timespan = "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z";
24
+ const interval = "PT1M";
25
+ const aggregation = "Average,count";
26
+ const top = 3;
27
+ const orderby = "Average asc";
28
+ const filter = "BlobType eq '*'";
29
+ const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices";
30
+ const options = {
31
+ timespan,
32
+ interval,
33
+ aggregation,
34
+ top,
35
+ orderby,
36
+ filter,
37
+ metricnamespace
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new MonitorClient(credential, subscriptionId);
41
+ const result = yield client.metrics.list(resourceUri, options);
42
+ console.log(result);
43
+ });
44
+ }
45
+ getMetricForData().catch(console.error);
46
+ /**
47
+ * This sample demonstrates how to **Lists the metric values for a resource**.
48
+ *
49
+ * @summary **Lists the metric values for a resource**.
50
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricMetadata.json
51
+ */
52
+ function getMetricForMetadata() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
55
+ const resourceUri = "subscriptions/b324c52b-4073-4807-93af-e07d289c093e/resourceGroups/test/providers/Microsoft.Storage/storageAccounts/larryshoebox/blobServices/default";
56
+ const timespan = "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z";
57
+ const interval = "PT1M";
58
+ const aggregation = "Average,count";
59
+ const top = 3;
60
+ const orderby = "Average asc";
61
+ const filter = "BlobType eq '*'";
62
+ const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices";
63
+ const options = {
64
+ timespan,
65
+ interval,
66
+ aggregation,
67
+ top,
68
+ orderby,
69
+ filter,
70
+ metricnamespace
71
+ };
72
+ const credential = new DefaultAzureCredential();
73
+ const client = new MonitorClient(credential, subscriptionId);
74
+ const result = yield client.metrics.list(resourceUri, options);
75
+ console.log(result);
76
+ });
77
+ }
78
+ getMetricForMetadata().catch(console.error);
79
+ /**
80
+ * This sample demonstrates how to **Lists the metric values for a resource**.
81
+ *
82
+ * @summary **Lists the metric values for a resource**.
83
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricError.json
84
+ */
85
+ function getMetricWithError() {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
88
+ const resourceUri = "subscriptions/ac41e21f-afd6-4a79-8070-f01eba278f97/resourceGroups/todking/providers/Microsoft.DocumentDb/databaseAccounts/tk-cosmos-mongo";
89
+ const timespan = "2021-06-07T21:51:00Z/2021-06-08T01:51:00Z";
90
+ const interval = "FULL";
91
+ const metricnames = "MongoRequestsCount,MongoRequests";
92
+ const aggregation = "average";
93
+ const metricnamespace = "microsoft.documentdb/databaseaccounts";
94
+ const options = {
95
+ timespan,
96
+ interval,
97
+ metricnames,
98
+ aggregation,
99
+ metricnamespace
100
+ };
101
+ const credential = new DefaultAzureCredential();
102
+ const client = new MonitorClient(credential, subscriptionId);
103
+ const result = yield client.metrics.list(resourceUri, options);
104
+ console.log(result);
105
+ });
106
+ }
107
+ getMetricWithError().catch(console.error);
108
+ //# sourceMappingURL=metricsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricsListSample.js","sourceRoot":"","sources":["../../samples-dev/metricsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAA6B,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,sJAAsJ,CAAC;QACzJ,MAAM,QAAQ,GAAG,2CAA2C,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC;QACxB,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,GAAG,GAAG,CAAC,CAAC;QACd,MAAM,OAAO,GAAG,aAAa,CAAC;QAC9B,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,MAAM,eAAe,GAAG,gDAAgD,CAAC;QACzE,MAAM,OAAO,GAA8B;YACzC,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,GAAG;YACH,OAAO;YACP,MAAM;YACN,eAAe;SAChB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAExC;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,sJAAsJ,CAAC;QACzJ,MAAM,QAAQ,GAAG,2CAA2C,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC;QACxB,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,GAAG,GAAG,CAAC,CAAC;QACd,MAAM,OAAO,GAAG,aAAa,CAAC;QAC9B,MAAM,MAAM,GAAG,iBAAiB,CAAC;QACjC,MAAM,eAAe,GAAG,gDAAgD,CAAC;QACzE,MAAM,OAAO,GAA8B;YACzC,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,GAAG;YACH,OAAO;YACP,MAAM;YACN,eAAe;SAChB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,oBAAoB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE5C;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,2IAA2I,CAAC;QAC9I,MAAM,QAAQ,GAAG,2CAA2C,CAAC;QAC7D,MAAM,QAAQ,GAAG,MAAM,CAAC;QACxB,MAAM,WAAW,GAAG,kCAAkC,CAAC;QACvD,MAAM,WAAW,GAAG,SAAS,CAAC;QAC9B,MAAM,eAAe,GAAG,uCAAuC,CAAC;QAChE,MAAM,OAAO,GAA8B;YACzC,QAAQ;YACR,QAAQ;YACR,WAAW;YACX,WAAW;YACX,eAAe;SAChB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { MonitorClient } from "@azure/arm-monitor";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists all of the available operations from Microsoft.Insights provider.
15
+ *
16
+ * @summary Lists all of the available operations from Microsoft.Insights provider.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json
18
+ */
19
+ function getAListOfOperationsForAResourceProvider() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new MonitorClient(credential, subscriptionId);
24
+ const result = yield client.operations.list();
25
+ console.log(result);
26
+ });
27
+ }
28
+ getAListOfOperationsForAResourceProvider().catch(console.error);
29
+ //# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wCAAwC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts"],"names":[],"mappings":""}