@azure/arm-monitor 7.0.1-alpha.20220420.2 → 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 (418) 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 +26 -10
  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
@@ -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 Returns the specified association.
15
+ *
16
+ * @summary Returns the specified association.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsGet.json
18
+ */
19
+ function getAssociation() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceUri = "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm";
23
+ const associationName = "myAssociation";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const result = yield client.dataCollectionRuleAssociations.get(resourceUri, associationName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getAssociation().catch(console.error);
31
+ //# sourceMappingURL=dataCollectionRuleAssociationsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRuleAssociationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRuleAssociationsGetSample.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,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,oIAAoI,CAAC;QACvI,MAAM,eAAe,GAAG,eAAe,CAAC;QACxC,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,8BAA8B,CAAC,GAAG,CAC5D,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRuleAssociationsListByResourceSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRuleAssociationsListByResourceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRuleAssociationsListByResourceSample.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 Lists associations for the specified resource.
15
+ *
16
+ * @summary Lists associations for the specified resource.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByResource.json
18
+ */
19
+ function listAssociationsForSpecifiedResource() {
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/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm";
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.dataCollectionRuleAssociations.listByResource(resourceUri)), _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
+ listAssociationsForSpecifiedResource().catch(console.error);
44
+ //# sourceMappingURL=dataCollectionRuleAssociationsListByResourceSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRuleAssociationsListByResourceSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRuleAssociationsListByResourceSample.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,oCAAoC;;;QACjD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,oIAAoI,CAAC;QACvI,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,8BAA8B,CAAC,cAAc,CACzE,WAAW,CACZ,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,oCAAoC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRuleAssociationsListByRuleSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRuleAssociationsListByRuleSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRuleAssociationsListByRuleSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
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 associations for the specified data collection rule.
15
+ *
16
+ * @summary Lists associations for the specified data collection rule.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRuleAssociationsListByRule.json
18
+ */
19
+ function listAssociationsForSpecifiedDataCollectionRule() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
23
+ const resourceGroupName = "myResourceGroup";
24
+ const dataCollectionRuleName = "myCollectionRule";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new MonitorClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.dataCollectionRuleAssociations.listByRule(resourceGroupName, dataCollectionRuleName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listAssociationsForSpecifiedDataCollectionRule().catch(console.error);
45
+ //# sourceMappingURL=dataCollectionRuleAssociationsListByRuleSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRuleAssociationsListByRuleSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRuleAssociationsListByRuleSample.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,8CAA8C;;;QAC3D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;QAClD,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,8BAA8B,CAAC,UAAU,CACrE,iBAAiB,EACjB,sBAAsB,CACvB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,8CAA8C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,103 @@
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 Creates or updates a data collection rule.
15
+ *
16
+ * @summary Creates or updates a data collection rule.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesCreate.json
18
+ */
19
+ function createOrUpdateDataCollectionRule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const dataCollectionRuleName = "myCollectionRule";
24
+ const body = {
25
+ dataFlows: [
26
+ {
27
+ destinations: ["centralWorkspace"],
28
+ streams: [
29
+ "Microsoft-Perf",
30
+ "Microsoft-Syslog",
31
+ "Microsoft-WindowsEvent"
32
+ ]
33
+ }
34
+ ],
35
+ dataSources: {
36
+ performanceCounters: [
37
+ {
38
+ name: "cloudTeamCoreCounters",
39
+ counterSpecifiers: [
40
+ "Processor(_Total)% Processor Time",
41
+ "MemoryCommitted Bytes",
42
+ "LogicalDisk(_Total)Free Megabytes",
43
+ "PhysicalDisk(_Total)Avg. Disk Queue Length"
44
+ ],
45
+ samplingFrequencyInSeconds: 15,
46
+ streams: ["Microsoft-Perf"]
47
+ },
48
+ {
49
+ name: "appTeamExtraCounters",
50
+ counterSpecifiers: ["Process(_Total)Thread Count"],
51
+ samplingFrequencyInSeconds: 30,
52
+ streams: ["Microsoft-Perf"]
53
+ }
54
+ ],
55
+ syslog: [
56
+ {
57
+ name: "cronSyslog",
58
+ facilityNames: ["cron"],
59
+ logLevels: ["Debug", "Critical", "Emergency"],
60
+ streams: ["Microsoft-Syslog"]
61
+ },
62
+ {
63
+ name: "syslogBase",
64
+ facilityNames: ["syslog"],
65
+ logLevels: ["Alert", "Critical", "Emergency"],
66
+ streams: ["Microsoft-Syslog"]
67
+ }
68
+ ],
69
+ windowsEventLogs: [
70
+ {
71
+ name: "cloudSecurityTeamEvents",
72
+ streams: ["Microsoft-WindowsEvent"],
73
+ xPathQueries: ["Security!"]
74
+ },
75
+ {
76
+ name: "appTeam1AppEvents",
77
+ streams: ["Microsoft-WindowsEvent"],
78
+ xPathQueries: [
79
+ "System![System[(Level = 1 or Level = 2 or Level = 3)]]",
80
+ "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]"
81
+ ]
82
+ }
83
+ ]
84
+ },
85
+ destinations: {
86
+ logAnalytics: [
87
+ {
88
+ name: "centralWorkspace",
89
+ workspaceResourceId: "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/centralTeamWorkspace"
90
+ }
91
+ ]
92
+ },
93
+ location: "eastus"
94
+ };
95
+ const options = { body };
96
+ const credential = new DefaultAzureCredential();
97
+ const client = new MonitorClient(credential, subscriptionId);
98
+ const result = yield client.dataCollectionRules.create(resourceGroupName, dataCollectionRuleName, options);
99
+ console.log(result);
100
+ });
101
+ }
102
+ createOrUpdateDataCollectionRule().catch(console.error);
103
+ //# sourceMappingURL=dataCollectionRulesCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,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,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;QAClD,MAAM,IAAI,GAA+B;YACvC,SAAS,EAAE;gBACT;oBACE,YAAY,EAAE,CAAC,kBAAkB,CAAC;oBAClC,OAAO,EAAE;wBACP,gBAAgB;wBAChB,kBAAkB;wBAClB,wBAAwB;qBACzB;iBACF;aACF;YACD,WAAW,EAAE;gBACX,mBAAmB,EAAE;oBACnB;wBACE,IAAI,EAAE,uBAAuB;wBAC7B,iBAAiB,EAAE;4BACjB,mCAAmC;4BACnC,uBAAuB;4BACvB,mCAAmC;4BACnC,4CAA4C;yBAC7C;wBACD,0BAA0B,EAAE,EAAE;wBAC9B,OAAO,EAAE,CAAC,gBAAgB,CAAC;qBAC5B;oBACD;wBACE,IAAI,EAAE,sBAAsB;wBAC5B,iBAAiB,EAAE,CAAC,6BAA6B,CAAC;wBAClD,0BAA0B,EAAE,EAAE;wBAC9B,OAAO,EAAE,CAAC,gBAAgB,CAAC;qBAC5B;iBACF;gBACD,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,YAAY;wBAClB,aAAa,EAAE,CAAC,MAAM,CAAC;wBACvB,SAAS,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,CAAC,kBAAkB,CAAC;qBAC9B;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,aAAa,EAAE,CAAC,QAAQ,CAAC;wBACzB,SAAS,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,CAAC,kBAAkB,CAAC;qBAC9B;iBACF;gBACD,gBAAgB,EAAE;oBAChB;wBACE,IAAI,EAAE,yBAAyB;wBAC/B,OAAO,EAAE,CAAC,wBAAwB,CAAC;wBACnC,YAAY,EAAE,CAAC,WAAW,CAAC;qBAC5B;oBACD;wBACE,IAAI,EAAE,mBAAmB;wBACzB,OAAO,EAAE,CAAC,wBAAwB,CAAC;wBACnC,YAAY,EAAE;4BACZ,wDAAwD;4BACxD,8DAA8D;yBAC/D;qBACF;iBACF;aACF;YACD,YAAY,EAAE;gBACZ,YAAY,EAAE;oBACZ;wBACE,IAAI,EAAE,kBAAkB;wBACxB,mBAAmB,EACjB,4JAA4J;qBAC/J;iBACF;aACF;YACD,QAAQ,EAAE,QAAQ;SACnB,CAAC;QACF,MAAM,OAAO,GAA4C,EAAE,IAAI,EAAE,CAAC;QAClE,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,mBAAmB,CAAC,MAAM,CACpD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesDeleteSample.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 Deletes a data collection rule.
15
+ *
16
+ * @summary Deletes a data collection rule.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesDelete.json
18
+ */
19
+ function deleteDataCollectionRule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const dataCollectionRuleName = "myCollectionRule";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const result = yield client.dataCollectionRules.delete(resourceGroupName, dataCollectionRuleName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ deleteDataCollectionRule().catch(console.error);
31
+ //# sourceMappingURL=dataCollectionRulesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesDeleteSample.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,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;QAClD,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,mBAAmB,CAAC,MAAM,CACpD,iBAAiB,EACjB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesGetSample.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 Returns the specified data collection rule.
15
+ *
16
+ * @summary Returns the specified data collection rule.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesGet.json
18
+ */
19
+ function getDataCollectionRule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const dataCollectionRuleName = "myCollectionRule";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const result = yield client.dataCollectionRules.get(resourceGroupName, dataCollectionRuleName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getDataCollectionRule().catch(console.error);
31
+ //# sourceMappingURL=dataCollectionRulesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesGetSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesGetSample.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,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;QAClD,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,mBAAmB,CAAC,GAAG,CACjD,iBAAiB,EACjB,sBAAsB,CACvB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesListByResourceGroupSample.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 Lists all data collection rules in the specified resource group.
15
+ *
16
+ * @summary Lists all data collection rules in the specified resource group.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListByResourceGroup.json
18
+ */
19
+ function listDataCollectionRulesByResourceGroup() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
23
+ const resourceGroupName = "myResourceGroup";
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.dataCollectionRules.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
+ listDataCollectionRulesByResourceGroup().catch(console.error);
44
+ //# sourceMappingURL=dataCollectionRulesListByResourceGroupSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesListByResourceGroupSample.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,sCAAsC;;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,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,mBAAmB,CAAC,mBAAmB,CACnE,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,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesListBySubscriptionSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesListBySubscriptionSample.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 Lists all data collection rules in the specified subscription.
15
+ *
16
+ * @summary Lists all data collection rules in the specified subscription.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesListBySubscription.json
18
+ */
19
+ function listDataCollectionRulesBySubscription() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
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.dataCollectionRules.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
+ listDataCollectionRulesBySubscription().catch(console.error);
43
+ //# sourceMappingURL=dataCollectionRulesListBySubscriptionSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesListBySubscriptionSample.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,qCAAqC;;;QAClD,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,mBAAmB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA3D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataCollectionRulesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 Updates part of a data collection rule.
15
+ *
16
+ * @summary Updates part of a data collection rule.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2021-04-01/examples/DataCollectionRulesUpdate.json
18
+ */
19
+ function updateDataCollectionRule() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "703362b3-f278-4e4b-9179-c76eaf41ffc2";
22
+ const resourceGroupName = "myResourceGroup";
23
+ const dataCollectionRuleName = "myCollectionRule";
24
+ const body = { tags: { tag1: "A", tag2: "B", tag3: "C" } };
25
+ const options = { body };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new MonitorClient(credential, subscriptionId);
28
+ const result = yield client.dataCollectionRules.update(resourceGroupName, dataCollectionRuleName, options);
29
+ console.log(result);
30
+ });
31
+ }
32
+ updateDataCollectionRule().catch(console.error);
33
+ //# sourceMappingURL=dataCollectionRulesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataCollectionRulesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/dataCollectionRulesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,aAAa,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,sBAAsB,GAAG,kBAAkB,CAAC;QAClD,MAAM,IAAI,GAAsB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,CAAC;QAC9E,MAAM,OAAO,GAA4C,EAAE,IAAI,EAAE,CAAC;QAClE,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,mBAAmB,CAAC,MAAM,CACpD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=diagnosticSettingsCategoryGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosticSettingsCategoryGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/diagnosticSettingsCategoryGetSample.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 Gets the diagnostic settings category for the specified resource.
15
+ *
16
+ * @summary Gets the diagnostic settings category for the specified resource.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/getDiagnosticSettingsCategory.json
18
+ */
19
+ function getsTheDiagnosticSetting() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceUri = "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6";
23
+ const name = "WorkflowRuntime";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new MonitorClient(credential, subscriptionId);
26
+ const result = yield client.diagnosticSettingsCategory.get(resourceUri, name);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getsTheDiagnosticSetting().catch(console.error);
31
+ //# sourceMappingURL=diagnosticSettingsCategoryGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosticSettingsCategoryGetSample.js","sourceRoot":"","sources":["../../samples-dev/diagnosticSettingsCategoryGetSample.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,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,yHAAyH,CAAC;QAC5H,MAAM,IAAI,GAAG,iBAAiB,CAAC;QAC/B,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,0BAA0B,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=diagnosticSettingsCategoryListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosticSettingsCategoryListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/diagnosticSettingsCategoryListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
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 diagnostic settings categories for the specified resource.
15
+ *
16
+ * @summary Lists the diagnostic settings categories for the specified resource.
17
+ * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2017-05-01-preview/examples/listDiagnosticSettingsCategories.json
18
+ */
19
+ function getsTheDiagnosticSetting() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const resourceUri = "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new MonitorClient(credential, subscriptionId);
25
+ const result = yield client.diagnosticSettingsCategory.list(resourceUri);
26
+ console.log(result);
27
+ });
28
+ }
29
+ getsTheDiagnosticSetting().catch(console.error);
30
+ //# sourceMappingURL=diagnosticSettingsCategoryListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosticSettingsCategoryListSample.js","sourceRoot":"","sources":["../../samples-dev/diagnosticSettingsCategoryListSample.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,wBAAwB;;QACrC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,WAAW,GACf,yHAAyH,CAAC;QAC5H,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,0BAA0B,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,wBAAwB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=diagnosticSettingsCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diagnosticSettingsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/diagnosticSettingsCreateOrUpdateSample.ts"],"names":[],"mappings":""}