diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 002b3c1a4f27..5422d545cfd8 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11715,7 +11715,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-5SQ2VOSLdJ9YuZeYoc+9HlTupWC4dM9Hqqp+DneLOvgeS/3N6dbEyHrlvcVKcsOdlw5+VdFiSMR+nrI9uifilQ==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-t2N03m2Q5O1f2XqDWqIw/LdOg1+7nT3PpBIXgT3U268H2kCSKbjSjIqK4ucEMMFe7Bml9snewVFmxPckUkq58w==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -11750,7 +11750,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-2Tw2vVl4liajcKpa0jnb3FJYV4Zgf87HWBTGkLGEqPHxJ7/M2TbK9guKm6/cIKdUwi3vdOsdxGDnZ9o4JWdtSg==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-qsbgUXp/2RcQCa+sDOQ6/J2CKlvsxRR6R2XGX3gjxSRNOSTf3TaBr3T6AEL9ZINSaPPLzVLJr2L3sqdWgt6dRw==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -11797,7 +11797,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-70Gk1gY+TS+T4iZDM79vBBDkmnk3TWh/KVzui4HVVDaRmLoS3TiJeWgCQDErAZ4Nkhwil8Z96vrOfjNmLRfH2w==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-rzByqDmaaneWm0SE34/dARzxW8OHa7PXg6TwMalLADA5iauKvhp0O86igHMyCrDbTvLLH4iGXxt6B7J8Mg9IRQ==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -11844,7 +11844,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-+ZubJgUKJpj5LvlUyz52Ds5rbw5OIvPPpMChF9bjVYft6qcY69C81UtUV7tlNx5lvWzbXly4El1zeJgN6TWn0A==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-b3ksHaPHKhw7AND4BCk1aRpiC47MZoEhbk223qDOFkmu0PDnEpPqOPWlSA89meXc5/89H9dBoJl06bquFmFagg==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -11889,7 +11889,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-vz9jPN1VeITQ9J8Z5W4FaW4TpWHGyOH4BrudrSX3clGLVdFDY9tzUVyAC5a4EQA5mJluMpVCtLzLNHhBe8Ki4w==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-cbX3F12y9Yq0fCDXKAntgROx1E6zWDA+WXSnTf5B3FVNckm1x9OCFz1FBaYIuFPr6zR3r5jz0jbAAnJ9KHFxGw==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -11952,7 +11952,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-GB4F37Agq20zlNVQttSMq9f7/22kWm0ut8v4AiAiCMRLFm+7EKYQiQcY2dPUd+paygunKor168mJM7l49HLf4Q==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-bgqrkta2DzAJ15+YteEQCibw05OMI2TzbLlDE6SpGUg1gXAdCymm4dxpduNKiesFmC51WcP+ohZkuNGryFgBmg==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -11997,7 +11997,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-izUpXM5lDqrG/FkQWd8JMRh85pd61fDefl5mYiTYQu57bLlc9Tnp29eTBNlNg1x63Il3oM1gsvLxD75TtoCwag==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-uUPHW/g4qfJv9xoilcgVHKr1QNvf/rW/ARCXsd1axpRlATZSs+dDu0mS7/MH0yZZjd6a00C/caY+P6B6Ac2s/A==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -12045,7 +12045,7 @@ packages: dev: false file:projects/ai-inference.tgz: - resolution: {integrity: sha512-C4EqlGgeIbJY0+yopCkm83HlIOoW0a7IcD3AJfssZ3VwavSBnXJ1kKlhL6fDi65PloumqNWONTRdqIrw6bKwAw==, tarball: file:projects/ai-inference.tgz} + resolution: {integrity: sha512-7KzF0Ua3Veeky0DNJ5LpW2FHqcnF6zp4W+zHNIPHVUS3UPsShfQYp+zeyubWAntZB5bTWN60lSqaNe89eJzctA==, tarball: file:projects/ai-inference.tgz} name: '@rush-temp/ai-inference' version: 0.0.0 dependencies: @@ -12087,7 +12087,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-U4hFRyz3RnKK09u8g05r3LSXfLSbU/nOnNAQl/euAN2FTXB5uV/i/KBzoDNmuiL4QgJqG1DKJR5tmxkqGRwrnA==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-1MHjPdQAJiC79NNOmcp0ik0PMHTEUa5S1cnf3c7H8V0X61WP8FZfv0Z55pLf7yzXZlCjsRcBL9hQCyZnreua7Q==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -12136,7 +12136,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-q3dXSmrguMJ2s7uEFSTlzGgHWZGetXkjKAjDxMuADz02eLOLOIvSRBGEZmLunr88dLK6T5VT2Oi0zJd3vCb0tA==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-A0kTkhDM8gDmqPLqPMNvEZAJIlr0S0plbLaTrTFPgOqV7tQ5+bvXJ4Z0ivvy3KqrHEdtSfo/mzu2PoY2FgKIzA==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -12186,7 +12186,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-wXY0hmfLnoX/QUm7162liqVwLbbK+5Wz5HKkQ13kFx0VD46+RulZvEzCGpLJzuZwZMcVe5Fmx5/cc99apBZHjA==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-7aAZaIE6ahWWMxXrKlZM93wDSgZZOKX4LslsHX/sraizWXyR22lMKTdKijRHuVBA5xjBRVYOZluYrJx8A6zMRg==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -12213,7 +12213,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-qAI5xIRUS+Ty+eY9S+gLEkotKTSab8Q6+dOGlKaPg72hfPCITvmMUp55CT/ymb9lII1e5TJucB68eoIK7KUOOA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-Tj+0tIDSDdm2LdIuXTejBPxBgy0gsPU8mBBVBbHKeIb+FasY6yYhc0od5JqAC3l9u5zHXynQydpiYr20Zndb6w==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -12258,7 +12258,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-9AE3KXidyFXViHMYmRWM7WJEg53GZT/h6s+HW5ZEBT566w3KqBU+p+F73H2prhtB7a2qliFImje5qZtaIXAGrA==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-pktlY1MIP1+oLYzxroYsIAe/W9oxBZ0XziTtxGTWI1AXowXMsF0wtPGp5g+m7SXEtd3p1kGQjF+ZnZSbLUUwYw==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -12305,7 +12305,7 @@ packages: dev: false file:projects/ai-translation-document.tgz: - resolution: {integrity: sha512-EEwkqS2wW2H4NIdi1wihLIaybaUGQ/8F7v0CQAHycmxJ4xLrE4rRL0Wa455Qvn6Af67mzg9iULbzjsSXDodnMA==, tarball: file:projects/ai-translation-document.tgz} + resolution: {integrity: sha512-Tw+2Hq6vZWvExcnQQePXdpahwrWGNqiuMH4Yz6JA88hZ0xuDGmibDAZggsm01JgJ3T1FD558AHhoOJETxtzUvA==, tarball: file:projects/ai-translation-document.tgz} name: '@rush-temp/ai-translation-document' version: 0.0.0 dependencies: @@ -12352,7 +12352,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-p3TGmnsHnU7VgkCFrN0Z1ZvV6Wi8RaNMXC7dVMl6pdBsmQfhXvTvU6v5MJB6wG2VosDPuObYl0xZBmA8+/dzyg==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-qP0fJHmK6pvXHkr/+8VRiaEnMSIDLKA6e/BLWa4191Rs7sY7JHN65mpnaJr6f5AGarsM9DioGCR4vVNVlOZN2A==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -12397,7 +12397,7 @@ packages: dev: false file:projects/ai-vision-face.tgz: - resolution: {integrity: sha512-WVW75pbkZJ6N4c9sdY+fn24vbWueRiLYWUcktvHvJuDjET9JmoOc4/h8TRIJwc/3lxTMFoDqVbvpxB1t+Ut1yQ==, tarball: file:projects/ai-vision-face.tgz} + resolution: {integrity: sha512-QJ30PW51/kj1Qy8M+vju6MQkiLfwVwDKUlvLieElC5vd8qPq5kZ7b1CVnLpH5hosCHC+RqZxRus5DVw+nrqVKg==, tarball: file:projects/ai-vision-face.tgz} name: '@rush-temp/ai-vision-face' version: 0.0.0 dependencies: @@ -12437,7 +12437,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-quBse7zWSrsGm/dUbG82gOGODp1xzhRmtleMYICuiH0NRa42ieWERLSQoGboWZcnt1AvnPDJEGPB1r18CGC0lQ==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-QfHG2jBEfs0+PK0aTSGABk2KzFAsXxMeIhh2holZ5g8odJR316/mei4xFHXTIY01L69SZPb9aSiWu+gMAv8LDw==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -12482,7 +12482,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-bk111O/cjShY+qA1axkdLiP5O8JNvYQlOF9fRplp95Ehh3JLkgJ2GZXT/1fCpoQEtdVngLReigaz+bLc2aJ9yg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-XMdrub7S8KrXg9Z7DTZwGBli7ZxXKttvMcZWNoUC5j4/ps0vNpy0aS41oTdzwmi4FjGwhSxF6vGKT85cd5oh+g==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -12525,7 +12525,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-+XCmKtOCgvIai0ldV0vKlQ08n4Wtx708j/iqDS2SSzZ87yN/BfigjIZoiOmcpCXkirPR6H9oJ5Pq12nwGnvQGQ==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-z6bwbpMyzlg0tw5yOv5PpArO+pLxBuTlrmg4mfF6BkY6QRtculBzRbRqynUn+a5ad9Wp3nP+78f3VB9ivP6Rrw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -12564,7 +12564,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-GNm9EJlFjXy76j3naUD3x3E8b6cSxGH/Zv+6E3n+uh8X9cKfLrlPEFE90PctShfjVtU1zzfczWRjY1pner6jqw==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-ZS2tVcfCyGSzFxeEx10vvJ2M0aeau+oBI7RxIu+96q/F+G/CifNNQ08WJGLxqqWJ0A2QqYoL7smGLOVGzUJFXQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -12605,7 +12605,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-ONDZvrOim69rDzQBWt543U5MKPMRStHQEzC16TH/oI8ZygTY84QYTcIWz3FDRwS4lBSZ0Z72TqugbDODzM3++w==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-7uVXn38MP0I7Z+N8ZhIfrCABbTGDyGUx32sDJnBKYUPjlVqNrYWpVg60fHO+ctJiyYCKkVMK2j7ylLFXwa6nLg==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -12633,7 +12633,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-i1ek0oxoPQwE8tPgFTLIuXwiZKWiasqgMRQr+/dRqKSgGy/hhzs+Gn/jGaotoSZUy0x2RRPZbj9py37h6hlUEg==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-jsPaiebyJktur3n88Qm3T2GQXvUADvxtcUeJ4SrQ6dMJ/kG2RkXv0DZLKTqmN24+yutdmTtRMjDDTcMU2YcPow==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -12662,7 +12662,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-qsgQGqt6ljAq0Hmtzp7XWSxvjd9MCE7+q/kjfndlJYx8J6TDMY1smP/aWemHcF7Xmd/bwVjTnPCuTmxWggIpXQ==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-a0Ja/CJHta1gcIVwDv6n+U42KnLIqrw1IBqfl1D+bsVN5wpkDOAvt++qpxh1Ky+8aWkjWgg21U59YsfOnhOzAg==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -12691,7 +12691,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-Qh+lHGerbgZWF7GP5VhTWJSQxHXOMs/54f5LUl2Kf4S+vX+Fw4unC2sJYHwF+/o76PuOo1ZDhsSeEhQk+3PiQQ==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-uNfhigCN7B1SkHgHM3lhp4R2TdkSf9m4wLxwAgXifm7rnOl0hyQfGw8ygjkOMxuFCPwgX9rM/eXlGw7kQzfcKA==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -12721,7 +12721,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-ZqZou4qud1Z3UFDwOTQW7s3qhGgOB2KzueMtCmx5r21gUDQg/y/hMGXbcfeEaGEbpHe8Gxqtw17gcJWfl6trVQ==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-xef6Zjq6D7heDmdMuBaHpNBGbiD1pb5i1Moz4aF+t3BGK0ucDsGBYXME4DwbmgUb2uhsyR9yhS88MPq4X6Y/Nw==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -12751,7 +12751,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-Pd/JqBu05RGe4wqjJVLLa90k+z/AqUhtcGVxmQ9dRJwh8zxDVNHclr7pFXofuO4bQFsy9aQABOYF38wVric9uw==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-5mpGjNpV24Yt2Y7vOFW3X84kN5Bvlm+XzAStkgpeNxDBcGyhwYW7ksiU1HgBIHEp87aeQbrukd3v3o6AfyHl7Q==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -12782,7 +12782,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-LmhRDolg8axc1KaQr6KvRBgfNM1lC3o6SviyAAreWU0wnh7C1gTGLqjhgjhUk724hG22qykhI8nZWkybJwvrTA==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-lCQNAsbeCwjO9ysZRusChuTJJqx3ZnJxNsrW2iwgJojrw7fU618rnfEL7oWAqO4U/XjNdSIHgR1Njt0emKrnLQ==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -12812,7 +12812,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-SMgeN7K2D/LNYdTE9QSMvv0neVWexFww3XY7QWQDfJBXcaBca1Ja1rrFuAp3io9wG/bsb4TJ9tjF4jYc7TugPA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-OLDQ9cIJXarZUMBqrsu4Yxni7ctTNO+xJHgapzZ42fI1r0sX+6GCHxn2KeTeLImDs2i+unsZMtiPGybNhlFnUw==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -12843,7 +12843,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-PqNCW0YBSbm10wfJ7Ekze7VWgyYrLRLOhgvyFKEitS+E8RZzsgwmCuBexSv6hJlmtpZ6gHuFTFm/OfXDm09ktA==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-cnk29PDE3tFVEYSD/sPzYfBzjIL5KOnIxycYJlvMs2sBSfbeN/THEe34sNLOOVQTDyyZQwNyy0M2cwBm0PLbkg==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -12870,7 +12870,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-qT22GdfjSRZcMFcDK0cD5ymkHstpHYz4RkfETJZd+oluUFldDlTQoyeP//uOTAAvVPfjIikFl3B1Ko9eZOXZ0w==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-s6Dm7EaIZ0EpvEBmjvWfdxordEua5TIcwc/Cp8y6dvHN4lEZ1tBRd2YG5zNyd+XNWsjFXCWqVi0mbKHhiF3F7g==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -12900,7 +12900,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-kQe3MOm7L8EPmfEZEjXBAkXwCCET+Yq9p/LLYKUykS42Nr95zB3QvUQhAnZ83lgSz2OXCbEq/gmEZk6hKZNcYw==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-XXXsV4q4EQNoLKXSx1noyz448MgLXaTTAcXKm9dlvOVQM0XABZTCM48ivwIPq2vXvSVnFifK+3FX4Irs3ykUtQ==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -12931,7 +12931,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-DVWWsXM84QXXu1e/Xc6M2QSwtF3uACo44vxXY+f8eaI5lmQb0K65YnGn/SltOvCavdUi/ci828R6/1WbxAEHWA==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ECcJDZNgAm39MjQX5+HTa8lpZRO9c+MdOiR8XBGrDv13jWy//2KVpk7S+nPIH4mGqVs904/zfFmVQOrD7Wr2gQ==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12961,7 +12961,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-yjfMdED/EYOLCEz+8gc00WPVFsvPTLWOhUQDXnqfWOSib2atSvSbvWxNeCT5jyVM9RF82bCiLQ7fAtAsrmZWEA==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-2akMZ2GrgqZ4b59N6IMfJYG3jD6p4bHujN0dsqpEkvwPpTfZQYcc9gGW6xeZJzdJjOXhcubKO7sM4WFZPCwMjQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -13007,7 +13007,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-BkU280DnWj0UmhHVAVaoIwi7NfOWsuyp+nV49cWTcyuTK75RfVqsy1o5ctw0ASyFqZ7w8R42W8IK0OFwwGEMHA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-nF21ZZdOGg9T+tyQwgFYHgn8VNsymT+aMOcH3LgU10a2NmYGOayAh6RD6WNCjYwaMHDgFbhyWx3lO8QEnlmoUQ==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -13037,7 +13037,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-7/MEkicR8Ch4QFzgEvj4q+2HCLnBGFlICmcQsb7wPKkRTL65nBT5zOmMr3hIr7qPhXsYlVTq8+KCZ90XNflxDQ==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-gqtK+R5NlVQ6UmRdJQljN2z/DUtY+eMpjDaf5TVgMqqNMe9rEfxQCsglTK5Ri2iBbyjwDjNaZXprI4SRNeQ9dg==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -13064,7 +13064,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-7TLK9EBIt/ZuDkyTnYVES3qLrFyhUVr6D6FTKf7PV59FuzWvva3mfsZAJMdZ16O3nv/RWvnSp+UUhGHpIzQj8w==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-Edd07Pv1abh7Q/emiojC6/bTKFP34XgWhxXvuAqwaMm7p1QlEtuQ8cLPbQCrvIugJij8aHcRB3acYNwLWUvC2g==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13092,7 +13092,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-tfepyJDCO5hqCTLdhg68cVHYdJt4YQxgBc9d5YwOgYTJT43/YqjraQnX/22NgU4pKpTAzZfEpi2dVZV+PDPTLA==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-QUXBw75W/xuESE7mouVPCVoBTu6aCXpVXnn2PujkrFGm2n5aDXUkzrklJOagfFDHxffGZHNJR9bKUZwkWZ9zCA==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -13122,7 +13122,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-KJzz8fCv09Iyh78FSK11aVd4Xc0bItlDEb0N9pBdoa94N4bPCyZgJQCPgf2oQWJNygUzfhrEfnqRQ5M7NDgMww==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-RqF7sWkucg+paJB9mIO6cN2ULzL9TJDZkipdMnDby3US53GQFoIeMJ5PvYu5V9WsajHwWJgkvchAMT9Ep16iZA==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -13150,7 +13150,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-mXhiPEWjDJqAGw6oFlns7O+Gh5Wr5nGeXjHEMTAeVOA2Ve38pNy/I+1Zk4VtyG1nFltJ/QrWJxmEC0VmkBYFeA==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-CTauQD4cEtFdQm0QpTfYI0DXAw/aE9w8ZYwcxY8fkPKaVtCJ2mmc5ghSogk5dSjeJQBjBBTfiPVIho14t+uNwQ==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -13180,7 +13180,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-+IFz0D29ExLZpKlyxsw0lApXJb7w9Z4vXIsp4VclJOVYjA3ki/xHvIVYgNUgj1FM4t3jUgZHzBzmVa4LEw5xHQ==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-aVbAeRY+1Nji7SMcF1eh7H94NNAJLm9mnAckJklxyCjycvNkD8zddSRc9XoIyT0BXy8x/e+vrJYpUkwAttUPPA==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -13211,7 +13211,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-i+fwANat6eviAY700xtVUslIYRG/EBechZcHIRl2r91Yip2clTlGSpB3koHx57zMDOR5ithqYuuiwgWtcRzRyw==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-LboCP/Yr2jO/MKTuLVFTrf43Y9fU6NDTCEsgx1ogNNfZ29g5Wqgb4JkidpaBC9vv0pjtdbh5tD3zMg35sFe3WA==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -13240,7 +13240,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-N5cccsxzqlInPk7M1kMdiGZPPG91peL4FGuoL42vwXtLJc/C11JMBSipNbPPl2Hc28aYeBKcOSJVERwvUXIjHw==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-0mbOPd9c/AT7c2t8J8IDoUe6Zm0YmZpcwwApqq2zERVyD9n+WOgvGaCNa6G2PxN3gTpFEPvLokDZNjfSRCbBzg==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -13267,7 +13267,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-k838V47XP/HxDMeD4fiNtdEwsPE/JTgLyob01bMYrPNxUTy/O/SXde0Wr3RsgcALPe3VUqsEin0Mq/RAv7TD7A==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-bsJRg4MkRLuhqXBY+qFlolaUjmWrJ21C+NJY9LY7WuMjhgoTgbcCxlBiBC1B0WqpJzqWIulQD06tpAeiXiBo3w==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -13297,7 +13297,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-jdMMUOeUEWhlQ/aXd5+7i8i49BK8ha4M+AgDepfREAWn1saCpUE8RVKijvEZqikfh4BS5L32sI4JXiI1sKaaGQ==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-O0WjisLnirZaKLl1bfQ6VhweynhDE3pXOgMMhsGwy7wjAzKpkW4APklwMKdNQ2i8UpwQEl9j5vGJFOwLk5NDvA==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -13327,7 +13327,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-3aUIlwYUbSPurjG9yccsqEZNXcvrq5jiPHjchk7qIeNyNozjqZJeDdi6uVKCCbnuXfxpH/Yw7B5cPQsiLvZkrw==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-3F4c2h2nkA1K1Cm7LPyjdhyz2Rs2p3JH6xhxN6jGAWaNlgqE1nxVzF/xS4lJyJKCc6VXcx1svN7zbiGbbs89Ag==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -13357,7 +13357,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-XqVfHJQp30vLd/KaGRST9KZcwTOziUBxt+R6TCq5ul7xeY8fKnJD51WVoS7nfX4EA+r6b090AfWKsa+eBIcimA==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-FARPUh7FdBujg4dHXxguxHOlHOiRabQvrjuPUVXw5eabf7QhTy2FhjqOgYrnQRsIDpZh2a4pSiEfPiEbw0SQzA==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -13386,7 +13386,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-zPOa9UDM7jV3n8ERiszjwDOoc1pZFh3v49EwXAMzIXCwVWMRyneZ2DhGRLWGoGTxuyNtMPXWiEeFt0NKOSbw3A==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-apIk0547dfQi4KBASblct0DzcWxZ1cXoeWOtmdRBR8zMQWQWhPXD5Gb8FEB21CgMnLp5EhD7GfsCmWapVheq8A==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -13415,7 +13415,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-hu3i3Ofv7/CKCncDACaI5l0u9H9/MHAIczAGozaQj+moBzBHQQExgrLi8O5mycR+Fjn+tRAioau37QaOCizr4g==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-wMCVMuBEdhyh2pXUSDexEvjfqXjqNzr8Y8KnT9jMQ4knY8idnXDP0WNSVhs5Zq8l89rZN13XHzXWwoTf2zUJPQ==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -13445,7 +13445,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-3gYIjQuSTOLvxf3QjgF48JT+dEZbJYdk4jF098AkeSmYwrXvOLSGghpldwRpjVuVJlqiwNZRwR3o7R5FXHb/sQ==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-qb9ts7b8hCxIcC+UoonLr7GJTyVE2w4JSzxUYD/cq+d5N7MrKw/MQ6X48jT1TQWX2IJFqyF+4rVUiovt75b3wA==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -13475,7 +13475,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-fWlQBPipM3/lpPJEHMI8jsfQwft2ek7atdJLQ3lowOE4Z8uHKDG+ilJqiv1EE95NBrmuF+doeuefBAnZS+ZKCw==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-GFfbNDyWcUJbnJn194KZaCemMPGs9IAYlU0vFE4xOO5vuFduQRDSO4cc50fXst2rXPFqlAIE0rK8SOM0fKr3QA==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -13502,7 +13502,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-RFhj9PYgucMkojmG/xWi+do0jmguJR5N6CVU/5dpEPMSNTFSOZpJmfhxlhbSCzKFHWC9WtEvecRQKNNNVowjwA==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-seCCegGmOhz6G5p3LB85+3cvpwfJt4vTDDj8dLjKKa0m9ptXuAH8q0z86iQ+TbKVxsO2UpTl+UXUZjyxtkOtNA==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -13529,7 +13529,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-3hM3+gdZSqsMiZrXetEK26zwL7KyXZp4THJw7SueBiHoD9zoZe+c8U11KMpN4IDJiFOq7/bDBLo0ag8PnzPZzA==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-QXFVLF2dA2LGC5B+0uw8mlQcjJKpkJ8TpRff22N4pros7Dflf6GdxnbYA5dM9I2yPiCkHmQHnHkkDVIuEggqzQ==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -13560,7 +13560,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-y9yTVZHuFJI8dPwzEvercZND+2IfBtS4POhKWZt/y6kxrPTlZmxw+opxEDBzl8Yjlvef50gRtFFuIAv3UqAP7g==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-dl27cjyX71D1d4m38cXejpA1O2i4DFb2MTAH/CND4bavP3LaQbIYkpqXSZUc7EoNXoI6jMZMRGcKgqMVUgNLQQ==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -13590,7 +13590,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-abUvhMDWA+f2jmsVFo3u2Uhgle7OPoyEn0Qm2itWEPLW6KcC3zWsUP87ASqlSOVAcXi+uqqaLYCasMXtNee0uQ==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-bz+19yI1HQFlgrZQQZjZNOSHf+Hh4CrvP+nyOLusea0AWaJs1aChxIMmfs6VkRsc5Ewz/pGmFz0WJPmkMJSTeQ==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13618,7 +13618,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-C+jpx3gDx5Lyb8oXrbNqttOQnlPoGY97pYY0wyzyABCjLSzV8LGnxK0HbPP+Bs9/IS/KuWoiPrTEW00sgh8jBw==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-LWkAeSCgEawOR2ndN6jJCHy3rg3Rx12DrpITnO8m0UrYoM/I+igLnAmtzFrWuaPPrYIboLBzxNMokfFcXSLS/w==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -13645,7 +13645,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-/Ob9UPZ/v732DkVwUELb9Eymmbdi7h+W6hdYWvY6QkLlrrtywdchXNcVAH5mRafuBfyJayI/+LP5pKwFrsbRpw==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-whETLRCVXON1vxsXT38mJ5yqCEdwAE+vAlBJEaFbFbSQsZ6xgLvavVlB0mmOqUNZOjI+QHKha9Vu0a/CDw/yZA==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -13672,7 +13672,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-2xEGkC1vwagWSicT0dw8cB8tpRwVYDXf4NbYWW53tgeyrW4TIdUiqGDIghLJPiN4cvLhttOYfCXxjEPgFbfOLA==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-Rq0A6A/jA9bGHTJ8xX8n5QCJb2zKiZQINXv/oF1LEiNsCpmULW38CHvpcCzYzFevY7ZX/RCAp78d7ybuqqg1yw==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -13702,7 +13702,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-htTzU/qeMbztclayDaALb69likrxG5yfqsxktJ13IrT2EfCQT0inWi5E74C+k9nztbPUvj7111EL4w5Pxi9OaQ==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-AM0dsiMAJJ2gP64uWD5ysDFbFhSeYjtTasktK5CUVdqxAXZQuTkLgYw7a0tULebPWwF46L3mrmqQYzz/Gs/dTw==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -13734,7 +13734,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-fNsQuQcpvlHm5zbEFeZydIMJO1FKgjveSOBvuzk4Z8Ls5lHDUys/i3lQdIg0h0RyVp55OrpOsqxGnkWf8uC6jA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-BbmJHyqUYQSUU+BFZdrNijIZh4ffin6Yr6225Nm47Q79+rUflF0lhHz0y7/DZ98dvET8pMy2bayEVQaL3cyoRA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13764,7 +13764,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-7FI/MhP2kRDY0FUaisuP/hIpX62E1NL4eyyPhadmBb4gCYxrukQq7TeE098mPu6VXdp2vrmfaWBviCp27HSM/Q==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-VYWMdomJKQucZjeoj7vC5sLt+WfOvXijJPZAPSphCz4IYA2GMLSzOOI3plFcTyaIc/DQmoUe8yofCNLc2wb4kA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -13811,7 +13811,7 @@ packages: dev: false file:projects/arm-computefleet.tgz: - resolution: {integrity: sha512-KGi5c4wRvovPp5nrSnxE0EOM0KODxoABZTkdsJc/BWIoSD5eaXqsMsg7s4m0eufwCUDQjOXl/S0h3pUiFQkbCw==, tarball: file:projects/arm-computefleet.tgz} + resolution: {integrity: sha512-0cpA+/toEHnG0G1/Q+ywSJT7So1FT5GnGdVFS0fUVtedU6fALGp2UMQUYZYZUATeSe29r7q458SQdqyB5JeAww==, tarball: file:projects/arm-computefleet.tgz} name: '@rush-temp/arm-computefleet' version: 0.0.0 dependencies: @@ -13850,7 +13850,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-zxZU/JNsnSaYxiS4gMIh80c4JtSyr80YyLEMDCWMNlHq+C+be/nXEt6p5bpi7kn//tjrzt14eMZnTCi3pE3K2Q==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-/+COUhTsLVbHeC7HbjPJjUTImMuZwOLH+9XuTudUccVUTz53dY6opFZNtUM7GVaywFK1fGXY2N92bN7H7z3Ilw==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -13881,7 +13881,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-z/AubcnKHzpxf/9w781YbGNb53vuciy1f76Ar+Do5o5Berokb8x6ocuWrJs+kIDgy0igy7ju0Bt88Sf2avMikw==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-2o273gtGPTC2K2/i46A21qYt2qP4tcRSqAfJJP4LqWdzkdt8+XBFjlExZzEmLmuZnnlszOwLurb5b944u+l7HA==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -13911,7 +13911,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-PjgIWOJHPB3uSxF1IR1NtM5TfRZ7cGTOylTsjMaA5vvIgMfwcdtq2ADpnhfUPkqcjGJJwcA3vzieQUxb3AbNhg==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-w1T74Hc0+RFb5V3bH0jQuBBUCENQ3/MRlEIOYf3x0nZQ3OzHSAfA1Q6uMm82oZzJ+VF9VLUCBGfxo6wfwmFn0Q==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -13941,7 +13941,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-H3G/xqgawMywQnmbzgmiHgs3i0fO3Vji3LJHZxek4Ep4zkjyzif6svW5QQq0C8uF6fMGrGmyi9FisnIqImjhng==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-Gcy5nXxsywa4b9F7LFIiS+QtQCf0L9YsdfqyYqLpY/2A/Ix0S34nyU1xhIH2dk2Qzyg93sbNFpOWzXMif2Vugw==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -13969,7 +13969,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-ki0IumWTAuuvtP5w6e5OEXc7U8NGGPUTJRfQrK74zPExsA60o71EM/2LNlp+Ac16fL6WJgHvueRFRhQyUvHuzg==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-IeTmSosHKsNS/TA1NqQNs/nksO+D8+6b05enj5Tqe8JkVyyjWdgz0jCVap5GMOd9zmhSZgTlzBXzf7/8JlZAOg==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -13999,7 +13999,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-rnNxFSztZHA0UnR05hfe5N5CRQCEDCQsM9cWo+53EWcpc/OOos6gr8znKJoAMRF02hLQFKz7zXVHYyd5lPHiMw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-ou0H4p1Lf9vhdrNtJwDAs4apzn2PTEQ+i43Cjf+z3cYejA+mM69a9Ps0vjFniRH0xtYDzyMw+ILLORQKBx3MmQ==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -14029,7 +14029,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-B9/qkrGTOKFMl1uKG6/YuYHwnQK58VyjOWRr6v5YqzdTXlMrxpc81HJTSnpRv6MloAEedISGePdfBULz1OMvuw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-MSE9EQsFt80usJvYiYKfr8QgkOTk0uB7i+d1RvEgz0W1HSWx0r+5sI52jjaQo2s2l3Vb9f+p0N+Vn2Os9LhWPg==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -14060,7 +14060,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-0JWrY8HNeTojCQQQuuqZ32zVkxL8Rnv2xlnIUMHLsE5ghlYs39pA6XEU0aeYxm+f1g50D4048djHAJ5lg0HAKA==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-7BoXb1vMgKl/PnaE7JZthEQMaxNxic7BttWWBLpU7ZMvCYhcM2Z7u0biB30PhTs142yT3G+JEp6R1JLpdPFu+Q==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -14106,7 +14106,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-Q0BxwTAQnv16ETxkfwg/n4NZAwSelH9Cv9XdsDcGrReeV1pXHlwg7dErxk6ey+ocHUVD7qA1wp21qzffwXSTyA==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-Plqg8H1yVOsiNy5aqEAviSDO03X5onAnB2CYgd6U4qjY0ZvKJVyAcrgEdNqzU7WCqPCVgy605+iEX7xWxjpQUg==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -14137,7 +14137,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-/Cb2yd9t9k3cmTg9QUJrli800W8j+28xZxoGfymYrZfHxm2geOtI4euBHu9lNCjNcI2TeZX8uuR3BIl9hIQOYg==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-EcEo0Mm8/H7VWVbwvb0BVt/nk3JFgPvVRp39nDyt9jY/pevKEPihUH1BfmhuOCQdNaZWhhI4QOzLsFGHweHYCA==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -14168,7 +14168,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-lX1LJoAhDJjNaSE5A3yi4qJ8BSHkKkV20RZMigPUnz/1ThN0CVUWH2MN4HAZtmPer6xvUMczjJ+wyjekKpK2bA==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-qcPKWxfssW4deS2vRfGT1AixQhA2XK/BBSCxm1G7fo7A4Jqw0GBXRYbYtCVw6rzX5RHouZXYa7LAmJxPGpQ6wQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -14198,7 +14198,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-ICAyriWE/1Jebu5380CxWafhOlbO2j+8AmeLt3n70whmJb5UD2V51XYTO5xaqLwGrWmHieAu0g0EYuluewaDWg==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-5lpA8pqyyAM2ac2mD8Etgdb6v9PzqcrM+DEp4w7lnQNVj9cNtExLPemZT+jQL+hxaJSQL5Xuvak60S7d1QbXAw==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -14228,7 +14228,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-LZLPHeTQuFJL3fPsooEXPQSe+KWznuY0q4Wiicxqa1CLHzL5NnUrpDi3juuOh5JUCctiVj4qPa2W04n23b2A8A==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-rB62XQy8dvXMz4M/7aeeFyB23YakTjOxwE6FgpqoJCzE6ZjsoXmq+Ji0AoaanssRvJkETEg5z2IksAg2+vURlQ==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -14257,7 +14257,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-s/5AttuZg8VGAqE5bB4lXAC2glSpE3Fem/i6oquOwA50duTuCdiMvuiXc/ctmfoT7F+YM1TD/+pwCXTxXyk2tA==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-ADCtf6wHVl4+mj0XkmgezMbzyz1dJbEZWEXokWIuAIUNeMfPomxXikfPVgIWxB5tPFSxHDS7+L2HrfII5sb21A==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -14287,7 +14287,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-Nv3Ub6mRlmbPyFq7Em22lQGHv3iI5kJhTKChNIXhp5BCjGwektVQhjrZ2grjO1gwBv+BTDkfiOMsvwEqiZc8Bw==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-Jl0QbnBUPsstqrSz0FBnacdEPWP4pXxLGmCIqcEy5dOqQFh0jxUfQMKe1nFttPrQIsXvSPPZ1dq+Xzg3voJlUA==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -14317,7 +14317,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-iF38cTOLQCdEZFr1xo4K9+83MQJJWq00aF9+6syKOCB2AJMxZ4E9Z6QyP/sDCBFJdVdoxF8FX3SLvQdBlz1t3g==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-3apwrQnikZL/C1EwsqxokVNwTTuxIgCBimntJkPzmTt6Sl1r3EnvkpCEq3nV9K2PFRLcwomKRGDo/4AFlpqG2g==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14347,7 +14347,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-lVHnZW1D9P6WuVY1yYsvXo3VNP4QB9BkVE/19PyFPQQ/HAB9YLDOsWrkVwJuhYSYGpImuA7PT+EKYYaRbHgwxg==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-pd8wV626yBwXSHjpO3zbIUBBvayYezwyB2iFk3kckdVDaJC4sYdwlr1k+0cmUel5VEM2hzP9ZcrJ8BLzpHHWeQ==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -14376,7 +14376,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-tUasK3ua2kjINJZkPGzMcPP6I58AryQuPRH8TMQDznPh60vKKxLPA5QHx8nSSG0qugZkX/0ahb7KbrftgNxlyg==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-ukffrFz9KXG84YZnYgyMVU2WxzeM+UafOjUKGXBQuPDRaRdr4fyH2WbE18S8KSzhgSM2uh9Bajon4PXnfYA5eA==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -14406,7 +14406,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-+W7Fi+B5qVpGDKk8dzHL5qkJGNnB/BkryLKfxxPDLzNOLjhlU/Xq90MVlDxYmj1HnAQRWZ/ZlgLILQQjj4PR/w==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-6Xh58jdmq7AmyrpgyMtP2og8OJmKzGfI4A2o78o9ntzfKPgFg5GvVweJYinUFrHhgVy8wllq8m+DbNmwYJ/SeA==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -14435,7 +14435,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-tWQ6xPYw4sqDI7Dr1jEKm7amuwojB2LYeaFnClsQkm0GAoia87JGNlWTJTd+UltPWpLsNnBUsLBbeBIxBFNb0Q==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-4vtDGxEr7bIHpf8wrPt8hOm4Iot3u7ATo7PcgFJ22B1QRo6+fjDt5B8aXBbvx6wUD4pdn8lyxpWNIKDaEwZ0JA==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -14465,7 +14465,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-Jx47zRvgQVatq+t+0Sz4w2FGrkpnN+ZovYRIiaE6PXH01ZjvI3z8+eesGhylvYKWzLq15lmPmOoOZsG1Qf5Spw==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-Q/UgF/jHUhFWs4a2VHg5BPu4EacOjaoAJqlLqGFX3ZwG0GZDoRx8FtqHRw8p4jzKB5vuOrEV/3GzXjtsgu1WWg==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -14496,7 +14496,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-6pqdujvH7QAEVcGKtGa+Qvy3jc4Jvq6ROXRx52o8gU1qP1pffb/2QKTgDYIFVSWJOtvn7vKWsSv++K3JGYRp0w==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-BwKg050DuWAe2bNSn0L7Y6/gxF5is/sUEyI6ey6pbro0hFwUYwrYuWbPvoEXJ0XQh4F3+KAfRuIaBXqwUG0NAw==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -14525,7 +14525,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-TNCRVby5YXY0c2e7shxpP9fLOiMuAPzrad82L5d/PsWCiFxay/kHltRhC9yfEuJOLi9SPaHherVuIsUxFyKozA==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-IEsrSpKapYUOg8ZJtoftvyu8cucFaJYNhfA7aIcIVop729u4EGFXXhRvFhSU8TdU904tqTrdfKU+QQIsrqEeAQ==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -14554,7 +14554,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-LdVQlNk85WkLK9UFEnJJKKKUL2eAwL6Mqs6VgOGojOomnnQGZg/kNYOgdtbvJ/V0th5JLVzDSD55d+xfUO49vg==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-mPMDI8V3PEYMWzKfjL/WqtwL2gZjPrAQNoT8PZOO4Du7TC4r9oVMjoPoPtPIqEYTMGuCh80/gto9RGc+jL0xxg==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -14585,7 +14585,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-98fr3fMGLC57z4fOkxQpGGkppirHPusHmoYQqJJ1FJxmacoAygaezvyR7QJ0P/2dYd9MQAVVshAItBnRCX55+w==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-7ZapL0RxM8uEdo9Rw4fqFSSwB9+oVkAO1tBNtqmGgo4pQSJqAfEounweI8xswwkiraFYuc/BxStTTI6S2D5Z/A==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -14615,7 +14615,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-bnUVyGPtkPe8LNSyCy1yClVXU8St7RlUkXoNBlihb5TyJFsyPuXKgYXpcYh9iyHpiKqoLiS7Cj4gPM0C0nmkKA==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-RxofYNGQ4TP+HYcb8QI86FIpjvnsmd6s1Lc9SpdDJ+v7xTfZa5lq6Qy/w3pDGeBRlPDm9dZm1K+q79p3JeAqYA==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -14644,7 +14644,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-mGgbpMxIDwwPkf1n/Qpmb8nIWXxfBmYKxjaYcxWabnoNdL2keoT0+jqT1fsIU2ttLUMm5Zj4pI6+2pGCI02+DQ==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-KO7SOu5mwyQwRnZp5ptYmnZ6oHUIMHsxwKWASnilMZuqST0RRWg3B35U9fhFA/ELowa5fUc+LpnDczPD58r+LQ==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -14672,7 +14672,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-WzOYyZ7sYCs47LFx+uqBrSXVF+Rkif62PG7vbbljUQSsBkrnhtXwMD76F6w2iYLF6nbRbsvkyhoXlBzT/M8tiw==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-JurFyM3b6qbeR5PO5zx2jDzOwiMPPUn/RAi0UeM62muO2TmoeBUKLkjbJhCTRillgWeJHVNFIplnyuY54mBLlw==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -14703,7 +14703,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-EdaLVv3eLxnjLGMlbdpAddyXwOZfPmne9ziabI5duyiaNj3LGB3XFzDFXxB5Q14PELzsp7pxO9j8dTOb63tWoQ==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-uM9sv49gEdbbukbPXUkGwEr57/C8G4voHCZVwjayArvzQxpmw0vCRWgmdNtHFUMNF8qxAne7E9v5b0oge6KgsA==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -14731,7 +14731,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-lQqDbv7g9n5GKZZ6XzHJ/1krYnpj7WD+L9eUGsDCYNIvfS820VCD2NWILorCZ1HM3aH60jS+1vE2yYq6rUriVQ==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-D1j7w251vbrba8H1bHgnWhFID6Nf0yN2d2IaXcyB4zNibyi0D8ZI8SvBidMrsGXOo+yAD/jCSp1Ta4n+xgy+Dg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -14761,7 +14761,7 @@ packages: dev: false file:projects/arm-deviceregistry.tgz: - resolution: {integrity: sha512-k8vk0idHyonOoNArlqW4tLfeAxfW8FCbnXT0OzkiNQKp45c6YSsFT1htPCQEQmLDMoDWfuUsmAvrNMdKlEZD6g==, tarball: file:projects/arm-deviceregistry.tgz} + resolution: {integrity: sha512-uorbaXlwdBW4pHmu5isNUlJSOqG2W/3hDKtz+t+cmKhs+exRSXDtKUTjQVQliSIEKvVFnKlguoD85DXlOFi6Bw==, tarball: file:projects/arm-deviceregistry.tgz} name: '@rush-temp/arm-deviceregistry' version: 0.0.0 dependencies: @@ -14792,7 +14792,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-z6sZ0yLyraPVZIG8aB/OCRUf1V1BKgZmZSmoM88wL1miK+yYSVvRJcNPDW72x4btKJXhfQTGrCjIjyBE9vCPmA==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-sxFBXsSKlNJMjF2Z/fHgJ74YDfmEOpvhJBJWng55rnryYJpx18+0tvuY4o7kDQKfo5fNk/dVYJKyBA6mz1Q8tw==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -14822,7 +14822,7 @@ packages: dev: false file:projects/arm-devopsinfrastructure.tgz: - resolution: {integrity: sha512-Xmke4vEWYHy+QQ+/iYtu7ywr+ynW+EXriwXzdXW2rQ8himsYCsyQRz2GXCwJBKYBl1mmtDwAUE4SGZ9NMKFwQA==, tarball: file:projects/arm-devopsinfrastructure.tgz} + resolution: {integrity: sha512-4zHK93tKjUT4Aksx+xEV/eCXF5V/jP0XNr6J0V4yt7oWNIh4OEgNpl0i5XG8MRVBVjpxRoWnixbZgnm+nZNogg==, tarball: file:projects/arm-devopsinfrastructure.tgz} name: '@rush-temp/arm-devopsinfrastructure' version: 0.0.0 dependencies: @@ -14853,7 +14853,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-jlFWQo4HQ3JQyIXMlCCenE0wkocWFAkYr/CWnc0NQkX5AsiO/jnh9PMYvFqQuEdyS2jqYGYyu7C3nKUZNHEtzQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-mIcMSxyuO791Tup/qBtwba/rS/Pbz5qAWnZMacRfMAtRBGIc1/F7MnqNeJVNbMnOu9IuvAzbAN05dLOM2YkRqA==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -14882,7 +14882,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-gTx80BQNVPreQoy/L1z1UA3lDxk8fXJkRPr9JeqSgoy5vwXN37+fsHcaied4c6lhQjHLj1n2JH3Rbd8iZk1zIw==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-c7ox4i6D023X+c7vBcY9EF4LP/lQiI9vpslVpCLzYIqY++5AmBtKrzxyumlOnMkQuFFYK9LuRR7T7Jtz8f4ReA==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -14911,7 +14911,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-hACmyDTZT5Nue06GH53PNJ4TWpcKbpHpzB/e4J/ojnEFMlTW4oTLU6aWCEKsElp2BQ2xJ/p2l+3uktEQ+2cx/Q==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-eQT/IMro7HG/g0+aj5gAv1oiShbvUeRzPbGBgWDg4pgpDLBsSTFK//ARjCI7M/qM9Z3XvNjUSTznM8N6LbR6UQ==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -14941,7 +14941,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-6jkA53NekdbstrWe3SvTUdK+CcIEJjdyuwKyqmZlOuVm04+0EZgCjmijZYN/3quQCrFnukBHwrP4d2VVbxwtgA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-T0wRLScYsY4szLLWEDd+V9ap7cyXs8jRV93nyNtSV5I9LvyV7tTrFDkFmNvnFHoUYvdmK4TfWPkSv9Vv4COwCg==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14971,7 +14971,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-HEM58a7DcKeutSbQVeZ3jdVaBeQbGn/4b8C58+XTVwaEljTCMbma2Nas20P3ehm2Wy9p3R9kz1ioUA9afWpjdg==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-TQido9uO82arRWzrTN0K1remElEhm2ouPkrvQEtOtQRIUl/84aLjasJjjsF2RDLRhwnm7PjDIo/oozZVAQXFyQ==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -15000,7 +15000,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-DeLf7+7CkmmVIUt9YZSfoBhkxZNdk3QdqtlS8krdPjms6MZczMyc4xtFuXWbXrE8ejCrBvhAur1caIV576e+Gg==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-cXYXTCEm/jh3jlVQ8d7a1dCCqELzBsFshdreRd5Ly2NOx/IQ26C9fs20Txh16GN6b895cyziWsQd2zXefJajjg==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -15030,7 +15030,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-7EqjjV4zyIaCTWxDU+h1f6asLud4RJF4fMBQ4uGizNy0Y4kxBWWa7zG9UJ3MsSkD6U3q+GSGx35QGYt2WaIYUA==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-56Z4MCVLd1HbrkYnH8JbLj7z1J9OPSPw/9kSyCNju0k5RB8LcJZt6gU8PNmfabcIhr98j9FeReHOIBbTxjzphw==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -15059,7 +15059,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-Uoemd4Ar2HBsOdh/+FqGAG1YW4h9Qk2GuV/QMlI9ahEvpQz1HeUAGM6azHHbNxDdBV5Lvd3p3JZvMO6QrQFTQQ==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-7X2We+Y8snc3mGhkUhpBka7+vg42/KySiScTOBtj185VYJJ/LgCGCif+TXh6qY3w3Gh2MKA05FXhkpWeUgJx2g==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -15089,7 +15089,7 @@ packages: dev: false file:projects/arm-edgezones.tgz: - resolution: {integrity: sha512-a1ODenPYrH2Pc+Zf6INTAZNtAsti9ACPy8Vpz0cnZuLrDyUIm+eQJ3ynakAtYVqc3AEuBsBH3s+3G1CNZLqioA==, tarball: file:projects/arm-edgezones.tgz} + resolution: {integrity: sha512-lp8JhRQXr8dqHDjYDq3RUhpI2/vvzIxeQk655dFsc0Xw+QVvLlI/XrKdud+pD2CkBS81UYEg3VCJs4MC6HE3Bw==, tarball: file:projects/arm-edgezones.tgz} name: '@rush-temp/arm-edgezones' version: 0.0.0 dependencies: @@ -15128,7 +15128,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-x6BSagYZf8VqOMvVwS2MCGtyhVMapl42fkbhFnOZ3QWsD0wzV8erSQ8Yc+xkuZJ2YomexmEaWbimbNCHcyNGrA==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-6s1hwNP3POhgx1UP1s5nCcMk9lCYjVLKaZq96w+AHz3a4CUSAMnrAWepnfqSHXOyzY8JGfUSsVIJ0QlnCbLHaA==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -15156,7 +15156,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-PSzS1KszY3iCaTiQ8PdeNs1dmiUfcvVfUYaOxivul9DmZGa7Fzn7N1w6PXjBcwmK9HhAPa4iFsrCJB/L58IsJQ==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-2FKz7gVut3EymfgeZeq6x+sZtiOjZbQIv6ei1YmBfQ+8GObnZvyNY9l7i8DcrLlRUm/c3XpAbnfZWSXjMK4tJA==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -15186,7 +15186,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-4MMnTd/nW32J1g50ddHY5IdpRQf+v/I3sNjzV3Ba66iuJ0NGEnPp7bAxYU48fxowbaRUQxICJzV2bOSsfAVRmA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-Dq0oe3mUlmgcZODwRVKN6dmH57NPB2jSsbeoFVORgq7fUSpvOatHlJ6rlD7bARKiPY1z0sSKw4zT1FGP6XgsBA==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -15216,7 +15216,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-ffWmdtpwL+nEAZ2QP/XA8o3d6Aj4hV4mXQwBVcc+mmUTooGQaKDeRmtM22yHvgsue1adeRspsiEro1C72uxRfw==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-4YK9IynwJXon9hJnbaeH4il+Yq2RjMdtBTxhzG52gkxmrNU8Lmyhf1gg2GYo+7sGjzweXu+bmoG7aYnQEDRuIg==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -15246,7 +15246,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-gKfci7TRJeVa2haPo9T+5O0bCejD+6KISf9tm2zK73w9UdnQ5HjzNoeMK8pULQRRtW1DBIYdIGhpD0wQcq0i2A==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-q4eSlXelnKFJrtia8RshRPcr7JmE2I1M0l3XJS9CVDgHcq6c9xtMY+8naxW94MK2C4eT2gXc5ahteYeegSBUrA==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15276,7 +15276,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-lfSe6nQ7fPzbc+L69MCp4abRS9+vrcP1wgn5rtTcwpOAPTk1LmK6+3WOalQcpLwkbXkU/XKce1h0nKfh0iJJBg==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-NK8mDnu6HDMOlxun9X23Jc7OciDr5lidWZb/j0XdcRVaOWKdj4KHU6Pm6oIHAHdRQkJ320EqyErR1zd3uWiElw==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -15307,7 +15307,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-euvVbog11FaHgYwp9+Y1UGHlbQ+MCA/UWJF5rutfFaIGSvwXbinRDjCID22NBEbbLvgynb4M+P1tBMldTgaf/g==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-/1oB6Ijpuu0oWvGgxE1qz+FvBRcGQorcbD9w9rnBoph/sHRVSc/ri43q/dZrUHd/0UiyiEtg8r37cEPdld4/vQ==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -15337,7 +15337,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-JC146AMN2BHFjNnvPP9OFtoz6VpyauZ8Xy1HzlFBtKvRWBbzr2T/ZyQM6tZD6VQqyly61yboTKL+ii7NgHoHzQ==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-MGfIHL8E9i2mEsSj2AttXklT/ZhCUZ19LiTlRCilTPfp+Nv+pTncUpKdKRjD+TpDDBKwtt8g1tNbCzqNdUkXMA==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -15364,7 +15364,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-ZegVJMtbz7wanxAKu2VuPOtxsN/8mUauieYW4EdHg5MkbWM3p9XHjjYeXLfZoawMVq/oJmVJet/E31sYu8/L1A==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-rXvs39Ibzkg1ZtOgo2uT9dmUDbx6VsRvngh/R2T0+M3PsV7JAOlVcMFkcaoREHabuqVmhb6kPtByc/4PmLLz0g==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -15392,7 +15392,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-DaJ5QSS7iZIxm8z8+bbSnYZQ55JuGoxN+2AIN/g9WLZs1Za1qIb5CyR/VxtGws/dfl4QA+/CNPmDY+8rTdGjTg==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-Q+PsEBRiSD+MP92WrQ+lPLwf/EJ7xN1+s4jDikUujkb7rBZhjKoK2fpmipU0itBTSsk0w9GoGUdI06ou99zriA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -15422,7 +15422,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-5L9ydnPtfb1lsXMfxOBtubcmoFn18vOY9nFiutgQtRAqCidqtu1TBgqwr4W7WyM5yVHfSoqFibGn0W6K5DtDeQ==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-x9vMJoX3X95EfiVgv4Md4UtITfKsSlGx8njAAXOK7jJG6H1LT8q3TGGU9yr+revgdbM+tOyd7LPHSpYHloUz7w==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -15452,7 +15452,7 @@ packages: dev: false file:projects/arm-guestconfiguration.tgz: - resolution: {integrity: sha512-pwV6vn0IbJGXQuS/Oo6m1DkcH71ClCzZQM47ZzhZxLWX3JPq5ex+gDjPV6/jvwB3JlP2qGn1DDC4tw+4b4ARLg==, tarball: file:projects/arm-guestconfiguration.tgz} + resolution: {integrity: sha512-KL9d6HUsLs9MzQ/PQjuhRgFRGH8rPhZOiFEZ5jZoTZpRU1rMtHN+NzOcc46B2NG9XY6eaCeeLrWk2g3Gh9F1sw==, tarball: file:projects/arm-guestconfiguration.tgz} name: '@rush-temp/arm-guestconfiguration' version: 0.0.0 dependencies: @@ -15481,7 +15481,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-eLmdDQCUnf2uwgVHYszlH5lHQ78p/m7JuCHEoPPTJCjcfQzMiTLJeIbMxJ+ihO/snTeFSXM1rWqk6vit2XD1sg==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-wZxajkX2ZA29UZ0z8VWxJ1lRVXCQ7tU8EwPt9C65tzBGzTcPmynTYrOPxf9jvHhEZ3v/PsfFRRw3hMseznWArw==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -15510,7 +15510,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-SxVTbdWxK7Fucy/5J028MoteqC3gQcJBGV7NN16+BdhQeW3C67ESFXy7E3zapWfZq8qBqBjw+M4r4hDPA1sirw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-hBnfSYvy4U1rdxPIrXrbE3V/loLfiq0nz0D0cvuP9hDdCgwpm4uBE0z4Q4oAzPG/JIZlZGhpCBqbzZ6Qk1gMpg==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -15540,7 +15540,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-A4Q0/EIreGCf/t+J6DolGF8wsuBun8IeEpiWzRSKp8fE/okeb/F/Cq+6rJjZmAXopoSaXUAbn+Nqu/z+yOW+wg==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-eiFm7PPic2gShSdrXChLKrHzziw3RjxQ+cs7C3VChzB3M8ug+f8VOLNrUpc9lb9/AMjMxi6PjDQXAxKuj6M29A==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -15570,7 +15570,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-bb9vJOVtfI7fzJLpOWd0mvmNqkYBZDF7S1JV5BG0BWGUOXg8KddZ/D3PMY9muhnfotX8Lwrk+LJyPiI5sjifwg==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-hm1Tc36raFlmTzX7tpUJGZdiAn+FK1f0Nr7Vzoy2D8b+3lXIZ+6zEinSI8nXRq/GWlGNqSpIAN4FAyOVbG+qQA==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -15600,7 +15600,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-djZlyZzHlBCFIYcJ3NySW3fo+BlVJg4cjZoEbaw2sdiikwOeYL2t2lVgeEmpvIN8zT7PKHgt/BAvvRYsV0KCyQ==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-Un9Xwt4cbaqeYJ8q7I2VjYPsPPpRDA+F4xd5buuLouAZ0ClO8Gaxbl4lurygVW7NjgUICSFyE92q5SDyFZ3AkA==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -15629,7 +15629,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-H2TxLJcRhEfs+RFIQe+ffVdrxW6uDcjzfqz6F8avIlJlAhNTz5JuFowd7BLCnU99dJ+q+Aj8psZcINkIIPuYQA==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-6r25yGtz+tFpT29HNr2hsonsx/pZSyrbKyLa/QOuAf1PZwidLMkiKrJP5zDsbdlluRSe2tZMxgp7ZLb/9HwsDA==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -15659,7 +15659,7 @@ packages: dev: false file:projects/arm-healthdataaiservices.tgz: - resolution: {integrity: sha512-CF1NDRC0Si5iOWo1neCbCN6TlFoUDMIspbbEYrjZ5hIFY8CbPG8hwvDMy7rRBrvt396JGlJ4slwOobF728jMEQ==, tarball: file:projects/arm-healthdataaiservices.tgz} + resolution: {integrity: sha512-G1zldD0alfR8kMUj59ex3H7X+PSn16c7wcRzEYK2FRcMl+hIJslhcxym931WVCkecPCdMUD123PmFC1PuS7xRQ==, tarball: file:projects/arm-healthdataaiservices.tgz} name: '@rush-temp/arm-healthdataaiservices' version: 0.0.0 dependencies: @@ -15698,7 +15698,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-wVSrm4aoTJmUA1s14d3er3Gl9qTN+62er6kypTMV4tOc8+diDsA98xMlu0/GJFes8efUbc6QiJkymgo10+gDag==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-piHmNUXYyLYB3zYcjPVPoB2JlkIrf60nv+aGdOG/Uo5lqXDa4vjd2MY2yFITHVKZGDudVNZQPEWgi+27vwKzLg==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -15729,7 +15729,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-J0NmmLjlF9UyHtazlLl3+2q5ql9QKOe32CwTYW4KyPC3GcHWQV9I+A+epI80pWsP2ZRACngdcunGhXnR562pZg==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-1lBPG78GcJzp2UAt2MFD2eH614bbwxd5E+Mtrskcik1ud+X2afpPYCCEh+jpfY0RCQPlelzVeajjyIHVNYWBhg==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -15757,7 +15757,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-ht2gOs6v/de7bvKzQqGcn7F1QAL0Dc0kRWKXL21bamQkBZP3xK8mEoBIYab/bOJY2TfYD/GvrTamTsRnvow5Kg==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-1W5YjPnicefzPEWvpWRyqwe+1D/ZhSH58N5GAFgvoBsjw81E04i/NJbVkLCKCOJ1w/ok6yrsj8Re53Sx/KXWHw==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -15787,7 +15787,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-v7BI3tLh9LWioPyw1bi7cqIl6qtiFLnymo0AXZ5RP8UJoAK75tFBQv2SDUs8YMwzRnnfFMKeLrVGz9a2weQpgg==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-RvxwgLVmfXu54T/ctLrBUFnVTKi2bLIxsYyuXagrnsKwp46ftByNLhXFJ3cS5HD9Ks+wwoFhlVIxTxPFqtYQrQ==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -15816,7 +15816,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-si3XV4/fqNlcVL4/y6Vca84ATqwLbyKfyPmHTCErA9xCE/aH3bWXwFjsL8fuJgNgUQQy1QIjO8wJMgJIV+O+ZQ==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-ITLTEI5ghuWfP13b+ABHsD1F4njTNICDQArXeslsT49uH+KEN83aHn7Comw6vL8/27yS6hpUUDX2sQVfUvUktA==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -15846,7 +15846,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-islzKXCverh55F/8bwNWnF4ocA6k4XZlCbinA4+4XRneUPoac7nP5XKWj3pfRAPS1p0R9hJwTLHPsAIvwLTxbg==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-pQoZ4wc8j0MjhyKzsQLomLQ1Opl4DtzihWSX2ZdbvXJkS7KYRE6YH1Vh/M1tfYgOeS6XLQuiB0E+0BXhspx4ww==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -15878,7 +15878,7 @@ packages: dev: false file:projects/arm-informaticadatamanagement.tgz: - resolution: {integrity: sha512-0LiOfzmcuztZNeC0aPA8aSrLQwpWuI2m9mtRslQFvuXtIio4lo8KCmWmn52V8Dm4b+6iBV92WnyDpdv6F1Vuew==, tarball: file:projects/arm-informaticadatamanagement.tgz} + resolution: {integrity: sha512-4ZoBX8l7MMUojMK0UPDFYD+WekFgLiDDH1gXAxCxbiQK7DsI6slk4e1jA92nZVKhcOeKjQlvxUazv3npWw/7aA==, tarball: file:projects/arm-informaticadatamanagement.tgz} name: '@rush-temp/arm-informaticadatamanagement' version: 0.0.0 dependencies: @@ -15909,7 +15909,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-/Qvnnq9+sxa4zdmQN5Eo/wvtOQWMQ79sMuhcLAJYDUVRPqO/EXu+0y26GmEHIKA5WVwk8X2flk994h41h1gs3w==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-fosSiBVeZQ5JB05Itdf3WvfnHR/TefNuVz8d6g5sDnKl7E7T6T82s+k0YD5G/kRenAIBY5kmt4ZlrQxEBaAgJg==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -15938,7 +15938,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-doiYgE57iB0TicEeHoMrq630z4WKYXK/ukWmVEHor/WRimO35ibH9I+KyJxLTdcEifSNWnz2ZeUTnijWuZKmtA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-TfKu8JeMfAq72ebbUwKck2nTo2SWtoOQWh7jq07Hj8y9wLPslALsgA0qcq8Glp6Sn5tHNNMylFM2hJzizsoZAA==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -15966,7 +15966,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-7qxWlLzN8YRbVTvvVQZlGC/Q6FKSvg159gIppOmZCEWSGcuUyYEltBMei5YMdMcMBjVUz8cGEgboxtxQRk0UKw==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-FcawHki0FZv8yC0S8k6sXEGB3nsU+tQNeGgX7B+vYqd7f3P3VgZN38c6NrUoh+OhhMf7ltR2Aowh34nKqVcqgg==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15996,7 +15996,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-O/UxFqlG4xDI6fWlDg4tPSftTzbJyEQkiwzGOBxdA8CQRkJ3lRGc+AFnaP8h4J9tQYhjTmqQLnscuf/5x3HF6w==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-6crX2NptM1qipMJXg/l8rBrmuQBmqWEtAaDPpZqJEeTkrlD5pLhku4lzWWqGTXWJHF+FxKhUwTnkA+t/IchOUw==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -16026,7 +16026,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-bQrFhpP8CJJfhV/SLL2k9heS+qdcoJL1o8gBRCkLmsD0Gon6ydn9tlOADVmdCfjI5Yz54tZ7+6Abh2/ZedSsoA==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-OjdDNN+VYA9TfURM59pA9Obn9bnLeqPk/sEuOIx9w5J1McACr6yZ5yu9yi5bxUxLU0RHoHJ6Ni9SekY1RQmokg==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16056,7 +16056,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-d4SHaoFUpJ8ih0zU9UoXoyYctaT5i3Loy3CZbIyQzCIXGzfwLFWzL1e5H5n90oqZHTtyuYeIICJajnoY6/3MaQ==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-mAsdypSGZnV860kD/SzwQDh1oRZta3XsBNoodgaaboXIsy/IWLU5eyq52IpW8TKAikgn8+zuSdw5WNtlWMjzag==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -16086,7 +16086,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-PeJIHi0FLgfPhWTxibDl9ERZsC2ab3ODUpudD+QNJrrfdRNWdV/hI1tFOTbmkkeszC1KOZnTL/Lnf1XP1heUGg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-y3uDo/SkP9RO1w5oC8d4fTIK6sYoN2R8bDfoP+8iYO/UtZMWWYFqTP4uey7TrzvN24Q4zTtj0K7yGnlm4tzQ8w==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -16116,7 +16116,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-gqmPjiPvhj7qkkKamq+Oc+rKuEgiEX0WOJU1EV7v8McQ29mN4+9ijv0Zg27ny6Ak5PRs1OJkuajlrOE/a+FQcA==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-1iLqzDmxcFYUWXhy+/4h2fBFd2zcflAIWO+l0oyAOFAdQ483TZhYnj9lZ6Rd3Bju+VJoqnRPFEaY3nsDARfUFQ==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -16146,7 +16146,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-s06WQJqFbyrJo5/Yx/tCqeTwOf7TSkXmR4yiVDLK+JMNo+jkJ0HIeZGsbs0HNUAHvc7bS46QB0YXqjk/DzeLpg==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-XftGsqcYoMhDToF9DoN5u2nRV3n4po2YuQnK6Clmh9GhogTMjlZVgSDpo9m5BJXwNEuQ5aKCZ4lyJ/CpC/P+wg==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -16176,7 +16176,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-nxw49eTw7jgUG3juKHFKgTdCOdu3gclWovPnKmR8FVOQVV2e1cbG0kiqayVRbaky5LGJQufkqDG9Fjy/uUaE1Q==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-CeP557neBJiOaz9VTIRAxvkAJZ3JSqzn/V7CbBbSfTzIRuE/7XtalUUC+Y8WMJ1ezCaCAxpbcdpFqxCBl7iQPA==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -16206,7 +16206,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-77W4N/QEPk1aUeJ0c7ZuvuEZoa8I2z35s1nsr/AE+vIYShd5nvvzkKpLZu8D9/jMueOUqcfIRMmkw6h5rjWLbA==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-Y+DsaW/LpnG+5Qmc8a0VBSAdq+1su29A6BMyBHj+wMXpeZJ7HImBNBygbhIEcK1bmLkurFNofPkQHsCtNbPUPA==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -16233,7 +16233,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-Uys9CZWTv4+u4g3aPfxf1aeMp82W/tb7U9GKNWY1rMN7gBU/X1Yt3ypbjidVdBg6x6htCpeXMyIRM495PY4o4A==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-bZ3xgB1ce48ivsojJyX2Z/bDBrbE3MBrL3b25iT2rL99ch8KfMq+TEag9qmK9PI00d2Vt2OyuHUYF2Xgd+1AoQ==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -16262,7 +16262,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-397ngzkRIA8R4IHxVGDc64H7JorWl0dxb3LmppqSzzZZnu1dHONNdMOQ1qZ+V0LTQ/JHc+ktEAWQw4ri+YsHOA==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-teHSP9EbN1mfRR/lCbVqY0oRrIe0TmQSjIsvIPPY5vWhKRLqPZG7w3L28dBGVGbVl5xym1aFNdNA3UUqqM8K2Q==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16290,7 +16290,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-kCLLnPHTxyoHMXmAf3crhdzZU8fknOW6KzzhmY3pneYJeaYAaqEGe1G4O8fm0m3vvovZr0P0BRnnHXDkcKz90g==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-fjx7WwF1FZXvueJlmzW3YvUDLst/opNODcZ5Ynxg0yb6NdT5drCw/UqHI95meMkw3QSHSK9maPVpBNXlTJQ9LQ==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -16317,7 +16317,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-ZtKW6fgn/4Pdgx8/Ja80iNjOAAw7KjsBSntt+z0AsPh48ZeKaYpsVUShezXGrtVKu+2ys0xWwtzfxvj8+yI6yQ==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-LIvScE9B4gqqPZNMMN3U31LaM0tx1pe5uNJQvMluH4GHsHwDcDas+Z9raikvHFwJN7KAyatyOSk3yaGSqeW40Q==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -16347,7 +16347,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-ivBIVTHfvuUmyylYEA5RXHcHqvRckkFNe9SE3elSZ4DT6E2r8k2tjjMTQgviOH/CCbgqKirUnXEJzsOmnHhLuA==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-M5XIsO3iqa2ZE6Oz6L77iser+TQJsVUda306A42AVPTONARb8kZryDEuw1wIRW/UJ3O9nxEErWaZlj4KoT6EMA==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -16378,7 +16378,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-Pzj6H7bmxBh5MVaE6b/ZC/8i6EfJm1ORXahqbbDa/McjzbfbktzRNRa9n5+TzomSou8EdoQRmjekG3+OPQbE9w==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-BYuhNPStN7SUpITR06rb8+1r1DaTJzxNDhrK/r+KM3RaIg7AUl0j80dgpFGS3cIXcLI05h+NSoK4cp/ap9vtqA==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -16407,7 +16407,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-kAt9wUtbr/YDNSvhJXeFeMlRP/TQF6Rw3yXI+wIlQ9gbZMKUp4v9omKBK5wxjsMvM7HP5080HdKGjIst+OFNdA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-SeKlFZD0c/o7e2wddKf9hrorOq6N6BnYj5AuDYUbJU1dXCKxm58yFK7GsSzaD6jgKiXHYJDs4YPSBErX6hGIfw==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -16435,7 +16435,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-ORZ91RzlksgOwd86ITBlZPukgCaoHDS3mCy3GrhMlQBQedaM6gWxeb4jXKhuaBwB7FwZ37fXs0geZ0IfZdTiSA==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-P1/U3MpI2dKKpUJtvmJw6ooV3RbZO5E8HbaLBTWuX4dtfJn0SmXeQCUkNsjLh3F9bk/OzBzW4380xswaeexeHw==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -16464,7 +16464,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-Tgx2JI0Um66nz+Qvvf5IcIrFqK7m1UP2NrILFqiBnx2YzFdVlYqhkjnnpheYHSfWeFdwNEmmZkpgX9EiS62f1g==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-CPa8cqojz6HZnY6P/sSYVlHzP91NNQe5BdDJ/CEqshUifWnZRdf/jEu4eZstZG+96v/2iTud0Ks0pibP1tC6lQ==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -16494,7 +16494,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-Oa4tib1P3/Vl/5Zxcehhw/gZ8R9qHX5bqIX6AVlnMPBIE7dh4s1V3nARVhdvOoIW2T71qKkpS3sbrJprbeSIyw==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-HYuSPX8VhZnIx7CSh3UZrFjcf5gZ+BM/HSH3qyFXf1hltwAjsL9ybmVbVOQwkESVQNUiYQozkla9c1qUZYzcew==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -16524,7 +16524,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-KSBCI9eHOxUjjQmeQe1fPMySAX2Q3c1lzZQyOUGEYIMBOmG863BmvLzYjspeNU9wAH4Thg+067BmCrJlNVeELw==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-9ZS5tvMtUp97EmDzp7I1P9HTS+UcRTomcebl8U1CZ9hsZFMmBs1K7x+CVStcqiDqBQPjUJlEbgXxxnR7UwdIqQ==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -16553,7 +16553,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-SYCt5jbdsnqn0cA06a3veCjG3KYMddxT8fxDxcNDXiul1FFW17hz3eowj9XU4nUgw6vaZsQLqKe2lr0C+1U0yw==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-ekusxRpU6OgcziAqKtSlPiwAsUg6zvFBnT9e1LMPvhMffKamJVCPrRxL20cJsVBEjltmEJ4Hb63mVOYL38QImA==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -16581,7 +16581,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-E8odHyxulJUFIBcJrZtdg0n31xTKBxIRMUb8NSWY1ltWfs7xK4Pe9jBLxjO3rcKNd/9ba6yg2ySlw/IPnaOxpQ==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-xOZK6H1/fQ4HTN1iBaKgnybbyMYAw1leEjvXZTlELyh7LGzI0aDLR2MUy5c9p+nFRRJ6JrHtF1H2VEaTYPbHYA==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -16609,7 +16609,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-Ayr9QSTKJcl22+VC4z5L8sF3IZ3KWqdg4QfzTj9Jcw+9rkmeAljuhffChhFO0fHWZVCSKTc+vg0ukszMsM4LAA==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-lM0jUZoGL6lmrXuBaBqC32xrLXNNVhQK4rDSDrr5zCRiLcTOhx/Izq1UeH3MeZ6GktHpb44YxWsJ5Mwwy86yxw==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -16638,7 +16638,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-RCdmOBGZd+KCgKSzERWTS+o6ejsXkFrWgEDSn2+gLMKnhQAkEju8NW3HhJK3mRcL4+Fk71hBvARJZ3tERX9YKw==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-llY6+RlVFzuBcEDYRJcepuvqt5pGbwgRO3miV++wjrOy7STHBqbNkpzpKt6YzmkD9OYQ6lOZSLGbuc5kpp/HSw==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -16666,7 +16666,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-JXngI++KGqABQ9KdSUTHDUofYRqFis84zld3zXaM0NhYOGzD/VQlt/nna37GeUxPCSzSwGu4wEQCZJmxSOFPcQ==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-sbg58adT6WrntwJOrnTm/YB6Hw7uP7qFxoOYpRqTMNTj5Eju72OxjI8xTyLFXGGwmEbePB3Xfcx33nWfLo0wmw==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -16696,7 +16696,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-D2ziVjUauGJhs0mOugbCt0RaKbARoa/MzwaS3JMyUipuBjW8aP7NYTT5Xxv22L90cp8CS0/7lXeRTC+l0SHOtw==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-kQsavrqMgvUmMmLVn1hB0k+Tv4JYGbtdu0StZP1G41cAavGEIPoN8gjo80Z+qlA5EoKZMTtsLa9pbYuSX5nG2w==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -16724,7 +16724,7 @@ packages: dev: false file:projects/arm-migrationdiscoverysap.tgz: - resolution: {integrity: sha512-/P6SYy2B34+g5i6qwjfh93l82yec2/Lggksin90VUk2Fk+XjOTI0bin66U5lGTK5NtKCFgMiK7qqfVwViXaDgQ==, tarball: file:projects/arm-migrationdiscoverysap.tgz} + resolution: {integrity: sha512-MFas9Xa5dhHjq09P9iuwEQJYJb1Fhad2QPY+C+o9ZmzrEeC0Npn//8gMvGWBFRS/3bKIM4IzDL8mqgQh9TieJA==, tarball: file:projects/arm-migrationdiscoverysap.tgz} name: '@rush-temp/arm-migrationdiscoverysap' version: 0.0.0 dependencies: @@ -16754,7 +16754,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-KIrpFbQr38stzzEaqXBeN2Oc/bn18FJ3FN/+dfyNTvA7uYfMbdjOBkEyNK3TuRV1N8HnECGkKtFEuXKMKAKJLw==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-zJLTxA4/fqv6xj/LRPpeFgKxVT2qXYd3sKaDjziIxXaKZZFhxHfkVnda42B4Gs1NciT/vhfCMOW8m1+SCjqvdQ==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -16781,7 +16781,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-r5bB6QxOf0c+TNAEUyfVuu+lFYCsHmAIa4Jx9KyoUcJOFj07VzYzl3hn0WAA35iQznHwfvuEzQGCEXwlLiBxgg==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-N41+/v5rZblZCQA7UILLXSZKe8Mf2H9zoCe8Lr+CoisBaD7CMqv+LXnt3HKAa4Gs//sLUD5jAl3D/7abg0TImw==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -16812,7 +16812,7 @@ packages: dev: false file:projects/arm-mongocluster.tgz: - resolution: {integrity: sha512-raFfgPs1Hu3wBb7VpV9CK2wHbzMDbwLT4QMo6MaQb+CjRWwNZKZPnRNYJn9apHdn2+cop3f3AZ2XtgcP6ACnGA==, tarball: file:projects/arm-mongocluster.tgz} + resolution: {integrity: sha512-ax+gaiEayEpP3OYAQNpTSDxMe3RfgZ71Q+9sY0nH7d0uadLHgbkTVDa2omSG7C7KqYx/E1JbObxiHf/K0cE5hQ==, tarball: file:projects/arm-mongocluster.tgz} name: '@rush-temp/arm-mongocluster' version: 0.0.0 dependencies: @@ -16851,7 +16851,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-vqVU8FcJYyIkgypFpf97wUK6SVVl0LMYkmREj0Q7RuwXTSWxtowVzE2uT8Rd3IP0lxnlOcMsLDuVDFpOOYeo4g==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-iIVKSMObhPtllgldBh5d9PvGgh+4/0POUj8UdtW1VsK6bUAx+UtzTjsv2FjIMZ/0nuKBA0NQ678rKS5dppppbw==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16879,7 +16879,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-iupFHZAXQ0A7LWOq0XZnS9HZiUXCm+vlkkmkv2q45NG9p0mC0VZKRjy/WUHw8b/M5S737+v43wNfFmCuSDb3pA==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-INq8KulhoL7ePYDSesBusiAmyL2uRkQekTnX/yVlB7/2Yo1nLi8ry5y302lKEpuG6nW3OSVsUXsXXIZpefm+DQ==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -16900,6 +16900,7 @@ packages: rimraf: 5.0.10 ts-node: 10.9.2(@types/node@18.19.45)(typescript@5.5.4) tslib: 2.6.3 + tsx: 4.17.0 typescript: 5.5.4 uglify-js: 3.19.2 transitivePeerDependencies: @@ -16909,7 +16910,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-JEiQZ7JNjUaLblDWQ06Zj6R0sp1rzBJRL5nJLJzFi3TSeogLkGPWGKPH/kTQX1td8KR1xwTDlklW2VU0OjO0gw==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-Qvub62fkM9C9OM/EystDdNE7G7kcdCdW0omlH6KHr1ioCxeoHe7lQQT4ff2cqLFrOtQ6NYGRvZu6FkFWqolvDw==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -16937,7 +16938,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-gqfDjeftl6w5p10xBkccxb5JN3Z/GQKuwkMvK5lxSPLe7ItvCwV5lStvEN/k5SN0fF4qAxLZAdVgQy7l2MYHLg==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-i2areQQUXO67Rc3EQUFcT7YS5oY8QqV1nh6mgUDbB4ELUwuacl3n419A2uW3gShCuEX6ZZoAzlC3CpGBicbvWw==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -16968,7 +16969,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-eWALfUMvA2FVHte+eYMBIa6JCB7Z7U97VO8/zz9Y8sP7okTCOloFsvMa4tTZTnHG/KuEFHq3zQpJ5jnSVmrE/Q==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-BemZE1rhwi7g4Q7R+MV8HJdlq6uvPYmnFNGQiIZyOvMrlw+TB8sAcXWHzMDbTLU+hQ1doDG8XDjG9STHPr+yZg==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -16997,7 +16998,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-IEGA8a8gWKVvL693jv3yzXGR2X7G0nl+y1PfJ4jBEPtc9zdIiH1Pj0b7Bq19Z6xCOW/lJPPJ6G8fI9XKIneZJg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-JlcDJRWLklWlsRA6UjMRKuRVqhe/fZRGYsq0pZGbg/N8zMWI3BQH5q+2RmRKLbfuVXFlkbjsgIvKaY9fp05Kkg==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -17028,7 +17029,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-nGb7tSO54MnnBUXPNxfBIfWZUT/+wweKaCJaGDc9LocSoDT9hnmrAgFDQqcmOkzjwxWyvM8BsjB7zedacueRcg==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-jzVX655DGAScA32dW/iYkMYwrm1AYinRpn1bkwNuX6gBHyPTH8Vp6GIu+68bsZeJDDgq2yySBfqUMmtWgYFl3Q==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -17059,7 +17060,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-bXcMkaPXXD1meUSCXIzVfGgmcsnMPTIdkPqmIRZ864UcMrF5lR2qk4xboSguyIIPeXTI6FjJlgcodFWfd1J/mA==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-RxbOWeZwYYjUmH9aPP+pbuaNo6/wE3nAGR9A4IlAn12O8e/DEoL/GHD0QDQXCUXBxU3KpEwmqVxmyuCHUw+b3w==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17089,7 +17090,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-d7/m+q1Ww3mt/hvDZ5Pzgvp0kP3XhQAd2mQQOYH0BZTJHHkwWbTqUUiOJ493rg3xKRzRWpPPPgoZVLWl00s9gw==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-BwWptmMb8fZVh/LtwjHxY6bdyrwEH3fAO1GXX1m2FLA+zgwtvV7Ubqcv4OYHnuDyNo+SmShXS7KUUPOTPeBgqQ==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -17135,7 +17136,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-UPRUpiaEKXGW7S8eAmOKTKtPfYweSbDteJndujiMXe7Ykd9Q65OsbG5kRL5xVPLFW92nrdxCf98wskCfF7Ed0Q==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-P7nNtXsPtppz3cJnxym2/tzb37SIY9bIym1dwyvK70GwcouC9i1hxzyWDo9nAp1GfZRj7A8iclRmaFCBrYblSw==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -17165,7 +17166,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-clwwgWtcUWUoBVVD5fscpZaukSlOx77XujZBubCXSz94dzYMuwQ6uzbqaH714dmLGFtGX0fEh84xJPZSYILsuA==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-rpw1rhaHH5DbjV9CZzVcdESwR4wOsFa1BTffRibsKh6z+hi6nlqeje+U/GjIXquycvdATjTc2koXh/31aZNl5A==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -17195,7 +17196,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-Xoyz+XtG3PJ/U0Csqxi2kzLdtsmTcCd3Ly3lvusCsH5Fh2phh4QV2CNAoR0haLNcquKoFA566HOihDqQJDwErA==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-tMd2qODOuhXdsgNrYx35EaYybcVP5D/Du4pAhToqTuxDfeftUA8Ry3FhrLZKUxkZCuAl1qhATsS5Jw76HfU+pA==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -17224,7 +17225,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-W4f1IqaxlRivbzfb4TF6tijNCgj+KEBD379z0t0lku5K6Om52AiqTS+CcgwQmpg6pREOPokp4j5RUfaM51HApQ==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-O4w3wJjlBG8lJxb00WGPRmvBl8pUVFvsUn7KMszAyY5q1LoqRD/P/adX7omQvj+RBYzzLPkG9t9Rd+7sIwnZyA==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -17254,7 +17255,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-qVAjIstMnCDeC16WVu+q386pI/S3bFtobFjuP6YxWFRWUiczGYGRZQiEXIPRctVEptDwLMJs7hRGznIevzwpVA==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-pLOdDp54GOwZc31b8TW/PSTjfpxMHN7CSfB3xCblsTskC611sVWqFNIV/vRxK1mDsbyY2NNFMq5ZKyTvoF0fXA==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -17284,7 +17285,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-C4j8aKYOdwinRyuGeIgttHBVS1A0FtKk+f1aAyUoPKU/lsHlwgES/0Qhkd98qYQCL61VWf24yGLNcfx89n/Cug==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-qASxCpPXOL33i5ZL4+D6RNXo7ml424XNUE0Enx1iQ5+txftWvYwtOpmM4huS9oXRUFCkgmkIZ/LVVCL+MQ77Tg==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -17314,7 +17315,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-yN7in7bSWktptr21JAHRiSY7SCAP6PFn/wZJXguNbMJ1coYdan8qGxDZ+Y98BrWZn/VsvmGIhVPU8Ioi8j70tA==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-UpRIO2UTpVF3sohVgYkOsdT98JCVzyueEl8qFk6fmzYlet5bdxODjFFnnl5RCbLfT1PQ/bxvpyv6Gn5TBTyJXQ==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -17343,7 +17344,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-os3cEC+iqOVSKMxv1TUP9ftjvGSPXb9eXqk3zKwFk4/+aRGKHVgtl429gM0WIh90QDLNOANuRqQ8mAD89BuQZQ==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-h1KiF0snFuqby40JLK4/G5OS0gczssxCRgexGAx24xoFdoGQ6RO8mAORBmP5AeZSHNirifK8uXczb9OT/+EbIQ==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -17373,7 +17374,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-vT+bM8W2s938i0AV7k+gk1JmKbl3dPKm/yF721Ub4iXplRGNeo3zNEzzFkyat3KTvFmtXlp6SQUen32/FL+H8A==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-imqDBA7XLP7ZTWoH+vP1TuFO4tpWzSjK0KDnokN7Qcd9yjI6ck3T61pb+kV8TEOoBnh0ph8FlIGrat7kE6yncA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -17402,7 +17403,7 @@ packages: dev: false file:projects/arm-oracledatabase.tgz: - resolution: {integrity: sha512-W/eeXVqPXArSHG38qrmkZ7m8nwFE9ZnjQGoSYvAQSlao0N1Qa1ngVvTh+lDmMxwB0I+uljPIXJxWlN8uQuMPTw==, tarball: file:projects/arm-oracledatabase.tgz} + resolution: {integrity: sha512-MJ2Ba/mM+PlAwFlbctLzh4rw5YD54fY1n0w1Bl5jyicpRfnstlsc/kU7Nj7ACxC5yek3jcU7/ZX/eu8+pbmCTA==, tarball: file:projects/arm-oracledatabase.tgz} name: '@rush-temp/arm-oracledatabase' version: 0.0.0 dependencies: @@ -17433,7 +17434,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-Lz0US9aVz2x4qZHFD2BCG6KIrXbqOszYJYc2FS49wXFRgY4MU2HRiR8YPP1sWc+4QDYd+QKaFS91FN5cEZubrA==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-b4WJVmbSpiZ6SsWKh5Z4aechH0sM6IKmzz/ilzZFpNLIdsYUNjroAC3MNHPphVf0ZTIMYIXP/4dqtiB6LL4aKA==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -17463,7 +17464,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-JqJkEWDufbXCx9Uo9qxQAqKCZ6sca6DIa0rM8PiFr9CQNBOWHxHP/uZk2sABKoMvH6IKrXL7KRfJ5J4Dalut9g==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-QC9PfRqSzyps9/+U0e9EV0dU+FZI9MTAILjqO5jnIvr65ityj0/USm4Zz7MHxiaZNegpW/+9Yz8w7xQy3ZkMuQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -17493,7 +17494,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-Mj/ZXu/A89dBVOGx3nrbeNY8x5ylytw3iCFOypfVe7ADf0G5DGgCRc85+tXwLadYC9+A3Ff7JdRYoopSkamINA==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-ozcef6TToSOq7CqUvKiRsZBdcUp3pU6MSfx8w2MZXOo3MGzQ3AMnWukrPYoU9nBi35YySyXvF6rYb68WHzj+1w==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -17520,7 +17521,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-1Cu2srWIlqMw2Qphnt8E3hstcdasUVvDtbaXH1PPN54jhQUViw1AiUM10W0gxeMzLnvKdUVnxUsCIn/NUynQVw==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-SfLw2iA6ejViaiilnys6IsWVuaPcxRdPu+pIscYCeijd0HwMZJorXtc1eTFZ7SIn8PuDmGXXzHliIqsJxl4UsQ==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -17550,7 +17551,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-UnTNCfdqB3lXg9eXx7PnVR3/IGm6n/wnbbtuclbJx6awi/S07a7jlRbSeZ+jba4s01fN+Si78BJibDNT1fi0EQ==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-9wo1hsVBeEN338Y03EVO2mJsiYsZgTL/CoGjIvqbmfZMPFriFiQNIgGEwKfQvdnRXJM2nadEo/zBBp8XS8vguA==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17578,7 +17579,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-/H2bvmE3EopNXHRnt3BLwbRHR5Y3CD+vQhEIMjaNUHE3QB56VhwFvXZIL2o7Q7oJLeK/PlF+e7u2JZHZtwA+7A==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-Z4HMl3VFgkEHROvE0FExAFkrcM3thPAtxzUFnr6zKCrjLviNH0tjFA715mJyqZKqn/xU0aRlANOogB09X8vZmA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -17606,7 +17607,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-ggElmrDpSqiPAHhUemUGOrdTp0hFFP1ADpRpb8QC+8nsGb8EeT3iCZaBcVSRR2Dv87RILhVzOzjXRXmOg3ZeNg==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-ExzAWoOvwWXObqNvQ6bLQ0Fs67HjZJn2femsEfZfxmGPTxfJVfsek98cuXklQEgLe96mllG5uM3QHUyjF1HKKg==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -17636,7 +17637,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-1QapdGZkB+xlwdfxkZYIHcL/z+9X5LMq54Ysm+ckbsL66l4R7nKJUJ94EMtGK7dQYy71Zq54d7kAiKaKhIIw3Q==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-GJeR2EzzpTTKwedoXFiraBc/L6cdEMt3+BRAWSGWooPkis/csp7rvwKgrwUZ3yZ3ktB2pS/N03gQUinN1S+/3Q==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -17664,7 +17665,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-NSIbK904401vTowcmbyrN6air9mB778Lw4dF+akIyx1RD15Ye2eEdXagrdzoxCeaf+pSrkAQK/ghRW8qmWT8Fw==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-42obwbCkSftt9nWFzb8iHFPqV7E/ArPOnAMS55z7qnfFfzSEO6cQ2dLtJ3n6t8F0yN7F16/pB7/P5CCBqfAxZA==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -17694,7 +17695,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-Cd1CoTd5t3SnvR+KTZJCMP65q8drHeVKfSuRyMz0NntBn+xz2Ou/qwiV6T0+1AqEvlG2KCBNMcTTdcZEoECZ7Q==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-rUut4EsMqE0m7A6fpuDpjAX9uRIAgZFGuDP+yYyEcHB6ZST7xpmA97WXqJhECH4xyoyVVQ9/b6BetH/49cVHQA==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -17723,7 +17724,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-dlILYWypLv9jm+6xBYjloorL6ufiEikCv3PaPLz57X4eEVJcZigmOoLw8G1SEiIahsW/te6wrinHFIseMK75Lw==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-g2Nz33tyJtj2dEp/wbmvlbxbcY8Yjw3+Cnry6VL/+s0AoIY7nkkYFdKT98rVlvXIN+KBN7Zs1T3MoXFlfHhFIQ==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -17753,7 +17754,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-lSscL3/6wrUi++hdQVBxR+VePqYFmpjzhZ/4pUtqm0W15XlXcXZccO7XMbhJtnwRTDGYUKpJ5rhR7uYu9337LA==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-g5UQEJN6v86qTZkw2+VBwnJE1QJSD2ZbBZitwz01DigHRDbatVnmhEgjvM7lvDbFChomaWEPocWlZcbQBgMP6Q==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -17782,7 +17783,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-DeLYIZhkysGVmRhymdQar8suXVHuSthEV2/909LcyshuvnT9reEA5pBUnpERwYILnE0v0Pe5cOiYM2zNu5K3jQ==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-te0zKXvLfbSL2nhRF7iu5i35dD8AnHcZkDr+aPyhTviHCpVna0zsrBUZ/McCYQZzNImcXICQy0vXG0Kv0oPHtA==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -17812,7 +17813,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-B1h7MW0LspMCjkdtQLXgFe1+CHGq1y8+UGRm9OrWbC+qpQ33GoJX0RhONJJ61mT5JUSpsh0YZla/O8K61lZNfg==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-93WGpddENzgKRzQYsjYfSoTPOJAqSKrGkMcwLfOOEAI5FdXK3bW0wIqxSXGJGe6gimeouwHsebL8y/Ta6BbJ2A==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -17841,7 +17842,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-o7s/NDNGiGHq410Mkf/5TQDqgPd7LqdT99DoBGNIGEFiPnX3OLeGR/9ix5Yoamyc6V2vcpvz53wHba6CkMPtyQ==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-bXlLybtVHrxeoeH7Autfo9oAeAgxtLiD4LifjhKJQFDMtKy7XwJeLEP8wjCLIUz4HjPqdATZOy91P+iipaXKWw==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -17871,7 +17872,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-gYm9C1mxbgueCqF0iXFyNYlYxTSt3z+qziS108LyIOyQGplqBl37wIe2S5Nb0R87vWXYnYJHNhjVMMIvTrshPw==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-16kffyI39XON8XY0eZ8FV4msa7hdHziR5iXUAOOcVXnhrlyWeIeZ8BAWNRxdwfSRDIrnWzDx+aJTQnVRKL3E2Q==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -17902,7 +17903,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-TcVpxc7YC3FWRwcUIO0Uto0RWVGgvHGZ+WvqOVtjLD93cgzO0gaognPjZ7dpaN+f3gyOGs0ksjiJl866jCimGg==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-xk059uR7eCCN3t024cWSE4S9muFzgPyN0kwgYPtQ9y/4+OQwdv8wvBqclcnw++X7ttxE5uPz9P6NgkNQS+HINA==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -17932,7 +17933,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-Zy9s6Cc2SK2Y/qoQVc9ruyPwRaUbukYN4w7zELuTMsGOXAYzwW+GWqW53HVv9ATBkWcSPObZYIYfA9ahNq4Uhw==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-xcNv4RDnr33f5crsn2KZvyN0LDD1FGh2n8tcaQFLRAgZtK8y//XRiWtaFER7SKl3TaVrVjy2E9feEwAujZoW6g==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -17962,7 +17963,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-hE9WTZh0MLaXAWCuHvQDjvzeQvxDn4t3x4Ws1o/sArO48yDG0+e9ZdCv/n3cX7NgxehtYb3142vlrosgojb3Ww==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-06A+DFamgjqnrd2zLMyYwoU48g7Bbwf/paXpGdKklU7SqcmCxUbtZUJTrZEtYngnXQSeAt58brXVBnGYE0evPA==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -17993,7 +17994,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-aBxC2pHxknZk9hAvIHRmvw6o2Otg6NGB7/4HHdxTHdwd+5zthSZVMiNlN1lQr9rXZNpBhe9Ao/mm6C30S2/sgg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-2noksR5ZT7zAwxoe62PnPvseK+9e3FTieCHLxCN6JOzEsLohvWLaKA3COBimtzZBsOeEkfNexOjKUXmyMKSvxA==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -18025,7 +18026,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-s6rIHw/4pUPO7OWuP638NHaer/fWhpg0x+KLAxRHFtIC5d5i2+ipG/6YL9Tauhr0BozZWzWUMhFYE+ia9nEEKg==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-psblxki1Yi/bWothwmWqb+En3eL8BhAo7x1SuiHbKn600IaznqexgN/NB2KAB7qyRHUCa/IjiysgZ2dBZ1BqQQ==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -18055,7 +18056,7 @@ packages: dev: false file:projects/arm-redhatopenshift.tgz: - resolution: {integrity: sha512-G7cH1A3bimoSKhWgvtc1mrKbxDvfrT2DCAQK8MXGCP1bQr2BWhEWZe/kCOUIPRCte4R7aVB/ccqnIj7GgECWQw==, tarball: file:projects/arm-redhatopenshift.tgz} + resolution: {integrity: sha512-BwUzxC6iOJCCVzPqt2faC92BLQ74PN3hlhv1a1SsGdqWz8vXr7ONGB0YF7fiLtCvvn7RuileFsVfjXNrKy9qqA==, tarball: file:projects/arm-redhatopenshift.tgz} name: '@rush-temp/arm-redhatopenshift' version: 0.0.0 dependencies: @@ -18086,7 +18087,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-iaPfdmOfF5ZnFRjtd6JqqvSlPn1JbSoqlEM7968JDg4kMbtRYJj/RSp2OaZ3HbFhcUhYRRC9T4GzDPGmfmqd3w==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-wjKgPDteXSNG7HsflXJ6v7ogpaDCk+Cbx5YNmOr2XQJ7STHcZKl8XlOXagYonaTB/ZXPFI2jDZxiv39SQZr0yA==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -18118,7 +18119,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-aZLFBUEBCOzoZsTUJhc9cMShOYYGbV/6bEuR9NEAsP5N3CruGtH8LgZs3D0zsrPfjyGSaYZwqtIJMYbzzmUxdA==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-tn3eCGAuaZ5/WguvYXmmXZuRYRCie4bKR38XnA255/jD2njJ1qxuDCpH/nmT38r0R1L8jniBTlqP0+ylfgGbjg==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -18149,7 +18150,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-Th9b0kM7MAcoZ612c8zz9auhr8Hqnb3yMr+KWdRnx9miUJaIjchsiHWANFuvfnHmx8P71p/TskXMbTj8OMWnPg==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-uwrO1rzLldkeACmDg6IrzkUcDhEPxYbT7Vd7uz6GJuleJo+U+rlKz4KngctChfIy+H5lXO8M1tG/8HFhO1BDhA==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -18179,7 +18180,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-xaeHLrGZsp6SoH1ojKtx/2HHnEN899g8w71qAZrAoaO3a+5eukKyC9Gfxb1iiKoxXvAqTXeN0TV3NEBGCIbOIg==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-BqGc0TP5W8b1mEC2QK0JA/Mq+Qv8ITVZXexW4EHOKtDCDETYbwE+OIkAto3+411a6200kIUOzwyqViuUrRt6Bg==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -18209,7 +18210,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-3/GLF0TEU0hxKhW0sP1uBMYfI5n5GSlQ26ls1EH5Jry2K+l9bQco4SvRGFNHHpqtqIjssgdxkhbDIDCpEDxRVg==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-AQ9gUwZYKgMz0em5ab5wekXZZ9aq1mYgME96Go11NxLDmt5CjLB+b0yqaJ1G+ij9sOCl4f0NwN70yyH9oJx7IQ==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -18239,7 +18240,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-JdHzFd9wI6JJriyEvlkxEzkrAvHKS8sL1nqZ5F2w/0HctthIdjUM3WHTUPj7nf6NT/JsY11aB6rOUJrwJrrvCw==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-zmk1cZALrBRWYbPPc29vEhHTpdbh+K9cmQT+1xcYOVFAB8rz2U1ZGp+v+eZDCYKbokwkQxj6vO3VGwVmud6spA==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -18266,7 +18267,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-y8trJZSTDn6b1D10IKVSmb4/+HMZEi5cHfjwJWA12pmEfy8vitnl+YPnab9LbG1tBZq/qKonXdUeGzJSQkZ4Gg==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-OmXdlZg6o/+pbuha9lGCccqxJKHHfvtRnKVEtd7ScUPrULI58nJvuiXOfMbSIMp95RED3alr8uoV1DH5X/2pJA==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -18294,7 +18295,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-x1C2jUcu6IrYMYwK0SjYkthOBecAhlf8/RKxawn4u+UmBJoTceamfVhg46RDC4Q2p4JqoWGa7rsHJvUVT16Aww==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-1D4dAl0mmNVfUStY63phkh4tqdWFTWUTv2U+0ZgTHdE1JPtdfgl/0cuLsmI/CkkLJfPWcPY1lZuHnBkILy8bkA==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -18324,7 +18325,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-3K2SKWxCM/vXM3wNJxxjfznuSvjK0mNAr3KTfkR8bLZsZw0IYSYcSVlI6V6cfjUi/6pgsfwviNlWmsPdJ+FdtA==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-kkwhL1lPRpgHIar/0p0nPu2s94ksLrvxuovYHcQmCI7+zwQuSnJBAoI/RN21uFBekdcbk5X9lVnZeZrsnBo8mw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -18354,7 +18355,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-ESdS8paAhHR5HfMV7Hk+WSg9BILEmbBPdCJB0321w0xUPEZsIX5dI5JwylMIoxoqI29qJflOPDmP9f83L4+Z7w==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-1rJhKQecqIun9TBKIJuCjb1JJpIHwhP04pqs9P0i0HBuy3Q3xxkJtx8mSAOe8Rw9daDBvZw8SwIN9+nrwf4URg==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -18382,7 +18383,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-8TMFe//8E67q5Nze7yLR6VgxTPgEb1BIBF9AeBVV+Tcu8ijDgV/6siMyoOXafgdQkk2bO0tVO+SGfXQgIol+3g==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-6a16xYknvpbK19/9j06QEyv4YsWcLEoR9neVni4DcRgPbMELOh/a/9xeOo1Lisn6Jq7LQ4tbaHQWd5xbpgvpow==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -18412,7 +18413,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-CViGJPj+s3oFWu5qa59wIKJpNb2JiytehpwUomjfLwJQc7A3qXexcefkLo1ATe/x3xa/8VtGEGmHmcCQD2AbhQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-59nSruSUUf0DBQysuEcADPS0mcz4ct3vHU16Zz2kcmjzO7TFQXA2xsFjNjeJaD2+C5r4XodX72Jn3yD0U22qrQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -18443,7 +18444,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-Fkayn1s6liEmHj04cYJ492qlZh4so3USiiYydFKDLXq+iK5CraI8Y37o9nbgfigc80nJZM57OD13M7BHMEBoSw==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-Ww4OxXaLiQyIXp5EZLfQSG+T/l/3cXm3KG8/T99zwwXdmwPII9/Wsv8SZmid0SMY6GDdb+8E9ZoHGVjC+/yrtA==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -18474,7 +18475,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-n9+MFthVi0kPRyKbesnuxpozFIAXlDtN3AUHhnifFNmk1ljV9L9Qlo6F4jwEUiVDxc3q4Tewg2Z20NXpsl7jcQ==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-8uv5If4Z3qbT8dx9W89TzHJJ7AR4OC6k1IlD++vK1O7FZe0oNHYWwfd3cVjI7TbaccMC+Syzr+lAuMdt9FqJMA==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -18505,7 +18506,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-Px/+niYXJJSBaYURVZ7Sy0ZUBrh5mL5YTdHXKcumWBVaNY6IwcdEbtR3ZfjWS1J2fkZNUCBe28PjEy4+oQBzow==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-B70NAL/cD6aCD6ZFWPaQ2fCRsoA4j8ZnFsGa/y9vDILw/37omK/X06fg1L3eItXDa85rnxAKEyVISb4/CmSlMQ==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -18536,7 +18537,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-S4pcnEbybi5nmSjXtXKhIsTRuw7imOZmTcOg3bAPgz3KqoLVKXzNIaQ45IelRQ8XXWzbt2FLMruvJXZWGZa/dw==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-8LQ0CNpQRwNCKE5gn+oP3618AYNtvqNec3Mxu5PGrWUs3i1IiQAOqpnLAl+NLFjYgq/5cD3gm8FVlnmKaRRX+g==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -18566,7 +18567,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-z7/bwVywKxYb8/nzlnRHG0naVcEeSHTzxDEQ0c1QiRmlvtuuVReA0sH0eBKCSUWqe2Gad9W6zFjyLoqUxg2iyg==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-ECeHKmdNfMrlWU+ALpyQjR6P1EmyqVmwq333v5RV6lVJmh8P0P/BxUNCXpyzFW1fbzQrNz5PkcxeWk8Dn1OXeg==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -18596,7 +18597,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-qKw7XYBLOZ8gMshNFDUxW6hhf4A60cbTwLA+s1Fh/OPUKopWJ6u8z0uw40ZaodIosbk/c6XPhWaYtUImIblFsA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-Du6qiL/0d6POf7L+oG/79kFrVo1aq/OqOT9GcaPwMgsATyPRJ30MBVglpAz2Y/ZQ2PhOUZlC06LzxW6er51qTA==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -18627,7 +18628,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-GMojm865n40ZBB+4kLDKzAoO6dOa4U+Vz7zEFXNcbIHiQUoS6+PwzuDSPvOLSeNxHV7samqCTkge2FnmlQqr2A==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-IE4+e1/ccdTPu/DGZ319e0G9sO5zDhKOHYAJ3ys2d1TEgzfyZq701uDZYWj2jRPp+wTbWI1OKHNUchLOv2XFiw==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -18654,7 +18655,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-mX0dwH8mu+GrYq+JsD3AhOjm/K62WRtCNHRwHpyrwCtgc+VUuD6T/mpD3t/oERQ5NcMj/KubhdOk6iQci39eNQ==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-iKMaq8Mpd8NWdBvKvDKFX8HME7Vmks7T44pkpV8l7Py3eFY9JQSE6DVvrY9yD6EJWWxUkoswtZM7/UcoNr8gzw==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -18684,7 +18685,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-mhjzYzaHr459X1YZqYfeMyMf0WE9tGDIS0NolkxvsJHVS4GzfXLk+Qwv94I0Oczd8icANrt5bvtewhMJMN55cA==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-VpD1QplYj7Nk8D1EVFya3hgMbFMKel3IDJZb2DZtxuO2TMU6aDBAm8Fh1ObDEaqFtKS4zG08zC3+Sa6vq/3wFg==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -18714,7 +18715,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-nBD/gkz9t+npnHpQxhMqmYsiM7g2ORRS9ZTuXy8esCn2ErOSZeus7nndC7bVRSaWUFjw3RCtEaKOGC+k5FeBPQ==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-PYs4dUaMHAw61YrQ+9Gtrcvos/F+ue1jMFIG4K2F49lVjEJ8X3HddH7ewaUHP1GTzevTGSQeeOqipJJ289ui+w==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -18760,7 +18761,7 @@ packages: dev: false file:projects/arm-servicefabricmanagedclusters.tgz: - resolution: {integrity: sha512-TCi0jp2pkdiaCDttYrLe2lOgb2BLNKzfqy8sCBizSGqbapwU1zr2k1dsdlVPFaBmoPG6T3+MqqBukQ55Qde9NQ==, tarball: file:projects/arm-servicefabricmanagedclusters.tgz} + resolution: {integrity: sha512-aXLhNHWEstwVsLKpmTC2k/xVystn9qlcSGaDg+o6B5saAiAICgXAynb+8X4YUUkH/N7xVIGwB06GhYPhmkDwMw==, tarball: file:projects/arm-servicefabricmanagedclusters.tgz} name: '@rush-temp/arm-servicefabricmanagedclusters' version: 0.0.0 dependencies: @@ -18791,7 +18792,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-VUYEVVtWCIYNADs1mvJKm6x/q9zkLVxBvBgFeh9X0pn5A0I28A8LN8NikklaByhLopV4Yfoqf8iNj07TErM7oA==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-DAoHYCxEbPvnDOv46/WhvUT+yt66a6vKoaGJpQvqDpKmmpToXECdoprk6D4y0TvRfA1qRjpF8VoNFHjtgOUynA==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -18819,7 +18820,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-BI03Uf+B32eQ1/UJ5zwaebq+GqL3BZKvZRhYiHKNZIZ5XkSCj/+RbzWxkrUIYpjvYK1kK8ZdxriBEEge5x+yCQ==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-b4I+nEFdfBdbxwWL83hH8Cx8u1tnApKwJ4woUu5sW1oeBY+b1EBHqB1oMRn537e0OKZfa5rYLBVSLSSjXHCgFA==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -18849,7 +18850,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-gMlBuke+uVxkC+RHCKU/uqQF3DDItNnnSY8u3/6am2rhQKMmAyNE9cwf9LeOuTaK9Vwyp40/domzBBT3WXHi9g==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-TuOms7H4yauZtgxdgm7wHhfCAg1aGoXBxp+pH1DJYcq5Dv0Hl8OLiASVR76MquUU0hgGWCY8HEk1rnY2gOBmnw==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -18877,7 +18878,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-jTqnBRCg8w5P4b+b1zRL8OcqS/V7ZmJdoyobiF3nlybl7r3Yrn8QYjqsNSoDyTfZCPUobdfJXiw02OjvHBKT7A==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-i8zywAj3ogUJQ8TsnlaNoWGcHF4DklFscEdWVm0GJEf5kYSb9S6nXg40mVHqKtLLa1EiawVcXaMiHta7qlOlxQ==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -18907,7 +18908,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-zOj+xr0QvdXrIlVyYKgwydI81agrOmG5t5IPn1LBtXKhHc6awL3+j5mBc4UKVb33U4vujVMSAIznx8U/STDDRw==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-q3he14cTJvsZlGmkKan1jmInCxqH8L9Qjiph4Kk9rNqDNOjDzWjfI5rblwT2rwzrDhwn3LA28zbl8mkEeFUneg==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -18937,7 +18938,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-jQJaQ8K8/TuACKtMzMaljQ+2Lqpx08OCBYb/Hi+D2/5UGS9iW7GEu1nXdyT+vltrr4YYCINZn6n4L2+CHHTlQw==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-zu2ViWjA8Q+zH59tu1TFghRMTpx/o59Njik5kxjhJimusHi2WdVA2tFXy+43JOGZn2y/EOKTx8ByPe3QXXPgJg==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -18967,7 +18968,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-Zb4tvHVkQFwSBEoyOwiCg+1MXyU0xYDpG6OqyCuWiQvcdHM4UwXcwJSfJznS7GTTmQdCqegVXYLxUYJTpxoobw==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-8I6C+bVGH81wWi93y4yWThAN6Jg45vsdz0QJ0aNh8pURiwRSLfYjqpcWFGrrvMtfLPsDvsDmya/sPDTxYfI56w==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -18997,7 +18998,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-73Oet2aISNMPTPVJjDN0whP3J23ZtcbObc8wUifIqF/x+sKGEEWDwH2jdwcy4d+MJ0D99rsnTsEfPNK617tPAQ==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-jAEmxePLAQYwQA1+pc90ne5yg9S17zaCEdxcWSs+mzffP6aaMgCyTRVsMUWgn8KSw9Yi6zC0xzzf11OOYq3lKg==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -19028,7 +19029,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-pYNGuK8/84ZrBuewv7yQqhdCo/IVcD+mfYYPZty0OdFkx3SKB3gzBmTQ5m++xVN1ErX3wNPnX6G9OXKLSLX0Ag==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-fqfFdEwf0t8GAOh7qfR5g5YhSs8Km6/IaoafYyQVwV6e2jgygHl6zyARRDv8cP2m/KWR6sxj/uo9e6/a/aHLgA==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -19058,7 +19059,7 @@ packages: dev: false file:projects/arm-standbypool.tgz: - resolution: {integrity: sha512-8XK6tR34ybn9FddKq0+JQ1bZbzRoW715/OlEZGVKxIYwW7ZIZtuTnrhyfhgy2V4dKzfdja3bAe3ytl+WcusCFw==, tarball: file:projects/arm-standbypool.tgz} + resolution: {integrity: sha512-ad0vpTy1Jgcz8oulGhJAF35Pd2E8h+1IjDqexQoVe9PU4g7piDgfmXu2Enf6ACydU7dentGyCikqr3pZyGDFhw==, tarball: file:projects/arm-standbypool.tgz} name: '@rush-temp/arm-standbypool' version: 0.0.0 dependencies: @@ -19089,7 +19090,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-pPMG69GBIGTkkAtuzfE0wMCehJB4H2uRdCJvfrFqWL5+4gdqlAzxzw+Dy+3zfzZz+vEOAtlll43csdDB++ixwg==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-UY/523bFXh4JW89AWbDbZjZl8dsPEytPd2OjzZ8uYdEcPXsb2JiPeS6741E7kE2Z99pBC9DgwfeqMjPVa6PLyg==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -19118,7 +19119,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-wu02t2M2e+U75bwlQZdo2YHXfAC4cbHGrhJO159LmJFet0/ICOxk5jUgduvhPS2WPOCHruqra4od6jcGxjJsmA==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-CrodZpd6ur66ptS0rc95Au7c0CwIRraHAuxmsgQdaqILR2zcprBEfsdnBWz8QSS6uzLDzZyJ5nl2HHgWZXYknQ==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -19148,7 +19149,7 @@ packages: dev: false file:projects/arm-storageactions.tgz: - resolution: {integrity: sha512-ftPPQPoyeEFHPiCjAqjV9TaxJpsoKPjcOWhFGIyyt7UjSnIsqtp4zm9G7SeGiOWTAuog7BoQ0IYWWseg9oi5vA==, tarball: file:projects/arm-storageactions.tgz} + resolution: {integrity: sha512-y9gBYrOwFnxR6w7ihJHFh+4Ua84IV71PG1QfYKpsYBaCl7Ye6YPSIdsU89rAkb46TKckwsOISqUqij+de8qkuA==, tarball: file:projects/arm-storageactions.tgz} name: '@rush-temp/arm-storageactions' version: 0.0.0 dependencies: @@ -19178,7 +19179,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-RO0zn7zgnyBI+/G9/6GQWU/aaiXy4dW9Fqe13gNPaOWQL0Qx+9PFRWqy3Zd2uNoCxa3RjQnwrPuk8Rnsmg8EZg==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-1ZZEylMxUh/nPoxIKGSxpaVoHOcOOABS8qkwf4BlK/0y1/siwnBJSvqHgFcZ3D5YlbbIuj8rRVSNInaIuFUR5A==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -19209,7 +19210,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-FrkH1kkYZWRTmhzUOuNymupxNYkUF/0zi9JWQyDQB3W65DcOZN0w9PxIMF1aTOKHe8s6UlDpbpr1zmvx2r5ZTw==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-yi5HpUSvqmLbhj5gcwqzn3k4pKGorFKZQN5VwuxnFsZos/hwSxe/UKLRE4xijisCJh8NytSx4CDP0SbFpvoXxA==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -19237,7 +19238,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-eBTpDLGTC8bzTU5PxS+OILzHHcbDuRDDhLFgBmCUHKoY8wMKK4gLmz/u7l4IXfanLagxihCT395OAmknYxNEsQ==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-UsX6UCtWlnuZYFIzdOq/F7l72d4ku5XR/9dmaPqmgOz795hO3b5k3M69IBkdEeFMgHNmj5d+K/BIkRtVTA1+nQ==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -19268,7 +19269,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-CVer+JDWP2v9lzFt+s/g9qVJs5OyMa0jtq6OIt0vEEY35B91/0ZX/6FaDZvOil6ogF/fn8HYsLUlpPqk+3GUAg==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-4U6POnxYGRyF5vQB9KeQGyWYW/adVrtQku+3xfe3Nj0QQ8VpmN5q5DVwbI+NDLIOvrXm0ReaQzFUtbhgIc9K9w==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -19297,7 +19298,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-HoMQdFdLZ9KsB/yvQRQeyCUeXSX2xtZKdqmy6WJgRsi3aMj8MUWduZC4LbbkDb7F/crUzsGJxhMYNm6zZn2G1g==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-cTFxPvBEBJWkj19CYPT6zqIT9KLwgfdBW4g/w1Z2OEOme1eKMfI8UmpQo8WKk/6JCpXhQLcewHKkn9NJMpbs2A==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -19326,7 +19327,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-8Y3vrXijr+GNdjDTMU5lMX+lcplFw3T9h2j8XbvHqrzWwHAnN24GMJN1styPzvvTesGtXrsEDAbAIGTkMxswzg==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-i1eh3ERKkdECOuc/BOb5exDZuL7aUTEKiXFpqLlKcfKgXz1pCEYPV8ekhK6U4QXuwNWPan3+y6TzeuoKxCjH3Q==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -19355,7 +19356,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-mMgEakc8HukU0aZNHCjH4JtfdnAjluphyODqWpzS3haO6hwglmw9qTkRFD9OdeTQaNYX9G7tmlnj6KkL9+zJ6A==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-BftyU/D+V40GmtOKEIBcjM3NQvpPQGefxlOVErMEkTvkRf1Ha7KXL+gcwWfHIWmeDlBYlU9S38yR0veRGvaD3w==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -19385,7 +19386,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-j6JXR3XLuIHwKdUq+YL1sFmI1MfvzIjwFhykeFn0BxUiaEzus6dF9IKfiRYz/oK7lU0EpqbASLAWlWsFtpn3ZA==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-FWSgHuhV2hoZPRYrBFbP0I8pIHfK0VWZ1ThRFMhUvBm5bePKJvDm9A8WxQ1UACBYQ+r4sSqccPYxLDAUXQHWjA==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -19413,7 +19414,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-yxZ6qrSI1iPNoZNTfWjavZhpkUinY4iPqwMSZxL1gQFqGShQOEfgCpBT0DiJXyIYhevwNlQzg8BFFVCLJVDs+w==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-N8BQ0j0ydmfNDRBK6+IVsrcf3+UkmfGNMubsDDoN3FvFRuHIDEN8YLB8NyhvhrMYFaoHGgCR56//I5qlOrllSA==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -19442,7 +19443,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-h0HUrgnfJMgkcahpjb48+yRT+pQ//arYnNprAp0WTqgXEeHaXA02keI0rqTvuXM10BQV5CKiaFXWLh1XmK8Nmw==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-mTNhSWriRWm1/pnKKWqwpFL91hPzZxtT3mrVgRhpQyEh2Nu5asIalfe0anZlF41QjSekjraARGS2epcNTRXRLQ==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -19472,7 +19473,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-PKSs1gos0LMkEvlgcKjm0Rx3t7kt9LrHd2zcHjDQQlj68x2AZqRqixXrs9G7+9InBWFyXL9E/K8q25KKkCe66w==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-gnS+AzWwj3uKCAVg064c9Wzgm7hKJq+db8tLe/XAJxXqPWGG9nKtc0q0sC/AGLuT24De6jZGBvNiHb9KYWTsMg==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -19502,7 +19503,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-i/Zf3P6eq0cqB3hLbsmW5JYGoCsPzTebE/9W3vkLLgPytl6TAXkyVGk705Ubd0uAMOMF9PsAToALULf5zx1xwQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-fK0qpWYE/TPivDe2HG8za6k/rWYQcjsVgKrkwJvTT77G237Bcp9AxuTOSBTr8rhAG43YmzuetLFf2F0a4t/jCw==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -19529,7 +19530,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-qcaxrXXHz9j1L7wsQtOSwRBjCtqn049mL7cp2cBleXhZaxwHPBWlEL1yHfc1XXuBH+SGpEw9PsmSV0E7/4Lkhg==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-ootvGtM+S6EIlwQFOVaOZFUVjCN3Za3fD3S0j3PDVR4gsJfwnFRGwf/SdNLG1uwJpaGnmalvMjLGph7+E4xO1w==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -19559,7 +19560,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-PXGzoriUH8pOZxxsnbDoYkn7UhQWLC0bydW1uXW1aKQNnSZhEWiQ7ebW+kTvJks40b4beaQXfho8nmv2EUI/yQ==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-3w4+wkFe6S1S57009dFn+AWddYAy73EJhKrrFoZFtgKcY0c9WiqHxQrNqibyB7VMUsGOy3czFdp9+maYnNLuoQ==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -19587,7 +19588,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-ZTBQ5hiO3FmkzfGVnh7eWH2t1rK9fuYbfs4Jh7id9eIv8Uool03CuqDX3HVWR4ybdNtvrO4eW9hxoBulKf43Qw==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-eT8xtQIsuBs4dl4SC+wYDSHgOLuwoyXDb4ponzU+ApjB6tW9nH4qZ2szxGA+u9I7Aur1bhTxE+OEAGArip4e3Q==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -19616,7 +19617,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-iSBoVhQA4YidmDMKm5kXY8ySPBPBPBgbAevjzOoGc0G1am+dmDY2Nrg4rh3WMXPQvKQZzYGEdBi8c31RyBFNaA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-GaQkqiFuejshJA9bJvTXwQ9sIP3aIOJbgGbgIfpoQDWkLn/2fRrsE5bZYqoDQ2+RTxzUFsQcPRBiQrd3UD8k7g==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -19646,7 +19647,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-wjwC1xcsilmM1swl1/rQGu9soDeSlOBUAAKyU682ZVRaqlmqAQf0+Vls59qjnWolQncabYq8pGESLpPq+RqcGg==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-nQ4UThLd993Hrj5rgnzcn74jgMoj260kjTtnS2ZFoEs9ZUCLxWDEvVLvMAE7WSUQfJJhdkZYxnOjdvlpk9MNYA==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -19676,7 +19677,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-lDb8BncJGdS8FUQu/OSJfYYzkygPPqZ0P1BJqupO74IWVIAHz8qvMsb16bk0iaVt0S1S1sFUbwRHXYQGtypTrg==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-M/la3E8Hmbf4jUjZuJHlcFwh8mj6IwL1DkUhsZPTI8PShkyt62ED0eqkYSjH7Rk3d9eqejzt5ml5kqOD83PVXg==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -19706,7 +19707,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-ZqhbL8SHzp/8DMRisACAogpghLDGbI2CfjuZ530M9uWKVR1/Ft6XdINfIpQuYCzz3gLSB2qhdLV7eOCRYM+Pyw==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-ekHUB6FuRw8WckbapaHoIrOBNkM9pyMYpvh3eAoLdJuXtuB+sWhi5AkbqMAAOmG5eTIFVcdFerLM9mF5oe7BpA==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -19735,7 +19736,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-MUOiI1Y8zv4ZFDeN6QiFjsgEvJOOnrTbaPkqJfXZjVFmi9lPcjB4AZOEAkuGQGJ7i4foZ6XCuI3/hGXOzE6lwg==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-Hq5iuKGfYthKhLV3MwJJnKMBmMp+VWLMrjWtyqL/Hl1oX0I3H8k3/4awBercHCF+UwBQdLZWaJLci3tc5OboxQ==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -19765,7 +19766,7 @@ packages: dev: false file:projects/arm-workloadssapvirtualinstance.tgz: - resolution: {integrity: sha512-di/H4LlEHmsyf1Te08GxWeR7n8ceyE8AP5CH9ZqwMUb0a/uNTRcDRbb+iY3rBV2iSJLJh4GoSF6i38BsXRLNfQ==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} + resolution: {integrity: sha512-J+ADBzOKzJs4zOtj19h6zmBJyHdkxMTLzNw6IaXcN7NXmW47p3RxNcmd/Q7Pibowv4MT4bdbbJilJk8rNsMSBw==, tarball: file:projects/arm-workloadssapvirtualinstance.tgz} name: '@rush-temp/arm-workloadssapvirtualinstance' version: 0.0.0 dependencies: @@ -19795,7 +19796,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-XzL5da44qxz0ss5sVZ6p89qKs9IH1FTSLHgBh0JgyGZ8HPgM+qFqDtwgaOG+1weAw4GEcPqOH/sNcDBvieDTKg==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-x/+dVXfl8FOWCby3FJpwv+qJ73zZVXQArVInVWkY5yar6KmCrN9qxfkLqMESzwPj7cgM2xjBj5j9/lbWa9/Mwg==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -19822,7 +19823,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-Cjg+kS2ubVU3V2eKpeOJd9s8k/Afy+Euf0UznscBQQ/p6OhDLcAP3YfVAUSVtoWZCMkeMdEFl2EVs7yeNJ3SDQ==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-l+kGTQVwItgb1fkO9koHefDga+zYn/Rs9d+m8yj02ZPSFOd0a2T9qhHFbXEj7t2uGU1+uiyOBpCrR/Z/45O9+g==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -19873,7 +19874,7 @@ packages: dev: false file:projects/batch.tgz: - resolution: {integrity: sha512-BKLlTLCm94mrfJCXuXETNYwuuTBCJnTuX/Dj3gOATn3tnbmTx3lx2jLXHpS5LuKInqgs8lPe8h2KMM20h9pDVQ==, tarball: file:projects/batch.tgz} + resolution: {integrity: sha512-KZMlKB87YwC08rhriPyTaxir6Cbo0eouFiObcxdM5rVR8TwkEz7r/utYP1C21WCJxPohdSeWK6CP2rRm/prR3g==, tarball: file:projects/batch.tgz} name: '@rush-temp/batch' version: 0.0.0 dependencies: @@ -19914,7 +19915,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-Hst9jYwgYIXxOkDOJ3g/8fF2DUb9ufY/6eJf9Li8cszU6rUWkqF3UarbSNtqsENlgkMn8nc38eDR+I062XhlYQ==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-GxF9Mrz2Z52WGtnDFiI52dk1UfiaENxco2vJOMdk8rO6EBPSkNzXMpdRI4VNyxdYfTsU38l43fd2J0QVZ3E3dQ==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -19957,7 +19958,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-nPI+6paf8bm+bAp+Nah+UysteBj9B5zhZMo/wPzxE+42lCm1PaIo7SlRFlpWg7xv3QpJ98Pz/Gwy+QshONxy8A==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-3WzCsKgqaPTjWBwgZqFPVk6LdO5xnS72jN89U8lgBhi59FFvRYEowDILAR1bTIMN4nGmVC7HB5rkt4Proj4KTg==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -20003,7 +20004,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-sMoxDYWNcQKW8VwXQm9X3lc9YBPpuVYJys7lUiudV7lxDZNPbfsZ0x3v7u3S/W4IIJQku3EHzx1lCsi6E7pyUw==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-SW3kV3WMqR2jh2SEqertR+xUpkCSMuj8dhH4sBgSrSpkj2rL9bkr6mILw0YJ7+e63+Cgl0yqFTaIUfYi3fZycA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -20052,7 +20053,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-dq2CHqJUj7/jCzwrfvlplosHFpgenNZlnuVtj7P34AjaLKYV3JvkeuAo1I6nRgxf08AnByPplCKgGZMcgvicpA==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-gNfo/2cMkO+kKl5G7MFLUTNujIhJ0eZDWh9k4NTc/l41ajcIpGhFqkCeoqIx2U6QGkq0JqILeNpdmxp40T3RLg==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -20097,7 +20098,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-x//4ITCLpNDIhQGqn3kWrqEVNnHZqEvT9lj0TxPOQ60XAP1Ff0nsqBMXB9bWPnHRbN+DmHJwzQVyDJkczBKfuQ==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-OuCJlT8sUnZ9SsPiqOGk37mDBzEMrl+te6kMREDsr0h8T+kxKGVoeol/fzBU1IBfVL7MpG/5pETgOX0pz1y64Q==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -20138,7 +20139,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-CaqJYe9lUMXxkmwkscjMGHgfHrgSoexwfvwzG7VSKwHx77v8c+CtLjyC24ztLyjHXzflYWB6I8rL6uV4TvpYhg==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-4RZHTKD7N4AA8CrjL3Jn+gpIsZzhMqlENpsINrwJNTw9e7ZG6IFG5yOOl7a4PD0tKfscHslLQmkInvwge2hSoA==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -20185,7 +20186,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-l+/94wTOHY/DWKf+pdg4pCnjpyNX2CAAHzpvLYTDKSGwk3MDRejHyueAUOHmdogB5wM6Z+D4XUEwOpUV7VTWBQ==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-Pf7ZICd8zVOyvR9ic3p3osOAwEa8SW++iZMvexgtDYUVj4LGM4+B8jwQT+5eyFQfLWAA9FkD/jtS/9BOFfTuvA==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -20232,7 +20233,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-xRuR+PV9qOmg7+H4nEn0dRLdBf2p8e9pBK/ERM+hKXV8bbchzukyM2MeGL+zy4jy1j4Ar+lz+OLpXY2FotlkCw==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-dwGWuO/CWPbaFAQDrWofCCHKpNsrpclkRyRcr4Sy9J7UZ2n99Zhrr4E/pBqqahr0lH5fJdbhqRpt2GnPXC1hVg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -20277,7 +20278,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-eZvl3T5xmJk+A4A0UFqTpxYV4TQ5eVeOwAOHXMtnZuNFL3FDDET93Ha7Wn+7UaO3nRbAjVjIu+MhaWRXz9r+2w==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-cJ+fNIlvMa0D7PzceBoIW4vxkLKrEWB5KyuhwtLRIljU/B08vmrBV9VrsqNgQelE2bnZfeVWZyIDRxwNCsfMBA==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -20322,7 +20323,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-39/ssP69pw/1OYF2BbJwDdWwEBHKaoGPaapMW5wP2y88dSbJi90RP5fYhTL5AhzErpIgF4jjmY43WsKLT2yJ0g==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-s+FoHrqA5LFGwD9PbAxmLoARPDZNroSaaGiZkwvLfOT6StsapePnnjLCxiGh1FHTmmuUZOO3+mPoZsoCMdn6rA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -20367,7 +20368,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-pc3kCkUSWUxzjslJkVNVN7jyvmolZPxasuILnp9T49K/ntrcPhLf9HJ/NXpGI30F8sSuBAElCksEiLFWqIYf/g==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-raToxpwaZhkvNijRM5KQQPeyFNNPHPB3xCvpGP8T3400EEbZK8/AXhExgGVfsiWPIh+0T0Qgc4Dc+ZR3ESVM0g==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -20413,7 +20414,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-9WzQ8V3bJICGPHvdYp3lr6jnILw7/c3reSRf3pRhpx/Zhq4mXZD19DDf2C+XgkDqYOd0zg0i0Bf6R+n+AdqvZA==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-dJUJiVv/PWc8+Daf0d8MK849btRZ6mhKUe9fY8KzDw40szhLu+O4U8geDwVF8aVkMxOg3V0Ve00wVv1+IDMXjg==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -20448,7 +20449,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-AvToJvBPGoASzpJvShcF77cxKbXU0SHM1pRrkfhp0SDirGjZcIsYmm6i/sw0URcKocMAONdvuFRKF2DZOhIovA==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-Z8LbaHRpitiRHE0hKhjCvlj+mod3lSVab/4sFMz+dINjKLgLK0EkBBKOV1vjSLrm73aB2B0DMrYiQwVM2jVgHg==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -20494,7 +20495,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-Ant+j9sEeDP7tdIEXmLQUqBlxB6gMrBU3Z9yWqGqj20DFv3NHKvcpsucAo0Or9X3q7wnFetfSH7jw/vn0PMQTw==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-pTwpMsQDUm8RmgL7Q3aJEuUPnfWeW0GNREITnHUSmDCHCy0ccDzswE759KBr4o5K7VAQhcNVYC85ybVQI27b8w==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -20539,7 +20540,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-QuvJOfyK77/npH1OhEMm8tvqXruLnJRDOMML/vSbYxM3QBm83cQQfAM6HHzxNW/JfSNEm9Q+hO0ciKZ71wjVEQ==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-+/lUuj5yujLBlGX7mWu9gPvK8EeeMos07LYd7d+ec+GE5CRWS8nqDFzdv/hMY6w/pi9pFYsMZfhD8wkwfppwRw==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -20585,7 +20586,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-KkLg37Pnd5NU5R4EZDOOYfZnWdcb0YwELa6T4DNuR/TE3umc8n6zh1xDbwEZw2RH2Vh/ng9R3Q+cc6NNTueQSQ==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-QL4+IMRWHCSn7IL67HsgXcIcrKUHvvyfrRxh9ZGOrAg5R6UaDlwAcv7vhLq5/xPL8yoTk1jiJaPe9ItsjCHHkg==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -20628,7 +20629,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-eFCaoAk2IGaA53SIsOtHu1yJHxoZ1tADhuuw2VY0iFlavHw2BpCiuYYpjE/eQOHIKZlDQDT+fIeLUlPsSoAxGg==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-IeHVnoNcL68++YYDWRh2Cbt2e0KQfdL2yhjpvPTNH9Cj9lzmSgrxdN2a/Tq7u5fYXYCqEb7wl2xV4IpIg0pf9w==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -20658,7 +20659,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-PoAp2X+TwZonURuPRPOkOu0N+ZIkLOQ1Ih0GnuWvKIgn+9MqQGy1hw91qpLOXMzPDifDnSIKIh/bqNX743igoQ==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-eSjgV03PUYSzyFVQ0po8aFst87AwDjron9mIonwDGz3odxtGYM2KoDis+6jchKNDRRA4wi9r73RB3bqj72JDsw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -20701,7 +20702,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-g+B03LVXkJLQf44u3h27ja92FtHtSSKq/TGbTgMSm8YXB1bo6HoGBRhzCIzttMJ8s136NsWOBpv1ZgnABK7qig==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-t6C8ltd1Oc0pse9zMoKBE1eQzejgsFVZFkpnZBbasQKS7VCWg5YK6LjW8rr/YlIZiS2n9OOHhaCZHpBy0jlN9w==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -20747,7 +20748,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-vY42cq6R6TdfQb8LIs+0TCdinq8VRK1EFLFfQwaPIiNtZI/xkTv3MIoZAm3zkGrDrNVJQEukNXAmqlfgKJDSAg==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-pcT95NqTlwz4nKRpaYqn75R0R/tLXQMMq1cKU/lR6ySN4Fngk3eST8uXudXAESNcXh8MIBiB7y5vmiPD77w4/A==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -20782,7 +20783,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-r1MX0WreTXkb92PKYmpsANIjK6Ivm46uBrSadpLytScmEzMCpab6kA4qWKv2xRGgNPN9r3SBab9VRWmBgYhUyQ==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-6tGiv8BpGy8eTYorXLXYGoEoovqgJ5M8U7w3ccqBkl0YfrwGrDhPkvu3scHqUmdXgUst5PvqpNa8CMsRibNcew==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -20817,7 +20818,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-l1rA+2W+9xLNs/CY/qYYUEe+0OVsUP4urW+DPuXQ6Ijqu6d77x1EugNsyu5m3C98RiS/56O9iX4grAAbE5L4yA==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-+IwFRR6/0hBILKGH+TtdT1dSTs+BzL1ohaN2xm3tem4VWCfyMai+gBlru12HrjNoE6dsIMkUJz4MNCpuf9NOfw==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -20852,7 +20853,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-hbJrSt3XopE7ZHKJGEl+TKFjXDfVhC5SShS0gMtcjGspzz4JJIp0vNRufWCp/QQl4Lrrk2DUL3FvFJjmzUm+yg==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-K7ibMNnAEkccwhD2QMmnVJ6p+N9r+eztB/A4OlfOWyIypu+EpvHI1lE3m6xK6aDBpPXTOZXssFml5gayhOtRhQ==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -20886,7 +20887,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-yvw1a406p2ExpVDwIKMP1q0s9OaH5/55IrRIczUwApCnro0Gt8gJ2ttJP2wqQTssMUCv7AZEIOV/OPazBC/R/w==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-KKQeY14iQ2AeHpCZ4en8rnkkU3cJj6X1i582gmqUa6FuChNikLfJ0ilwCvCiC+N+hnld4dCrHNaXRz7H4F/kjA==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -20921,7 +20922,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-oH9FpdaW8liSxolp4eS/BGk7Yf0Lqr9a/tU0FIAtQEWauOLZW5tPQcDjkFhVgS62iwOiLFytEQiXJ2rNl8KLug==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-WAVql5zt+h9ibZYDLDE0SiHEfDPOhhB9b2oskVp0pstHTpFlrPEhHBU+Dv7HuqLL1Ll7EogLwTy81FlZcs44hw==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -20956,7 +20957,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-DBScWFbVyqwjlirL7TqPl0+Af3MTV0A10wBU6JbwWuARhftgQkQJIkcKuGfdBUk17Nl+SmeDw8D4insaHCOK1w==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-b7alNTHtvyIB7LodYrM06A1F8ScsOlc4Qu77ug+YBzC8V7z9AJ4cCLUXfOzo2vJmoIHQa+lcClTzVnPv9OmolQ==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -20993,7 +20994,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-nACU82+/xu+3R+P+TUswIGnbpY16h5NJ9dACYinDpQP/VFtePh/TILV0K7wJUNnKuojDEGgX1/hHwoNByyn5lQ==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-8Y3sGx1Vwi7VLyhYsuIikHKOqCNgLbTCNBoCX+1hOhsOPMvYM3pJ20WMmpp1IzxsxcEoPqfxQDYPjYuBDpzhqw==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -21032,7 +21033,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-P9DjRTPs1GTatmP05c1n+5xGiX2CLJASDCIjKV3xcOcKVEBPGvdHtTE0xjRAZ5BNHBqi/Rlfw3Xz6WsJUNVu4w==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-JCu3kVTLdmvw/Gp0fWaaNJDayj38yplVojZdweIszXouM7OQyClHZlvXaGvQlZ/i11RZACcfMAj0m0IHX908AQ==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -21067,7 +21068,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-B13gfVDXgrdZaroUn2k0tUXo7zMDnTrFRB36DFqILqoVnAYszEFBBNQnt9yNW7tl3DFDr8P6/hjnCPKjzggqqQ==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-hDmD6jAO3QSlkuv324M813c8pkkNDToiPIoJhia9dPCFT/qRhxAO9FYSJut+GWiGFhpP0thBACSlfIxU4istjw==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -21102,7 +21103,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-g90A38K7q3GLkVSO/GK38tljI4NZNr536bRaYqp7bSzL7+iMMnxHvC09tZOvrjgNMOpa1QU1rjDv5hgH0NGfYg==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-8rnx0NlVLTPyXFZECO1XK55ppZN8jmnhd/Z+kWHCTa4KOcyGWA0uqdSYdj55ew3XmR1v2ARPK62D38z3sa/yhw==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -21139,7 +21140,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-6JYVV/edBloz/AlX/hsaHWjnJry75gDvuUiRWs5DGUE44RI7IYxH8qer4cOjqpwTie86waUEf8Bfo0zgNYCZsA==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-4T6aUKuID/YUr6KlCqT6aE2OsbJGosLPxxt/OY3VyPSstF8HgIsXM1HfyWvCpJ1362PhTlX1WaBvVxlVyYZYPQ==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -21180,7 +21181,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-0k9NnYVxTlxr90N8QDS6wWZ3748dwnUv3xFk02PWpnt0Gq4pGyc6XoV0mUEmqJuT0udPnp604zLUssa1Fjdu3w==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-uQSpb+axAGR2DiEFq3AMMNAKxHLjZkD8sE5X4K8XidvFweUv1dRdOayMaSDDNdJo4R3dffWw4+Jfs8438o5XKg==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -21224,7 +21225,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-rvBnctSZ1zRdF13oUGU6cvV6Hw/xCuv7PZ/g+fSeupgkM+BYJOY7SJ8nEODkIwD7DMKYOPN1GSSRd6rQPf655g==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-JhUtBnCSyefgcaH4yHS9vFQBO64YTZuqRNH+KJEn034pE+9rZFg111XeCE7TTaocM0eCq4GBdmKo/j10+Kaq0Q==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -21271,7 +21272,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-yl21SxCggTjpbZ/j550rndI5vZfImPECakVjqUFAOF184WAAcxBJL4DxEUQZzy1wxeJ7RNhhQny31qgWUGIksg==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-66IidRFwPa23K2J6Gdws3gd3uYJ1jWzv5dWcCW8gzjBAu7nonW/XibhqDhX7HX+ThJRgGBde96Cx2Hx5xQBVng==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -21341,7 +21342,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-n9J1fkU8qmrEvKcSx+a/o5ZJGJn3XCWlwqmnRnB/DijguwLzowP0Kw10wlXfRhquIDXqdE1hJRcEAiggZTuSIg==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-uoCOlXj+TaX0kIPgUtfpcD8NvDaUw6JrjVkNS61BTdHW3G1HbcBSMfPS80aDFasJbIzMMSHzb/LEmDSZ1eQhWg==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -21380,7 +21381,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-znhU7vJ4nHimuS/O5H9dLFLSu9g1whygu89tf78A3GR3vdR/Tz4rHYQdtLS2oxrjBL31I+6QWi2gQaUAxKcVDw==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-4+pRlXZu4oNBk8Vp+vPMrfCS+BEA4qoLjs8eEAhjW4h97nrBUMtTqwviiDbKhx1jNzcg80sRoZPKBeaT47DYMw==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -21426,7 +21427,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-27G4YMP9kFYRVqVV1FcB6pviLTdnLBTlpImmDs2ZkhZYygGbiCxw60TiWru2oZt3cKCzE9RakCB3YdZ8Po+lCg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-BNAjKfF+QfoGeAHl3ED/z/aDIJTM5ylb7gO2V6q5bwvhJHnCFWTNm0lRd0jK9c3JVyIxD+LWPJO0P2i0hGXNiA==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -21455,7 +21456,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-muFv5+h1sNOv0yYYxjJdjSCouEQ9jEVZx9W/re7tT9lULsfV/u9JbV5vLFRAQJm6mHdOSorK8tEIzX4/VnTGvQ==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-PmDtKMlzVHnqzw+ALXhDOvsHlS6tzEfC0NCMpeNeidFcxzG2PKpen3KYfea4aCIzqJuFMePAdg5fwf1wqdQ16w==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -21507,7 +21508,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-y91y9ncES2zFoF1c8ruoEs2saKnE6hf7eZ3va7ky7rKcSnbwPYJ0cTX00kYGlI4sd/wDa5KT+HRzStJAuVuDZw==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-xLnyilBbbHQfmzOAAd5SjygGVv4ge2nrp4WzLc8ifOjRhBLsWdDXsg11j4nGj0/z5/qC1mM6tDtAdoKEF4moiA==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -21564,7 +21565,7 @@ packages: dev: false file:projects/eventgrid-namespaces.tgz: - resolution: {integrity: sha512-MSAg5HuRAKu7XbLpnnpG8gJKF0oe8x0IB7hcWXhwWftzHuthv64uCJ/pzelKlDFxlmMFC+mtSrXNbJJ53SsWjg==, tarball: file:projects/eventgrid-namespaces.tgz} + resolution: {integrity: sha512-9PoFq2uCsWu9t+azDxQiQacowRkaO7C99Vp9k5ZVA3otIOMGtaZyMcco04bbhoH5YQjQeLdut07saZkt0a1T6A==, tarball: file:projects/eventgrid-namespaces.tgz} name: '@rush-temp/eventgrid-namespaces' version: 0.0.0 dependencies: @@ -21612,7 +21613,7 @@ packages: dev: false file:projects/eventgrid-system-events.tgz: - resolution: {integrity: sha512-8WbGkXYl2meq4wlzgQHRvsUFiHOXS1XABhUJIOPb05FXEpHaDaf72phWQYUuaFUjPEMjJUPw3D70mgoDaDQQqA==, tarball: file:projects/eventgrid-system-events.tgz} + resolution: {integrity: sha512-+PlaZmzoItgLPloB0EJh3W+kkB0Sq/oYt4fBLJ/OGdhIEIQYJIY6d4sG0zvsAL3TmJbA0LnKTHyxVHRbdzJDfw==, tarball: file:projects/eventgrid-system-events.tgz} name: '@rush-temp/eventgrid-system-events' version: 0.0.0 dependencies: @@ -21660,7 +21661,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-/aIxYWOUqFBmzyifimWB/SUZaSdEp8CoZTZD9/kw/el9YvVs9VcAr8BHvvwZTMy3MflejabDNLAnKnwyoKYkBg==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-d/axieyfjMweYvEOcRvhXbAG9YtIImODSEF8zPwZVBuh6jiy/eLS/jYJe+twQyd58TPx176KPTqSCiw1GncRjw==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -21704,7 +21705,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz(chai@4.3.10): - resolution: {integrity: sha512-mLZ4Kje5JcvS1tsSD/hOVYGlHisB1zhpvanaIXnA8W0wIRuoSk01aF0iZQsBCp4bmFTERX2JSvU9O1iTVHSLxw==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-5oCF4NJigpz0RnRKVAKJccgluWKa7ZLliD5B2s1bL6COrNJe/u4td0vWgy435S3Db51+VeEn9ICIT/tPz3RcRg==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} id: file:projects/eventhubs-checkpointstore-blob.tgz name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 @@ -21755,7 +21756,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz(chai@4.3.10): - resolution: {integrity: sha512-3OofgMgoym1F48jfUCM3jHJkiOvrdFT+EQYeAAOlKGhiU57r252IlWb1OZduveLlJMaGqFzekFU778u9HaLxQQ==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-rwWimWyJQ4ooozrWuSJGfH3M+p7DtY+Y9fqinWkGuPiwtbqJd5aqD17axilByXM4+UCGcWqrSlUI2MSVyVg39g==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} id: file:projects/eventhubs-checkpointstore-table.tgz name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 @@ -21805,7 +21806,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-aApTAGIYOhQDXKLIYOVHwMjF3f5Zvlr2g33Oizc4aQQ9oRDztcJDp5KHBEtV+pcMOBzE3uXMJhbpmBf8THjEpw==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-HQOnyBSn4Dew4tzB4kwnmnm3hyfj1wb3fbdPE/SnYOzzn+9DK7/vK+gVsSwTVTUqOyr7RLxFYIThyyrRttTbzQ==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -21850,7 +21851,7 @@ packages: dev: false file:projects/health-deidentification.tgz: - resolution: {integrity: sha512-ViyKG5CrMCQrD+XtF9roPgzipnAayLDbLQtJC8XRYIqFnfkSvIoc+QMUH++JM5Dh9RwSG9yI3rL244bkqlojlA==, tarball: file:projects/health-deidentification.tgz} + resolution: {integrity: sha512-XIXPEX7GVWacOhCOfRcyg/Ignam8Gec8EeOIyWqmUdB+YoRtuGmSsPdDzATSgflVTrym+ZBKcKPDm9PZxG1gnw==, tarball: file:projects/health-deidentification.tgz} name: '@rush-temp/health-deidentification' version: 0.0.0 dependencies: @@ -21889,7 +21890,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-iaLOhJmMJm++SARTYyq0zF/HqQOt+X4cthNz+4HPsorM9Vl3l4CfKQGx7D54XNpJMxnXls+/W/ibLNrXluGHhw==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-qZASX+wdO+x8kPONr0yOUPpZcNw0IKUZFINTfsCFzJqNibiod7Ap9FxZt0n3vOBbEHAf/BSiF+IzddBfO7iqkA==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -21936,7 +21937,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-G1r3XaWFx8dG1fjDTjL0baWEuJK4GyNTWgHIiwOrcwGqrtv6FvXh95VfrV8rtbvYHVRH8GL7uUaSY3B3ufJiow==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-QNp0IcY46zw6+LB5UIh6MjD6gs/oXIiwjNtXDmWmYxhssBvu3GayP4K6Ut3SFvTd7xn579W/3WeQZDbDBIUlpQ==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -21983,7 +21984,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-4YeJpaqgwEWqufa1UWVwYiRpuYJqfjtl97249uisM3EMwqtcEL/VEGUCiJhI8E2v+FadetiAUAtueSGeIyCdbA==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-44JXAxsojj6fQ7ct3Sb+gX0xZfDYHMWZhDHpp8jz16OI1LV+kOFcqKuoTcNCxdP0Yl5r69V7sCA4I4bwyun4bg==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -22030,7 +22031,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-ss649R/5rBoPFVFHrNY7emScp1WTGFMkH5d/5yv3Ed8FM8cPXzumQksLmpVURrWetavMkpshUCRI0Cvh6vBHzg==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-PFAk0qtrV4+Sx0qif29ZbSuTOJQNNOzs0TdBNMSawfI59DE804G/1J1RylXQ3Hm6t0TLNseOODREAN1M9P8fnQ==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -22058,7 +22059,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-PzQ8h2R6clNkNYJBIGwa7eQ0f5GVbjvBPCp3X5xVqiEciCZQ0hEVSoWXHgue9HQjecAL6z0UTEvt8Rrw9DXA8w==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-W+kRvM/Cfk27Ca3xQIBmp69UTaGKrua5pWVHQkVc4xB1pnAenZpDhioVTkfWiVzJxHIaTiEFDGYNIfet2BiL7Q==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -22094,7 +22095,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-wFd6ItZFl4HOb8m8ZPfGSmm9HOJCMRE5xl3jD6x2AIayHZLnt2Lhssy12iHhgJRmeIM5OAIeCGy5aXfu0frp5A==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-HNDxqfPbOgYboSoUcjAOtUZueIvtxWEfZT6r2YjOfo2GEBWzhWHz9qgBF337CYJkFGSHecaecyzu3bR4TutbPA==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -22129,7 +22130,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-U8XKWGJqdGHi6sSgZpYXjKSNJOt0O9ICO9SvUHL373m5mQWosGv/dWw6XKsq8MsCV9UWjtMi3xIsiQPVafzsGw==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-vRMkof8kOthU6CPj1EHndq1ELLA0S7iT4M1d3sH7B+50Iy+ibcgwmu4k6VhI5ZmDvwCBFdKo7GxAjyF/6Y9mKQ==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -22185,7 +22186,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-zk2ybn46growB0yFOMyVGZQ9VxGCtcG6+uQlHcMuz77JbjC4I4uk3pwq1KtwcLLXMrvGhn0JvLbhCWfB4rWmkQ==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-NIgNsJXGBuXSfW4WwjQotagmMMKnamlEOPUZYptkQeCRy/3rIqc81WWSXxRau3e3TEI6Xi/KjxguY/CTzeMCBw==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -22232,7 +22233,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-t60+FhsdAnE22BzXtH/yp8RKsM/wRnCUM8WnlmCDeIpjzktE2sSs0nJgi8sW/6XXZqHdZMAVX6l7Co1Jx55FpA==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-BckB8vSfxgT61GGc6n0zF5nEzoE8UJeZMgvqqA/1JiniYwHn3ykExCp8kUvW64G8wpcqXcY+he+MrOoiITZlRQ==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -22276,7 +22277,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-dsunWQMsLsdiguSu5LYZU7kZwiLAQ9e0yX0LYziOIseDXRYtDITozBl/EheUzQ4q4xfKUhD7imk+OIwkppoSmg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-apDSonXIGR4V18FGs4+t4A5R3GScYn2hViO2mo1U5J2f4IOcXH8zPgggu5qcAU/M49MLBeEOBIw/iJchWm+zaA==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -22315,7 +22316,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-d+U46KzZabZyNkFyt72mx/vKmQTJMHnF5iaXIOMXXiEM+CYtjb2ozM6wWVN4cJOInz/zcIb7i2SiXoVI6rj14w==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-kR/wShtnhfbQpdLgfQw2L4t6ezDCK2D9AbkAwo8G46aCQJ7UQF+2olw+92HoBz7UbHQ9jnN/iChzaoO4B/mBkA==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -22360,7 +22361,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-Ciy4ViV4tjk8xKOTPuF4cCbgdA9mmzn3NZSFUIXOwSikKzy7xGS0H8UYKLamMAry9/QnGl/tlvXzVJPBRuH21Q==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-FzBLdTUe4haDqY+etOyz3Yz/NiwDsAiX9yii4t9Pw9gRWFpPnY0GpMCoz21d+iCo7isBWSz2+cECmPvGjwqP4Q==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -22403,7 +22404,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-VetOwAKfNBnTHJcgw+wKZMS01iNqsw+ft2gigIfPKqwGFeqfYJVKvB6DgQHYBR31WNEUhG5Vj83m5yiLtr3kJg==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-pCkhdlB+/4VM66NrcwbCZexCAiXOSeDVeu+rGvrSIbXBjsQFp3N0GeKHHsPtj4CNMqdJDenIbtC93xT5nYWCFQ==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -22449,7 +22450,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-xmeGzSbTsxLCnWVoHNrC4ZKtWauFI5YqrEV6yqXsMEOHr7EY7i3dOsfQLQuPQqt3sbRwlCd+eyTzhJ5bfISyYA==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-k905gOIrYFWE/UBqq+Tj5Ujcfhwc/E+FhUmM3jBMYm/45yD5bJdRJf8gvhKHCn6TquYTCvJXRfN0PzcXC1mxjw==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -22492,7 +22493,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-UVEdI4STub3eQDH51YsW5HxzBZp/YB+ovlVwawirNDIn2L6JpIVfjrlsjphxnKSM9APAfpGKpvcu7C18PdQzQg==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-2jBNN0e/ojZ4JuwLmwda6pyV37Pc3kKeYaqe6wnYmk6uyLypJq/6o2p1EKlOSB/dN4I5A8CTh8ehsdnb+7OOAg==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -22540,7 +22541,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-8PWl/8/78SftC/QDnuBQdu/H2CZrY5i/4vF2QTNqGz6vPAvckpE7HSEgKEy2zb8yBizQTI8So0xdJi198CEeUQ==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-9Fy44VVr7h0hj9E1JnUJiJcohLZNyBM16mlo9/7nl8k5oRyuxY4IQZ+3/kIdLGSxzccLcuuFackQlJMeL27s+g==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -22576,7 +22577,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-Scmb3fdFE7LS6CWNHJJBhihI+8U9v1K6eM/YyqLNgRG3HCKdv5mGHiGuAimXP4phBtlNyR0yJuijZQzM1pWNTA==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-EV966yIMO5f7uK/9KkDxD6VAmE5LNw7Lm1OOc73c1Mch5zPDgjeMAMtiOe1yEuVW6PaQb/Bu9LVLg5w9DiFgDQ==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -22594,7 +22595,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-gTtxwimbxkskwgPt9cKiYiy3iZl+RRglzPwid6UeBCxz7fVVWHRj2p1bnZ+vX/QtAbRUkb4cqXFjOpimRVGPzw==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-B32BArCBNnzAVbittEOG3gCu/Sa/lrETT49YR674Ak2amg1B0PeXHhRIOvx7WdcPdVfWLzPyERFHwaBUrCxxiA==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -22640,7 +22641,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-TiH597tRmg6pScwBjUdnDoGftilr1SyHJuFGgpZs2l56yVDY6Jb/SjegtKV6cH84iSGSJSq9e999JJ5NYzr0sQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-mxIGWKhN6Wd9Vse/Cw1czC0pd0AELj30/E2Y3KCQz2sYv1qjLNUkhVV3AfN8kAjdbTKgPlLu3K4BCWVS4RfGvQ==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -22686,7 +22687,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-W5gYVlNKM5TluV8iP+uE+/dBJEGYD2thLp5f5UPL/WK15hmPWlljOj6I0MP52/8t9noWXQWl5Apx+5DYH/49Uw==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-BLcJ2RFitpTOSAlafh07/0secT/Iwj3bBxuLTEeouvYQS4C3hTlrUCwYcglPI5aglo6du82YWKM6Ph1Bb5wncQ==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -22733,7 +22734,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-qc4dU/o9vIowyU7WlvnEhwr2+ElkexTxWWwZpRVE8BS5ft3mwMkivWp2yNJ9hGLawzljvtsKJrgBp8TJ0/3mlQ==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-VpxWxc7rI52RgpBxO83u2jxBs2cBrwSe1NMlXNv6BROPLMkT9tpyw72A0mAoa4TKbSucxZ+MjD3x8zmif3RK3Q==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -22780,7 +22781,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-adXYa6cLCcF45ztJ7aE2CgyUpR5mEQzxnWxqvkoEmnE5yRMx7G6371i0SFmOXTZMYEjiSnUbaG9v4TwpOgkK6A==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-2lGfF6hN64COe2qoohcBPdnw9zFX8JarL4VqEjSz+aClIT0sCt1XW9+u5HUDb2BrLe2uBJZtHFQKy02CZH8yHw==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -22823,7 +22824,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-PWWJq0EsC2ofw5kTftrGmXNxTr5vymKgYrgbdNXMIrImEpvq5reH799Twww6Yoot6OC4XyN2jjnvJHZquLjtCA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-OSPAcLNxfo7AWdAlKcLv2CgIRuxkuwzJM4bogvZGk9j334+iw7FYY52wcuUg3X7LceW34pi+RQUGy86MRDy9Mg==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -22870,7 +22871,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-8Ciyzim9dMZzxB/kEQ69nxF+3FLoB5jy/zB7XAyBZgbVb/S20r1fekY+t+u3AQWPCGxDyIT/61zaVbFWIcz+VA==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-qND+nxzsNNqvvROhaZaEgeTgVfCMTpc7utFJj1YO6epNZlV2zBVXtjLUpaF8kC/k82EejwEuC8jDT5y+q+2gEA==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -22904,7 +22905,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-2TuFFxs/9AvRHA/BhWDwrODaVrHXR2FGH2sGeaw4ZCP9yhbdvtGfZiJvRHD533laO4yr6fQBLz0/OK5wqYd9qg==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-FLWDgJiVixkS7DwF9IeUeKDIpls7LeNletvRwKguOw688OWY9vqN/xxtsC6RnrjX4+P3YLEpNlNyugjSLAsEGQ==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -22952,7 +22953,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-lF4HckcGeFQz1QyZ2X1P2QXMAyrAL1wK+O73PWrqipkdGRQOvxEei03pBV2RQ6uQtMp0VuNruFB2hi1SRAbxUg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-aMvFIVpBs0KJZonV1omJln3lR47yFT/PRhbT8sVARBMoN6onDj5PcN5JfL+p+ZFKEaYcS4rz0GohigC5AZe4ug==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -22986,7 +22987,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-MzAIwYUUOl3Vc3PJdFhc1S9RP1lVZgtWV5gPkVTMuFhg3PZLufzqSsyQUCa35EP/OBYZqZSMi+urDyUXrQrnfA==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-thwsoEaOyjBXBsnArTgvp+jJD5RGkA60bQxm9M5FINEikCj1ExvOfKuz92mlczAz9ucFDoUtoqlrRRRsRykkkg==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -23034,7 +23035,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-V05Na56q27tjE4HB650lJSCpzKfjx3uAPGTb2UR9MwDnblVKaZvqkqTG7WxYiyoSOeLNIm9WIIRFjLYIPuZuLg==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-ihLsubKVYU9jaXZo1mmKS5vpC+COwujWvF+iXDj85MmJFDsFzZ+XdoQxqqCFIToFJdjJr7P34Bx6vesPFMOzJw==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -23078,7 +23079,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-GlP+C+qTYDlit8le6xt9z+jZBdE6DX7Fkpve6exIOCCJbt/46H+vVaH6rme3Kndgs1tN0k2bJuAg27WzyvI3TA==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-G07NVQ2fHyW8BGfbTUsZyUq/PrE3XnPnbIpsqBvxKjQSzDyE3AD34qTxumMOSMWa4b64eN4xATzMWMDMH6Rquw==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -23115,7 +23116,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-H48T2Roeqsl/F7HvAZqr8AmIkBG1jazlU6i9rSC+7ymiFMI+N8tNCJF2HMYo+ZhsDbn3vGicriy6BAG6Fzl3jw==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-1NZPBco5pUUtGn4hbYETrn7d1IAe1q2HZ7Fg0UdkliV2/7xjt58TfvC2bf5q7MjExdQveNt2uXZmt2lw6TuJ0A==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -23157,7 +23158,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-oxiwObvPjqIopSkQAIu0tV9pGGn/wVKeh09VnP8IOVnyobPxU8ywRACBixNofoiBctZqcNmLlQ4fGHwTLAe0Tg==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-bNg2Of+sm8+U1hIvc+8hWiR3+GWLnx5OcGw6QzzGEqKsKAJ51r478wpaexNQcCDShoZHfxmeBMxNeZccs/PZPw==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -23201,7 +23202,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-zWjC3E9n3/BTHJLPDsHAguRP9k5dewi5WwvmFbqk5QC2qiCl47kiB6Uxy7MOa/3yLdyEYJ8ebliKiVimVBKF0w==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-POWpOoVpfQdjEWbBSiHCj+DvlYTRfyzU0XtydXNXGs+bM0n+BNUTuoh7n/tk1ZJKa2cr8c6NZnESJpkB5tDb3Q==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -23221,7 +23222,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-9+Qg0q6bwD14voj/cTR+VS5YA3nMNjsXnyJk6jNMVHj4zn6z7kmfXe3mamYRYnPy3dIuJPhSK+/7fNHcM8xqkA==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-5/7jXL83XnX5OXadOHW4gTycoTsLDth3As/KDepCiJ8HsZBR32xLVwtVkE5/ukB0zOlKW5f/2OE24ctUhbdS5g==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -23241,7 +23242,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-0NbwHsDgSgIPwEmyJW7jh1Ozwq3u7DWNfvYFERHUcMcGmQP+7MLw6Kcox7N4si/dLmeHri2AwnWD9+3GbWSY8Q==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-td1pfbo0dFobWlifHe8T3e04KBYDiXImEtfD0rInUstpoVyXCksg7dzbFLjBltjblJ1i/r97ID+3bvaJPWFmiQ==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -23260,7 +23261,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-oWOh5+ltQ3/kxeM+enlm/H5q1rKoGFOesYTjjwIqLxHK4Jygugaf8u7vBcOiym4DHF4/FdMJt/kgDjjuVeubgQ==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-kmAYfpIiEjg7ILSlzcXGWpbbYXUt2TjiqPARqaTqzNW7hHf+0rHFnCduyQc6PPtldN8fr1NTuW1tUiDCV54b7A==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -23280,7 +23281,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-+vUzrvJBPvpryLciRn92TjLWV/6U2nA1YGTIlr44AJdKvU+NPAWzBygZqJNHipRTHMBnq2kmMqUmENQhM84SPg==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-eEVIqKSFpKM8WmN1Nd9tBdDsl3lh/SXig304S9gF7hwu9aOC5I0pmuxR+QK09rDUQCkhGcUvojePzr90YvtEhw==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -23300,7 +23301,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-hNlkZJRUghr4B51vL1bpbYB2FJfbWRBgxG1k+NeKRJY0tLXTjWUo54su7RGCjU4sHsK5poo+k/jaT6rKlD8E+A==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-/4KU5u3ORhJT+YmLWoWK25Ym8hMrTQtGrJLi/lTgZALWYaq29RqBzT/ElXRrfhpQSqtlpL7nU6frr0mJEH0Hhw==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -23319,7 +23320,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-VDg1NbVAHjk0lE1CqHRoA5yLGd+8qERcyitOWHF2DF5A+7xMoRHKwJmVAgWhqc1Q3WP83D2medVAVa8ZSMv+HA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-oh4S+j2b8xUVN8+/+AeKCD1P10gPLP5gk1KqTE9dVGANcUoMMJGZoD75n3dtLqkxIAqljhCOCuosl+CUXGof1A==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -23342,7 +23343,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-Pu+EV+szHHMMWrxgY9LhxOPYiPVHnTZJEKBGWXGtjP7BxfzzffBJ0tpumSjuAEZUv7TLND6iI6j6qxYoJ2kw7A==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-oh3fFCWwG6EPkoIU5tvolvN21oD4EKzC97YNDXoyyzORBEKegYXELTKXz7Kf1eYbXf30fOZWVQBAtqYlm6sOng==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -23361,7 +23362,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-DY/NSSHfv9Ir0PxX04Vz4XTzyTRtxsTswr347LvroSO94HmCSJAsEQhuWbqXi5BlGVPq+y3orsjm7x8Ufycp1w==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-WNUyx88CRHgtyRV9gumkfvO//QpFFiaIQXifUdPQanrtcPq/9lrLdijrBGpl39ADnOMCSGeuMFptl6xEgmq6LQ==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -23385,7 +23386,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-VzPq6ggmF7DYDgJpOYRGKKbiQHqBucuT9sG++q41zLl4pjmXBVlzgsGPNmuN+uIFm4uqF9tz7Ka0WtbRYbigSw==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-qKB5+KeoStnNZC/FkG5g9l26AEuxs7zmgqAacC9IZotoy2GE9ZG7q6m2WsMKLZOQt7plB5KayvQ/MdpDjv51cA==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -23404,7 +23405,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-+To2WBlWiqH5YBWga5WPDYNm3RoQ+MM7B0fDjVvbx8ac5WadMWt1UDWUQ4F8Jp9SyBxvGreVwxGo5ZOyqKZjZA==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-XzYh+7p+G/O0SMjw2P4RWD61k7E1aNPnKa3iVWehQb1AjpqrSZMQjdUSS+YL4IzFBHcxpV6y2Pt8559jxYj23A==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -23425,7 +23426,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-UFuV4ixw0xuW1V0YywrMu5RLiK+USg8IATr/PQiufLhhKjS2ZIJMcdZftsg8jTDqVZU6S9SVJXTRli9/uf8H3g==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-g5OCl4cgItrWrxSaJ0W4MJelVE4bELSwc7f9ePWdgpl6RiiG+ibfQ1HBL6h2RBI90OfagfLVjbpOskZ07OXApQ==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -23447,7 +23448,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-cmtOJOfOdKnl1efPXMdvan4iRYgIOnyEjQ5aelZ11PBqWjXZrvFLEg6XMEyrNYPBuoftDmRa3f6l+GKOVFBwtA==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-mx8RrUBBQ6HcsZ9p5BRoqEQnpCQZSFP/rVDd6kHfDuRwCm5CQwzTFKNwMXklZ9CyA6tzT+zoKYWvm5CBQgalkw==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -23469,7 +23470,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-h/16Rgo13yHiyDVs/fqBBGr+X3mWbEmNtbS43Elh4ybbO1yRmpSXVV/eCTE7QlP9q8ApIdmvlIvFX0VPodM0IQ==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-jLWlsayX1Dpm+pI5o2MwFnHqkk94+0VpaznqL+TYvLXxIZJaOH+ihVglHxs1F9eeSAxz8vKZ/3x1B2A1JEp+9Q==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -23491,7 +23492,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-1/g4EquE593/00Rmstrv/XOCZ9DCBb1qIoxFgYitoIkZzG74Q4ZL0MsRhyBM5w7IiOvqKnC0BuqHSzdvS54SVg==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-Jsd9dNsPBlbDq2G2sBTVgtvmu4dAS2q2tp7vQwbxJyuMg7x4qjTi1QYGzXgP5gCdujGc5PR1mVEeA+hI+9t7sw==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -23511,7 +23512,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-PcrmsLNkWmiiJvrCAhOEo3VKmP72as+iHPn8qS61NKwA7m4xGW/gwFYi+YtNk4ZesV2PdMczng1fNE3OViGQTA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-q2N9qSHI4hcuh4nZA37gc1hs3zPj5tiVIEmce6b53y6kaqiXYvCWIHXnZU5WovIFuXshvyznZlMd3EEjNUjAPA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -23530,7 +23531,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-ymGE4xo6QUG2EAFvGT+15o3ML/b6F7gc1os7PCDcV7mTzs8ofUuDjX4LN06TGR7m8ZalbG5/9TInT9UtjpKvbg==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-Bi1scWVWErZXsjaY3pFVoTLMmEvrcl4ItW+jp+KrrxshKl3gHkOlvpoE6wexaTGHs7TsUaxVox+cbCEzOzdojw==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -23550,7 +23551,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-W8nSJUFTyR0HfwtaxpLZvwOrEF+R0I+OhR3Qc3FT4d/8kKtYglH4HeDfFseY0w4GYO8zKX5cWyfo+LtUxVzmbg==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-YI5gF9T+LTgZQJM47Vr8gIm5ylgI7yWVciw1ArTcoqwR69VBxOR+0xCTc5RhiYsupxcFURor4IiKAl6M2qoM5Q==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -23570,7 +23571,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-IJpTlde5FFe2/0OvnLvypZjEU/weT1VYRkjJfowN6le2AfftOtwCTpE7GgaI78s6ooqfy+/PqEIsWhwkGBfNcg==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-wz98B8+Xvwn9hp568Z8ZF+NYPVwrUeVfeW1d2OnnsvzRRsFqeDvbbhVG+3o+zikCfqA8n4wbIu3DnE/R7k8O8g==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -23591,7 +23592,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-9aYinfYRtaUNNsiVYt68IPuS7HuY5pIo/QO2lMW5eDN6lGxBNuasukTvdKXhFRQlz1Lsr/jNdRhT0IgnErP5jQ==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-yXm3d1qM7wa2dVvai7LYcmaNIpSsnZDjnk5JWZkIZWc8yrlWzf+lDNuMU7MuF0jwmhkRUmIpwLRpREtv8gczFw==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -23612,7 +23613,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-fiUxtFT3tPJ1+Xtm7RHO2C0rwCRuwnNZR/RADUA2pJocwIO9YycrPXQntcdUW42qVQVFoahHZTXljDeamql8Tg==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-XP4ocqPxj5wgyhpDZpi0RIHlNPxXPuPi84tXdJvy16KjQfdfUMeHRvrhdD0saj5fI/+k8CxdtVSO1TfVyHtAwg==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -23632,7 +23633,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-PhJr5ZNrDBCxB6A7AKiQ2ZxsDrYxOnEiWs5Mgg+sdUsCy5VxXB2UOaHcuVPviBc+HALhcgOlem2ZalTgPMKDuA==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-qRtfxWRFCwWD0pzaQdSPmrrxMtN0GRVAIETHcTAjEtsg3y2R0RtEZ/unElbYHWvw5RRmoISXF1JXDbprKJTO2w==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -23652,7 +23653,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-6naxVn/cB3qW8boXhk/zsGsWB+gsUQQByhOcwfkPRhSdGDHIkkQ/SdBNKeNeifR8oMdjt1MtDQKQVr7V840IEQ==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-JzcotzFitxPWurPENl0VPyx1k9nJi3/nU7y9ywg6ujO5qGNPKYjvMeiA5BNt/YcKdurIWnNCXsXJCHQAWhgtrQ==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -23672,7 +23673,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-KBmHqs5rCwamvjy5avBOkmDoyy49CX3o9VfdW6UsakxMEMWSRr7+WmdgRBhN2bqpJcs0pFfvRqK8acDljHtlCg==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-lK1FvvHtQaImUpzyGCrIR2aeQDBkxvzg5QFB3Tt4SDpQDAr7CQYWnHf1/0SAJT7NzQOzMy/Z9mSFoorLN1KTXg==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -23693,7 +23694,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-RSJpHcbBm53FlgPtxxLd9xjZX44X0X10kEoya4Efa7cKA9m129ovLO03XnVSAzEv80VAuZL2xCwn7yHasCg7pg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-/ofcTlQ3DUdVjAQNXADQp5Olr8AVFHH6avNuInXyN6UN+nv8Mr/oyYvJ/a9bmMbw+V2PwHZcUvOSkw/1yiOLcw==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -23737,7 +23738,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-ovkJVLgj0ZJJNINdkn9lPa87GR7yztShipZV3QD5FhvtY/GaxzVRSPkP6MIH/WN2zbzEYpVN+r/wl7FNXdD8Qw==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-BzQH39jZqCdUDPKuloeaxdUYHgHg0Dy4TBc1YUt9KpBdKxiNaAYupB1T5CmLvqI8Ry5h6UpfyVkOZSzW4VJ9SQ==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -23782,7 +23783,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-9ita2YmoNvIfe6h/7yvt897vRwKsT4LDxpBH5c9zAOpJouPNsAhZWQ+VBnBNds8CgnM35vLKW4/ZdOv/tUjRrg==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-W4wufES6gQ8aAIBSmdmXhr2+Mw+RScw4vv/f9WoNd30uU3FJyKBe0gujNcJEZLsOXQ/ob6u2k3wuVYZAo2WhPw==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -23827,7 +23828,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-NG0a0EFj+UYj8+8ysNxJ4wNo+d+kAqSw3iCouV9nascWUd9Ih+goKtd/xXD+5N2si3jrL203RTwpQMdBi7rLvw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-la1JpJqPRhD2tFr62OPIHDd3UG9+74a1GH5Acu6Y0ec1CZxw6aaCjSmg+Xnd9/11qxZNjvRD+IvPQXBAxSJHgw==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -23871,7 +23872,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-sq0hf2kHfmj8TB3AlOU28kDgkLYpSb9FcNhjFwLYwpx1dhkMqzdrUxNsp0Xw30KBrc6/5i8ioxkcByvgQtZpLg==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-yupdEKrPU+CfTg0cYTYNyUJrrpXhb62GhO7YNr0cKlEVu2jFYTDvcq7/uyVTSeJbfrwHSXVFprXX8hcTwmDfcw==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -23918,7 +23919,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-TtPgVd0jncMynyYLz041QpSEn/Yt4wHaSwu9g/YcWu2ZxZI5ONcLPIfhREfF5cPU5uELyLeqTuMgD9aqxZjRpw==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-yLuvkhDEC+Wim6OEctUa7HOhkfzg7vdmnPRUm74iGebhWM9dXCnaGz38EFcyQCiNMHNa2ccc5JqUZ2PutMvn2A==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -23963,7 +23964,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-PXvyuV45a6cRQaaJEhACGVhTjUH8Ux66m/rN7tqbJHBjuZMBfaHh9Smu7qWlXiZtJKw8lgOsCVDH7ozhWRCy8w==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-hynsRkT7AewOzKH/2/bSTNQjrI9uCzbVO2lQL0+RXuZ7gx7tnlPwxiqK7cF4lCK/gVB/OGDoHM4xZa+D5z5/5A==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -24009,7 +24010,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-or0Anl9W9acTyeU/D9fhoGG9SmgN580YeiALqaz1ipRqxKCpRd5k4OxMJGAD16yZDKmNQrdGOJAb8Kr4r0ryGg==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-aOuyogD9Sg+gRV1zU1StVI8UOhjMlITcP5JGyS1nA9nIjb89XmoPhVvOwaZmhIaZzl6HXWAu5STIcVW+MrVYXg==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -24062,7 +24063,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-g4Hn5V9bTN2ZHCm4HrYFu4h9wbMJAh7TiFPY6aDiKtmHyco8a4SDjKY5abZhB6YipsQ4ucKGhUZjPbRl+o7YbA==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-Ceo41vIyXjwwMYxrAQULe4hYvRPkYRa/XtDLPlCGN0p8V2dvZok/jG1dnhbT4mS2SrJwL33ITnshqbhTK3Qm2w==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -24105,7 +24106,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-XmJTse42Anbjn61axGhnFmOpx12CpgGUZRVwZaaBrtWQH9nSX3c8AZ8Wgq8njUc85FIlYvk6v1OmTapERBCdnQ==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-lTKvaSVAs+bx4vnHtG85rIZfyNjFfx2uvqwhNdw8SkWqgxQ7AyW53RtPklVwVhd3KCrwOk7HSKMvWLVFCISWZQ==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -24145,7 +24146,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-UtQzUbFJpxBbW2P5e8zRUmg3fP1mDW5w6IKNqtNtdnTppJBYWnEaNYjX/yQ7UEIo2CFFOIO4GcixqY566YmPtA==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-TQPou1xuoYFGXUZYg+kgNvuBoQjULHSb9HelaZ7aOiyljlRGFCVfg37p9aqZWL2/1DZtKGkppFfdm30+AnZ7BQ==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -24192,7 +24193,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-hmveDLqeAShw1Udm/b/h/DYmE+vcSPSWncrNlPjOPO4q4srZRxGU3XWvQOKg1H5s14ilawLy4wDH4Pld344eew==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-uw6aCWs1lbgkBKAJFs23wRXAUlDrFHlKM59+RUot9ZlB0JyhDTuNxlVTm83476h1kgUjpvq5ini1DtKREE3Jmg==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -24253,7 +24254,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-kvp3tm7eX+LwAT+R4rEpYGZH3rbzxu0P/v9XJ/tdapViq8GPBboy7Muv1sFtljdtCPgtMQ2M9sZ1ZkdgZ1wYOA==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-yW/Tk+Qv/6aAtEt8eX+vSlTTSopgNe6yWWKhYumvBrECEAGOJoOtT4Xty444HcEnAFDhOWYrbYhy24HttYaSBQ==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -24303,7 +24304,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-W6Wnl2NsKrAVhEEGt8tTmpDzJGJZSUrK2KsVhS6aWYT+lxpnHuu1E9uTIFSwRCjxkh9iPz+Zpb9RwFaDQ0fE3Q==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-ZlxD5NDsp4IGZLRyTslpm8XrDe8SqrBGzJ64xTPr6A0NAFLBf14aZeZA7yHRX0EjqED+byh3R3FDB3qb1OFIDw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -24350,7 +24351,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-pVnKrkD3sFJC/8Mu3AFiHxo2xJle/XUqIimW8PVsitVDxaYwGIEsVJl9bmPfC3S4QNuHpzuc1QZg44bD/PjPlw==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-Qs9GGAl1fj/tS3TV+pFtVTqZvHuSlckjuwsTUdMHx/qJJc/pOm9OFeeIeTgYOhBSkTfEbQRtQwlNNXlQq5oHKg==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -24400,7 +24401,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-bUAIAc44JfZQPjRKOuPF73s7KbX49hrpUIUnjcrET5DmwmE3NWamF7gSxScRdSDNZO3evaFfN15zSrrD78jLpA==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-cwp1KHdbp6FJ13Cr7Wwfyw+nqa4igV7fMslulUMFZHDpqf7ZUigUbwjQW2vXawWy0azxX2U010e+oBj6ORW3OQ==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -24449,7 +24450,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-W7+byd4g972hMfjV7Tn5YLT1aQIMJS726jNjKze6CiYLJkiK0jcn+vK8CukYLm1ICM+zP6AfuSzAoQUtX5Lt9w==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-TyD3UHGN3i8VzZcEjjEa9qbVyN/aN48JUAeJ+jk8S3FPAydT6i5m4nUtnb9QBgGxH7JSU89jbimi/LWtK+5FQw==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -24491,7 +24492,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-yXyeua+HN4JCEnL+0KEQiz2mkcqUoAEmu8+r9niTSUBMJb5IZE1e2qsqBy1rU7OJv7Bt4tq3I04n5k54XH0IsQ==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-/KAjHlZZll32CgcBxCFKCughjkDhsj4a+XTzK7/jbrFyunE3mspoReOYtgMfWIv88FQBXFREQvU9ohioO8Ryyg==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -24537,7 +24538,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-a/9dZpl4XgeJ+haQiZNpkZSYy9orW5z5bQB7Oyxydpc/U7TZljmv9uLIZOA8aQuUQVpDh4p8UBDbxmOg572mow==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-YF8ESmemr1ONKVGjHravsd0aF7i4JF+qc1M8VSW/1lfzEqws/zFR0miEwmUBKuuq3e+ZdfxRwjs55Nr1SE1cyg==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -24583,7 +24584,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-xpKpKCs2aLWbl5fnHEdU+PFcMUKipbH+Wu+VZIfcNajLDCQYjxTekQs9DGFH+r1UTDgrpdudE2ixGOp5C69NEg==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-mOVshMTg1mw1kPHfUj4CuN2rRe7i1iyJ03tog9j4BUiXvNgvKuz6FmYKoz50PD+Vm1Y1kX4BhNSeIqFINU1ZUg==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -24632,7 +24633,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-BqyLvu/C6vnlOoL0p0uiVCPMiuZgqIQW75f2v4D+VXxEg8BUllx0d7tQUcP8BkzdYZZ5nAd9Y0e30qJW1WjnHw==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-biKQiiUVwTmrhOl8eI8fn4dFKytg7k2xdFqPsyKT1L4XNoOSW2wmi5yOlIfhYd4gwpd8iuPcimnG9SsShQF25Q==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -24682,7 +24683,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-0FONmRyT374Y0xbcOo1xHkLuIIBhouvH5Me2+ZNUOlgfwLqDqrp+F3XgFamLOF2oVsKcs+aN4+kd/bhsUWrPyA==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-1iRvwOJt5zFH9cFtaWGHntCTqqDjVD+fKM0Y39fW8aw9AMTEzkZxAmhiQKxsAubwcddWJgxqIkDn4b7jg1jmQQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -24725,7 +24726,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-g+ViDkGo+YoqD/9+6UekM5d/AUy9d03el1qY54IsvDxiEoSWt8eGm/eYLvNSEEO+L7SO0wWuSkcXMwZPzVUnJA==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-P5Fd8EPEmT9YnQzs/cAm0P6tCrCLRmCe813RAomQqwS+VEh3qSfhkcwFUU0ZZ41aPTDM0pWi1QA+UI0XEYSljw==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -24762,7 +24763,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-AjZYhUxgZjKU3vweVyykeN0cd2OuXrFV3TTiX1XEnPS9QMyMvA1tS5ZjaMcDyW+Xj8CS+uEbICKfW+64uCsskg==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-9Ecly4K6TLNWdqwlBcuLDwGv58STtdODBMMhSp5CSHTDepi+CjkGn0ip9wboIJMViYNIQ0brK+VoDs10tdS/+A==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -24805,7 +24806,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-YESWFcpysNuOgdCO0hJ/zqbYYXYAwk/eJjdbBY4xodj2pqna6F41LIi4+Bz/8VCzcwftrGofLR+zb8LwGdBvMA==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-fW4MXU4jqfbvYzZuBFgDJch2OclABiH3pJxqJjIB7Qw6+dLi3L+vWeXNrpIfuvu1/xzrIUeHf9oJ4TKL8rOvlg==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -24848,7 +24849,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-x1HZ0/qqFxfy8/h5R+We7tnX50cydc5v6HAs4wW3Z+ySZqVWBvEQ4YxJOSHMr8j0R2hp1VuneZvPONxTAnneBA==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-ezZARdgagUad/iPF8s2lPmJqJ8dfbxqGKGiXjcmei3R+s3cvRfzCi1fX8M2NeEvId9AVkvqHcR7JelbWPK9kTQ==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -24887,7 +24888,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-nwPaMmlLg3LI9M8TqTaktpexnFRmUHeylzffXLHpotZuZ5O9uuAf+cVtmIPZm4wHyXb+B0PlXrX39QgnNkBusg==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-nCHOpp4WKY5pLLuUe35Qwrm126k6keisoJXT2MFrqhH+lxTRgfKM6oXWILxDoh/23eUxb48w+wkTVx57yXlv2w==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -24906,7 +24907,7 @@ packages: dev: false file:projects/test-perf.tgz: - resolution: {integrity: sha512-jjIBg+5KKg346PEdnhQYJreuLveETFblKAx1mU66H/lXsc8WqMzCI+IfepM49Ir7p0PbYQELqWImPT5lDBbupw==, tarball: file:projects/test-perf.tgz} + resolution: {integrity: sha512-dOxYVneFdt7VksrDfZkwTADpjCFjFb7pd7p+j55MC9GonmLUYrDUAnxiHzaoEilYPxq2E5xsQ+/IeRmqJe2RBA==, tarball: file:projects/test-perf.tgz} name: '@rush-temp/test-perf' version: 0.0.0 dependencies: @@ -24934,7 +24935,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-hUKR1dZQ6QCrObCNDi+c0zLiC9Iu1GBkHgd7a9v4JQljczfchx6HCkfWMsjDmd9sRbC1DY3CVPKTa8D/vnpW5w==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-TT/AANNJqwewH9gxgDofnm/xVA5p6LGqlP7wKg+X8NdwHdHjjWK3rxA3raBKKVqp1y3EwzmUaJ56E7uNsANYXQ==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -24972,7 +24973,7 @@ packages: dev: false file:projects/test-utils-vitest.tgz: - resolution: {integrity: sha512-4aDLiQO03NlXDhgF0Cc9KMdXKr+W3zNBTVk8Xv1N4X9IjbfdTGlCME2QITXRIKIOuaeA/CQbrFSL2msl3iRQIQ==, tarball: file:projects/test-utils-vitest.tgz} + resolution: {integrity: sha512-B+7UtywzLzak0ygqHSUnHwXafQGcVcajMBpZo6UhLiWFKlWN5qWpr5250nrGAS1jNRcThxUsJrLZu8B7hM8Rsw==, tarball: file:projects/test-utils-vitest.tgz} name: '@rush-temp/test-utils-vitest' version: 0.0.0 dependencies: @@ -25009,7 +25010,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-/zW3HGJRjx4SIrcG1OW/0MELjHiqK+jzymjKCSQScVVjjsV9Bay/8Yy4KJD4DVkYMu6zcObo92mFgbWca33XGg==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-dy4yWOviUvykLKxFyvx0+Gm2BCVCmsoPEPu6zkl0yOe8nmR7y0Ee0O2/h03m7Nvj0p+qaP9s+iVOoy3tcV0vFg==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -25046,7 +25047,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-VBq0lREYcVpoYsn5OYZ0ozOoa4PVeoTgRTGKQBLNoNYSx/Hn77dbEbduq4lfy9JRuwRQXAwd9hjwRRZERkP2eA==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-B/VysScuLZjdytX+Sv9P1bZZEJGlYat2rxvFSKZAiLgESNj0BE6WbXmDCU4WFv7DQ6mH+EFE6jQcWemLxc2rfA==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -25084,7 +25085,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-9Bt7C5VP+GzOIGL0LP/ZvGSIBMb8IdjGAXe9sOIaIVg7tfDjQxOGrs36E9cH9rkmjDtkdncgNuA1FRhGOTgKMQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-vAWZ/lgdy7UjDtLWoCJKHPSEayxZJWELZREkYldM1ESozDyjNml4n9tmBn9DgoSXWbUAZP06XEcRmPnC7bmRrA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -25101,7 +25102,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-s344F/rfLBKSnew8lt69C1k5NSsoRrbDrnN088+fInk94FVt0r5D3pU7DV0rrPfBVt2YTWfWd9lJfWvphA1uZw==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-waftlsGiLIhUZ0zGcVVI0QZCU9zWQdZDG/aS9vn0j+cvcJUdBvXBm/V7lLw6oj0AzGbBhLjrb2qhLRbQG+9Z1g==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -25160,7 +25161,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-ksVavvvhw2rNtMPIXp6ZrnQNvp9ft/aqoFaCs49OmVVvXVW2TGGY/Ma/9VfYyaxu6K5xRqJfq29qQYVbJeusnw==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-Wa1bcMTI4UaxLBmLnvBrFDc00tek3O19N2Ggl+5puqYA3uj3MJRyReREHzh9S5b88cMW8aXIZcIBBimFnJ4ErA==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -25213,7 +25214,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-SHp9x1fIT9oU9CXIvdAOTYwVBUars9Tx1Hg8SHCx6wUYKNRgjvDVIkJ+d6NC17Jc5AQ9BsqsIiHMRKTLVIzhBA==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-dRZ0zzzAB3ZP9x+OWUSgVXVAaM7G2q5ZnErkdotzj0DuH7nXeZxt3xvqC/rDDMK7CL9FDTJ4uk/3Uz0SW8FidA==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -25253,7 +25254,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-evjNObp4pF1Xv2Lrx+cigAoBUEtf9rsYe12hdJCd570EkZaRqrmGHBm99EKt513w+pVHdRW7D0Nc5J8jUoqmww==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-T1dufrgVaijNEcpQOjkwo3osMcCxGYbkimyBXTFfQRlmg7JcnW8jYRen4MUo7ClovOZFDrJI5iD35UvytwbHVg==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/monitor/arm-monitor/CHANGELOG.md b/sdk/monitor/arm-monitor/CHANGELOG.md index f9e1a4cf3dfa..0abadd722140 100644 --- a/sdk/monitor/arm-monitor/CHANGELOG.md +++ b/sdk/monitor/arm-monitor/CHANGELOG.md @@ -1,43 +1,54 @@ # Release History - -## 8.0.0-beta.6 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 8.0.0-beta.5 (2024-03-28) -**Features** +## 8.0.0-beta.6 (2024-08-29) +Compared with version 7.0.0 + +### Features Added - Added operation group AzureMonitorWorkspaces - Added operation group MetricsOperations - Added operation group MonitorOperations - Added operation group PredictiveMetric + - Added operation group ScheduledQueryRule - Added operation group TenantActionGroups - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevel - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait + - Added operation ActionGroups.beginReconcileNSP + - Added operation ActionGroups.beginReconcileNSPAndWait + - Added operation ActionGroups.getNSP - Added operation ActionGroups.getTestNotificationsAtActionGroupResourceLevel + - Added operation ActionGroups.listNSP + - Added operation DataCollectionEndpoints.beginReconcileNSP + - Added operation DataCollectionEndpoints.beginReconcileNSPAndWait + - Added operation DataCollectionEndpoints.getNSP + - Added operation DataCollectionEndpoints.listNSP - Added operation DataCollectionRuleAssociations.listByDataCollectionEndpoint - Added operation MetricDefinitions.listAtSubscriptionScope - Added Interface AccessModeSettings - Added Interface AccessModeSettingsExclusion + - Added Interface AccessRule + - Added Interface AccessRuleProperties + - Added Interface AccessRulePropertiesSubscriptionsItem - Added Interface ActionDetailAutoGenerated - Added Interface ActionGroup - Added Interface ActionGroupPatchBodyAutoGenerated - Added Interface ActionGroupResource - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams + - Added Interface ActionGroupsGetNSPOptionalParams - Added Interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams + - Added Interface ActionGroupsListNSPNextOptionalParams + - Added Interface ActionGroupsListNSPOptionalParams + - Added Interface ActionGroupsReconcileNSPHeaders + - Added Interface ActionGroupsReconcileNSPOptionalParams - Added Interface ActionList - Added Interface Actions - Added Interface ActivityLogAlertResource - Added Interface ActivityLogAlertsListByResourceGroupNextOptionalParams - Added Interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams + - Added Interface AdxDestination + - Added Interface AgentSetting + - Added Interface AgentSettingsSpec - Added Interface AlertRuleAllOfCondition - Added Interface AlertRuleAnyOfOrLeafCondition - Added Interface AlertRuleLeafCondition @@ -79,6 +90,12 @@ - Added Interface DataCollectionEndpointResourceIdentity - Added Interface DataCollectionEndpointResourceProperties - Added Interface DataCollectionEndpointResourceSystemData + - Added Interface DataCollectionEndpointsGetNSPOptionalParams + - Added Interface DataCollectionEndpointsListNSPNextOptionalParams + - Added Interface DataCollectionEndpointsListNSPOptionalParams + - Added Interface DataCollectionEndpointsReconcileNSPHeaders + - Added Interface DataCollectionEndpointsReconcileNSPOptionalParams + - Added Interface DataCollectionRuleAgentSettings - Added Interface DataCollectionRuleAssociationMetadata - Added Interface DataCollectionRuleAssociationProxyOnlyResourceProperties - Added Interface DataCollectionRuleAssociationProxyOnlyResourceSystemData @@ -86,7 +103,9 @@ - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams - Added Interface DataCollectionRuleDataSources - Added Interface DataCollectionRuleDestinations + - Added Interface DataCollectionRuleEndpoints - Added Interface DataCollectionRuleMetadata + - Added Interface DataCollectionRuleReferences - Added Interface DataCollectionRuleResourceIdentity - Added Interface DataCollectionRuleResourceProperties - Added Interface DataCollectionRuleResourceSystemData @@ -99,11 +118,15 @@ - Added Interface DiagnosticSettingsResource - Added Interface DynamicMetricCriteria - Added Interface EmailReceiverAutoGenerated + - Added Interface EndpointsSpec + - Added Interface EnrichmentData - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorDetailAutoGenerated2 - Added Interface ErrorResponseAutoGenerated - Added Interface ErrorResponseAutoGenerated2 - Added Interface ErrorResponseAutoGenerated3 - Added Interface ErrorResponseAutoGenerated4 + - Added Interface ErrorResponseAutoGenerated5 - Added Interface EventHubDataSource - Added Interface EventHubDestination - Added Interface EventHubDirectDestination @@ -111,6 +134,8 @@ - Added Interface GetTestNotificationsAtTenantActionGroupResourceLevelOptionalParams - Added Interface Identity - Added Interface IisLogsDataSource + - Added Interface IncidentReceiver + - Added Interface IncidentServiceConnection - Added Interface IngestionSettings - Added Interface LocalizableStringAutoGenerated - Added Interface LocationSpec @@ -133,10 +158,16 @@ - Added Interface MetricsIngestionEndpointSpec - Added Interface MetricsListAtSubscriptionScopeOptionalParams - Added Interface MetricsListAtSubscriptionScopePostOptionalParams + - Added Interface MicrosoftFabricDestination - Added Interface MonitorClientCreateNotificationsAtTenantActionGroupResourceLevelHeaders - Added Interface MonitoringAccountDestination - Added Interface MonitorOperationsListNextOptionalParams - Added Interface MonitorOperationsListOptionalParams + - Added Interface NetworkSecurityPerimeter + - Added Interface NetworkSecurityPerimeterConfiguration + - Added Interface NetworkSecurityPerimeterConfigurationListResult + - Added Interface NetworkSecurityPerimeterConfigurationProperties + - Added Interface NetworkSecurityProfile - Added Interface OperationAutoGenerated - Added Interface OperationDisplayAutoGenerated - Added Interface OperationListResultAutoGenerated @@ -153,12 +184,19 @@ - Added Interface PrivateLinkScopedResource - Added Interface PrivateLinkServiceConnectionState - Added Interface PrometheusForwarderDataSource + - Added Interface ProvisioningIssue + - Added Interface ProvisioningIssueProperties - Added Interface ProxyResourceAutoGenerated + - Added Interface ProxyResourceAutoGenerated2 + - Added Interface ReferencesSpec + - Added Interface ReferencesSpecEnrichmentData + - Added Interface ResourceAssociation - Added Interface ResourceAutoGenerated2 - Added Interface ResourceAutoGenerated3 - Added Interface ResourceAutoGenerated4 - Added Interface ResourceAutoGenerated5 - Added Interface ResourceAutoGenerated6 + - Added Interface ResourceAutoGenerated7 - Added Interface ResourceForUpdateIdentity - Added Interface RuleEmailAction - Added Interface RuleManagementEventDataSource @@ -166,6 +204,11 @@ - Added Interface RuleResolveConfiguration - Added Interface RuleWebhookAction - Added Interface ScheduledQueryRuleCriteria + - Added Interface ScheduledQueryRuleGetNSPOptionalParams + - Added Interface ScheduledQueryRuleListNSPNextOptionalParams + - Added Interface ScheduledQueryRuleListNSPOptionalParams + - Added Interface ScheduledQueryRuleReconcileNSPHeaders + - Added Interface ScheduledQueryRuleReconcileNSPOptionalParams - Added Interface ScheduledQueryRuleResource - Added Interface ScheduledQueryRuleResourceCollection - Added Interface ScheduledQueryRuleResourcePatch @@ -173,6 +216,7 @@ - Added Interface ScheduledQueryRulesListBySubscriptionNextOptionalParams - Added Interface ScopedResource - Added Interface SmsReceiverAutoGenerated + - Added Interface StorageBlob - Added Interface StorageBlobDestination - Added Interface StorageTableDestination - Added Interface StreamDeclaration @@ -199,8 +243,13 @@ - Added Interface WebtestLocationAvailabilityCriteria - Added Interface WindowsFirewallLogsDataSource - Added Type Alias AccessMode + - Added Type Alias AccessRuleDirection - Added Type Alias ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse + - Added Type Alias ActionGroupsGetNSPResponse - Added Type Alias ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse + - Added Type Alias ActionGroupsListNSPNextResponse + - Added Type Alias ActionGroupsListNSPResponse + - Added Type Alias ActionGroupsReconcileNSPResponse - Added Type Alias ActionType - Added Type Alias ActivityLogAlertsListByResourceGroupNextResponse - Added Type Alias ActivityLogAlertsListBySubscriptionIdNextResponse @@ -213,17 +262,26 @@ - Added Type Alias AzureMonitorWorkspacesListBySubscriptionResponse - Added Type Alias AzureMonitorWorkspacesUpdateResponse - Added Type Alias CreateNotificationsAtTenantActionGroupResourceLevelResponse + - Added Type Alias DataCollectionEndpointsGetNSPResponse + - Added Type Alias DataCollectionEndpointsListNSPNextResponse + - Added Type Alias DataCollectionEndpointsListNSPResponse + - Added Type Alias DataCollectionEndpointsReconcileNSPResponse - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointResponse - Added Type Alias DimensionOperator - Added Type Alias GetTestNotificationsAtTenantActionGroupResourceLevelResponse - Added Type Alias IdentityType + - Added Type Alias IncidentManagementService + - Added Type Alias IssueType - Added Type Alias Kind + - Added Type Alias KnownAgentSettingName - Added Type Alias KnownColumnDefinitionType - Added Type Alias KnownLocationSpecProvisioningStatus - Added Type Alias KnownLogFilesDataSourceFormat - Added Type Alias KnownLogFileTextSettingsRecordStartTimestampFormat - Added Type Alias KnownPrometheusForwarderDataSourceStreams + - Added Type Alias KnownStorageBlobLookupType + - Added Type Alias KnownWindowsFirewallLogsDataSourceProfileFilter - Added Type Alias ManagedServiceIdentityType - Added Type Alias MetricAggregationType - Added Type Alias MetricDefinitionsListAtSubscriptionScopeResponse @@ -232,14 +290,21 @@ - Added Type Alias MetricsListAtSubscriptionScopeResponse - Added Type Alias MonitorOperationsListNextResponse - Added Type Alias MonitorOperationsListResponse + - Added Type Alias NetworkSecurityPerimeterConfigurationProvisioningState - Added Type Alias Origin - Added Type Alias PredictiveAutoscalePolicyScaleMode - Added Type Alias PredictiveMetricGetResponse - Added Type Alias PrivateEndpointConnectionProvisioningState - Added Type Alias PrivateEndpointServiceConnectionStatus - Added Type Alias PublicNetworkAccess + - Added Type Alias ResourceAssociationAccessMode + - Added Type Alias ScheduledQueryRuleGetNSPResponse + - Added Type Alias ScheduledQueryRuleListNSPNextResponse + - Added Type Alias ScheduledQueryRuleListNSPResponse + - Added Type Alias ScheduledQueryRuleReconcileNSPResponse - Added Type Alias ScheduledQueryRulesListByResourceGroupNextResponse - Added Type Alias ScheduledQueryRulesListBySubscriptionNextResponse + - Added Type Alias Severity - Added Type Alias TenantActionGroupsCreateOrUpdateResponse - Added Type Alias TenantActionGroupsGetResponse - Added Type Alias TenantActionGroupsListByManagementGroupIdResponse @@ -255,16 +320,24 @@ - Interface DataCollectionEndpointResource has a new optional parameter metadata - Interface DataCollectionEndpointResource has a new optional parameter metricsIngestion - Interface DataCollectionEndpointResource has a new optional parameter privateLinkScopedResources + - Interface DataCollectionRule has a new optional parameter agentSettings - Interface DataCollectionRule has a new optional parameter dataCollectionEndpointId + - Interface DataCollectionRule has a new optional parameter endpoints - Interface DataCollectionRule has a new optional parameter metadata + - Interface DataCollectionRule has a new optional parameter references - Interface DataCollectionRule has a new optional parameter streamDeclarations - Interface DataCollectionRuleAssociation has a new optional parameter metadata - Interface DataCollectionRuleAssociationProxyOnlyResource has a new optional parameter metadata + - Interface DataCollectionRuleResource has a new optional parameter agentSettings - Interface DataCollectionRuleResource has a new optional parameter dataCollectionEndpointId + - Interface DataCollectionRuleResource has a new optional parameter endpoints - Interface DataCollectionRuleResource has a new optional parameter identity - Interface DataCollectionRuleResource has a new optional parameter metadata + - Interface DataCollectionRuleResource has a new optional parameter references - Interface DataCollectionRuleResource has a new optional parameter streamDeclarations + - Interface DataCollectionRulesDeleteOptionalParams has a new optional parameter deleteAssociations - Interface DataFlow has a new optional parameter builtInTransform + - Interface DataFlow has a new optional parameter captureOverflow - Interface DataFlow has a new optional parameter outputStream - Interface DataFlow has a new optional parameter transformKql - Interface DataSourcesSpec has a new optional parameter dataImports @@ -273,40 +346,56 @@ - Interface DataSourcesSpec has a new optional parameter platformTelemetry - Interface DataSourcesSpec has a new optional parameter prometheusForwarder - Interface DataSourcesSpec has a new optional parameter windowsFirewallLogs + - Interface DestinationsSpec has a new optional parameter azureDataExplorer - Interface DestinationsSpec has a new optional parameter eventHubs - Interface DestinationsSpec has a new optional parameter eventHubsDirect + - Interface DestinationsSpec has a new optional parameter microsoftFabric - Interface DestinationsSpec has a new optional parameter monitoringAccounts - Interface DestinationsSpec has a new optional parameter storageAccounts - Interface DestinationsSpec has a new optional parameter storageBlobsDirect - Interface DestinationsSpec has a new optional parameter storageTablesDirect + - Interface ErrorResponse has a new optional parameter error - Interface LogSettings has a new optional parameter categoryGroup - Interface MetricsListOptionalParams has a new optional parameter autoAdjustTimegrain - Interface MetricsListOptionalParams has a new optional parameter rollupby - Interface MetricsListOptionalParams has a new optional parameter validateDimensions + - Interface NotificationRequestBody has a new optional parameter incidentReceivers - Interface Operation has a new optional parameter actionType - Interface Operation has a new optional parameter isDataAction - Interface Operation has a new optional parameter origin - Interface OperationDisplay has a new optional parameter description + - Interface PerfCounterDataSource has a new optional parameter transformKql - Interface Resource has a new optional parameter systemData - Interface ResourceAutoGenerated has a new optional parameter systemData - Interface ResourceForUpdate has a new optional parameter identity + - Interface SyslogDataSource has a new optional parameter transformKql + - Interface WindowsEventLogDataSource has a new optional parameter transformKql - Added Enum KnownAccessMode + - Added Enum KnownAccessRuleDirection - Added Enum KnownActionType - Added Enum KnownCategoryType - Added Enum KnownDimensionOperator + - Added Enum KnownIncidentManagementService + - Added Enum KnownIssueType - Added Enum KnownKind + - Added Enum KnownKnownAgentSettingName - Added Enum KnownKnownColumnDefinitionType - Added Enum KnownKnownLocationSpecProvisioningStatus - Added Enum KnownKnownLogFilesDataSourceFormat - Added Enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat - Added Enum KnownKnownPrometheusForwarderDataSourceStreams + - Added Enum KnownKnownStorageBlobLookupType + - Added Enum KnownKnownWindowsFirewallLogsDataSourceProfileFilter - Added Enum KnownManagedServiceIdentityType - Added Enum KnownMetricAggregationType - Added Enum KnownMetricResultType + - Added Enum KnownNetworkSecurityPerimeterConfigurationProvisioningState - Added Enum KnownOrigin - Added Enum KnownPrivateEndpointConnectionProvisioningState - Added Enum KnownPrivateEndpointServiceConnectionStatus - Added Enum KnownPublicNetworkAccess + - Added Enum KnownResourceAssociationAccessMode + - Added Enum KnownSeverity - Added Enum KnownTimeAggregation - Enum KnownKnownDataCollectionEndpointProvisioningState has a new value Canceled - Enum KnownKnownDataCollectionRuleAssociationProvisioningState has a new value Canceled @@ -322,7 +411,7 @@ - Enum KnownProvisioningState has a new value Deleting - Added function getContinuationToken -**Breaking Changes** +### Breaking Changes - Removed operation group Metrics - Removed operation ActionGroups.beginPostTestNotifications @@ -337,6 +426,8 @@ - Interface ActivityLogsListNextOptionalParams no longer has parameter select - Interface AzureResource no longer has parameter identity - Interface AzureResource no longer has parameter kind + - Interface ErrorResponse no longer has parameter code + - Interface ErrorResponse no longer has parameter message - Interface PrivateEndpointConnectionListResult no longer has parameter nextLink - Interface PrivateLinkResourceListResult no longer has parameter nextLink - Interface Resource no longer has parameter location @@ -350,8 +441,8 @@ - Interface TenantActivityLogsListNextOptionalParams no longer has parameter filter - Interface TenantActivityLogsListNextOptionalParams no longer has parameter select - Type of parameter operator of interface Dimension is changed from Operator to DimensionOperator - - Type of parameter error of interface ErrorContract is changed from ErrorResponse to ErrorResponseAutoGenerated - - Type of parameter error of interface ErrorResponseCommonV2 is changed from ErrorDetail to ErrorDetailAutoGenerated + - Type of parameter error of interface ErrorContract is changed from ErrorResponse to ErrorResponseAutoGenerated2 + - Type of parameter error of interface ErrorResponseCommonV2 is changed from ErrorDetail to ErrorDetailAutoGenerated2 - Type of parameter value of interface EventCategoryCollection is changed from LocalizableString[] to LocalizableStringAutoGenerated[] - Type of parameter category of interface EventData is changed from LocalizableString to LocalizableStringAutoGenerated - Type of parameter eventName of interface EventData is changed from LocalizableString to LocalizableStringAutoGenerated @@ -360,7 +451,7 @@ - Type of parameter resourceType of interface EventData is changed from LocalizableString to LocalizableStringAutoGenerated - Type of parameter status of interface EventData is changed from LocalizableString to LocalizableStringAutoGenerated - Type of parameter subStatus of interface EventData is changed from LocalizableString to LocalizableStringAutoGenerated - - Type of parameter error of interface OperationStatus is changed from ErrorResponseCommon to ErrorDetailAutoGenerated + - Type of parameter error of interface OperationStatus is changed from ErrorResponseCommon to ErrorDetailAutoGenerated2 - Type of parameter value of interface PrivateEndpointConnectionListResult is changed from PrivateEndpointConnection[] to PrivateEndpointConnectionAutoGenerated[] - Class MonitorClient no longer has parameter metrics - Removed Enum KnownConditionalOperator @@ -371,618 +462,6 @@ - Enum KnownProvisioningState no longer has value Deploying -## 8.0.0-beta.4 (2023-02-13) - -**Features** - - - Added operation group AzureMonitorWorkspaces - - Added operation group MetricsOperations - - Added operation group MonitorOperations - - Added operation group PredictiveMetric - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevel - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevelAndWait - - Added operation ActionGroups.getTestNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.getTestNotificationsAtResourceGroupLevel - - Added operation DataCollectionRuleAssociations.listByDataCollectionEndpoint - - Added Interface AccessModeSettings - - Added Interface AccessModeSettingsExclusion - - Added Interface ActionGroup - - Added Interface ActionGroupResource - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsPostTestNotificationsHeaders - - Added Interface ActionList - - Added Interface Actions - - Added Interface ActivityLogAlertResource - - Added Interface ActivityLogAlertsListByResourceGroupNextOptionalParams - - Added Interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams - - Added Interface AlertRuleAllOfCondition - - Added Interface AlertRuleAnyOfOrLeafCondition - - Added Interface AlertRuleLeafCondition - - Added Interface AlertRuleList - - Added Interface AlertRulePatchObject - - Added Interface AlertRuleResource - - Added Interface AutoscaleErrorResponse - - Added Interface AutoscaleErrorResponseError - - Added Interface AutoscaleSettingResource - - Added Interface AzureMonitorPrivateLinkScope - - Added Interface AzureMonitorWorkspace - - Added Interface AzureMonitorWorkspaceDefaultIngestionSettings - - Added Interface AzureMonitorWorkspaceMetrics - - Added Interface AzureMonitorWorkspaceResource - - Added Interface AzureMonitorWorkspaceResourceForUpdate - - Added Interface AzureMonitorWorkspaceResourceListResult - - Added Interface AzureMonitorWorkspaceResourceProperties - - Added Interface AzureMonitorWorkspacesCreateOptionalParams - - Added Interface AzureMonitorWorkspacesDeleteOptionalParams - - Added Interface AzureMonitorWorkspacesGetOptionalParams - - Added Interface AzureMonitorWorkspacesListByResourceGroupNextOptionalParams - - Added Interface AzureMonitorWorkspacesListByResourceGroupOptionalParams - - Added Interface AzureMonitorWorkspacesListBySubscriptionNextOptionalParams - - Added Interface AzureMonitorWorkspacesListBySubscriptionOptionalParams - - Added Interface AzureMonitorWorkspacesUpdateOptionalParams - - Added Interface AzureResourceAutoGenerated - - Added Interface ColumnDefinition - - Added Interface Condition - - Added Interface ConditionFailingPeriods - - Added Interface DataCollectionEndpointConfigurationAccess - - Added Interface DataCollectionEndpointLogsIngestion - - Added Interface DataCollectionEndpointNetworkAcls - - Added Interface DataCollectionEndpointResourceProperties - - Added Interface DataCollectionEndpointResourceSystemData - - Added Interface DataCollectionRuleAssociationMetadata - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceProperties - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceSystemData - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams - - Added Interface DataCollectionRuleDataSources - - Added Interface DataCollectionRuleDestinations - - Added Interface DataCollectionRuleMetadata - - Added Interface DataCollectionRuleResourceProperties - - Added Interface DataCollectionRuleResourceSystemData - - Added Interface DefaultErrorResponse - - Added Interface DestinationsSpecAzureMonitorMetrics - - Added Interface DiagnosticSettingsCategoryResource - - Added Interface DiagnosticSettingsResource - - Added Interface DynamicMetricCriteria - - Added Interface ErrorDetailAutoGenerated - - Added Interface ErrorResponseAdditionalInfo - - Added Interface ErrorResponseAutoGenerated - - Added Interface ErrorResponseAutoGenerated2 - - Added Interface ErrorResponseDetails - - Added Interface Identity - - Added Interface IisLogsDataSource - - Added Interface IngestionSettings - - Added Interface LocationThresholdRuleCondition - - Added Interface LogFilesDataSource - - Added Interface LogFilesDataSourceSettings - - Added Interface LogFileSettings - - Added Interface LogFileSettingsText - - Added Interface LogFileTextSettings - - Added Interface LogProfileResource - - Added Interface ManagementEventRuleCondition - - Added Interface Metadata - - Added Interface MetricAlertMultipleResourceMultipleMetricCriteria - - Added Interface MetricAlertResource - - Added Interface MetricAlertSingleResourceMultipleMetricCriteria - - Added Interface MetricCriteria - - Added Interface Metrics - - Added Interface MonitorOperationsListNextOptionalParams - - Added Interface MonitorOperationsListOptionalParams - - Added Interface OperationAutoGenerated - - Added Interface OperationDisplayAutoGenerated - - Added Interface OperationListResultAutoGenerated - - Added Interface PredictiveAutoscalePolicy - - Added Interface PredictiveMetricGetOptionalParams - - Added Interface PredictiveResponse - - Added Interface PredictiveValue - - Added Interface PrivateEndpoint - - Added Interface PrivateEndpointConnection - - Added Interface PrivateLinkResource - - Added Interface PrivateLinkServiceConnectionState - - Added Interface ProxyResourceAutoGenerated - - Added Interface ResourceAutoGenerated2 - - Added Interface ResourceAutoGenerated3 - - Added Interface ResourceAutoGenerated4 - - Added Interface ResourceAutoGenerated5 - - Added Interface RuleEmailAction - - Added Interface RuleManagementEventDataSource - - Added Interface RuleMetricDataSource - - Added Interface RuleResolveConfiguration - - Added Interface RuleWebhookAction - - Added Interface ScheduledQueryRuleCriteria - - Added Interface ScheduledQueryRuleResource - - Added Interface ScheduledQueryRuleResourceCollection - - Added Interface ScheduledQueryRuleResourcePatch - - Added Interface ScheduledQueryRulesListByResourceGroupNextOptionalParams - - Added Interface ScheduledQueryRulesListBySubscriptionNextOptionalParams - - Added Interface ScopedResource - - Added Interface StreamDeclaration - - Added Interface ThresholdRuleCondition - - Added Interface TrackedResource - - Added Interface TrackedResourceAutoGenerated - - Added Interface UserIdentityProperties - - Added Interface VMInsightsOnboardingStatus - - Added Interface WebtestLocationAvailabilityCriteria - - Added Type Alias AccessMode - - Added Type Alias ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsCreateNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActionType - - Added Type Alias ActivityLogAlertsListByResourceGroupNextResponse - - Added Type Alias ActivityLogAlertsListBySubscriptionIdNextResponse - - Added Type Alias AzureMonitorWorkspacesCreateResponse - - Added Type Alias AzureMonitorWorkspacesGetResponse - - Added Type Alias AzureMonitorWorkspacesListByResourceGroupNextResponse - - Added Type Alias AzureMonitorWorkspacesListByResourceGroupResponse - - Added Type Alias AzureMonitorWorkspacesListBySubscriptionNextResponse - - Added Type Alias AzureMonitorWorkspacesListBySubscriptionResponse - - Added Type Alias AzureMonitorWorkspacesUpdateResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointResponse - - Added Type Alias DimensionOperator - - Added Type Alias IdentityType - - Added Type Alias Kind - - Added Type Alias KnownColumnDefinitionType - - Added Type Alias KnownLogFilesDataSourceFormat - - Added Type Alias KnownLogFileTextSettingsRecordStartTimestampFormat - - Added Type Alias MonitorOperationsListNextResponse - - Added Type Alias MonitorOperationsListResponse - - Added Type Alias Origin - - Added Type Alias PredictiveAutoscalePolicyScaleMode - - Added Type Alias PredictiveMetricGetResponse - - Added Type Alias PrivateEndpointConnectionProvisioningState - - Added Type Alias PrivateEndpointServiceConnectionStatus - - Added Type Alias PublicNetworkAccess - - Added Type Alias ScheduledQueryRulesListByResourceGroupNextResponse - - Added Type Alias ScheduledQueryRulesListBySubscriptionNextResponse - - Added Type Alias TimeAggregation - - Interface AutoscaleSettingResourcePatch has a new optional parameter predictiveAutoscalePolicy - - Interface DataCollectionRule has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRule has a new optional parameter metadata - - Interface DataCollectionRule has a new optional parameter streamDeclarations - - Interface DataCollectionRuleAssociation has a new optional parameter metadata - - Interface DataCollectionRuleAssociationProxyOnlyResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRuleResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter streamDeclarations - - Interface DataFlow has a new optional parameter outputStream - - Interface DataFlow has a new optional parameter transformKql - - Interface DataSourcesSpec has a new optional parameter iisLogs - - Interface DataSourcesSpec has a new optional parameter logFiles - - Interface LogSettings has a new optional parameter categoryGroup - - Interface Resource has a new optional parameter systemData - - Added Enum KnownAccessMode - - Added Enum KnownActionType - - Added Enum KnownCategoryType - - Added Enum KnownDimensionOperator - - Added Enum KnownKind - - Added Enum KnownKnownColumnDefinitionType - - Added Enum KnownKnownLogFilesDataSourceFormat - - Added Enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat - - Added Enum KnownOrigin - - Added Enum KnownPrivateEndpointConnectionProvisioningState - - Added Enum KnownPrivateEndpointServiceConnectionStatus - - Added Enum KnownPublicNetworkAccess - - Added Enum KnownTimeAggregation - - Enum KnownProvisioningState has a new value Creating - - Enum KnownProvisioningState has a new value Deleting - - Added function getContinuationToken - -**Breaking Changes** - - - Removed operation group Metrics - - Operation ActivityLogAlerts.update has a new signature - - Operation ScheduledQueryRules.createOrUpdate has a new signature - - Operation ScheduledQueryRules.update has a new signature - - Interface ActivityLogsListNextOptionalParams no longer has parameter select - - Interface AzureResource no longer has parameter identity - - Interface AzureResource no longer has parameter kind - - Interface PrivateEndpointConnectionListResult no longer has parameter nextLink - - Interface PrivateLinkResourceListResult no longer has parameter nextLink - - Interface ResourceAutoGenerated no longer has parameter etag - - Interface ResourceAutoGenerated no longer has parameter kind - - Interface ScheduledQueryRulesListByResourceGroupOptionalParams no longer has parameter filter - - Interface ScheduledQueryRulesListBySubscriptionOptionalParams no longer has parameter filter - - Interface TenantActivityLogsListNextOptionalParams no longer has parameter filter - - Interface TenantActivityLogsListNextOptionalParams no longer has parameter select - - Type of parameter operator of interface Dimension is changed from Operator to DimensionOperator - - Type of parameter error of interface ErrorContract is changed from ErrorResponse to ErrorResponseDetails - - Type of parameter error of interface OperationStatus is changed from ErrorResponseCommon to ErrorDetail - - Class MonitorClient no longer has parameter metrics - - Removed Enum KnownConditionalOperator - - Removed Enum KnownEnabled - - Removed Enum KnownMetricTriggerType - - Removed Enum KnownQueryType - - Enum KnownOperator no longer has value Include - - Enum KnownProvisioningState no longer has value Deploying - -## 8.0.0-beta.3 (2023-01-29) - -**Features** - - - Added operation group PredictiveMetric - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevel - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevelAndWait - - Added operation ActionGroups.getTestNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.getTestNotificationsAtResourceGroupLevel - - Added operation DataCollectionRuleAssociations.listByDataCollectionEndpoint - - Added Interface AccessModeSettings - - Added Interface AccessModeSettingsExclusion - - Added Interface ActionGroup - - Added Interface ActionGroupResource - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsPostTestNotificationsHeaders - - Added Interface ActionList - - Added Interface ActivityLogAlertResource - - Added Interface ActivityLogAlertsListByResourceGroupNextOptionalParams - - Added Interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams - - Added Interface AlertingAction - - Added Interface AlertRuleAllOfCondition - - Added Interface AlertRuleAnyOfOrLeafCondition - - Added Interface AlertRuleLeafCondition - - Added Interface AlertRuleList - - Added Interface AlertRulePatchObject - - Added Interface AlertRuleResource - - Added Interface AutoscaleErrorResponse - - Added Interface AutoscaleErrorResponseError - - Added Interface AutoscaleSettingResource - - Added Interface AzureMonitorPrivateLinkScope - - Added Interface AzureResourceAutoGenerated - - Added Interface ColumnDefinition - - Added Interface DataCollectionEndpointConfigurationAccess - - Added Interface DataCollectionEndpointLogsIngestion - - Added Interface DataCollectionEndpointNetworkAcls - - Added Interface DataCollectionEndpointResourceProperties - - Added Interface DataCollectionEndpointResourceSystemData - - Added Interface DataCollectionRuleAssociationMetadata - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceProperties - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceSystemData - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams - - Added Interface DataCollectionRuleDataSources - - Added Interface DataCollectionRuleDestinations - - Added Interface DataCollectionRuleMetadata - - Added Interface DataCollectionRuleResourceProperties - - Added Interface DataCollectionRuleResourceSystemData - - Added Interface DefaultErrorResponse - - Added Interface DestinationsSpecAzureMonitorMetrics - - Added Interface DiagnosticSettingsCategoryResource - - Added Interface DiagnosticSettingsResource - - Added Interface DynamicMetricCriteria - - Added Interface ErrorResponseAutoGenerated - - Added Interface IisLogsDataSource - - Added Interface LocationThresholdRuleCondition - - Added Interface LogFilesDataSource - - Added Interface LogFilesDataSourceSettings - - Added Interface LogFileSettings - - Added Interface LogFileSettingsText - - Added Interface LogFileTextSettings - - Added Interface LogProfileResource - - Added Interface LogSearchRuleResource - - Added Interface LogToMetricAction - - Added Interface ManagementEventRuleCondition - - Added Interface Metadata - - Added Interface MetricAlertMultipleResourceMultipleMetricCriteria - - Added Interface MetricAlertResource - - Added Interface MetricAlertSingleResourceMultipleMetricCriteria - - Added Interface MetricCriteria - - Added Interface PredictiveAutoscalePolicy - - Added Interface PredictiveMetricGetOptionalParams - - Added Interface PredictiveResponse - - Added Interface PredictiveValue - - Added Interface PrivateEndpoint - - Added Interface PrivateEndpointConnection - - Added Interface PrivateLinkResource - - Added Interface PrivateLinkServiceConnectionState - - Added Interface ProxyResourceAutoGenerated - - Added Interface ResourceAutoGenerated2 - - Added Interface ResourceAutoGenerated3 - - Added Interface ResourceAutoGenerated4 - - Added Interface ResourceAutoGenerated5 - - Added Interface RuleEmailAction - - Added Interface RuleManagementEventDataSource - - Added Interface RuleMetricDataSource - - Added Interface RuleWebhookAction - - Added Interface ScopedResource - - Added Interface StreamDeclaration - - Added Interface ThresholdRuleCondition - - Added Interface TrackedResource - - Added Interface VMInsightsOnboardingStatus - - Added Interface WebtestLocationAvailabilityCriteria - - Added Type Alias AccessMode - - Added Type Alias ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsCreateNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActivityLogAlertsListByResourceGroupNextResponse - - Added Type Alias ActivityLogAlertsListBySubscriptionIdNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointResponse - - Added Type Alias KnownColumnDefinitionType - - Added Type Alias KnownLogFilesDataSourceFormat - - Added Type Alias KnownLogFileTextSettingsRecordStartTimestampFormat - - Added Type Alias PredictiveAutoscalePolicyScaleMode - - Added Type Alias PredictiveMetricGetResponse - - Added Type Alias PrivateEndpointConnectionProvisioningState - - Added Type Alias PrivateEndpointServiceConnectionStatus - - Interface AutoscaleSettingResourcePatch has a new optional parameter predictiveAutoscalePolicy - - Interface DataCollectionRule has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRule has a new optional parameter metadata - - Interface DataCollectionRule has a new optional parameter streamDeclarations - - Interface DataCollectionRuleAssociation has a new optional parameter metadata - - Interface DataCollectionRuleAssociationProxyOnlyResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRuleResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter streamDeclarations - - Interface DataFlow has a new optional parameter outputStream - - Interface DataFlow has a new optional parameter transformKql - - Interface DataSourcesSpec has a new optional parameter iisLogs - - Interface DataSourcesSpec has a new optional parameter logFiles - - Interface LogSettings has a new optional parameter categoryGroup - - Interface Resource has a new optional parameter systemData - - Added Enum KnownAccessMode - - Added Enum KnownCategoryType - - Added Enum KnownKnownColumnDefinitionType - - Added Enum KnownKnownLogFilesDataSourceFormat - - Added Enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat - - Added Enum KnownPrivateEndpointConnectionProvisioningState - - Added Enum KnownPrivateEndpointServiceConnectionStatus - - Added function getContinuationToken - -**Breaking Changes** - - - Operation ActivityLogAlerts.update has a new signature - - Interface ActivityLogsListNextOptionalParams no longer has parameter select - - Interface AzureResource no longer has parameter identity - - Interface AzureResource no longer has parameter kind - - Interface PrivateEndpointConnectionListResult no longer has parameter nextLink - - Interface PrivateLinkResourceListResult no longer has parameter nextLink - - Interface ResourceAutoGenerated no longer has parameter etag - - Interface ResourceAutoGenerated no longer has parameter kind - - Interface TenantActivityLogsListNextOptionalParams no longer has parameter filter - - Interface TenantActivityLogsListNextOptionalParams no longer has parameter select - - Type of parameter error of interface OperationStatus is changed from ErrorResponseCommon to ErrorDetail - -## 8.0.0-beta.2 (2022-07-29) - -**Features** - - - Added operation group PredictiveMetric - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevel - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevelAndWait - - Added operation ActionGroups.getTestNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.getTestNotificationsAtResourceGroupLevel - - Added operation DataCollectionRuleAssociations.listByDataCollectionEndpoint - - Added Interface AccessModeSettings - - Added Interface AccessModeSettingsExclusion - - Added Interface ActionGroup - - Added Interface ActionGroupResource - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsPostTestNotificationsHeaders - - Added Interface ActionList - - Added Interface ActivityLogAlertResource - - Added Interface ActivityLogAlertsListByResourceGroupNextOptionalParams - - Added Interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams - - Added Interface AlertingAction - - Added Interface AlertRuleAllOfCondition - - Added Interface AlertRuleAnyOfOrLeafCondition - - Added Interface AlertRuleLeafCondition - - Added Interface AlertRuleList - - Added Interface AlertRulePatchObject - - Added Interface AlertRuleResource - - Added Interface AutoscaleErrorResponse - - Added Interface AutoscaleErrorResponseError - - Added Interface AutoscaleSettingResource - - Added Interface AzureMonitorPrivateLinkScope - - Added Interface AzureResourceAutoGenerated - - Added Interface ColumnDefinition - - Added Interface DataCollectionEndpointConfigurationAccess - - Added Interface DataCollectionEndpointLogsIngestion - - Added Interface DataCollectionEndpointNetworkAcls - - Added Interface DataCollectionEndpointResourceProperties - - Added Interface DataCollectionEndpointResourceSystemData - - Added Interface DataCollectionRuleAssociationMetadata - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceProperties - - Added Interface DataCollectionRuleAssociationProxyOnlyResourceSystemData - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams - - Added Interface DataCollectionRuleDataSources - - Added Interface DataCollectionRuleDestinations - - Added Interface DataCollectionRuleMetadata - - Added Interface DataCollectionRuleResourceProperties - - Added Interface DataCollectionRuleResourceSystemData - - Added Interface DefaultErrorResponse - - Added Interface DestinationsSpecAzureMonitorMetrics - - Added Interface DiagnosticSettingsCategoryResource - - Added Interface DiagnosticSettingsResource - - Added Interface DynamicMetricCriteria - - Added Interface ErrorResponseAutoGenerated - - Added Interface IisLogsDataSource - - Added Interface LocationThresholdRuleCondition - - Added Interface LogFilesDataSource - - Added Interface LogFilesDataSourceSettings - - Added Interface LogFileSettings - - Added Interface LogFileSettingsText - - Added Interface LogFileTextSettings - - Added Interface LogProfileResource - - Added Interface LogSearchRuleResource - - Added Interface LogToMetricAction - - Added Interface ManagementEventRuleCondition - - Added Interface Metadata - - Added Interface MetricAlertMultipleResourceMultipleMetricCriteria - - Added Interface MetricAlertResource - - Added Interface MetricAlertSingleResourceMultipleMetricCriteria - - Added Interface MetricCriteria - - Added Interface PredictiveAutoscalePolicy - - Added Interface PredictiveMetricGetOptionalParams - - Added Interface PredictiveResponse - - Added Interface PredictiveValue - - Added Interface PrivateEndpoint - - Added Interface PrivateEndpointConnection - - Added Interface PrivateLinkResource - - Added Interface PrivateLinkServiceConnectionState - - Added Interface ProxyResourceAutoGenerated - - Added Interface ResourceAutoGenerated2 - - Added Interface ResourceAutoGenerated3 - - Added Interface ResourceAutoGenerated4 - - Added Interface ResourceAutoGenerated5 - - Added Interface RuleEmailAction - - Added Interface RuleManagementEventDataSource - - Added Interface RuleMetricDataSource - - Added Interface RuleWebhookAction - - Added Interface ScopedResource - - Added Interface StreamDeclaration - - Added Interface ThresholdRuleCondition - - Added Interface TrackedResource - - Added Interface VMInsightsOnboardingStatus - - Added Interface WebtestLocationAvailabilityCriteria - - Added Type Alias AccessMode - - Added Type Alias ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsCreateNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActivityLogAlertsListByResourceGroupNextResponse - - Added Type Alias ActivityLogAlertsListBySubscriptionIdNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointResponse - - Added Type Alias KnownColumnDefinitionType - - Added Type Alias KnownLogFilesDataSourceFormat - - Added Type Alias KnownLogFileTextSettingsRecordStartTimestampFormat - - Added Type Alias PredictiveAutoscalePolicyScaleMode - - Added Type Alias PredictiveMetricGetResponse - - Added Type Alias PrivateEndpointConnectionProvisioningState - - Added Type Alias PrivateEndpointServiceConnectionStatus - - Interface AutoscaleSettingResourcePatch has a new optional parameter predictiveAutoscalePolicy - - Interface DataCollectionRule has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRule has a new optional parameter metadata - - Interface DataCollectionRule has a new optional parameter streamDeclarations - - Interface DataCollectionRuleAssociation has a new optional parameter metadata - - Interface DataCollectionRuleAssociationProxyOnlyResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRuleResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter streamDeclarations - - Interface DataFlow has a new optional parameter outputStream - - Interface DataFlow has a new optional parameter transformKql - - Interface DataSourcesSpec has a new optional parameter iisLogs - - Interface DataSourcesSpec has a new optional parameter logFiles - - Interface LogSettings has a new optional parameter categoryGroup - - Interface Resource has a new optional parameter systemData - - Class MonitorClient has a new parameter predictiveMetric - - Added Enum KnownAccessMode - - Added Enum KnownCategoryType - - Added Enum KnownKnownColumnDefinitionType - - Added Enum KnownKnownLogFilesDataSourceFormat - - Added Enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat - - Added Enum KnownPrivateEndpointConnectionProvisioningState - - Added Enum KnownPrivateEndpointServiceConnectionStatus - -**Breaking Changes** - - - Operation ActivityLogAlerts.update has a new signature - - Interface AzureResource no longer has parameter identity - - Interface AzureResource no longer has parameter kind - - Interface PrivateEndpointConnectionListResult no longer has parameter nextLink - - Interface PrivateLinkResourceListResult no longer has parameter nextLink - - Interface ResourceAutoGenerated no longer has parameter etag - - Interface ResourceAutoGenerated no longer has parameter kind - -## 8.0.0-beta.1 (2022-06-10) - -**Features** - - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevel - - Added operation ActionGroups.beginCreateNotificationsAtResourceGroupLevelAndWait - - Added operation ActionGroups.getTestNotificationsAtActionGroupResourceLevel - - Added operation ActionGroups.getTestNotificationsAtResourceGroupLevel - - Added operation DataCollectionRuleAssociations.listByDataCollectionEndpoint - - Added Interface ActionGroup - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelHeaders - - Added Interface ActionGroupsCreateNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams - - Added Interface ActionGroupsGetTestNotificationsAtResourceGroupLevelOptionalParams - - Added Interface ActionGroupsPostTestNotificationsHeaders - - Added Interface ActionList - - Added Interface ActivityLogAlertsListByResourceGroupNextOptionalParams - - Added Interface ActivityLogAlertsListBySubscriptionIdNextOptionalParams - - Added Interface AlertRuleAllOfCondition - - Added Interface AlertRuleLeafCondition - - Added Interface AlertRuleList - - Added Interface AlertRulePatchObject - - Added Interface AzureResourceAutoGenerated - - Added Interface ColumnDefinition - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointNextOptionalParams - - Added Interface DataCollectionRuleAssociationsListByDataCollectionEndpointOptionalParams - - Added Interface ErrorResponseAutoGenerated - - Added Interface IisLogsDataSource - - Added Interface LogFilesDataSource - - Added Interface LogFileSettings - - Added Interface LogFileTextSettings - - Added Interface Metadata - - Added Interface StreamDeclaration - - Added Type Alias ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsCreateNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse - - Added Type Alias ActionGroupsGetTestNotificationsAtResourceGroupLevelResponse - - Added Type Alias ActivityLogAlertsListByResourceGroupNextResponse - - Added Type Alias ActivityLogAlertsListBySubscriptionIdNextResponse - - Added Type Alias AlertRuleAnyOfOrLeafCondition - - Added Type Alias DataCollectionRuleAssociationMetadata - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointNextResponse - - Added Type Alias DataCollectionRuleAssociationsListByDataCollectionEndpointResponse - - Added Type Alias DataCollectionRuleMetadata - - Added Type Alias KnownColumnDefinitionType - - Added Type Alias KnownLogFilesDataSourceFormat - - Added Type Alias KnownLogFileTextSettingsRecordStartTimestampFormat - - Added Type Alias LogFilesDataSourceSettings - - Added Type Alias LogFileSettingsText - - Interface DataCollectionRule has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRule has a new optional parameter metadata - - Interface DataCollectionRule has a new optional parameter streamDeclarations - - Interface DataCollectionRuleAssociation has a new optional parameter metadata - - Interface DataCollectionRuleAssociationProxyOnlyResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter dataCollectionEndpointId - - Interface DataCollectionRuleResource has a new optional parameter metadata - - Interface DataCollectionRuleResource has a new optional parameter streamDeclarations - - Interface DataFlow has a new optional parameter outputStream - - Interface DataFlow has a new optional parameter transformKql - - Interface DataSourcesSpec has a new optional parameter iisLogs - - Interface DataSourcesSpec has a new optional parameter logFiles - - Add parameters of AzureResourceAutoGenerated to TypeAlias ActivityLogAlertResource - - Added Enum KnownKnownColumnDefinitionType - - Added Enum KnownKnownLogFilesDataSourceFormat - - Added Enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat - -**Breaking Changes** - - - Operation ActivityLogAlerts.update has a new signature - - Delete parameters of Resource in TypeAlias ActivityLogAlertResource - ## 7.0.0 (2021-12-20) The package of @azure/arm-monitor is using our next generation design principles since version 7.0.0, which contains breaking changes. @@ -991,4 +470,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart). diff --git a/sdk/monitor/arm-monitor/_meta.json b/sdk/monitor/arm-monitor/_meta.json index d328bcd90026..c96aaab9d204 100644 --- a/sdk/monitor/arm-monitor/_meta.json +++ b/sdk/monitor/arm-monitor/_meta.json @@ -1,8 +1,8 @@ { - "commit": "6fc313ed7a6e926d4409d4ddb435f6532922652f", + "commit": "a060bc2360831f539b81d2d9b4e9db13caec8a9f", "readme": "specification/monitor/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\monitor\\resource-manager\\readme.md --use=@autorest/typescript@6.0.18 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.18" + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/monitor/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", + "repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git", + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.12", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/monitor/arm-monitor/assets.json b/sdk/monitor/arm-monitor/assets.json deleted file mode 100644 index 7bf0dab371e3..000000000000 --- a/sdk/monitor/arm-monitor/assets.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "AssetsRepo": "Azure/azure-sdk-assets", - "AssetsRepoPrefixPath": "js", - "TagPrefix": "js/monitor/arm-monitor", - "Tag": "js/monitor/arm-monitor_593cceafae" -} diff --git a/sdk/monitor/arm-monitor/package.json b/sdk/monitor/arm-monitor/package.json index 483b1638ec5b..9ae84c72d7f1 100644 --- a/sdk/monitor/arm-monitor/package.json +++ b/sdk/monitor/arm-monitor/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", @@ -35,19 +35,16 @@ "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", + "@azure/identity": "^4.2.1", "@azure-tools/test-recorder": "^3.0.0", - "@azure-tools/test-credential": "^1.0.0", + "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/arm-eventhub": "5.2.0-beta.2", - "@azure/arm-logic": "^8.0.0", - "@azure/arm-operationalinsights": "^9.0.0", - "@azure/arm-storage": "^18.0.0", "ts-node": "^10.0.0" }, "repository": { @@ -109,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-monitor?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor" +} \ No newline at end of file diff --git a/sdk/monitor/arm-monitor/review/arm-monitor.api.md b/sdk/monitor/arm-monitor/review/arm-monitor.api.md index b01ec96a346b..8432f173f46a 100644 --- a/sdk/monitor/arm-monitor/review/arm-monitor.api.md +++ b/sdk/monitor/arm-monitor/review/arm-monitor.api.md @@ -27,6 +27,31 @@ export interface AccessModeSettingsExclusion { queryAccessMode?: AccessMode; } +// @public +export interface AccessRule { + name?: string; + properties?: AccessRuleProperties; +} + +// @public +export type AccessRuleDirection = string; + +// @public +export interface AccessRuleProperties { + addressPrefixes?: string[]; + direction?: AccessRuleDirection; + emailAddresses?: string[]; + fullyQualifiedDomainNames?: string[]; + networkSecurityPerimeters?: NetworkSecurityPerimeter[]; + phoneNumbers?: string[]; + subscriptions?: AccessRulePropertiesSubscriptionsItem[]; +} + +// @public +export interface AccessRulePropertiesSubscriptionsItem { + id?: string; +} + // @public export interface ActionDetail { detail?: string; @@ -87,6 +112,7 @@ export interface ActionGroupResource extends AzureResource { enabled?: boolean; eventHubReceivers?: EventHubReceiver[]; groupShortName?: string; + incidentReceivers?: IncidentReceiver[]; itsmReceivers?: ItsmReceiver[]; logicAppReceivers?: LogicAppReceiver[]; smsReceivers?: SmsReceiver[]; @@ -98,13 +124,17 @@ export interface ActionGroupResource extends AzureResource { export interface ActionGroups { beginCreateNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise, ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse>>; beginCreateNotificationsAtActionGroupResourceLevelAndWait(resourceGroupName: string, actionGroupName: string, notificationRequest: NotificationRequestBody, options?: ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams): Promise; + beginReconcileNSP(resourceGroupName: string, actionGroupName: string, networkSecurityPerimeterConfigurationName: string, options?: ActionGroupsReconcileNSPOptionalParams): Promise, ActionGroupsReconcileNSPResponse>>; + beginReconcileNSPAndWait(resourceGroupName: string, actionGroupName: string, networkSecurityPerimeterConfigurationName: string, options?: ActionGroupsReconcileNSPOptionalParams): Promise; createOrUpdate(resourceGroupName: string, actionGroupName: string, actionGroup: ActionGroupResource, options?: ActionGroupsCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsDeleteOptionalParams): Promise; enableReceiver(resourceGroupName: string, actionGroupName: string, enableRequest: EnableRequest, options?: ActionGroupsEnableReceiverOptionalParams): Promise; get(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsGetOptionalParams): Promise; + getNSP(resourceGroupName: string, actionGroupName: string, networkSecurityPerimeterConfigurationName: string, options?: ActionGroupsGetNSPOptionalParams): Promise; getTestNotificationsAtActionGroupResourceLevel(resourceGroupName: string, actionGroupName: string, notificationId: string, options?: ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: ActionGroupsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscriptionId(options?: ActionGroupsListBySubscriptionIdOptionalParams): PagedAsyncIterableIterator; + listNSP(resourceGroupName: string, actionGroupName: string, options?: ActionGroupsListNSPOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, actionGroupName: string, actionGroupPatch: ActionGroupPatchBody, options?: ActionGroupsUpdateOptionalParams): Promise; } @@ -137,6 +167,13 @@ export interface ActionGroupsDeleteOptionalParams extends coreClient.OperationOp export interface ActionGroupsEnableReceiverOptionalParams extends coreClient.OperationOptions { } +// @public +export interface ActionGroupsGetNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ActionGroupsGetNSPResponse = NetworkSecurityPerimeterConfiguration; + // @public export interface ActionGroupsGetOptionalParams extends coreClient.OperationOptions { } @@ -165,6 +202,35 @@ export interface ActionGroupsListBySubscriptionIdOptionalParams extends coreClie // @public export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList; +// @public +export interface ActionGroupsListNSPNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ActionGroupsListNSPNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface ActionGroupsListNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ActionGroupsListNSPResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface ActionGroupsReconcileNSPHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ActionGroupsReconcileNSPOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ActionGroupsReconcileNSPResponse = ActionGroupsReconcileNSPHeaders; + // @public export interface ActionGroupsUpdateOptionalParams extends coreClient.OperationOptions { } @@ -283,6 +349,25 @@ export interface ActivityLogsListOptionalParams extends coreClient.OperationOpti // @public export type ActivityLogsListResponse = EventDataCollection; +// @public +export interface AdxDestination { + databaseName?: string; + readonly ingestionUri?: string; + name?: string; + resourceId?: string; +} + +// @public +export interface AgentSetting { + name?: KnownAgentSettingName; + value?: string; +} + +// @public +export interface AgentSettingsSpec { + logs?: AgentSetting[]; +} + // @public export type AggregationType = "None" | "Average" | "Count" | "Minimum" | "Maximum" | "Total"; @@ -341,7 +426,7 @@ export interface AlertRulePatchObject { } // @public -export interface AlertRuleResource extends ResourceAutoGenerated3 { +export interface AlertRuleResource extends ResourceAutoGenerated4 { action?: RuleActionUnion; actions?: RuleActionUnion[]; condition: RuleConditionUnion; @@ -473,7 +558,7 @@ export interface AutoscaleProfile { } // @public -export interface AutoscaleSettingResource extends ResourceAutoGenerated2 { +export interface AutoscaleSettingResource extends ResourceAutoGenerated3 { enabled?: boolean; namePropertiesName?: string; notifications?: AutoscaleNotification[]; @@ -613,7 +698,7 @@ export interface AzureMonitorWorkspace { readonly metrics?: AzureMonitorWorkspaceMetrics; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: ProvisioningState; - readonly publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccess; } // @public @@ -632,7 +717,7 @@ export interface AzureMonitorWorkspaceResource extends TrackedResource { readonly metrics?: AzureMonitorWorkspaceMetrics; readonly privateEndpointConnections?: PrivateEndpointConnection[]; readonly provisioningState?: ProvisioningState; - readonly publicNetworkAccess?: PublicNetworkAccess; + publicNetworkAccess?: PublicNetworkAccess; } // @public @@ -924,11 +1009,15 @@ export interface DataCollectionEndpointResourceSystemData extends SystemData { // @public export interface DataCollectionEndpoints { + beginReconcileNSP(resourceGroupName: string, dataCollectionEndpointName: string, networkSecurityPerimeterConfigurationName: string, options?: DataCollectionEndpointsReconcileNSPOptionalParams): Promise, DataCollectionEndpointsReconcileNSPResponse>>; + beginReconcileNSPAndWait(resourceGroupName: string, dataCollectionEndpointName: string, networkSecurityPerimeterConfigurationName: string, options?: DataCollectionEndpointsReconcileNSPOptionalParams): Promise; create(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionEndpointsCreateOptionalParams): Promise; delete(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionEndpointsDeleteOptionalParams): Promise; get(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionEndpointsGetOptionalParams): Promise; + getNSP(resourceGroupName: string, dataCollectionEndpointName: string, networkSecurityPerimeterConfigurationName: string, options?: DataCollectionEndpointsGetNSPOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: DataCollectionEndpointsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: DataCollectionEndpointsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listNSP(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionEndpointsListNSPOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, dataCollectionEndpointName: string, options?: DataCollectionEndpointsUpdateOptionalParams): Promise; } @@ -944,6 +1033,13 @@ export type DataCollectionEndpointsCreateResponse = DataCollectionEndpointResour export interface DataCollectionEndpointsDeleteOptionalParams extends coreClient.OperationOptions { } +// @public +export interface DataCollectionEndpointsGetNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataCollectionEndpointsGetNSPResponse = NetworkSecurityPerimeterConfiguration; + // @public export interface DataCollectionEndpointsGetOptionalParams extends coreClient.OperationOptions { } @@ -979,6 +1075,35 @@ export interface DataCollectionEndpointsListBySubscriptionOptionalParams extends // @public export type DataCollectionEndpointsListBySubscriptionResponse = DataCollectionEndpointResourceListResult; +// @public +export interface DataCollectionEndpointsListNSPNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataCollectionEndpointsListNSPNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface DataCollectionEndpointsListNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DataCollectionEndpointsListNSPResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface DataCollectionEndpointsReconcileNSPHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface DataCollectionEndpointsReconcileNSPOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DataCollectionEndpointsReconcileNSPResponse = DataCollectionEndpointsReconcileNSPHeaders; + // @public export interface DataCollectionEndpointsUpdateOptionalParams extends coreClient.OperationOptions { body?: ResourceForUpdate; @@ -989,19 +1114,26 @@ export type DataCollectionEndpointsUpdateResponse = DataCollectionEndpointResour // @public export interface DataCollectionRule { + agentSettings?: DataCollectionRuleAgentSettings; dataCollectionEndpointId?: string; dataFlows?: DataFlow[]; dataSources?: DataCollectionRuleDataSources; description?: string; destinations?: DataCollectionRuleDestinations; + readonly endpoints?: DataCollectionRuleEndpoints; readonly immutableId?: string; readonly metadata?: DataCollectionRuleMetadata; readonly provisioningState?: KnownDataCollectionRuleProvisioningState; + references?: DataCollectionRuleReferences; streamDeclarations?: { [propertyName: string]: StreamDeclaration; }; } +// @public +export interface DataCollectionRuleAgentSettings extends AgentSettingsSpec { +} + // @public export interface DataCollectionRuleAssociation { dataCollectionEndpointId?: string; @@ -1122,17 +1254,27 @@ export interface DataCollectionRuleDataSources extends DataSourcesSpec { export interface DataCollectionRuleDestinations extends DestinationsSpec { } +// @public +export interface DataCollectionRuleEndpoints extends EndpointsSpec { +} + // @public export interface DataCollectionRuleMetadata extends Metadata { } +// @public +export interface DataCollectionRuleReferences extends ReferencesSpec { +} + // @public export interface DataCollectionRuleResource { + agentSettings?: DataCollectionRuleAgentSettings; dataCollectionEndpointId?: string; dataFlows?: DataFlow[]; dataSources?: DataCollectionRuleDataSources; description?: string; destinations?: DataCollectionRuleDestinations; + readonly endpoints?: DataCollectionRuleEndpoints; readonly etag?: string; readonly id?: string; identity?: DataCollectionRuleResourceIdentity; @@ -1142,6 +1284,7 @@ export interface DataCollectionRuleResource { readonly metadata?: DataCollectionRuleMetadata; readonly name?: string; readonly provisioningState?: KnownDataCollectionRuleProvisioningState; + references?: DataCollectionRuleReferences; streamDeclarations?: { [propertyName: string]: StreamDeclaration; }; @@ -1190,6 +1333,7 @@ export type DataCollectionRulesCreateResponse = DataCollectionRuleResource; // @public export interface DataCollectionRulesDeleteOptionalParams extends coreClient.OperationOptions { + deleteAssociations?: boolean; } // @public @@ -1243,6 +1387,7 @@ export interface DataContainer { // @public export interface DataFlow { builtInTransform?: string; + captureOverflow?: boolean; destinations?: string[]; outputStream?: string; streams?: KnownDataFlowStreams[]; @@ -1281,15 +1426,17 @@ export type DataStatus = string; // @public export interface DefaultErrorResponse { - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } // @public export interface DestinationsSpec { + azureDataExplorer?: AdxDestination[]; azureMonitorMetrics?: DestinationsSpecAzureMonitorMetrics; eventHubs?: EventHubDestination[]; eventHubsDirect?: EventHubDirectDestination[]; logAnalytics?: LogAnalyticsDestination[]; + microsoftFabric?: MicrosoftFabricDestination[]; monitoringAccounts?: MonitoringAccountDestination[]; storageAccounts?: StorageBlobDestination[]; storageBlobsDirect?: StorageBlobDestination[]; @@ -1329,7 +1476,7 @@ export interface DiagnosticSettingsCategoryListOptionalParams extends coreClient export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection; // @public -export interface DiagnosticSettingsCategoryResource extends ResourceAutoGenerated5 { +export interface DiagnosticSettingsCategoryResource extends ResourceAutoGenerated6 { categoryGroups?: string[]; categoryType?: CategoryType; readonly systemData?: SystemData; @@ -1366,7 +1513,7 @@ export interface DiagnosticSettingsListOptionalParams extends coreClient.Operati export type DiagnosticSettingsListResponse = DiagnosticSettingsResourceCollection; // @public -export interface DiagnosticSettingsResource extends ResourceAutoGenerated5 { +export interface DiagnosticSettingsResource extends ResourceAutoGenerated6 { eventHubAuthorizationRuleId?: string; eventHubName?: string; logAnalyticsDestinationType?: string; @@ -1443,6 +1590,17 @@ export interface EnableRequest { receiverName: string; } +// @public +export interface EndpointsSpec { + readonly logsIngestion?: string; + readonly metricsIngestion?: string; +} + +// @public +export interface EnrichmentData { + storageBlobs?: StorageBlob[]; +} + // @public export interface ErrorAdditionalInfo { readonly info?: Record; @@ -1451,7 +1609,7 @@ export interface ErrorAdditionalInfo { // @public export interface ErrorContract { - error?: ErrorResponseAutoGenerated; + error?: ErrorResponseAutoGenerated2; } // @public @@ -1472,6 +1630,15 @@ export interface ErrorDetailAutoGenerated { readonly target?: string; } +// @public +export interface ErrorDetailAutoGenerated2 { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetailAutoGenerated2[]; + readonly message?: string; + readonly target?: string; +} + // @public export interface ErrorModel { code: string; @@ -1480,24 +1647,24 @@ export interface ErrorModel { // @public export interface ErrorResponse { + error?: ErrorDetail; +} + +// @public +export interface ErrorResponseAutoGenerated { code?: string; message?: string; } // @public -export interface ErrorResponseAutoGenerated { +export interface ErrorResponseAutoGenerated2 { readonly additionalInfo?: ErrorAdditionalInfo[]; readonly code?: string; - readonly details?: ErrorResponseAutoGenerated[]; + readonly details?: ErrorResponseAutoGenerated2[]; readonly message?: string; readonly target?: string; } -// @public -export interface ErrorResponseAutoGenerated2 { - error?: ErrorDetail; -} - // @public export interface ErrorResponseAutoGenerated3 { error?: ErrorDetailAutoGenerated; @@ -1505,13 +1672,18 @@ export interface ErrorResponseAutoGenerated3 { // @public export interface ErrorResponseAutoGenerated4 { + error?: ErrorDetailAutoGenerated2; +} + +// @public +export interface ErrorResponseAutoGenerated5 { readonly code?: string; readonly message?: string; } // @public export interface ErrorResponseCommonV2 { - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } // @public @@ -1652,6 +1824,7 @@ export interface IisLogsDataSource { logDirectories?: string[]; name?: string; streams: string[]; + transformKql?: string; } // @public @@ -1668,12 +1841,34 @@ export interface IncidentListResult { value?: Incident[]; } +// @public +export type IncidentManagementService = string; + +// @public +export interface IncidentReceiver { + connection: IncidentServiceConnection; + incidentManagementService: IncidentManagementService; + mappings: { + [propertyName: string]: string; + }; + name: string; +} + +// @public +export interface IncidentServiceConnection { + id: string; + name: string; +} + // @public export interface IngestionSettings { readonly dataCollectionEndpointResourceId?: string; readonly dataCollectionRuleResourceId?: string; } +// @public +export type IssueType = string; + // @public export interface ItsmReceiver { connectionId: string; @@ -1692,11 +1887,20 @@ export enum KnownAccessMode { PrivateOnly = "PrivateOnly" } +// @public +export enum KnownAccessRuleDirection { + Inbound = "Inbound", + Outbound = "Outbound" +} + // @public export enum KnownActionType { Internal = "Internal" } +// @public +export type KnownAgentSettingName = string; + // @public export enum KnownAggregationTypeEnum { Average = "Average", @@ -1792,12 +1996,31 @@ export enum KnownDynamicThresholdSensitivity { // @public export type KnownExtensionDataSourceStreams = string; +// @public +export enum KnownIncidentManagementService { + Icm = "Icm" +} + +// @public +export enum KnownIssueType { + ConfigurationPropagationFailure = "ConfigurationPropagationFailure", + MissingIdentityConfiguration = "MissingIdentityConfiguration", + MissingPerimeterConfiguration = "MissingPerimeterConfiguration", + Unknown = "Unknown" +} + // @public export enum KnownKind { LogAlert = "LogAlert", LogToMetric = "LogToMetric" } +// @public +export enum KnownKnownAgentSettingName { + MaxDiskQuotaInMB = "MaxDiskQuotaInMB", + UseTimeReceivedForForwardedEvents = "UseTimeReceivedForForwardedEvents" +} + // @public export enum KnownKnownColumnDefinitionType { Boolean = "boolean", @@ -1881,6 +2104,7 @@ export enum KnownKnownLocationSpecProvisioningStatus { // @public export enum KnownKnownLogFilesDataSourceFormat { + Json = "json", Text = "text" } @@ -1915,6 +2139,12 @@ export enum KnownKnownPublicNetworkAccessOptions { SecuredByPerimeter = "SecuredByPerimeter" } +// @public +export enum KnownKnownStorageBlobLookupType { + Cidr = "Cidr", + String = "String" +} + // @public export enum KnownKnownSyslogDataSourceFacilityNames { Alert = "alert", @@ -1970,6 +2200,13 @@ export enum KnownKnownWindowsEventLogDataSourceStreams { MicrosoftWindowsEvent = "Microsoft-WindowsEvent" } +// @public +export enum KnownKnownWindowsFirewallLogsDataSourceProfileFilter { + Domain = "Domain", + Private = "Private", + Public = "Public" +} + // @public export type KnownLocationSpecProvisioningStatus = string; @@ -2036,6 +2273,17 @@ export enum KnownNamespaceClassification { Qos = "Qos" } +// @public +export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { + Accepted = "Accepted", + Canceled = "Canceled", + Creating = "Creating", + Deleting = "Deleting", + Failed = "Failed", + Succeeded = "Succeeded", + Updating = "Updating" +} + // @public export enum KnownOdatatype { MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", @@ -2105,12 +2353,28 @@ export enum KnownPublicNetworkAccess { // @public export type KnownPublicNetworkAccessOptions = string; +// @public +export enum KnownResourceAssociationAccessMode { + Audit = "Audit", + Enforced = "Enforced", + Learning = "Learning" +} + // @public export enum KnownScaleRuleMetricDimensionOperationType { Equals = "Equals", NotEquals = "NotEquals" } +// @public +export enum KnownSeverity { + Error = "Error", + Warning = "Warning" +} + +// @public +export type KnownStorageBlobLookupType = string; + // @public export type KnownSyslogDataSourceFacilityNames = string; @@ -2132,6 +2396,9 @@ export enum KnownTimeAggregation { // @public export type KnownWindowsEventLogDataSourceStreams = string; +// @public +export type KnownWindowsFirewallLogsDataSourceProfileFilter = string; + // @public export interface LocalizableString { localizedValue?: string; @@ -2171,6 +2438,7 @@ export interface LogFilesDataSource { name?: string; settings?: LogFilesDataSourceSettings; streams: string[]; + transformKql?: string; } // @public @@ -2205,7 +2473,7 @@ export interface LogProfileCollection { } // @public -export interface LogProfileResource extends ResourceAutoGenerated4 { +export interface LogProfileResource extends ResourceAutoGenerated5 { categories: string[]; locations: string[]; retentionPolicy: RetentionPolicy; @@ -2308,6 +2576,7 @@ export interface ManagementEventRuleCondition extends RuleCondition { // @public export interface Metadata { readonly provisionedBy?: string; + readonly provisionedByImmutableId?: string; readonly provisionedByResourceId?: string; } @@ -2356,7 +2625,7 @@ export interface MetricAlertMultipleResourceMultipleMetricCriteria extends Metri } // @public -export interface MetricAlertResource extends ResourceAutoGenerated6 { +export interface MetricAlertResource extends ResourceAutoGenerated7 { actions?: MetricAlertAction[]; autoMitigate?: boolean; criteria: MetricAlertCriteriaUnion; @@ -2723,6 +2992,15 @@ export interface MetricValue { total?: number; } +// @public +export interface MicrosoftFabricDestination { + artifactId?: string; + databaseName?: string; + ingestionUri?: string; + name?: string; + tenantId?: string; +} + // @public (undocumented) export class MonitorClient extends coreClient.ServiceClient { // (undocumented) @@ -2789,6 +3067,8 @@ export class MonitorClient extends coreClient.ServiceClient { // (undocumented) privateLinkScopes: PrivateLinkScopes; // (undocumented) + scheduledQueryRule: ScheduledQueryRule; + // (undocumented) scheduledQueryRules: ScheduledQueryRules; // (undocumented) subscriptionId?: string; @@ -2860,6 +3140,45 @@ export interface NetworkRuleSet { publicNetworkAccess?: KnownPublicNetworkAccessOptions; } +// @public +export interface NetworkSecurityPerimeter { + id?: string; + location?: string; + perimeterGuid?: string; +} + +// @public +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + properties?: NetworkSecurityPerimeterConfigurationProperties; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationListResult { + nextLink?: string; + value?: NetworkSecurityPerimeterConfiguration[]; +} + +// @public +export interface NetworkSecurityPerimeterConfigurationProperties { + networkSecurityPerimeter?: NetworkSecurityPerimeter; + profile?: NetworkSecurityProfile; + readonly provisioningIssues?: ProvisioningIssue[]; + readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState; + resourceAssociation?: ResourceAssociation; +} + +// @public +export type NetworkSecurityPerimeterConfigurationProvisioningState = string; + +// @public +export interface NetworkSecurityProfile { + accessRules?: AccessRule[]; + accessRulesVersion?: number; + diagnosticSettingsVersion?: number; + enabledLogCategories?: string[]; + name?: string; +} + // @public export interface NotificationRequestBody { alertType: string; @@ -2869,6 +3188,7 @@ export interface NotificationRequestBody { azureFunctionReceivers?: AzureFunctionReceiver[]; emailReceivers?: EmailReceiver[]; eventHubReceivers?: EventHubReceiver[]; + incidentReceivers?: IncidentReceiver[]; itsmReceivers?: ItsmReceiver[]; logicAppReceivers?: LogicAppReceiver[]; smsReceivers?: SmsReceiver[]; @@ -2939,7 +3259,7 @@ export type OperationsListResponse = OperationListResultAutoGenerated; // @public export interface OperationStatus { endTime?: Date; - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; id?: string; name?: string; startTime?: Date; @@ -2958,6 +3278,7 @@ export interface PerfCounterDataSource { name?: string; samplingFrequencyInSeconds?: number; streams?: KnownPerfCounterDataSourceStreams[]; + transformKql?: string; } // @public @@ -3013,7 +3334,7 @@ export interface PrivateEndpointAutoGenerated { } // @public -export interface PrivateEndpointConnection extends Resource { +export interface PrivateEndpointConnection extends ResourceAutoGenerated { readonly groupIds?: string[]; privateEndpoint?: PrivateEndpoint; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; @@ -3021,7 +3342,7 @@ export interface PrivateEndpointConnection extends Resource { } // @public -export interface PrivateEndpointConnectionAutoGenerated extends ResourceAutoGenerated5 { +export interface PrivateEndpointConnectionAutoGenerated extends ResourceAutoGenerated6 { privateEndpoint?: PrivateEndpointAutoGenerated; privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState; provisioningState?: PrivateEndpointConnectionProvisioningState; @@ -3078,7 +3399,7 @@ export type PrivateEndpointConnectionsListByPrivateLinkScopeResponse = PrivateEn export type PrivateEndpointServiceConnectionStatus = string; // @public -export interface PrivateLinkResource extends ResourceAutoGenerated5 { +export interface PrivateLinkResource extends ResourceAutoGenerated6 { readonly groupId?: string; readonly requiredMembers?: string[]; requiredZoneNames?: string[]; @@ -3255,18 +3576,37 @@ export interface PrometheusForwarderDataSource { streams?: KnownPrometheusForwarderDataSourceStreams[]; } +// @public +export interface ProvisioningIssue { + readonly name?: string; + readonly properties?: ProvisioningIssueProperties; +} + +// @public +export interface ProvisioningIssueProperties { + readonly description?: string; + readonly issueType?: IssueType; + readonly severity?: Severity; + readonly suggestedAccessRules?: AccessRule[]; + readonly suggestedResourceIds?: string[]; +} + // @public export type ProvisioningState = string; // @public -export interface ProxyResource { +export interface ProxyResource extends Resource { +} + +// @public +export interface ProxyResourceAutoGenerated { readonly id?: string; readonly name?: string; readonly type?: string; } // @public -export interface ProxyResourceAutoGenerated extends ResourceAutoGenerated5 { +export interface ProxyResourceAutoGenerated2 extends ResourceAutoGenerated6 { } // @public @@ -3292,6 +3632,15 @@ export interface RecurrentSchedule { timeZone: string; } +// @public +export interface ReferencesSpec { + enrichmentData?: ReferencesSpecEnrichmentData; +} + +// @public +export interface ReferencesSpecEnrichmentData extends EnrichmentData { +} + // @public export interface Resource { readonly id?: string; @@ -3300,6 +3649,15 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceAssociation { + accessMode?: ResourceAssociationAccessMode; + name?: string; +} + +// @public +export type ResourceAssociationAccessMode = string; + // @public export interface ResourceAutoGenerated { readonly id?: string; @@ -3311,12 +3669,8 @@ export interface ResourceAutoGenerated { // @public export interface ResourceAutoGenerated2 { readonly id?: string; - location: string; readonly name?: string; readonly systemData?: SystemData; - tags?: { - [propertyName: string]: string; - }; readonly type?: string; } @@ -3325,6 +3679,7 @@ export interface ResourceAutoGenerated3 { readonly id?: string; location: string; readonly name?: string; + readonly systemData?: SystemData; tags?: { [propertyName: string]: string; }; @@ -3345,12 +3700,23 @@ export interface ResourceAutoGenerated4 { // @public export interface ResourceAutoGenerated5 { readonly id?: string; + location: string; readonly name?: string; + tags?: { + [propertyName: string]: string; + }; readonly type?: string; } // @public export interface ResourceAutoGenerated6 { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + +// @public +export interface ResourceAutoGenerated7 { readonly id?: string; location: string; readonly name?: string; @@ -3510,11 +3876,55 @@ export type ScaleRuleMetricDimensionOperationType = string; // @public export type ScaleType = "ChangeCount" | "PercentChangeCount" | "ExactCount" | "ServiceAllowedNextValue"; +// @public +export interface ScheduledQueryRule { + beginReconcileNSP(resourceGroupName: string, ruleName: string, networkSecurityPerimeterConfigurationName: string, options?: ScheduledQueryRuleReconcileNSPOptionalParams): Promise, ScheduledQueryRuleReconcileNSPResponse>>; + beginReconcileNSPAndWait(resourceGroupName: string, ruleName: string, networkSecurityPerimeterConfigurationName: string, options?: ScheduledQueryRuleReconcileNSPOptionalParams): Promise; + getNSP(resourceGroupName: string, ruleName: string, networkSecurityPerimeterConfigurationName: string, options?: ScheduledQueryRuleGetNSPOptionalParams): Promise; + listNSP(resourceGroupName: string, ruleName: string, options?: ScheduledQueryRuleListNSPOptionalParams): PagedAsyncIterableIterator; +} + // @public export interface ScheduledQueryRuleCriteria { allOf?: Condition[]; } +// @public +export interface ScheduledQueryRuleGetNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScheduledQueryRuleGetNSPResponse = NetworkSecurityPerimeterConfiguration; + +// @public +export interface ScheduledQueryRuleListNSPNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScheduledQueryRuleListNSPNextResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface ScheduledQueryRuleListNSPOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ScheduledQueryRuleListNSPResponse = NetworkSecurityPerimeterConfigurationListResult; + +// @public +export interface ScheduledQueryRuleReconcileNSPHeaders { + // (undocumented) + location?: string; +} + +// @public +export interface ScheduledQueryRuleReconcileNSPOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type ScheduledQueryRuleReconcileNSPResponse = ScheduledQueryRuleReconcileNSPHeaders; + // @public export interface ScheduledQueryRuleResource { actions?: Actions; @@ -3646,7 +4056,7 @@ export interface ScheduledQueryRulesUpdateOptionalParams extends coreClient.Oper export type ScheduledQueryRulesUpdateResponse = ScheduledQueryRuleResource; // @public -export interface ScopedResource extends ProxyResourceAutoGenerated { +export interface ScopedResource extends ProxyResourceAutoGenerated2 { linkedResourceId?: string; readonly provisioningState?: string; readonly systemData?: SystemData; @@ -3665,6 +4075,9 @@ export interface SenderAuthorization { scope?: string; } +// @public +export type Severity = string; + // @public export interface SingleBaseline { highThresholds: number[]; @@ -3699,6 +4112,14 @@ export interface SmsReceiverAutoGenerated { readonly status?: ReceiverStatus; } +// @public (undocumented) +export interface StorageBlob { + blobUrl?: string; + lookupType?: KnownStorageBlobLookupType; + name?: string; + resourceId?: string; +} + // @public (undocumented) export interface StorageBlobDestination { containerName?: string; @@ -3762,6 +4183,7 @@ export interface SyslogDataSource { logLevels?: KnownSyslogDataSourceLogLevels[]; name?: string; streams?: KnownSyslogDataSourceStreams[]; + transformKql?: string; } // @public @@ -3929,7 +4351,7 @@ export interface TimeWindow { } // @public -export interface TrackedResource extends ResourceAutoGenerated { +export interface TrackedResource extends ResourceAutoGenerated2 { location: string; tags?: { [propertyName: string]: string; @@ -3937,7 +4359,7 @@ export interface TrackedResource extends ResourceAutoGenerated { } // @public -export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated5 { +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated6 { location: string; tags?: { [propertyName: string]: string; @@ -3969,7 +4391,7 @@ export interface VMInsightsGetOnboardingStatusOptionalParams extends coreClient. export type VMInsightsGetOnboardingStatusResponse = VMInsightsOnboardingStatus; // @public -export interface VMInsightsOnboardingStatus extends ProxyResource { +export interface VMInsightsOnboardingStatus extends ProxyResourceAutoGenerated { data?: DataContainer[]; dataStatus?: DataStatus; onboardingStatus?: OnboardingStatus; @@ -4032,12 +4454,14 @@ export interface WebtestLocationAvailabilityCriteria extends MetricAlertCriteria export interface WindowsEventLogDataSource { name?: string; streams?: KnownWindowsEventLogDataSourceStreams[]; + transformKql?: string; xPathQueries?: string[]; } // @public export interface WindowsFirewallLogsDataSource { name?: string; + profileFilter?: KnownWindowsFirewallLogsDataSourceProfileFilter[]; streams: string[]; } diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts deleted file mode 100644 index 733196a69e01..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NotificationRequestBody, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/postTestNotificationsAtActionGroupResourceLevel.json - */ -async function createNotificationsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationRequest: NotificationRequestBody = { - alertType: "budget", - armRoleReceivers: [ - { - name: "ArmRole-Common", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: true, - }, - { - name: "ArmRole-nonCommon", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: false, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "http://test.me", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: - "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.actionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait( - resourceGroupName, - actionGroupName, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateOrUpdateSample.ts deleted file mode 100644 index 7a4bd7d9e999..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActionGroupResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new action group or update an existing one. - * - * @summary Create a new action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/createOrUpdateActionGroup.json - */ -async function createOrUpdateAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroup: ActionGroupResource = { - armRoleReceivers: [ - { - name: "Sample armRole", - roleId: "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - useCommonAlertSchema: true, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - groupShortName: "sample", - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: - "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - location: "Global", - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.createOrUpdate( - resourceGroupName, - actionGroupName, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsDeleteSample.ts deleted file mode 100644 index 23ed92f9919e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an action group. - * - * @summary Delete an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/deleteActionGroup.json - */ -async function deleteAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.delete( - resourceGroupName, - actionGroupName, - ); - console.log(result); -} - -async function main() { - deleteAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsEnableReceiverSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsEnableReceiverSample.ts deleted file mode 100644 index 8e014051264e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsEnableReceiverSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { EnableRequest, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * - * @summary Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/enableReceiver.json - */ -async function enableTheReceiver() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const enableRequest: EnableRequest = { receiverName: "John Doe's mobile" }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.enableReceiver( - resourceGroupName, - actionGroupName, - enableRequest, - ); - console.log(result); -} - -async function main() { - enableTheReceiver(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetSample.ts deleted file mode 100644 index daf9508f7493..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get an action group. - * - * @summary Get an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getActionGroup.json - */ -async function getAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.get( - resourceGroupName, - actionGroupName, - ); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts deleted file mode 100644 index a12029e2ba9e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getTestNotificationsAtActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.actionGroups.getTestNotificationsAtActionGroupResourceLevel( - resourceGroupName, - actionGroupName, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsListByResourceGroupSample.ts deleted file mode 100644 index d64c55e1f080..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a resource group. - * - * @summary Get a list of all action groups in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsListBySubscriptionIdSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsListBySubscriptionIdSample.ts deleted file mode 100644 index a6d18adbfc1b..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsListBySubscriptionIdSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a subscription. - * - * @summary Get a list of all action groups in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtSubscriptionLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtSubscriptionLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/actionGroupsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/actionGroupsUpdateSample.ts deleted file mode 100644 index 440971ec6e70..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/actionGroupsUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActionGroupPatchBody, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/patchActionGroup.json - */ -async function patchAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroupPatch: ActionGroupPatchBody = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.update( - resourceGroupName, - actionGroupName, - actionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsCreateOrUpdateSample.ts deleted file mode 100644 index 8bbfed32c2ba..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsCreateOrUpdateSample.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActivityLogAlertResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdate.json - */ -async function createOrUpdateAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: "Description of sample Activity Log Alert rule.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "Administrative", field: "category" }, - { equals: "Error", field: "level" }, - ], - }, - enabled: true, - location: "Global", - scopes: ["/subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithAnyOfCondition.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithAnyOfCondition"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: - "Description of sample Activity Log Alert rule with 'anyOf' condition.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - anyOf: [ - { equals: "Incident", field: "properties.incidentType" }, - { equals: "Maintenance", field: "properties.incidentType" }, - ], - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithContainsAny.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithContainsAny() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithContainsAny"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: - "Description of sample Activity Log Alert rule with 'containsAny'.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - containsAny: ["North Europe", "West Europe"], - field: "properties.impactedServices[*].ImpactedRegions[*].RegionName", - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActivityLogAlertRule(); - createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition(); - createOrUpdateAnActivityLogAlertRuleWithContainsAny(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsDeleteSample.ts deleted file mode 100644 index c75ec67ba460..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an Activity Log Alert rule. - * - * @summary Delete an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Delete.json - */ -async function deleteAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.delete( - resourceGroupName, - activityLogAlertName, - ); - console.log(result); -} - -async function main() { - deleteAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsGetSample.ts deleted file mode 100644 index 338adbd0edae..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get an Activity Log Alert rule. - * - * @summary Get an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Get.json - */ -async function getAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.get( - resourceGroupName, - activityLogAlertName, - ); - console.log(result); -} - -async function main() { - getAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListByResourceGroupSample.ts deleted file mode 100644 index c2fb3ccf061a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a resource group. - * - * @summary Get a list of all Activity Log Alert rules in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListByResourceGroupName.json - */ -async function listActivityLogAlerts() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActivityLogAlerts(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListBySubscriptionIdSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListBySubscriptionIdSample.ts deleted file mode 100644 index 173f96e013a3..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsListBySubscriptionIdSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a subscription. - * - * @summary Get a list of all Activity Log Alert rules in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListBySubscriptionId.json - */ -async function getListOfAllActivityLogAlertRulesUnderASubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getListOfAllActivityLogAlertRulesUnderASubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsUpdateSample.ts deleted file mode 100644 index 2e3c18d79144..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogAlertsUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRulePatchObject, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * - * @summary Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Update.json - */ -async function patchAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRulePatch: AlertRulePatchObject = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.update( - resourceGroupName, - activityLogAlertName, - activityLogAlertRulePatch, - ); - console.log(result); -} - -async function main() { - patchAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/activityLogsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/activityLogsListSample.ts deleted file mode 100644 index e60e9b888bec..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/activityLogsListSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ActivityLogsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json - */ -async function getActivityLogsWithFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json - */ -async function getActivityLogsWithFilterAndSelect() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: ActivityLogsListOptionalParams = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getActivityLogsWithFilter(); - getActivityLogsWithFilterAndSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsGetSample.ts deleted file mode 100644 index 313e0a278be7..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets an incident associated to an alert rule - * - * @summary Gets an incident associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json - */ -async function getASingleAlertRuleIncident() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const incidentName = "Website_started"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRuleIncidents.get( - resourceGroupName, - ruleName, - incidentName, - ); - console.log(result); -} - -async function main() { - getASingleAlertRuleIncident(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsListByAlertRuleSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsListByAlertRuleSample.ts deleted file mode 100644 index 726c6be15ae1..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRuleIncidentsListByAlertRuleSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of incidents associated to an alert rule - * - * @summary Gets a list of incidents associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json - */ -async function listAlertRuleIncidents() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRuleIncidents.listByAlertRule( - resourceGroupName, - ruleName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRuleIncidents(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesCreateOrUpdateSample.ts deleted file mode 100644 index de00048aa768..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesCreateOrUpdateSample.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRuleResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a classic metric alert rule. - * - * @summary Creates or updates a classic metric alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const parameters: AlertRuleResource = { - namePropertiesName: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - location: "West US", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesDeleteSample.ts deleted file mode 100644 index 6bd0b7f8913b..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesDeleteSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a classic metric alert rule - * - * @summary Deletes a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesGetSample.ts deleted file mode 100644 index 1eed90dfd819..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a classic metric alert rule - * - * @summary Gets a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json - */ -async function getAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesListByResourceGroupSample.ts deleted file mode 100644 index c76944b45eb0..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a resource group. - * - * @summary List the classic metric alert rules within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesListBySubscriptionSample.ts deleted file mode 100644 index 04a8b5846cd7..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a subscription. - * - * @summary List the classic metric alert rules within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/alertRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/alertRulesUpdateSample.ts deleted file mode 100644 index 3c57aa6f9457..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/alertRulesUpdateSample.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRuleResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json - */ -async function patchAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const alertRulesResource: AlertRuleResourcePatch = { - name: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - tags: { - $type: - "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.update( - resourceGroupName, - ruleName, - alertRulesResource, - ); - console.log(result); -} - -async function main() { - patchAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsCreateOrUpdateSample.ts deleted file mode 100644 index 2dd06ae8fa1a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AutoscaleSettingResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an autoscale setting. - * - * @summary Creates or updates an autoscale setting. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/createOrUpdateAutoscaleSetting.json - */ -async function createOrUpdateAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const parameters: AutoscaleSettingResource = { - enabled: true, - location: "West US", - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1", key2: "value2" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.createOrUpdate( - resourceGroupName, - autoscaleSettingName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsDeleteSample.ts deleted file mode 100644 index e90cd698fb7d..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes and autoscale setting - * - * @summary Deletes and autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/deleteAutoscaleSetting.json - */ -async function deleteAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.delete( - resourceGroupName, - autoscaleSettingName, - ); - console.log(result); -} - -async function main() { - deleteAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsGetSample.ts deleted file mode 100644 index e9b2ee193f89..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets an autoscale setting - * - * @summary Gets an autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/getAutoscaleSetting.json - */ -async function getAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.get( - resourceGroupName, - autoscaleSettingName, - ); - console.log(result); -} - -async function main() { - getAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListByResourceGroupSample.ts deleted file mode 100644 index 9261615d1ba1..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a resource group - * - * @summary Lists the autoscale settings for a resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSetting.json - */ -async function listAutoscaleSettings() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettings(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListBySubscriptionSample.ts deleted file mode 100644 index 726e2114046d..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a subscription - * - * @summary Lists the autoscale settings for a subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSettingBySubscription.json - */ -async function listAutoscaleSettingsBySubs() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettingsBySubs(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsUpdateSample.ts deleted file mode 100644 index db85f6be0964..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/autoscaleSettingsUpdateSample.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutoscaleSettingResourcePatch, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/patchAutoscaleSetting.json - */ -async function patchAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const autoscaleSettingResource: AutoscaleSettingResourcePatch = { - enabled: true, - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.update( - resourceGroupName, - autoscaleSettingName, - autoscaleSettingResource, - ); - console.log(result); -} - -async function main() { - patchAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesCreateSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesCreateSample.ts deleted file mode 100644 index 10781f2104ed..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorWorkspaceResource, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Monitor Workspace - * - * @summary Creates or updates an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json - */ -async function createOrUpdateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResource = { - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.create( - resourceGroupName, - azureMonitorWorkspaceName, - azureMonitorWorkspaceProperties, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesDeleteSample.ts deleted file mode 100644 index 1832e3f562b4..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an Azure Monitor Workspace - * - * @summary Deletes an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json - */ -async function deleteAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.beginDeleteAndWait( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - deleteAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesGetSample.ts deleted file mode 100644 index bdbdf74193da..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified Azure Monitor Workspace - * - * @summary Returns the specified Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json - */ -async function getAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.get( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - getAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.ts deleted file mode 100644 index 70e924f73993..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified resource group - * - * @summary Lists all Azure Monitor Workspaces in the specified resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json - */ -async function listAzureMonitorWorkspacesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.ts deleted file mode 100644 index c93180634493..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified subscription - * - * @summary Lists all Azure Monitor Workspaces in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json - */ -async function listAzureMonitorWorkspacesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesUpdateSample.ts deleted file mode 100644 index 2861ff3597fb..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/azureMonitorWorkspacesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorWorkspaceResourceForUpdate, - AzureMonitorWorkspacesUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of an Azure Monitor Workspace - * - * @summary Updates part of an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json - */ -async function updateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResourceForUpdate = - { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: AzureMonitorWorkspacesUpdateOptionalParams = { - azureMonitorWorkspaceProperties, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.update( - resourceGroupName, - azureMonitorWorkspaceName, - options, - ); - console.log(result); -} - -async function main() { - updateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/baselinesListSample.ts b/sdk/monitor/arm-monitor/samples-dev/baselinesListSample.ts deleted file mode 100644 index 8e54237d1005..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/baselinesListSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BaselinesListOptionalParams, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric baseline values for a resource**. - * - * @summary **Lists the metric baseline values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json - */ -async function getMetricBaselines() { - const resourceUri = - "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1"; - const timespan = "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z"; - const interval = "PT1H"; - const aggregation = "average"; - const sensitivities = "Low,Medium"; - const options: BaselinesListOptionalParams = { - timespan, - interval, - aggregation, - sensitivities, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.baselines.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricBaselines(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/createNotificationsAtTenantActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples-dev/createNotificationsAtTenantActionGroupResourceLevelSample.ts deleted file mode 100644 index 87c845b526dc..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/createNotificationsAtTenantActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TenantNotificationRequestBody, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/postTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function createNotificationsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationRequest: TenantNotificationRequestBody = { - alertType: "servicehealth", - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = - await client.beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsCreateSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsCreateSample.ts deleted file mode 100644 index aa9f8773b4e4..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsCreateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionEndpointResource, - DataCollectionEndpointsCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data collection endpoint. - * - * @summary Creates or updates a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsCreate.json - */ -async function createOrUpdateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body: DataCollectionEndpointResource = { - location: "eastus", - networkAcls: { publicNetworkAccess: "Enabled" }, - }; - const options: DataCollectionEndpointsCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.create( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsDeleteSample.ts deleted file mode 100644 index e17f075b9a23..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a data collection endpoint. - * - * @summary Deletes a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsDelete.json - */ -async function deleteDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.delete( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - deleteDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsGetSample.ts deleted file mode 100644 index 32fbd2cb592e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified data collection endpoint. - * - * @summary Returns the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsGet.json - */ -async function getDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.get( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - getDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListByResourceGroupSample.ts deleted file mode 100644 index 9b2a3a003c36..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified resource group. - * - * @summary Lists all data collection endpoints in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListByResourceGroup.json - */ -async function listDataCollectionEndpointsByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListBySubscriptionSample.ts deleted file mode 100644 index c37c502e0ae8..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified subscription - * - * @summary Lists all data collection endpoints in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListBySubscription.json - */ -async function listDataCollectionEndpointsBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsUpdateSample.ts deleted file mode 100644 index caec3152cac8..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionEndpointsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ResourceForUpdate, - DataCollectionEndpointsUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of a data collection endpoint. - * - * @summary Updates part of a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsUpdate.json - */ -async function updateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body: ResourceForUpdate = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: DataCollectionEndpointsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.update( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsCreateSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsCreateSample.ts deleted file mode 100644 index 5d9708ab1a78..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionRuleAssociationProxyOnlyResource, - DataCollectionRuleAssociationsCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an association. - * - * @summary Creates or updates an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsCreate.json - */ -async function createOrUpdateAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const body: DataCollectionRuleAssociationProxyOnlyResource = { - dataCollectionRuleId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule", - }; - const options: DataCollectionRuleAssociationsCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.create( - resourceUri, - associationName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsDeleteSample.ts deleted file mode 100644 index a4b2f25fae63..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsDeleteSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an association. - * - * @summary Deletes an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsDelete.json - */ -async function deleteAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.delete( - resourceUri, - associationName, - ); - console.log(result); -} - -async function main() { - deleteAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsGetSample.ts deleted file mode 100644 index 20b00406b89b..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified association. - * - * @summary Returns the specified association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsGet.json - */ -async function getAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.get( - resourceUri, - associationName, - ); - console.log(result); -} - -async function main() { - getAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts deleted file mode 100644 index 56f6836f8c99..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection endpoint. - * - * @summary Lists associations for the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json - */ -async function listAssociationsForSpecifiedDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myDataCollectionEndpointName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByDataCollectionEndpoint( - resourceGroupName, - dataCollectionEndpointName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByResourceSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByResourceSample.ts deleted file mode 100644 index fc961715ee80..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByResourceSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified resource. - * - * @summary Lists associations for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByResource.json - */ -async function listAssociationsForSpecifiedResource() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByResource( - resourceUri, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByRuleSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByRuleSample.ts deleted file mode 100644 index a5fc435a2756..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRuleAssociationsListByRuleSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection rule. - * - * @summary Lists associations for the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByRule.json - */ -async function listAssociationsForSpecifiedDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByRule( - resourceGroupName, - dataCollectionRuleName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesCreateSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesCreateSample.ts deleted file mode 100644 index d7bd41641348..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesCreateSample.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionRuleResource, - DataCollectionRulesCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data collection rule. - * - * @summary Creates or updates a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesCreate.json - */ -async function createOrUpdateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body: DataCollectionRuleResource = { - dataFlows: [ - { - destinations: ["centralWorkspace"], - streams: [ - "Microsoft-Perf", - "Microsoft-Syslog", - "Microsoft-WindowsEvent", - ], - }, - ], - dataSources: { - performanceCounters: [ - { - name: "cloudTeamCoreCounters", - counterSpecifiers: [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length", - ], - samplingFrequencyInSeconds: 15, - streams: ["Microsoft-Perf"], - }, - { - name: "appTeamExtraCounters", - counterSpecifiers: ["\\Process(_Total)\\Thread Count"], - samplingFrequencyInSeconds: 30, - streams: ["Microsoft-Perf"], - }, - ], - syslog: [ - { - name: "cronSyslog", - facilityNames: ["cron"], - logLevels: ["Debug", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - { - name: "syslogBase", - facilityNames: ["syslog"], - logLevels: ["Alert", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - ], - windowsEventLogs: [ - { - name: "cloudSecurityTeamEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: ["Security!"], - }, - { - name: "appTeam1AppEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]", - ], - }, - ], - }, - destinations: { - logAnalytics: [ - { - name: "centralWorkspace", - workspaceResourceId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/centralTeamWorkspace", - }, - ], - }, - location: "eastus", - }; - const options: DataCollectionRulesCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.create( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesDeleteSample.ts deleted file mode 100644 index 144b71046e72..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a data collection rule. - * - * @summary Deletes a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesDelete.json - */ -async function deleteDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.delete( - resourceGroupName, - dataCollectionRuleName, - ); - console.log(result); -} - -async function main() { - deleteDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesGetSample.ts deleted file mode 100644 index ab14ec95ceb1..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified data collection rule. - * - * @summary Returns the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesGet.json - */ -async function getDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.get( - resourceGroupName, - dataCollectionRuleName, - ); - console.log(result); -} - -async function main() { - getDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListByResourceGroupSample.ts deleted file mode 100644 index 90ada4b6922c..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified resource group. - * - * @summary Lists all data collection rules in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListByResourceGroup.json - */ -async function listDataCollectionRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListBySubscriptionSample.ts deleted file mode 100644 index dc2a3a90da04..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified subscription. - * - * @summary Lists all data collection rules in the specified subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListBySubscription.json - */ -async function listDataCollectionRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesUpdateSample.ts deleted file mode 100644 index dbf9a1df4b13..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/dataCollectionRulesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ResourceForUpdate, - DataCollectionRulesUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of a data collection rule. - * - * @summary Updates part of a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesUpdate.json - */ -async function updateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body: ResourceForUpdate = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: DataCollectionRulesUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.update( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryGetSample.ts deleted file mode 100644 index fd9f1273f88f..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryGetSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the diagnostic settings category for the specified resource. - * - * @summary Gets the diagnostic settings category for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "WorkflowRuntime"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettingsCategory.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryListSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryListSample.ts deleted file mode 100644 index 9a441e16a814..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCategoryListSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the diagnostic settings categories for the specified resource. - * - * @summary Lists the diagnostic settings categories for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategories.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettingsCategory.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCreateOrUpdateSample.ts deleted file mode 100644 index 8abbc6d55e51..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { DiagnosticSettingsResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSetting.json - */ -async function createsOrUpdatesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters: DiagnosticSettingsResource = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - categoryGroup: "allLogs", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate( - resourceUri, - name, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSettingCategory.json - */ -async function createsOrUpdatesTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters: DiagnosticSettingsResource = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - category: "WorkflowRuntime", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate( - resourceUri, - name, - parameters, - ); - console.log(result); -} - -async function main() { - createsOrUpdatesTheDiagnosticSetting(); - createsOrUpdatesTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsDeleteSample.ts deleted file mode 100644 index 7172f91eea87..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsDeleteSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes existing diagnostic settings for the specified resource. - * - * @summary Deletes existing diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/deleteDiagnosticSetting.json - */ -async function deletesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.delete(resourceUri, name); - console.log(result); -} - -async function main() { - deletesTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsGetSample.ts deleted file mode 100644 index 1d85c1acac71..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsGetSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSetting.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsListSample.ts deleted file mode 100644 index 0ce9d28caef0..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/diagnosticSettingsListSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettings.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/eventCategoriesListSample.ts b/sdk/monitor/arm-monitor/samples-dev/eventCategoriesListSample.ts deleted file mode 100644 index 079ab97d5e1e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/eventCategoriesListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * - * @summary Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json - */ -async function getEventCategories() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.eventCategories.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getEventCategories(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples-dev/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts deleted file mode 100644 index 388d9366e325..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = - await client.getTestNotificationsAtTenantActionGroupResourceLevel( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/logProfilesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/logProfilesCreateOrUpdateSample.ts deleted file mode 100644 index bad8f3081c8b..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/logProfilesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { LogProfileResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update a log profile in Azure Monitoring REST API. - * - * @summary Create or update a log profile in Azure Monitoring REST API. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json - */ -async function createOrUpdateALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const parameters: LogProfileResource = { - categories: ["Write", "Delete", "Action"], - location: "", - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.createOrUpdate( - logProfileName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/logProfilesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/logProfilesDeleteSample.ts deleted file mode 100644 index c264d326b6a3..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/logProfilesDeleteSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the log profile. - * - * @summary Deletes the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json - */ -async function deleteLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const logProfileName = "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.delete(logProfileName); - console.log(result); -} - -async function main() { - deleteLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/logProfilesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/logProfilesGetSample.ts deleted file mode 100644 index 9e2f9f31105a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/logProfilesGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the log profile. - * - * @summary Gets the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json - */ -async function getLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "default"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.get(logProfileName); - console.log(result); -} - -async function main() { - getLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/logProfilesListSample.ts b/sdk/monitor/arm-monitor/samples-dev/logProfilesListSample.ts deleted file mode 100644 index 717850be0c5a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/logProfilesListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the log profiles. - * - * @summary List the log profiles. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json - */ -async function listLogProfiles() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listLogProfiles(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/logProfilesUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/logProfilesUpdateSample.ts deleted file mode 100644 index 355e5ada2ef5..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/logProfilesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { LogProfileResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json - */ -async function patchALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const logProfilesResource: LogProfileResourcePatch = { - categories: ["Write", "Delete", "Action"], - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.update( - logProfileName, - logProfilesResource, - ); - console.log(result); -} - -async function main() { - patchALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsCreateOrUpdateSample.ts deleted file mode 100644 index 947c9f1c71f8..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsCreateOrUpdateSample.ts +++ /dev/null @@ -1,504 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricAlertResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json - */ -async function createOrUpdateADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json - */ -async function createOrUpdateADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - ignoreDataBefore: new Date("2019-04-04T21:00:00.000Z"), - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateWebTestMetricAlert.json - */ -async function createOrUpdateAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const parameters: MetricAlertResource = { - description: - 'Automatically created alert rule for availability test "component-example" a', - actions: [], - criteria: { - componentId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - failedLocationCount: 2, - odataType: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", - webTestId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - ], - severity: 4, - tags: { - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/components/webtestNameExample": - "Resource", - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/webtests/componentExample": - "Resource", - }, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json - */ -async function createOrUpdateAnAlertRuleForMultipleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json - */ -async function createOrUpdateAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json - */ -async function createOrUpdateAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json - */ -async function createOrUpdateAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertWithDimensions.json - */ -async function createOrUpdateAnAlertRulesWithDimensions() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleDimensions"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "Metric1", - criterionType: "StaticThresholdCriterion", - dimensions: [ - { name: "ActivityName", operator: "Include", values: ["*"] }, - { name: "StatusCode", operator: "Include", values: ["200"] }, - ], - metricName: "Availability", - metricNamespace: "Microsoft.KeyVault/vaults", - operator: "GreaterThan", - threshold: 55, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1H", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource", - ], - severity: 3, - tags: {}, - windowSize: "P1D", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateADynamicAlertRuleForMultipleResources(); - createOrUpdateADynamicAlertRuleForSingleResource(); - createOrUpdateAWebTestAlertRule(); - createOrUpdateAnAlertRuleForMultipleResource(); - createOrUpdateAnAlertRuleForSingleResource(); - createOrUpdateAnAlertRuleOnResourceGroupS(); - createOrUpdateAnAlertRuleOnSubscription(); - createOrUpdateAnAlertRulesWithDimensions(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsDeleteSample.ts deleted file mode 100644 index 30628e3520d6..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsDeleteSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an alert rule definition. - * - * @summary Delete an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsGetSample.ts deleted file mode 100644 index c1b733567e66..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsGetSample.ts +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json - */ -async function getADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json - */ -async function getADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getWebTestMetricAlert.json - */ -async function getAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json - */ -async function getAnAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json - */ -async function getAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json - */ -async function getAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json - */ -async function getAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getADynamicAlertRuleForMultipleResources(); - getADynamicAlertRuleForSingleResource(); - getAWebTestAlertRule(); - getAnAlertRuleForMultipleResources(); - getAnAlertRuleForSingleResource(); - getAnAlertRuleOnResourceGroupS(); - getAnAlertRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsListByResourceGroupSample.ts deleted file mode 100644 index 7ad857f8bb94..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsListByResourceGroupSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a resource group. - * - * @summary Retrieve alert rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsListBySubscriptionSample.ts deleted file mode 100644 index 8e5e162a5570..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a subscription. - * - * @summary Retrieve alert rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListByNameSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListByNameSample.ts deleted file mode 100644 index d5d248b62b58..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListByNameSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "009f6022-67ec-423e-9aa7-691182870588"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "EastUs"; - const ruleName = "custom1"; - const statusName = - "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.listByName( - resourceGroupName, - ruleName, - statusName, - ); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListSample.ts deleted file mode 100644 index cd0b5a85286a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsStatusListSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.list( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricAlertsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricAlertsUpdateSample.ts deleted file mode 100644 index de7466ba7931..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricAlertsUpdateSample.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricAlertResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update an metric alert definition. - * - * @summary Update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResourcePatch = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.update( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListAtSubscriptionScopeSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListAtSubscriptionScopeSample.ts deleted file mode 100644 index b4f4df36e829..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListAtSubscriptionScopeSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricDefinitionsListAtSubscriptionScopeOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the subscription. - * - * @summary Lists the metric definitions for the subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricDefinitions.json - */ -async function getSubscriptionLevelMetricDefinitionsWithoutFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricDefinitionsListAtSubscriptionScopeOptionalParams = { - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricDefinitions.listAtSubscriptionScope( - region, - options, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSubscriptionLevelMetricDefinitionsWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListSample.ts deleted file mode 100644 index 7928720f9ce0..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricDefinitionsListSample.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricDefinitionsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsApplicationInsights.json - */ -async function getApplicationInsightsMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions"; - const metricnamespace = "microsoft.insights/components"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitions.json - */ -async function getMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions"; - const metricnamespace = "Microsoft.Web/sites"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsMetricClass.json - */ -async function getStorageCacheMetricDefinitionsWithMetricClass() { - const resourceUri = - "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache"; - const metricnamespace = "microsoft.storagecache/caches"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getApplicationInsightsMetricDefinitionsWithoutFilter(); - getMetricDefinitionsWithoutFilter(); - getStorageCacheMetricDefinitionsWithMetricClass(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricNamespacesListSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricNamespacesListSample.ts deleted file mode 100644 index 7abb83ae8617..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricNamespacesListSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricNamespacesListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric namespaces for the resource. - * - * @summary Lists the metric namespaces for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricNamespaces.json - */ -async function getMetricNamespacesWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill"; - const startTime = "2020-08-31T15:53:00Z"; - const options: MetricNamespacesListOptionalParams = { startTime }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricNamespaces.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricNamespacesWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopePostSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopePostSample.ts deleted file mode 100644 index 433c516655ce..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopePostSample.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricsListAtSubscriptionScopePostOptionalParams, - SubscriptionScopeMetricsRequestBodyParameters, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function postRequestForSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/PostMultiResourceMetricBody.json - */ -async function postRequestForSubscriptionLevelMetricDataUsingBodyParams() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const body: SubscriptionScopeMetricsRequestBodyParameters = { - aggregation: "count", - autoAdjustTimegrain: true, - filter: "LUN eq '0' and Microsoft.ResourceId eq '*'", - interval: "PT6H", - metricNames: "Data Disk Max Burst IOPS", - metricNamespace: "microsoft.compute/virtualmachines", - orderBy: "count desc", - rollUpBy: "LUN", - timespan: "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z", - top: 10, - validateDimensions: false, - }; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function postRequestForSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -async function main() { - postRequestForSubscriptionLevelMetricData(); - postRequestForSubscriptionLevelMetricDataUsingBodyParams(); - postRequestForSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopeSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopeSample.ts deleted file mode 100644 index a89632386efc..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricsListAtSubscriptionScopeSample.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricsListAtSubscriptionScopeOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function getSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListAtSubscriptionScopeOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function getSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricsListAtSubscriptionScopeOptionalParams = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope( - region, - options, - ); - console.log(result); -} - -async function main() { - getSubscriptionLevelMetricData(); - getSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/metricsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/metricsListSample.ts deleted file mode 100644 index 2d67205afcbb..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/metricsListSample.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricsListOptionalParams, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetric.json - */ -async function getMetricForData() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2021-04-20T09:00:00.000Z/2021-04-20T14:00:00.000Z"; - const interval = "PT6H"; - const metricnames = "BlobCount,BlobCapacity"; - const aggregation = "average,minimum,maximum"; - const top = 5; - const orderby = "average asc"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricMetadata.json - */ -async function getMetricForMetadata() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const options: MetricsListOptionalParams = { - timespan, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricError.json - */ -async function getMetricWithError() { - const resourceUri = - "subscriptions/ac41e21f-afd6-4a79-8070-f01eba278f97/resourceGroups/todking/providers/Microsoft.DocumentDb/databaseAccounts/tk-cosmos-mongo"; - const timespan = "2021-06-07T21:51:00Z/2021-06-08T01:51:00Z"; - const interval = "FULL"; - const metricnames = "MongoRequestsCount,MongoRequests"; - const aggregation = "average"; - const metricnamespace = "microsoft.documentdb/databaseaccounts"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -async function main() { - getMetricForData(); - getMetricForMetadata(); - getMetricWithError(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/monitorOperationsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/monitorOperationsListSample.ts deleted file mode 100644 index 045f032c8936..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/monitorOperationsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists available Operations for this Resource Provider - * - * @summary Lists available Operations for this Resource Provider - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json - */ -async function getOperationsList() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.monitorOperations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getOperationsList(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/operationsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/operationsListSample.ts deleted file mode 100644 index b286ddbb34f4..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/operationsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all of the available operations from Microsoft.Insights provider. - * - * @summary Lists all of the available operations from Microsoft.Insights provider. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json - */ -async function getAListOfOperationsForAResourceProvider() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.operations.list(); - console.log(result); -} - -async function main() { - getAListOfOperationsForAResourceProvider(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/predictiveMetricGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/predictiveMetricGetSample.ts deleted file mode 100644 index 9a7c480f7915..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/predictiveMetricGetSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to get predictive autoscale metric future data - * - * @summary get predictive autoscale metric future data - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/GetPredictiveMetric.json - */ -async function getMetricForData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myRG"; - const autoscaleSettingName = "vmss1-Autoscale-775"; - const timespan = "2021-10-14T22:00:00.000Z/2021-10-16T22:00:00.000Z"; - const interval = "PT1H"; - const metricNamespace = "Microsoft.Compute/virtualMachineScaleSets"; - const metricName = "PercentageCPU"; - const aggregation = "Total"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.predictiveMetric.get( - resourceGroupName, - autoscaleSettingName, - timespan, - interval, - metricNamespace, - metricName, - aggregation, - ); - console.log(result); -} - -async function main() { - getMetricForData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts deleted file mode 100644 index f12ecfd0e1a3..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PrivateEndpointConnectionAutoGenerated, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json - */ -async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const parameters: PrivateEndpointConnectionAutoGenerated = { - privateLinkServiceConnectionState: { - description: "Approved by johndoe@contoso.com", - status: "Approved", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.privateEndpointConnections.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - parameters, - ); - console.log(result); -} - -async function main() { - approveOrRejectAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsDeleteSample.ts deleted file mode 100644 index b2d510a0dc74..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json - */ -async function deletesAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - deletesAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsGetSample.ts deleted file mode 100644 index a5053be5921c..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a private endpoint connection. - * - * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.get( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts deleted file mode 100644 index 82e26845e8a5..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateEndpointConnectionsListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json - */ -async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesGetSample.ts deleted file mode 100644 index da3d37e7be57..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const groupName = "azuremonitor"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.get( - resourceGroupName, - scopeName, - groupName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts deleted file mode 100644 index 41c6e17e0eb0..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkResourcesListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopeOperationStatusGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopeOperationStatusGetSample.ts deleted file mode 100644 index 1cafd43a5a9e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopeOperationStatusGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the status of an azure asynchronous operation associated with a private link scope operation. - * - * @summary Get the status of an azure asynchronous operation associated with a private link scope operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json - */ -async function getSpecificOperationStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "613192d7-503f-477a-9cfe-4efc3ee2bd60"; - const asyncOperationId = "713192d7-503f-477a-9cfe-4efc3ee2bd11"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopeOperationStatus.get( - asyncOperationId, - resourceGroupName, - ); - console.log(result); -} - -async function main() { - getSpecificOperationStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.ts deleted file mode 100644 index eaea51c8f729..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ScopedResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json - */ -async function updateAScopedResourceInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const parameters: ScopedResource = { - linkedResourceId: - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.privateLinkScopedResources.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - name, - parameters, - ); - console.log(result); -} - -async function main() { - updateAScopedResourceInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesDeleteSample.ts deleted file mode 100644 index f4935412308e..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json - */ -async function deletesAScopedResourceWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.beginDeleteAndWait( - resourceGroupName, - scopeName, - name, - ); - console.log(result); -} - -async function main() { - deletesAScopedResourceWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesGetSample.ts deleted file mode 100644 index 4355ecc90325..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a scoped resource in a private link scope. - * - * @summary Gets a scoped resource in a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json - */ -async function getsPrivateLinkScopedResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.get( - resourceGroupName, - scopeName, - name, - ); - console.log(result); -} - -async function main() { - getsPrivateLinkScopedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts deleted file mode 100644 index e7ec7a6a1b3b..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json - */ -async function getsListOfScopedResourcesInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopedResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsListOfScopedResourcesInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesCreateOrUpdateSample.ts deleted file mode 100644 index 8d964871e0cb..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesCreateOrUpdateSample.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorPrivateLinkScope, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json - */ -async function privateLinkScopeCreate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json - */ -async function privateLinkScopeUpdate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - tags: { tag1: "Value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -async function main() { - privateLinkScopeCreate(); - privateLinkScopeUpdate(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesDeleteSample.ts deleted file mode 100644 index 93e9f346b2cd..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a Azure Monitor PrivateLinkScope. - * - * @summary Deletes a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json - */ -async function privateLinkScopesDelete() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.beginDeleteAndWait( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - privateLinkScopesDelete(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesGetSample.ts deleted file mode 100644 index beda48c7d9e6..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a Azure Monitor PrivateLinkScope. - * - * @summary Returns a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json - */ -async function privateLinkScopeGet() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.get( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - privateLinkScopeGet(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListByResourceGroupSample.ts deleted file mode 100644 index eb1272b7f136..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * - * @summary Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json - */ -async function privateLinkScopeListByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopeListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListSample.ts deleted file mode 100644 index 47d4083d2f79..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * - * @summary Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json - */ -async function privateLinkScopesListJson() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopesListJson(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesUpdateTagsSample.ts b/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesUpdateTagsSample.ts deleted file mode 100644 index d819b01691db..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/privateLinkScopesUpdateTagsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { TagsResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json - */ -async function privateLinkScopeUpdateTagsOnly() { - const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const privateLinkScopeTags: TagsResource = { - tags: { tag1: "Value1", tag2: "Value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.updateTags( - resourceGroupName, - scopeName, - privateLinkScopeTags, - ); - console.log(result); -} - -async function main() { - privateLinkScopeUpdateTagsOnly(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesCreateOrUpdateSample.ts deleted file mode 100644 index 42f16dfab229..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesCreateOrUpdateSample.ts +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ScheduledQueryRuleResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters: ScheduledQueryRuleResource = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1", - ], - severity: 4, - skipQueryValidation: true, - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleResourceGroup.json - */ -async function createOrUpdateAScheduledQueryRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters: ScheduledQueryRuleResource = { - description: "Health check rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - operator: "GreaterThan", - query: "Heartbeat", - threshold: 360, - timeAggregation: "Count", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1", - ], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleSubscription.json - */ -async function createOrUpdateAScheduledQueryRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters: ScheduledQueryRuleResource = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRuleForSingleResource(); - createOrUpdateAScheduledQueryRuleOnResourceGroupS(); - createOrUpdateAScheduledQueryRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesDeleteSample.ts deleted file mode 100644 index ad2dae6a2220..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a scheduled query rule. - * - * @summary Deletes a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/deleteScheduledQueryRule.json - */ -async function deleteAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.delete( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - deleteAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesGetSample.ts deleted file mode 100644 index b4ba0312261a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an scheduled query rule definition. - * - * @summary Retrieve an scheduled query rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/getScheduledQueryRule.json - */ -async function getAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.get( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - getAScheduledQueryRuleForSingleResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListByResourceGroupSample.ts deleted file mode 100644 index 1889afaf05b9..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve scheduled query rule definitions in a resource group. - * - * @summary Retrieve scheduled query rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesByResourceGroup.json - */ -async function listScheduledQueryRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListBySubscriptionSample.ts deleted file mode 100644 index a523211e0f3a..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve a scheduled query rule definitions in a subscription. - * - * @summary Retrieve a scheduled query rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesBySubscription.json - */ -async function listScheduledQueryRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesUpdateSample.ts deleted file mode 100644 index 1ce4b56df4c7..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/scheduledQueryRulesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ScheduledQueryRuleResourcePatch, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a scheduled query rule. - * - * @summary Update a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/patchScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters: ScheduledQueryRuleResourcePatch = { enabled: false }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.update( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsCreateOrUpdateSample.ts deleted file mode 100644 index 5f5ce86ec8ae..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { TenantActionGroupResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new tenant action group or update an existing one. - * - * @summary Create a new tenant action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/createOrUpdateTenantActionGroup.json - */ -async function createOrUpdateATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const actionGroup: TenantActionGroupResource = { - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - groupShortName: "sample", - location: "Global", - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "2062022299", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "2062022299" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.createOrUpdate( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsDeleteSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsDeleteSample.ts deleted file mode 100644 index ea6270c509a8..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsDeleteSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a tenant action group. - * - * @summary Delete a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/deleteTenantActionGroup.json - */ -async function deleteATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.delete( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - deleteATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsGetSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsGetSample.ts deleted file mode 100644 index c81aee4afa46..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsGetSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a tenant action group. - * - * @summary Get a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTenantActionGroup.json - */ -async function getAnActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.get( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsListByManagementGroupIdSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsListByManagementGroupIdSample.ts deleted file mode 100644 index 581bc4dde681..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsListByManagementGroupIdSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all tenant action groups in a management group. - * - * @summary Get a list of all tenant action groups in a management group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/listTenantActionGroups.json - */ -async function listTenantActionGroupsAtManagementGroupLevel() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActionGroups.listByManagementGroupId( - managementGroupId, - xMsClientTenantId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTenantActionGroupsAtManagementGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsUpdateSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsUpdateSample.ts deleted file mode 100644 index 32bd1c1c97bd..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActionGroupsUpdateSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ActionGroupPatchBodyAutoGenerated, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/patchTenantActionGroup.json - */ -async function patchATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupPatch: ActionGroupPatchBodyAutoGenerated = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.update( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - tenantActionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/tenantActivityLogsListSample.ts b/sdk/monitor/arm-monitor/samples-dev/tenantActivityLogsListSample.ts deleted file mode 100644 index 90a9af196975..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/tenantActivityLogsListSample.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TenantActivityLogsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json - */ -async function getTenantActivityLogsWithFilter() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const options: TenantActivityLogsListOptionalParams = { filter }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json - */ -async function getTenantActivityLogsWithFilterAndSelect() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: TenantActivityLogsListOptionalParams = { filter, select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json - */ -async function getTenantActivityLogsWithSelect() { - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: TenantActivityLogsListOptionalParams = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json - */ -async function getTenantActivityLogsWithoutFilterOrSelect() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getTenantActivityLogsWithFilter(); - getTenantActivityLogsWithFilterAndSelect(); - getTenantActivityLogsWithSelect(); - getTenantActivityLogsWithoutFilterOrSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples-dev/vmInsightsGetOnboardingStatusSample.ts b/sdk/monitor/arm-monitor/samples-dev/vmInsightsGetOnboardingStatusSample.ts deleted file mode 100644 index 235bc2b84fc7..000000000000 --- a/sdk/monitor/arm-monitor/samples-dev/vmInsightsGetOnboardingStatusSample.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json - */ -async function getStatusForAVMScaleSetThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json - */ -async function getStatusForAVMThatHasNotYetReportedData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json - */ -async function getStatusForAVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json - */ -async function getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json - */ -async function getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -async function main() { - getStatusForAVMScaleSetThatIsActivelyReportingData(); - getStatusForAVMThatHasNotYetReportedData(); - getStatusForAVMThatIsActivelyReportingData(); - getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData(); - getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/README.md b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/README.md deleted file mode 100644 index b70983c77d46..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/README.md +++ /dev/null @@ -1,280 +0,0 @@ -# client library samples for JavaScript (Beta) - -These sample programs show how to use the JavaScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js][actiongroupscreatenotificationsatactiongroupresourcelevelsample] | Send test notifications to a set of provided receivers x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/postTestNotificationsAtActionGroupResourceLevel.json | -| [actionGroupsCreateOrUpdateSample.js][actiongroupscreateorupdatesample] | Create a new action group or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/createOrUpdateActionGroup.json | -| [actionGroupsDeleteSample.js][actiongroupsdeletesample] | Delete an action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/deleteActionGroup.json | -| [actionGroupsEnableReceiverSample.js][actiongroupsenablereceiversample] | Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/enableReceiver.json | -| [actionGroupsGetSample.js][actiongroupsgetsample] | Get an action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getActionGroup.json | -| [actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js][actiongroupsgettestnotificationsatactiongroupresourcelevelsample] | Get the test notifications by the notification id x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getTestNotificationsAtActionGroupResourceLevel.json | -| [actionGroupsListByResourceGroupSample.js][actiongroupslistbyresourcegroupsample] | Get a list of all action groups in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json | -| [actionGroupsListBySubscriptionIdSample.js][actiongroupslistbysubscriptionidsample] | Get a list of all action groups in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json | -| [actionGroupsUpdateSample.js][actiongroupsupdatesample] | Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/patchActionGroup.json | -| [activityLogAlertsCreateOrUpdateSample.js][activitylogalertscreateorupdatesample] | Create a new Activity Log Alert rule or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdate.json | -| [activityLogAlertsDeleteSample.js][activitylogalertsdeletesample] | Delete an Activity Log Alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Delete.json | -| [activityLogAlertsGetSample.js][activitylogalertsgetsample] | Get an Activity Log Alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Get.json | -| [activityLogAlertsListByResourceGroupSample.js][activitylogalertslistbyresourcegroupsample] | Get a list of all Activity Log Alert rules in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListByResourceGroupName.json | -| [activityLogAlertsListBySubscriptionIdSample.js][activitylogalertslistbysubscriptionidsample] | Get a list of all Activity Log Alert rules in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListBySubscriptionId.json | -| [activityLogAlertsUpdateSample.js][activitylogalertsupdatesample] | Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Update.json | -| [activityLogsListSample.js][activitylogslistsample] | Provides the list of records from the activity logs. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json | -| [alertRuleIncidentsGetSample.js][alertruleincidentsgetsample] | Gets an incident associated to an alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json | -| [alertRuleIncidentsListByAlertRuleSample.js][alertruleincidentslistbyalertrulesample] | Gets a list of incidents associated to an alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json | -| [alertRulesCreateOrUpdateSample.js][alertrulescreateorupdatesample] | Creates or updates a classic metric alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json | -| [alertRulesDeleteSample.js][alertrulesdeletesample] | Deletes a classic metric alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json | -| [alertRulesGetSample.js][alertrulesgetsample] | Gets a classic metric alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json | -| [alertRulesListByResourceGroupSample.js][alertruleslistbyresourcegroupsample] | List the classic metric alert rules within a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json | -| [alertRulesListBySubscriptionSample.js][alertruleslistbysubscriptionsample] | List the classic metric alert rules within a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json | -| [alertRulesUpdateSample.js][alertrulesupdatesample] | Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json | -| [autoscaleSettingsCreateOrUpdateSample.js][autoscalesettingscreateorupdatesample] | Creates or updates an autoscale setting. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/createOrUpdateAutoscaleSetting.json | -| [autoscaleSettingsDeleteSample.js][autoscalesettingsdeletesample] | Deletes and autoscale setting x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/deleteAutoscaleSetting.json | -| [autoscaleSettingsGetSample.js][autoscalesettingsgetsample] | Gets an autoscale setting x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/getAutoscaleSetting.json | -| [autoscaleSettingsListByResourceGroupSample.js][autoscalesettingslistbyresourcegroupsample] | Lists the autoscale settings for a resource group x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSetting.json | -| [autoscaleSettingsListBySubscriptionSample.js][autoscalesettingslistbysubscriptionsample] | Lists the autoscale settings for a subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSettingBySubscription.json | -| [autoscaleSettingsUpdateSample.js][autoscalesettingsupdatesample] | Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/patchAutoscaleSetting.json | -| [azureMonitorWorkspacesCreateSample.js][azuremonitorworkspacescreatesample] | Creates or updates an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json | -| [azureMonitorWorkspacesDeleteSample.js][azuremonitorworkspacesdeletesample] | Deletes an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json | -| [azureMonitorWorkspacesGetSample.js][azuremonitorworkspacesgetsample] | Returns the specified Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json | -| [azureMonitorWorkspacesListByResourceGroupSample.js][azuremonitorworkspaceslistbyresourcegroupsample] | Lists all Azure Monitor Workspaces in the specified resource group x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json | -| [azureMonitorWorkspacesListBySubscriptionSample.js][azuremonitorworkspaceslistbysubscriptionsample] | Lists all Azure Monitor Workspaces in the specified subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json | -| [azureMonitorWorkspacesUpdateSample.js][azuremonitorworkspacesupdatesample] | Updates part of an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json | -| [baselinesListSample.js][baselineslistsample] | **Lists the metric baseline values for a resource**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json | -| [createNotificationsAtTenantActionGroupResourceLevelSample.js][createnotificationsattenantactiongroupresourcelevelsample] | Send test notifications to a set of provided receivers x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/postTestNotificationsAtTenantActionGroupResourceLevel.json | -| [dataCollectionEndpointsCreateSample.js][datacollectionendpointscreatesample] | Creates or updates a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsCreate.json | -| [dataCollectionEndpointsDeleteSample.js][datacollectionendpointsdeletesample] | Deletes a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsDelete.json | -| [dataCollectionEndpointsGetSample.js][datacollectionendpointsgetsample] | Returns the specified data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsGet.json | -| [dataCollectionEndpointsListByResourceGroupSample.js][datacollectionendpointslistbyresourcegroupsample] | Lists all data collection endpoints in the specified resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListByResourceGroup.json | -| [dataCollectionEndpointsListBySubscriptionSample.js][datacollectionendpointslistbysubscriptionsample] | Lists all data collection endpoints in the specified subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListBySubscription.json | -| [dataCollectionEndpointsUpdateSample.js][datacollectionendpointsupdatesample] | Updates part of a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsUpdate.json | -| [dataCollectionRuleAssociationsCreateSample.js][datacollectionruleassociationscreatesample] | Creates or updates an association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsCreate.json | -| [dataCollectionRuleAssociationsDeleteSample.js][datacollectionruleassociationsdeletesample] | Deletes an association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsDelete.json | -| [dataCollectionRuleAssociationsGetSample.js][datacollectionruleassociationsgetsample] | Returns the specified association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsGet.json | -| [dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js][datacollectionruleassociationslistbydatacollectionendpointsample] | Lists associations for the specified data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json | -| [dataCollectionRuleAssociationsListByResourceSample.js][datacollectionruleassociationslistbyresourcesample] | Lists associations for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByResource.json | -| [dataCollectionRuleAssociationsListByRuleSample.js][datacollectionruleassociationslistbyrulesample] | Lists associations for the specified data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByRule.json | -| [dataCollectionRulesCreateSample.js][datacollectionrulescreatesample] | Creates or updates a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesCreate.json | -| [dataCollectionRulesDeleteSample.js][datacollectionrulesdeletesample] | Deletes a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesDelete.json | -| [dataCollectionRulesGetSample.js][datacollectionrulesgetsample] | Returns the specified data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesGet.json | -| [dataCollectionRulesListByResourceGroupSample.js][datacollectionruleslistbyresourcegroupsample] | Lists all data collection rules in the specified resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListByResourceGroup.json | -| [dataCollectionRulesListBySubscriptionSample.js][datacollectionruleslistbysubscriptionsample] | Lists all data collection rules in the specified subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListBySubscription.json | -| [dataCollectionRulesUpdateSample.js][datacollectionrulesupdatesample] | Updates part of a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesUpdate.json | -| [diagnosticSettingsCategoryGetSample.js][diagnosticsettingscategorygetsample] | Gets the diagnostic settings category for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingsCategory.json | -| [diagnosticSettingsCategoryListSample.js][diagnosticsettingscategorylistsample] | Lists the diagnostic settings categories for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategories.json | -| [diagnosticSettingsCreateOrUpdateSample.js][diagnosticsettingscreateorupdatesample] | Creates or updates diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSetting.json | -| [diagnosticSettingsDeleteSample.js][diagnosticsettingsdeletesample] | Deletes existing diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/deleteDiagnosticSetting.json | -| [diagnosticSettingsGetSample.js][diagnosticsettingsgetsample] | Gets the active diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSetting.json | -| [diagnosticSettingsListSample.js][diagnosticsettingslistsample] | Gets the active diagnostic settings list for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettings.json | -| [eventCategoriesListSample.js][eventcategorieslistsample] | Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json | -| [getTestNotificationsAtTenantActionGroupResourceLevelSample.js][gettestnotificationsattenantactiongroupresourcelevelsample] | Get the test notifications by the notification id x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTestNotificationsAtTenantActionGroupResourceLevel.json | -| [logProfilesCreateOrUpdateSample.js][logprofilescreateorupdatesample] | Create or update a log profile in Azure Monitoring REST API. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json | -| [logProfilesDeleteSample.js][logprofilesdeletesample] | Deletes the log profile. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json | -| [logProfilesGetSample.js][logprofilesgetsample] | Gets the log profile. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json | -| [logProfilesListSample.js][logprofileslistsample] | List the log profiles. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json | -| [logProfilesUpdateSample.js][logprofilesupdatesample] | Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json | -| [metricAlertsCreateOrUpdateSample.js][metricalertscreateorupdatesample] | Create or update an metric alert definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json | -| [metricAlertsDeleteSample.js][metricalertsdeletesample] | Delete an alert rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json | -| [metricAlertsGetSample.js][metricalertsgetsample] | Retrieve an alert rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json | -| [metricAlertsListByResourceGroupSample.js][metricalertslistbyresourcegroupsample] | Retrieve alert rule definitions in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json | -| [metricAlertsListBySubscriptionSample.js][metricalertslistbysubscriptionsample] | Retrieve alert rule definitions in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json | -| [metricAlertsStatusListByNameSample.js][metricalertsstatuslistbynamesample] | Retrieve an alert rule status. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json | -| [metricAlertsStatusListSample.js][metricalertsstatuslistsample] | Retrieve an alert rule status. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json | -| [metricAlertsUpdateSample.js][metricalertsupdatesample] | Update an metric alert definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json | -| [metricDefinitionsListAtSubscriptionScopeSample.js][metricdefinitionslistatsubscriptionscopesample] | Lists the metric definitions for the subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricDefinitions.json | -| [metricDefinitionsListSample.js][metricdefinitionslistsample] | Lists the metric definitions for the resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsApplicationInsights.json | -| [metricNamespacesListSample.js][metricnamespaceslistsample] | Lists the metric namespaces for the resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricNamespaces.json | -| [metricsListAtSubscriptionScopePostSample.js][metricslistatsubscriptionscopepostsample] | **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json | -| [metricsListAtSubscriptionScopeSample.js][metricslistatsubscriptionscopesample] | **Lists the metric data for a subscription**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json | -| [metricsListSample.js][metricslistsample] | **Lists the metric values for a resource**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetric.json | -| [monitorOperationsListSample.js][monitoroperationslistsample] | Lists available Operations for this Resource Provider x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json | -| [operationsListSample.js][operationslistsample] | Lists all of the available operations from Microsoft.Insights provider. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json | -| [predictiveMetricGetSample.js][predictivemetricgetsample] | get predictive autoscale metric future data x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/GetPredictiveMetric.json | -| [privateEndpointConnectionsCreateOrUpdateSample.js][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json | -| [privateEndpointConnectionsDeleteSample.js][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.js][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListByPrivateLinkScopeSample.js][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json | -| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json | -| [privateLinkResourcesListByPrivateLinkScopeSample.js][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json | -| [privateLinkScopeOperationStatusGetSample.js][privatelinkscopeoperationstatusgetsample] | Get the status of an azure asynchronous operation associated with a private link scope operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json | -| [privateLinkScopedResourcesCreateOrUpdateSample.js][privatelinkscopedresourcescreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json | -| [privateLinkScopedResourcesDeleteSample.js][privatelinkscopedresourcesdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json | -| [privateLinkScopedResourcesGetSample.js][privatelinkscopedresourcesgetsample] | Gets a scoped resource in a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json | -| [privateLinkScopedResourcesListByPrivateLinkScopeSample.js][privatelinkscopedresourceslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json | -| [privateLinkScopesCreateOrUpdateSample.js][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json | -| [privateLinkScopesDeleteSample.js][privatelinkscopesdeletesample] | Deletes a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json | -| [privateLinkScopesGetSample.js][privatelinkscopesgetsample] | Returns a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json | -| [privateLinkScopesListByResourceGroupSample.js][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Monitor PrivateLinkScopes within a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json | -| [privateLinkScopesListSample.js][privatelinkscopeslistsample] | Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json | -| [privateLinkScopesUpdateTagsSample.js][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json | -| [scheduledQueryRulesCreateOrUpdateSample.js][scheduledqueryrulescreateorupdatesample] | Creates or updates a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRule.json | -| [scheduledQueryRulesDeleteSample.js][scheduledqueryrulesdeletesample] | Deletes a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/deleteScheduledQueryRule.json | -| [scheduledQueryRulesGetSample.js][scheduledqueryrulesgetsample] | Retrieve an scheduled query rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/getScheduledQueryRule.json | -| [scheduledQueryRulesListByResourceGroupSample.js][scheduledqueryruleslistbyresourcegroupsample] | Retrieve scheduled query rule definitions in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesByResourceGroup.json | -| [scheduledQueryRulesListBySubscriptionSample.js][scheduledqueryruleslistbysubscriptionsample] | Retrieve a scheduled query rule definitions in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesBySubscription.json | -| [scheduledQueryRulesUpdateSample.js][scheduledqueryrulesupdatesample] | Update a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/patchScheduledQueryRule.json | -| [tenantActionGroupsCreateOrUpdateSample.js][tenantactiongroupscreateorupdatesample] | Create a new tenant action group or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/createOrUpdateTenantActionGroup.json | -| [tenantActionGroupsDeleteSample.js][tenantactiongroupsdeletesample] | Delete a tenant action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/deleteTenantActionGroup.json | -| [tenantActionGroupsGetSample.js][tenantactiongroupsgetsample] | Get a tenant action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTenantActionGroup.json | -| [tenantActionGroupsListByManagementGroupIdSample.js][tenantactiongroupslistbymanagementgroupidsample] | Get a list of all tenant action groups in a management group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/listTenantActionGroups.json | -| [tenantActionGroupsUpdateSample.js][tenantactiongroupsupdatesample] | Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/patchTenantActionGroup.json | -| [tenantActivityLogsListSample.js][tenantactivitylogslistsample] | Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does _not_ retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json | -| [vmInsightsGetOnboardingStatusSample.js][vminsightsgetonboardingstatussample] | Retrieves the VM Insights onboarding status for the specified resource or resource scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -3. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MONITOR_SUBSCRIPTION_ID="" MONITOR_RESOURCE_GROUP="" node actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[actiongroupscreatenotificationsatactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js -[actiongroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateOrUpdateSample.js -[actiongroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsDeleteSample.js -[actiongroupsenablereceiversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsEnableReceiverSample.js -[actiongroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetSample.js -[actiongroupsgettestnotificationsatactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js -[actiongroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListByResourceGroupSample.js -[actiongroupslistbysubscriptionidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListBySubscriptionIdSample.js -[actiongroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsUpdateSample.js -[activitylogalertscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsCreateOrUpdateSample.js -[activitylogalertsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsDeleteSample.js -[activitylogalertsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsGetSample.js -[activitylogalertslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListByResourceGroupSample.js -[activitylogalertslistbysubscriptionidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListBySubscriptionIdSample.js -[activitylogalertsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsUpdateSample.js -[activitylogslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogsListSample.js -[alertruleincidentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsGetSample.js -[alertruleincidentslistbyalertrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsListByAlertRuleSample.js -[alertrulescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesCreateOrUpdateSample.js -[alertrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesDeleteSample.js -[alertrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesGetSample.js -[alertruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListByResourceGroupSample.js -[alertruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListBySubscriptionSample.js -[alertrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesUpdateSample.js -[autoscalesettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsCreateOrUpdateSample.js -[autoscalesettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsDeleteSample.js -[autoscalesettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsGetSample.js -[autoscalesettingslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListByResourceGroupSample.js -[autoscalesettingslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListBySubscriptionSample.js -[autoscalesettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsUpdateSample.js -[azuremonitorworkspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesCreateSample.js -[azuremonitorworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesDeleteSample.js -[azuremonitorworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesGetSample.js -[azuremonitorworkspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListByResourceGroupSample.js -[azuremonitorworkspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListBySubscriptionSample.js -[azuremonitorworkspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesUpdateSample.js -[baselineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/baselinesListSample.js -[createnotificationsattenantactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/createNotificationsAtTenantActionGroupResourceLevelSample.js -[datacollectionendpointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsCreateSample.js -[datacollectionendpointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsDeleteSample.js -[datacollectionendpointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsGetSample.js -[datacollectionendpointslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListByResourceGroupSample.js -[datacollectionendpointslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListBySubscriptionSample.js -[datacollectionendpointsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsUpdateSample.js -[datacollectionruleassociationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsCreateSample.js -[datacollectionruleassociationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsDeleteSample.js -[datacollectionruleassociationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsGetSample.js -[datacollectionruleassociationslistbydatacollectionendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js -[datacollectionruleassociationslistbyresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByResourceSample.js -[datacollectionruleassociationslistbyrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByRuleSample.js -[datacollectionrulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesCreateSample.js -[datacollectionrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesDeleteSample.js -[datacollectionrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesGetSample.js -[datacollectionruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListByResourceGroupSample.js -[datacollectionruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListBySubscriptionSample.js -[datacollectionrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesUpdateSample.js -[diagnosticsettingscategorygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryGetSample.js -[diagnosticsettingscategorylistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryListSample.js -[diagnosticsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCreateOrUpdateSample.js -[diagnosticsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsDeleteSample.js -[diagnosticsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsGetSample.js -[diagnosticsettingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsListSample.js -[eventcategorieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/eventCategoriesListSample.js -[gettestnotificationsattenantactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/getTestNotificationsAtTenantActionGroupResourceLevelSample.js -[logprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesCreateOrUpdateSample.js -[logprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesDeleteSample.js -[logprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesGetSample.js -[logprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesListSample.js -[logprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesUpdateSample.js -[metricalertscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsCreateOrUpdateSample.js -[metricalertsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsDeleteSample.js -[metricalertsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsGetSample.js -[metricalertslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListByResourceGroupSample.js -[metricalertslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListBySubscriptionSample.js -[metricalertsstatuslistbynamesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListByNameSample.js -[metricalertsstatuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListSample.js -[metricalertsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsUpdateSample.js -[metricdefinitionslistatsubscriptionscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListAtSubscriptionScopeSample.js -[metricdefinitionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListSample.js -[metricnamespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricNamespacesListSample.js -[metricslistatsubscriptionscopepostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopePostSample.js -[metricslistatsubscriptionscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopeSample.js -[metricslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListSample.js -[monitoroperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/monitorOperationsListSample.js -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/operationsListSample.js -[predictivemetricgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/predictiveMetricGetSample.js -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsDeleteSample.js -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsGetSample.js -[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesGetSample.js -[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js -[privatelinkscopeoperationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopeOperationStatusGetSample.js -[privatelinkscopedresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesCreateOrUpdateSample.js -[privatelinkscopedresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesDeleteSample.js -[privatelinkscopedresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesGetSample.js -[privatelinkscopedresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesListByPrivateLinkScopeSample.js -[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesCreateOrUpdateSample.js -[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesDeleteSample.js -[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesGetSample.js -[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListByResourceGroupSample.js -[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListSample.js -[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesUpdateTagsSample.js -[scheduledqueryrulescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesCreateOrUpdateSample.js -[scheduledqueryrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesDeleteSample.js -[scheduledqueryrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesGetSample.js -[scheduledqueryruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListByResourceGroupSample.js -[scheduledqueryruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListBySubscriptionSample.js -[scheduledqueryrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesUpdateSample.js -[tenantactiongroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsCreateOrUpdateSample.js -[tenantactiongroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsDeleteSample.js -[tenantactiongroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsGetSample.js -[tenantactiongroupslistbymanagementgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsListByManagementGroupIdSample.js -[tenantactiongroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsUpdateSample.js -[tenantactivitylogslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActivityLogsListSample.js -[vminsightsgetonboardingstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/javascript/vmInsightsGetOnboardingStatusSample.js -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-monitor?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor/README.md diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js deleted file mode 100644 index 30f3c9e59fbd..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/postTestNotificationsAtActionGroupResourceLevel.json - */ -async function createNotificationsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationRequest = { - alertType: "budget", - armRoleReceivers: [ - { - name: "ArmRole-Common", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: true, - }, - { - name: "ArmRole-nonCommon", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: false, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "http://test.me", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [{ name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [{ name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.actionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait( - resourceGroupName, - actionGroupName, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateOrUpdateSample.js deleted file mode 100644 index 701282e7405e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsCreateOrUpdateSample.js +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new action group or update an existing one. - * - * @summary Create a new action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/createOrUpdateActionGroup.json - */ -async function createOrUpdateAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroup = { - armRoleReceivers: [ - { - name: "Sample armRole", - roleId: "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - useCommonAlertSchema: true, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [{ name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - groupShortName: "sample", - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - location: "Global", - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [{ name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.createOrUpdate( - resourceGroupName, - actionGroupName, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsDeleteSample.js deleted file mode 100644 index 1478024ac15e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete an action group. - * - * @summary Delete an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/deleteActionGroup.json - */ -async function deleteAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.delete(resourceGroupName, actionGroupName); - console.log(result); -} - -async function main() { - deleteAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsEnableReceiverSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsEnableReceiverSample.js deleted file mode 100644 index b231aba0ca17..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsEnableReceiverSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * - * @summary Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/enableReceiver.json - */ -async function enableTheReceiver() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const enableRequest = { receiverName: "John Doe's mobile" }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.enableReceiver( - resourceGroupName, - actionGroupName, - enableRequest, - ); - console.log(result); -} - -async function main() { - enableTheReceiver(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetSample.js deleted file mode 100644 index d0ac366f2e25..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get an action group. - * - * @summary Get an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getActionGroup.json - */ -async function getAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.get(resourceGroupName, actionGroupName); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js deleted file mode 100644 index 321eedfbcb28..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getTestNotificationsAtActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.getTestNotificationsAtActionGroupResourceLevel( - resourceGroupName, - actionGroupName, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListByResourceGroupSample.js deleted file mode 100644 index 942281948cde..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a resource group. - * - * @summary Get a list of all action groups in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListBySubscriptionIdSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListBySubscriptionIdSample.js deleted file mode 100644 index 9cd397c38cda..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsListBySubscriptionIdSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a subscription. - * - * @summary Get a list of all action groups in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtSubscriptionLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtSubscriptionLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsUpdateSample.js deleted file mode 100644 index 31697e898d78..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/actionGroupsUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/patchActionGroup.json - */ -async function patchAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroupPatch = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.update( - resourceGroupName, - actionGroupName, - actionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsCreateOrUpdateSample.js deleted file mode 100644 index 6edb0f0ea947..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsCreateOrUpdateSample.js +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdate.json - */ -async function createOrUpdateAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRule = { - description: "Description of sample Activity Log Alert rule.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "Administrative", field: "category" }, - { equals: "Error", field: "level" }, - ], - }, - enabled: true, - location: "Global", - scopes: ["/subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithAnyOfCondition.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithAnyOfCondition"; - const activityLogAlertRule = { - description: "Description of sample Activity Log Alert rule with 'anyOf' condition.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - anyOf: [ - { equals: "Incident", field: "properties.incidentType" }, - { equals: "Maintenance", field: "properties.incidentType" }, - ], - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithContainsAny.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithContainsAny() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithContainsAny"; - const activityLogAlertRule = { - description: "Description of sample Activity Log Alert rule with 'containsAny'.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - containsAny: ["North Europe", "West Europe"], - field: "properties.impactedServices[*].ImpactedRegions[*].RegionName", - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActivityLogAlertRule(); - createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition(); - createOrUpdateAnActivityLogAlertRuleWithContainsAny(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsDeleteSample.js deleted file mode 100644 index 0006ad81aeab..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete an Activity Log Alert rule. - * - * @summary Delete an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Delete.json - */ -async function deleteAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.delete(resourceGroupName, activityLogAlertName); - console.log(result); -} - -async function main() { - deleteAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsGetSample.js deleted file mode 100644 index e2c065808c39..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get an Activity Log Alert rule. - * - * @summary Get an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Get.json - */ -async function getAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.get(resourceGroupName, activityLogAlertName); - console.log(result); -} - -async function main() { - getAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListByResourceGroupSample.js deleted file mode 100644 index c79f88066689..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a resource group. - * - * @summary Get a list of all Activity Log Alert rules in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListByResourceGroupName.json - */ -async function listActivityLogAlerts() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActivityLogAlerts(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListBySubscriptionIdSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListBySubscriptionIdSample.js deleted file mode 100644 index 88aa27771f6e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsListBySubscriptionIdSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a subscription. - * - * @summary Get a list of all Activity Log Alert rules in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListBySubscriptionId.json - */ -async function getListOfAllActivityLogAlertRulesUnderASubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getListOfAllActivityLogAlertRulesUnderASubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsUpdateSample.js deleted file mode 100644 index 81fb45369df4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogAlertsUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * - * @summary Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Update.json - */ -async function patchAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRulePatch = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.update( - resourceGroupName, - activityLogAlertName, - activityLogAlertRulePatch, - ); - console.log(result); -} - -async function main() { - patchAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogsListSample.js deleted file mode 100644 index 25c6022d9e77..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/activityLogsListSample.js +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json - */ -async function getActivityLogsWithFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json - */ -async function getActivityLogsWithFilterAndSelect() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getActivityLogsWithFilter(); - getActivityLogsWithFilterAndSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsGetSample.js deleted file mode 100644 index 27878c579b1b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets an incident associated to an alert rule - * - * @summary Gets an incident associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json - */ -async function getASingleAlertRuleIncident() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const incidentName = "Website_started"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRuleIncidents.get(resourceGroupName, ruleName, incidentName); - console.log(result); -} - -async function main() { - getASingleAlertRuleIncident(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsListByAlertRuleSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsListByAlertRuleSample.js deleted file mode 100644 index 998d1a36e388..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRuleIncidentsListByAlertRuleSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of incidents associated to an alert rule - * - * @summary Gets a list of incidents associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json - */ -async function listAlertRuleIncidents() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRuleIncidents.listByAlertRule(resourceGroupName, ruleName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRuleIncidents(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesCreateOrUpdateSample.js deleted file mode 100644 index cff5b1937bbf..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesCreateOrUpdateSample.js +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a classic metric alert rule. - * - * @summary Creates or updates a classic metric alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const parameters = { - namePropertiesName: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - location: "West US", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesDeleteSample.js deleted file mode 100644 index 86473357c892..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a classic metric alert rule - * - * @summary Deletes a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesGetSample.js deleted file mode 100644 index 286f6d1533cc..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a classic metric alert rule - * - * @summary Gets a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json - */ -async function getAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListByResourceGroupSample.js deleted file mode 100644 index 9cd4c2966d03..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a resource group. - * - * @summary List the classic metric alert rules within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListBySubscriptionSample.js deleted file mode 100644 index b3d78051e5e8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a subscription. - * - * @summary List the classic metric alert rules within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesUpdateSample.js deleted file mode 100644 index 083f758ac6db..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/alertRulesUpdateSample.js +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json - */ -async function patchAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const alertRulesResource = { - name: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - tags: { - $type: "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.update(resourceGroupName, ruleName, alertRulesResource); - console.log(result); -} - -async function main() { - patchAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsCreateOrUpdateSample.js deleted file mode 100644 index 38a4441fd49e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsCreateOrUpdateSample.js +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an autoscale setting. - * - * @summary Creates or updates an autoscale setting. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/createOrUpdateAutoscaleSetting.json - */ -async function createOrUpdateAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const parameters = { - enabled: true, - location: "West US", - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1", key2: "value2" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.createOrUpdate( - resourceGroupName, - autoscaleSettingName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsDeleteSample.js deleted file mode 100644 index 851e06221fb8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes and autoscale setting - * - * @summary Deletes and autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/deleteAutoscaleSetting.json - */ -async function deleteAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.delete(resourceGroupName, autoscaleSettingName); - console.log(result); -} - -async function main() { - deleteAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsGetSample.js deleted file mode 100644 index a401a3786e53..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets an autoscale setting - * - * @summary Gets an autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/getAutoscaleSetting.json - */ -async function getAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.get(resourceGroupName, autoscaleSettingName); - console.log(result); -} - -async function main() { - getAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListByResourceGroupSample.js deleted file mode 100644 index 0cab2c2f0e83..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a resource group - * - * @summary Lists the autoscale settings for a resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSetting.json - */ -async function listAutoscaleSettings() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettings(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListBySubscriptionSample.js deleted file mode 100644 index 22063de883c5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a subscription - * - * @summary Lists the autoscale settings for a subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSettingBySubscription.json - */ -async function listAutoscaleSettingsBySubs() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettingsBySubs(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsUpdateSample.js deleted file mode 100644 index 191c3d2455d6..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/autoscaleSettingsUpdateSample.js +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/patchAutoscaleSetting.json - */ -async function patchAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const autoscaleSettingResource = { - enabled: true, - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.update( - resourceGroupName, - autoscaleSettingName, - autoscaleSettingResource, - ); - console.log(result); -} - -async function main() { - patchAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesCreateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesCreateSample.js deleted file mode 100644 index 5443281c62cb..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesCreateSample.js +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Monitor Workspace - * - * @summary Creates or updates an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json - */ -async function createOrUpdateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties = { - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.create( - resourceGroupName, - azureMonitorWorkspaceName, - azureMonitorWorkspaceProperties, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesDeleteSample.js deleted file mode 100644 index dd4c63df7d6c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an Azure Monitor Workspace - * - * @summary Deletes an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json - */ -async function deleteAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.beginDeleteAndWait( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - deleteAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesGetSample.js deleted file mode 100644 index 8683e000b218..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the specified Azure Monitor Workspace - * - * @summary Returns the specified Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json - */ -async function getAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.get( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - getAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListByResourceGroupSample.js deleted file mode 100644 index ec3b1854ce02..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified resource group - * - * @summary Lists all Azure Monitor Workspaces in the specified resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json - */ -async function listAzureMonitorWorkspacesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListBySubscriptionSample.js deleted file mode 100644 index e9aabd7e0a69..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified subscription - * - * @summary Lists all Azure Monitor Workspaces in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json - */ -async function listAzureMonitorWorkspacesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesUpdateSample.js deleted file mode 100644 index ffe2deba98d0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/azureMonitorWorkspacesUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates part of an Azure Monitor Workspace - * - * @summary Updates part of an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json - */ -async function updateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options = { - azureMonitorWorkspaceProperties, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.update( - resourceGroupName, - azureMonitorWorkspaceName, - options, - ); - console.log(result); -} - -async function main() { - updateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/baselinesListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/baselinesListSample.js deleted file mode 100644 index 7dbac1894478..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/baselinesListSample.js +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to **Lists the metric baseline values for a resource**. - * - * @summary **Lists the metric baseline values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json - */ -async function getMetricBaselines() { - const resourceUri = - "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1"; - const timespan = "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z"; - const interval = "PT1H"; - const aggregation = "average"; - const sensitivities = "Low,Medium"; - const options = { - timespan, - interval, - aggregation, - sensitivities, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.baselines.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricBaselines(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/createNotificationsAtTenantActionGroupResourceLevelSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/createNotificationsAtTenantActionGroupResourceLevelSample.js deleted file mode 100644 index e99d62fb4cd2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/createNotificationsAtTenantActionGroupResourceLevelSample.js +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/postTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function createNotificationsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationRequest = { - alertType: "servicehealth", - azureAppPushReceivers: [{ name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [{ name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsCreateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsCreateSample.js deleted file mode 100644 index 73a6a0db7324..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsCreateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a data collection endpoint. - * - * @summary Creates or updates a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsCreate.json - */ -async function createOrUpdateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body = { - location: "eastus", - networkAcls: { publicNetworkAccess: "Enabled" }, - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.create( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsDeleteSample.js deleted file mode 100644 index e7bbbbbf5dec..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a data collection endpoint. - * - * @summary Deletes a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsDelete.json - */ -async function deleteDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.delete( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - deleteDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsGetSample.js deleted file mode 100644 index 207d87c5cd89..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the specified data collection endpoint. - * - * @summary Returns the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsGet.json - */ -async function getDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.get( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - getDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListByResourceGroupSample.js deleted file mode 100644 index 55d074567239..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified resource group. - * - * @summary Lists all data collection endpoints in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListByResourceGroup.json - */ -async function listDataCollectionEndpointsByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListBySubscriptionSample.js deleted file mode 100644 index f0dc4d4e15d9..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified subscription - * - * @summary Lists all data collection endpoints in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListBySubscription.json - */ -async function listDataCollectionEndpointsBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsUpdateSample.js deleted file mode 100644 index 5f5cd8be8a3c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionEndpointsUpdateSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates part of a data collection endpoint. - * - * @summary Updates part of a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsUpdate.json - */ -async function updateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.update( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsCreateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsCreateSample.js deleted file mode 100644 index 927e3acedb8c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsCreateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates an association. - * - * @summary Creates or updates an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsCreate.json - */ -async function createOrUpdateAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const body = { - dataCollectionRuleId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule", - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.create( - resourceUri, - associationName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsDeleteSample.js deleted file mode 100644 index 345e3e9bb462..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes an association. - * - * @summary Deletes an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsDelete.json - */ -async function deleteAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.delete(resourceUri, associationName); - console.log(result); -} - -async function main() { - deleteAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsGetSample.js deleted file mode 100644 index 79a587893252..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the specified association. - * - * @summary Returns the specified association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsGet.json - */ -async function getAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.get(resourceUri, associationName); - console.log(result); -} - -async function main() { - getAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js deleted file mode 100644 index d0c68337bb1b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection endpoint. - * - * @summary Lists associations for the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json - */ -async function listAssociationsForSpecifiedDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myDataCollectionEndpointName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByDataCollectionEndpoint( - resourceGroupName, - dataCollectionEndpointName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByResourceSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByResourceSample.js deleted file mode 100644 index f5427090fb1c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByResourceSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists associations for the specified resource. - * - * @summary Lists associations for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByResource.json - */ -async function listAssociationsForSpecifiedResource() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByResource(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByRuleSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByRuleSample.js deleted file mode 100644 index 560fc8657123..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRuleAssociationsListByRuleSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection rule. - * - * @summary Lists associations for the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByRule.json - */ -async function listAssociationsForSpecifiedDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByRule( - resourceGroupName, - dataCollectionRuleName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesCreateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesCreateSample.js deleted file mode 100644 index 3559cca666db..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesCreateSample.js +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a data collection rule. - * - * @summary Creates or updates a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesCreate.json - */ -async function createOrUpdateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body = { - dataFlows: [ - { - destinations: ["centralWorkspace"], - streams: ["Microsoft-Perf", "Microsoft-Syslog", "Microsoft-WindowsEvent"], - }, - ], - dataSources: { - performanceCounters: [ - { - name: "cloudTeamCoreCounters", - counterSpecifiers: [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length", - ], - samplingFrequencyInSeconds: 15, - streams: ["Microsoft-Perf"], - }, - { - name: "appTeamExtraCounters", - counterSpecifiers: ["\\Process(_Total)\\Thread Count"], - samplingFrequencyInSeconds: 30, - streams: ["Microsoft-Perf"], - }, - ], - syslog: [ - { - name: "cronSyslog", - facilityNames: ["cron"], - logLevels: ["Debug", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - { - name: "syslogBase", - facilityNames: ["syslog"], - logLevels: ["Alert", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - ], - windowsEventLogs: [ - { - name: "cloudSecurityTeamEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: ["Security!"], - }, - { - name: "appTeam1AppEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]", - ], - }, - ], - }, - destinations: { - logAnalytics: [ - { - name: "centralWorkspace", - workspaceResourceId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/centralTeamWorkspace", - }, - ], - }, - location: "eastus", - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.create( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesDeleteSample.js deleted file mode 100644 index 3043400178de..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a data collection rule. - * - * @summary Deletes a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesDelete.json - */ -async function deleteDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.delete(resourceGroupName, dataCollectionRuleName); - console.log(result); -} - -async function main() { - deleteDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesGetSample.js deleted file mode 100644 index 96f83ff8328f..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns the specified data collection rule. - * - * @summary Returns the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesGet.json - */ -async function getDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.get(resourceGroupName, dataCollectionRuleName); - console.log(result); -} - -async function main() { - getDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListByResourceGroupSample.js deleted file mode 100644 index b8d4295fc008..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified resource group. - * - * @summary Lists all data collection rules in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListByResourceGroup.json - */ -async function listDataCollectionRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListBySubscriptionSample.js deleted file mode 100644 index ead72d221a06..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified subscription. - * - * @summary Lists all data collection rules in the specified subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListBySubscription.json - */ -async function listDataCollectionRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesUpdateSample.js deleted file mode 100644 index 2caad22b25a2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/dataCollectionRulesUpdateSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates part of a data collection rule. - * - * @summary Updates part of a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesUpdate.json - */ -async function updateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.update( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryGetSample.js deleted file mode 100644 index 52da3029a81a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the diagnostic settings category for the specified resource. - * - * @summary Gets the diagnostic settings category for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "WorkflowRuntime"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettingsCategory.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryListSample.js deleted file mode 100644 index ecbcc5204041..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCategoryListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the diagnostic settings categories for the specified resource. - * - * @summary Lists the diagnostic settings categories for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategories.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettingsCategory.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCreateOrUpdateSample.js deleted file mode 100644 index e618542a2348..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsCreateOrUpdateSample.js +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSetting.json - */ -async function createsOrUpdatesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - categoryGroup: "allLogs", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate(resourceUri, name, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSettingCategory.json - */ -async function createsOrUpdatesTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - category: "WorkflowRuntime", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate(resourceUri, name, parameters); - console.log(result); -} - -async function main() { - createsOrUpdatesTheDiagnosticSetting(); - createsOrUpdatesTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsDeleteSample.js deleted file mode 100644 index c6b2fda4e8cc..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes existing diagnostic settings for the specified resource. - * - * @summary Deletes existing diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/deleteDiagnosticSetting.json - */ -async function deletesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.delete(resourceUri, name); - console.log(result); -} - -async function main() { - deletesTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsGetSample.js deleted file mode 100644 index 8b705f78b567..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsGetSample.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSetting.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsListSample.js deleted file mode 100644 index 2d1ba971a6c1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/diagnosticSettingsListSample.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettings.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/eventCategoriesListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/eventCategoriesListSample.js deleted file mode 100644 index 49ffa2422a44..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/eventCategoriesListSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * - * @summary Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json - */ -async function getEventCategories() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.eventCategories.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getEventCategories(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/getTestNotificationsAtTenantActionGroupResourceLevelSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/getTestNotificationsAtTenantActionGroupResourceLevelSample.js deleted file mode 100644 index 2751aac4d9e1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/getTestNotificationsAtTenantActionGroupResourceLevelSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.getTestNotificationsAtTenantActionGroupResourceLevel( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesCreateOrUpdateSample.js deleted file mode 100644 index da226d6f0f13..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesCreateOrUpdateSample.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update a log profile in Azure Monitoring REST API. - * - * @summary Create or update a log profile in Azure Monitoring REST API. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json - */ -async function createOrUpdateALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const parameters = { - categories: ["Write", "Delete", "Action"], - location: "", - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.createOrUpdate(logProfileName, parameters); - console.log(result); -} - -async function main() { - createOrUpdateALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesDeleteSample.js deleted file mode 100644 index 71389d1376de..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesDeleteSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes the log profile. - * - * @summary Deletes the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json - */ -async function deleteLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const logProfileName = "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.delete(logProfileName); - console.log(result); -} - -async function main() { - deleteLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesGetSample.js deleted file mode 100644 index 9e9a7ec58562..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesGetSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the log profile. - * - * @summary Gets the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json - */ -async function getLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "default"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.get(logProfileName); - console.log(result); -} - -async function main() { - getLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesListSample.js deleted file mode 100644 index b2b9b1ed3472..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to List the log profiles. - * - * @summary List the log profiles. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json - */ -async function listLogProfiles() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listLogProfiles(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesUpdateSample.js deleted file mode 100644 index 102f0534f03e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/logProfilesUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json - */ -async function patchALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const logProfilesResource = { - categories: ["Write", "Delete", "Action"], - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.update(logProfileName, logProfilesResource); - console.log(result); -} - -async function main() { - patchALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsCreateOrUpdateSample.js deleted file mode 100644 index 66374555c535..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsCreateOrUpdateSample.js +++ /dev/null @@ -1,454 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json - */ -async function createOrUpdateADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json - */ -async function createOrUpdateADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - ignoreDataBefore: new Date("2019-04-04T21:00:00.000Z"), - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateWebTestMetricAlert.json - */ -async function createOrUpdateAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const parameters = { - description: 'Automatically created alert rule for availability test "component-example" a', - actions: [], - criteria: { - componentId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - failedLocationCount: 2, - odataType: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", - webTestId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - ], - severity: 4, - tags: { - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/components/webtestNameExample": - "Resource", - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/webtests/componentExample": - "Resource", - }, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json - */ -async function createOrUpdateAnAlertRuleForMultipleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json - */ -async function createOrUpdateAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json - */ -async function createOrUpdateAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json - */ -async function createOrUpdateAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertWithDimensions.json - */ -async function createOrUpdateAnAlertRulesWithDimensions() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleDimensions"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "Metric1", - criterionType: "StaticThresholdCriterion", - dimensions: [ - { name: "ActivityName", operator: "Include", values: ["*"] }, - { name: "StatusCode", operator: "Include", values: ["200"] }, - ], - metricName: "Availability", - metricNamespace: "Microsoft.KeyVault/vaults", - operator: "GreaterThan", - threshold: 55, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1H", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource", - ], - severity: 3, - tags: {}, - windowSize: "P1D", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate(resourceGroupName, ruleName, parameters); - console.log(result); -} - -async function main() { - createOrUpdateADynamicAlertRuleForMultipleResources(); - createOrUpdateADynamicAlertRuleForSingleResource(); - createOrUpdateAWebTestAlertRule(); - createOrUpdateAnAlertRuleForMultipleResource(); - createOrUpdateAnAlertRuleForSingleResource(); - createOrUpdateAnAlertRuleOnResourceGroupS(); - createOrUpdateAnAlertRuleOnSubscription(); - createOrUpdateAnAlertRulesWithDimensions(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsDeleteSample.js deleted file mode 100644 index af4f20182481..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete an alert rule definition. - * - * @summary Delete an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsGetSample.js deleted file mode 100644 index 5b1ae950a288..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsGetSample.js +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json - */ -async function getADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json - */ -async function getADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getWebTestMetricAlert.json - */ -async function getAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json - */ -async function getAnAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json - */ -async function getAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json - */ -async function getAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json - */ -async function getAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getADynamicAlertRuleForMultipleResources(); - getADynamicAlertRuleForSingleResource(); - getAWebTestAlertRule(); - getAnAlertRuleForMultipleResources(); - getAnAlertRuleForSingleResource(); - getAnAlertRuleOnResourceGroupS(); - getAnAlertRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListByResourceGroupSample.js deleted file mode 100644 index 7d1b371822fa..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a resource group. - * - * @summary Retrieve alert rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListBySubscriptionSample.js deleted file mode 100644 index 9cb90b057f36..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a subscription. - * - * @summary Retrieve alert rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListByNameSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListByNameSample.js deleted file mode 100644 index 7997ebbc287c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListByNameSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "009f6022-67ec-423e-9aa7-691182870588"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "EastUs"; - const ruleName = "custom1"; - const statusName = - "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.listByName( - resourceGroupName, - ruleName, - statusName, - ); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListSample.js deleted file mode 100644 index 1536695c4c3a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsStatusListSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.list(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsUpdateSample.js deleted file mode 100644 index 0dec52571b48..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricAlertsUpdateSample.js +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update an metric alert definition. - * - * @summary Update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.update(resourceGroupName, ruleName, parameters); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListAtSubscriptionScopeSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListAtSubscriptionScopeSample.js deleted file mode 100644 index 56979aedccab..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListAtSubscriptionScopeSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the subscription. - * - * @summary Lists the metric definitions for the subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricDefinitions.json - */ -async function getSubscriptionLevelMetricDefinitionsWithoutFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options = { - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricDefinitions.listAtSubscriptionScope(region, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSubscriptionLevelMetricDefinitionsWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListSample.js deleted file mode 100644 index 7426fe654e46..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricDefinitionsListSample.js +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsApplicationInsights.json - */ -async function getApplicationInsightsMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions"; - const metricnamespace = "microsoft.insights/components"; - const options = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitions.json - */ -async function getMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions"; - const metricnamespace = "Microsoft.Web/sites"; - const options = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsMetricClass.json - */ -async function getStorageCacheMetricDefinitionsWithMetricClass() { - const resourceUri = - "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache"; - const metricnamespace = "microsoft.storagecache/caches"; - const options = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getApplicationInsightsMetricDefinitionsWithoutFilter(); - getMetricDefinitionsWithoutFilter(); - getStorageCacheMetricDefinitionsWithMetricClass(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricNamespacesListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricNamespacesListSample.js deleted file mode 100644 index cf9bf35e8c22..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricNamespacesListSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists the metric namespaces for the resource. - * - * @summary Lists the metric namespaces for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricNamespaces.json - */ -async function getMetricNamespacesWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill"; - const startTime = "2020-08-31T15:53:00Z"; - const options = { startTime }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricNamespaces.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricNamespacesWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopePostSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopePostSample.js deleted file mode 100644 index b4f5ac23c7c7..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopePostSample.js +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function postRequestForSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost(region, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/PostMultiResourceMetricBody.json - */ -async function postRequestForSubscriptionLevelMetricDataUsingBodyParams() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const body = { - aggregation: "count", - autoAdjustTimegrain: true, - filter: "LUN eq '0' and Microsoft.ResourceId eq '*'", - interval: "PT6H", - metricNames: "Data Disk Max Burst IOPS", - metricNamespace: "microsoft.compute/virtualmachines", - orderBy: "count desc", - rollUpBy: "LUN", - timespan: "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z", - top: 10, - validateDimensions: false, - }; - const options = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost(region, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function postRequestForSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost(region, options); - console.log(result); -} - -async function main() { - postRequestForSubscriptionLevelMetricData(); - postRequestForSubscriptionLevelMetricDataUsingBodyParams(); - postRequestForSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopeSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopeSample.js deleted file mode 100644 index 8b749a9ed6f3..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListAtSubscriptionScopeSample.js +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function getSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope(region, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function getSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope(region, options); - console.log(result); -} - -async function main() { - getSubscriptionLevelMetricData(); - getSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListSample.js deleted file mode 100644 index 6b78c601f453..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/metricsListSample.js +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetric.json - */ -async function getMetricForData() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2021-04-20T09:00:00.000Z/2021-04-20T14:00:00.000Z"; - const interval = "PT6H"; - const metricnames = "BlobCount,BlobCapacity"; - const aggregation = "average,minimum,maximum"; - const top = 5; - const orderby = "average asc"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricMetadata.json - */ -async function getMetricForMetadata() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const options = { - timespan, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricError.json - */ -async function getMetricWithError() { - const resourceUri = - "subscriptions/ac41e21f-afd6-4a79-8070-f01eba278f97/resourceGroups/todking/providers/Microsoft.DocumentDb/databaseAccounts/tk-cosmos-mongo"; - const timespan = "2021-06-07T21:51:00Z/2021-06-08T01:51:00Z"; - const interval = "FULL"; - const metricnames = "MongoRequestsCount,MongoRequests"; - const aggregation = "average"; - const metricnamespace = "microsoft.documentdb/databaseaccounts"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options = { - timespan, - interval, - metricnames, - aggregation, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -async function main() { - getMetricForData(); - getMetricForMetadata(); - getMetricWithError(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/monitorOperationsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/monitorOperationsListSample.js deleted file mode 100644 index f4b64b8da330..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/monitorOperationsListSample.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists available Operations for this Resource Provider - * - * @summary Lists available Operations for this Resource Provider - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json - */ -async function getOperationsList() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.monitorOperations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getOperationsList(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/operationsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/operationsListSample.js deleted file mode 100644 index eee0a7a560b5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/operationsListSample.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Lists all of the available operations from Microsoft.Insights provider. - * - * @summary Lists all of the available operations from Microsoft.Insights provider. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json - */ -async function getAListOfOperationsForAResourceProvider() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.operations.list(); - console.log(result); -} - -async function main() { - getAListOfOperationsForAResourceProvider(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/package.json b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/package.json deleted file mode 100644 index 451ba61175e4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@azure-samples/arm-monitor-js-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for JavaScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/monitor/arm-monitor" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor", - "dependencies": { - "@azure/arm-monitor": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - } -} diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/predictiveMetricGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/predictiveMetricGetSample.js deleted file mode 100644 index f399f6c755f2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/predictiveMetricGetSample.js +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to get predictive autoscale metric future data - * - * @summary get predictive autoscale metric future data - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/GetPredictiveMetric.json - */ -async function getMetricForData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myRG"; - const autoscaleSettingName = "vmss1-Autoscale-775"; - const timespan = "2021-10-14T22:00:00.000Z/2021-10-16T22:00:00.000Z"; - const interval = "PT1H"; - const metricNamespace = "Microsoft.Compute/virtualMachineScaleSets"; - const metricName = "PercentageCPU"; - const aggregation = "Total"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.predictiveMetric.get( - resourceGroupName, - autoscaleSettingName, - timespan, - interval, - metricNamespace, - metricName, - aggregation, - ); - console.log(result); -} - -async function main() { - getMetricForData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js deleted file mode 100644 index 627960f0372d..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsCreateOrUpdateSample.js +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json - */ -async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const parameters = { - privateLinkServiceConnectionState: { - description: "Approved by johndoe@contoso.com", - status: "Approved", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - parameters, - ); - console.log(result); -} - -async function main() { - approveOrRejectAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsDeleteSample.js deleted file mode 100644 index b780ae5aa30c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json - */ -async function deletesAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - deletesAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsGetSample.js deleted file mode 100644 index 19ce5f87079c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsGetSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a private endpoint connection. - * - * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.get( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js deleted file mode 100644 index c17d142804a1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateEndpointConnectionsListByPrivateLinkScopeSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json - */ -async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesGetSample.js deleted file mode 100644 index 9c0fdbebf4e9..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const groupName = "azuremonitor"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.get(resourceGroupName, scopeName, groupName); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js deleted file mode 100644 index 069dafc10c1c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkResourcesListByPrivateLinkScopeSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopeOperationStatusGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopeOperationStatusGetSample.js deleted file mode 100644 index fcc06c1a237e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopeOperationStatusGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get the status of an azure asynchronous operation associated with a private link scope operation. - * - * @summary Get the status of an azure asynchronous operation associated with a private link scope operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json - */ -async function getSpecificOperationStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "613192d7-503f-477a-9cfe-4efc3ee2bd60"; - const asyncOperationId = "713192d7-503f-477a-9cfe-4efc3ee2bd11"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopeOperationStatus.get( - asyncOperationId, - resourceGroupName, - ); - console.log(result); -} - -async function main() { - getSpecificOperationStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesCreateOrUpdateSample.js deleted file mode 100644 index 3ea42f1e4034..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesCreateOrUpdateSample.js +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json - */ -async function updateAScopedResourceInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const parameters = { - linkedResourceId: - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - name, - parameters, - ); - console.log(result); -} - -async function main() { - updateAScopedResourceInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesDeleteSample.js deleted file mode 100644 index 491ed9277685..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesDeleteSample.js +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json - */ -async function deletesAScopedResourceWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.beginDeleteAndWait( - resourceGroupName, - scopeName, - name, - ); - console.log(result); -} - -async function main() { - deletesAScopedResourceWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesGetSample.js deleted file mode 100644 index 754cef34ed3f..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesGetSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a scoped resource in a private link scope. - * - * @summary Gets a scoped resource in a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json - */ -async function getsPrivateLinkScopedResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.get(resourceGroupName, scopeName, name); - console.log(result); -} - -async function main() { - getsPrivateLinkScopedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesListByPrivateLinkScopeSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesListByPrivateLinkScopeSample.js deleted file mode 100644 index 953cd8e27cc1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopedResourcesListByPrivateLinkScopeSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json - */ -async function getsListOfScopedResourcesInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopedResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsListOfScopedResourcesInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesCreateOrUpdateSample.js deleted file mode 100644 index 751b570ee2a9..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesCreateOrUpdateSample.js +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json - */ -async function privateLinkScopeCreate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json - */ -async function privateLinkScopeUpdate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - tags: { tag1: "Value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -async function main() { - privateLinkScopeCreate(); - privateLinkScopeUpdate(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesDeleteSample.js deleted file mode 100644 index fd34d4f16986..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a Azure Monitor PrivateLinkScope. - * - * @summary Deletes a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json - */ -async function privateLinkScopesDelete() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.beginDeleteAndWait(resourceGroupName, scopeName); - console.log(result); -} - -async function main() { - privateLinkScopesDelete(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesGetSample.js deleted file mode 100644 index f2888eddd30e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Returns a Azure Monitor PrivateLinkScope. - * - * @summary Returns a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json - */ -async function privateLinkScopeGet() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.get(resourceGroupName, scopeName); - console.log(result); -} - -async function main() { - privateLinkScopeGet(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListByResourceGroupSample.js deleted file mode 100644 index 1ff733bc43a2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * - * @summary Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json - */ -async function privateLinkScopeListByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopeListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListSample.js deleted file mode 100644 index fe975a34a483..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesListSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * - * @summary Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json - */ -async function privateLinkScopesListJson() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopesListJson(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesUpdateTagsSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesUpdateTagsSample.js deleted file mode 100644 index bf58d53655e2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/privateLinkScopesUpdateTagsSample.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json - */ -async function privateLinkScopeUpdateTagsOnly() { - const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const privateLinkScopeTags = { - tags: { tag1: "Value1", tag2: "Value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.updateTags( - resourceGroupName, - scopeName, - privateLinkScopeTags, - ); - console.log(result); -} - -async function main() { - privateLinkScopeUpdateTagsOnly(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/sample.env b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesCreateOrUpdateSample.js deleted file mode 100644 index 2786f96fedf5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesCreateOrUpdateSample.js +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1", - ], - severity: 4, - skipQueryValidation: true, - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleResourceGroup.json - */ -async function createOrUpdateAScheduledQueryRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters = { - description: "Health check rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - operator: "GreaterThan", - query: "Heartbeat", - threshold: 360, - timeAggregation: "Count", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1", - ], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleSubscription.json - */ -async function createOrUpdateAScheduledQueryRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRuleForSingleResource(); - createOrUpdateAScheduledQueryRuleOnResourceGroupS(); - createOrUpdateAScheduledQueryRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesDeleteSample.js deleted file mode 100644 index 3427024c3bc5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesDeleteSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Deletes a scheduled query rule. - * - * @summary Deletes a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/deleteScheduledQueryRule.json - */ -async function deleteAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesGetSample.js deleted file mode 100644 index 4c5069ebccf8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesGetSample.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve an scheduled query rule definition. - * - * @summary Retrieve an scheduled query rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/getScheduledQueryRule.json - */ -async function getAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getAScheduledQueryRuleForSingleResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListByResourceGroupSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListByResourceGroupSample.js deleted file mode 100644 index e73b2876a9bf..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListByResourceGroupSample.js +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve scheduled query rule definitions in a resource group. - * - * @summary Retrieve scheduled query rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesByResourceGroup.json - */ -async function listScheduledQueryRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listByResourceGroup(resourceGroupName)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListBySubscriptionSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListBySubscriptionSample.js deleted file mode 100644 index 86a2f57d90b4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesListBySubscriptionSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieve a scheduled query rule definitions in a subscription. - * - * @summary Retrieve a scheduled query rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesBySubscription.json - */ -async function listScheduledQueryRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesUpdateSample.js deleted file mode 100644 index 2d5071e911f2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/scheduledQueryRulesUpdateSample.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Update a scheduled query rule. - * - * @summary Update a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/patchScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters = { enabled: false }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.update(resourceGroupName, ruleName, parameters); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsCreateOrUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsCreateOrUpdateSample.js deleted file mode 100644 index 55b6110929de..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsCreateOrUpdateSample.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Create a new tenant action group or update an existing one. - * - * @summary Create a new tenant action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/createOrUpdateTenantActionGroup.json - */ -async function createOrUpdateATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const actionGroup = { - azureAppPushReceivers: [{ name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - groupShortName: "sample", - location: "Global", - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "2062022299", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [{ name: "Sample voice", countryCode: "1", phoneNumber: "2062022299" }], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.createOrUpdate( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsDeleteSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsDeleteSample.js deleted file mode 100644 index fa252cf0af0c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsDeleteSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Delete a tenant action group. - * - * @summary Delete a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/deleteTenantActionGroup.json - */ -async function deleteATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.delete( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - deleteATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsGetSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsGetSample.js deleted file mode 100644 index 027d8eec732c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsGetSample.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a tenant action group. - * - * @summary Get a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTenantActionGroup.json - */ -async function getAnActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.get( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsListByManagementGroupIdSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsListByManagementGroupIdSample.js deleted file mode 100644 index c2cba70d6032..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsListByManagementGroupIdSample.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Get a list of all tenant action groups in a management group. - * - * @summary Get a list of all tenant action groups in a management group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/listTenantActionGroups.json - */ -async function listTenantActionGroupsAtManagementGroupLevel() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActionGroups.listByManagementGroupId( - managementGroupId, - xMsClientTenantId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTenantActionGroupsAtManagementGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsUpdateSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsUpdateSample.js deleted file mode 100644 index 8e487623e6a9..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActionGroupsUpdateSample.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/patchTenantActionGroup.json - */ -async function patchATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupPatch = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.update( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - tenantActionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActivityLogsListSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActivityLogsListSample.js deleted file mode 100644 index b64adaa416d2..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/tenantActivityLogsListSample.js +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json - */ -async function getTenantActivityLogsWithFilter() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const options = { filter }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json - */ -async function getTenantActivityLogsWithFilterAndSelect() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options = { filter, select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json - */ -async function getTenantActivityLogsWithSelect() { - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json - */ -async function getTenantActivityLogsWithoutFilterOrSelect() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getTenantActivityLogsWithFilter(); - getTenantActivityLogsWithFilterAndSelect(); - getTenantActivityLogsWithSelect(); - getTenantActivityLogsWithoutFilterOrSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/vmInsightsGetOnboardingStatusSample.js b/sdk/monitor/arm-monitor/samples/v8-beta/javascript/vmInsightsGetOnboardingStatusSample.js deleted file mode 100644 index 9e1bcae63920..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/javascript/vmInsightsGetOnboardingStatusSample.js +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -const { MonitorClient } = require("@azure/arm-monitor"); -const { DefaultAzureCredential } = require("@azure/identity"); -require("dotenv").config(); - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json - */ -async function getStatusForAVMScaleSetThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json - */ -async function getStatusForAVMThatHasNotYetReportedData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json - */ -async function getStatusForAVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json - */ -async function getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json - */ -async function getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -async function main() { - getStatusForAVMScaleSetThatIsActivelyReportingData(); - getStatusForAVMThatHasNotYetReportedData(); - getStatusForAVMThatIsActivelyReportingData(); - getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData(); - getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/README.md b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/README.md deleted file mode 100644 index 2acb6e13615d..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/README.md +++ /dev/null @@ -1,293 +0,0 @@ -# client library samples for TypeScript (Beta) - -These sample programs show how to use the TypeScript client libraries for in some common scenarios. - -| **File Name** | **Description** | -| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts][actiongroupscreatenotificationsatactiongroupresourcelevelsample] | Send test notifications to a set of provided receivers x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/postTestNotificationsAtActionGroupResourceLevel.json | -| [actionGroupsCreateOrUpdateSample.ts][actiongroupscreateorupdatesample] | Create a new action group or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/createOrUpdateActionGroup.json | -| [actionGroupsDeleteSample.ts][actiongroupsdeletesample] | Delete an action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/deleteActionGroup.json | -| [actionGroupsEnableReceiverSample.ts][actiongroupsenablereceiversample] | Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/enableReceiver.json | -| [actionGroupsGetSample.ts][actiongroupsgetsample] | Get an action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getActionGroup.json | -| [actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts][actiongroupsgettestnotificationsatactiongroupresourcelevelsample] | Get the test notifications by the notification id x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getTestNotificationsAtActionGroupResourceLevel.json | -| [actionGroupsListByResourceGroupSample.ts][actiongroupslistbyresourcegroupsample] | Get a list of all action groups in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json | -| [actionGroupsListBySubscriptionIdSample.ts][actiongroupslistbysubscriptionidsample] | Get a list of all action groups in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json | -| [actionGroupsUpdateSample.ts][actiongroupsupdatesample] | Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/patchActionGroup.json | -| [activityLogAlertsCreateOrUpdateSample.ts][activitylogalertscreateorupdatesample] | Create a new Activity Log Alert rule or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdate.json | -| [activityLogAlertsDeleteSample.ts][activitylogalertsdeletesample] | Delete an Activity Log Alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Delete.json | -| [activityLogAlertsGetSample.ts][activitylogalertsgetsample] | Get an Activity Log Alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Get.json | -| [activityLogAlertsListByResourceGroupSample.ts][activitylogalertslistbyresourcegroupsample] | Get a list of all Activity Log Alert rules in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListByResourceGroupName.json | -| [activityLogAlertsListBySubscriptionIdSample.ts][activitylogalertslistbysubscriptionidsample] | Get a list of all Activity Log Alert rules in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListBySubscriptionId.json | -| [activityLogAlertsUpdateSample.ts][activitylogalertsupdatesample] | Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Update.json | -| [activityLogsListSample.ts][activitylogslistsample] | Provides the list of records from the activity logs. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json | -| [alertRuleIncidentsGetSample.ts][alertruleincidentsgetsample] | Gets an incident associated to an alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json | -| [alertRuleIncidentsListByAlertRuleSample.ts][alertruleincidentslistbyalertrulesample] | Gets a list of incidents associated to an alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json | -| [alertRulesCreateOrUpdateSample.ts][alertrulescreateorupdatesample] | Creates or updates a classic metric alert rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json | -| [alertRulesDeleteSample.ts][alertrulesdeletesample] | Deletes a classic metric alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json | -| [alertRulesGetSample.ts][alertrulesgetsample] | Gets a classic metric alert rule x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json | -| [alertRulesListByResourceGroupSample.ts][alertruleslistbyresourcegroupsample] | List the classic metric alert rules within a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json | -| [alertRulesListBySubscriptionSample.ts][alertruleslistbysubscriptionsample] | List the classic metric alert rules within a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json | -| [alertRulesUpdateSample.ts][alertrulesupdatesample] | Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json | -| [autoscaleSettingsCreateOrUpdateSample.ts][autoscalesettingscreateorupdatesample] | Creates or updates an autoscale setting. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/createOrUpdateAutoscaleSetting.json | -| [autoscaleSettingsDeleteSample.ts][autoscalesettingsdeletesample] | Deletes and autoscale setting x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/deleteAutoscaleSetting.json | -| [autoscaleSettingsGetSample.ts][autoscalesettingsgetsample] | Gets an autoscale setting x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/getAutoscaleSetting.json | -| [autoscaleSettingsListByResourceGroupSample.ts][autoscalesettingslistbyresourcegroupsample] | Lists the autoscale settings for a resource group x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSetting.json | -| [autoscaleSettingsListBySubscriptionSample.ts][autoscalesettingslistbysubscriptionsample] | Lists the autoscale settings for a subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSettingBySubscription.json | -| [autoscaleSettingsUpdateSample.ts][autoscalesettingsupdatesample] | Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/patchAutoscaleSetting.json | -| [azureMonitorWorkspacesCreateSample.ts][azuremonitorworkspacescreatesample] | Creates or updates an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json | -| [azureMonitorWorkspacesDeleteSample.ts][azuremonitorworkspacesdeletesample] | Deletes an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json | -| [azureMonitorWorkspacesGetSample.ts][azuremonitorworkspacesgetsample] | Returns the specified Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json | -| [azureMonitorWorkspacesListByResourceGroupSample.ts][azuremonitorworkspaceslistbyresourcegroupsample] | Lists all Azure Monitor Workspaces in the specified resource group x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json | -| [azureMonitorWorkspacesListBySubscriptionSample.ts][azuremonitorworkspaceslistbysubscriptionsample] | Lists all Azure Monitor Workspaces in the specified subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json | -| [azureMonitorWorkspacesUpdateSample.ts][azuremonitorworkspacesupdatesample] | Updates part of an Azure Monitor Workspace x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json | -| [baselinesListSample.ts][baselineslistsample] | **Lists the metric baseline values for a resource**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json | -| [createNotificationsAtTenantActionGroupResourceLevelSample.ts][createnotificationsattenantactiongroupresourcelevelsample] | Send test notifications to a set of provided receivers x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/postTestNotificationsAtTenantActionGroupResourceLevel.json | -| [dataCollectionEndpointsCreateSample.ts][datacollectionendpointscreatesample] | Creates or updates a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsCreate.json | -| [dataCollectionEndpointsDeleteSample.ts][datacollectionendpointsdeletesample] | Deletes a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsDelete.json | -| [dataCollectionEndpointsGetSample.ts][datacollectionendpointsgetsample] | Returns the specified data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsGet.json | -| [dataCollectionEndpointsListByResourceGroupSample.ts][datacollectionendpointslistbyresourcegroupsample] | Lists all data collection endpoints in the specified resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListByResourceGroup.json | -| [dataCollectionEndpointsListBySubscriptionSample.ts][datacollectionendpointslistbysubscriptionsample] | Lists all data collection endpoints in the specified subscription x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListBySubscription.json | -| [dataCollectionEndpointsUpdateSample.ts][datacollectionendpointsupdatesample] | Updates part of a data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsUpdate.json | -| [dataCollectionRuleAssociationsCreateSample.ts][datacollectionruleassociationscreatesample] | Creates or updates an association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsCreate.json | -| [dataCollectionRuleAssociationsDeleteSample.ts][datacollectionruleassociationsdeletesample] | Deletes an association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsDelete.json | -| [dataCollectionRuleAssociationsGetSample.ts][datacollectionruleassociationsgetsample] | Returns the specified association. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsGet.json | -| [dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts][datacollectionruleassociationslistbydatacollectionendpointsample] | Lists associations for the specified data collection endpoint. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json | -| [dataCollectionRuleAssociationsListByResourceSample.ts][datacollectionruleassociationslistbyresourcesample] | Lists associations for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByResource.json | -| [dataCollectionRuleAssociationsListByRuleSample.ts][datacollectionruleassociationslistbyrulesample] | Lists associations for the specified data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByRule.json | -| [dataCollectionRulesCreateSample.ts][datacollectionrulescreatesample] | Creates or updates a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesCreate.json | -| [dataCollectionRulesDeleteSample.ts][datacollectionrulesdeletesample] | Deletes a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesDelete.json | -| [dataCollectionRulesGetSample.ts][datacollectionrulesgetsample] | Returns the specified data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesGet.json | -| [dataCollectionRulesListByResourceGroupSample.ts][datacollectionruleslistbyresourcegroupsample] | Lists all data collection rules in the specified resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListByResourceGroup.json | -| [dataCollectionRulesListBySubscriptionSample.ts][datacollectionruleslistbysubscriptionsample] | Lists all data collection rules in the specified subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListBySubscription.json | -| [dataCollectionRulesUpdateSample.ts][datacollectionrulesupdatesample] | Updates part of a data collection rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesUpdate.json | -| [diagnosticSettingsCategoryGetSample.ts][diagnosticsettingscategorygetsample] | Gets the diagnostic settings category for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingsCategory.json | -| [diagnosticSettingsCategoryListSample.ts][diagnosticsettingscategorylistsample] | Lists the diagnostic settings categories for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategories.json | -| [diagnosticSettingsCreateOrUpdateSample.ts][diagnosticsettingscreateorupdatesample] | Creates or updates diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSetting.json | -| [diagnosticSettingsDeleteSample.ts][diagnosticsettingsdeletesample] | Deletes existing diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/deleteDiagnosticSetting.json | -| [diagnosticSettingsGetSample.ts][diagnosticsettingsgetsample] | Gets the active diagnostic settings for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSetting.json | -| [diagnosticSettingsListSample.ts][diagnosticsettingslistsample] | Gets the active diagnostic settings list for the specified resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettings.json | -| [eventCategoriesListSample.ts][eventcategorieslistsample] | Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json | -| [getTestNotificationsAtTenantActionGroupResourceLevelSample.ts][gettestnotificationsattenantactiongroupresourcelevelsample] | Get the test notifications by the notification id x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTestNotificationsAtTenantActionGroupResourceLevel.json | -| [logProfilesCreateOrUpdateSample.ts][logprofilescreateorupdatesample] | Create or update a log profile in Azure Monitoring REST API. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json | -| [logProfilesDeleteSample.ts][logprofilesdeletesample] | Deletes the log profile. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json | -| [logProfilesGetSample.ts][logprofilesgetsample] | Gets the log profile. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json | -| [logProfilesListSample.ts][logprofileslistsample] | List the log profiles. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json | -| [logProfilesUpdateSample.ts][logprofilesupdatesample] | Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json | -| [metricAlertsCreateOrUpdateSample.ts][metricalertscreateorupdatesample] | Create or update an metric alert definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json | -| [metricAlertsDeleteSample.ts][metricalertsdeletesample] | Delete an alert rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json | -| [metricAlertsGetSample.ts][metricalertsgetsample] | Retrieve an alert rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json | -| [metricAlertsListByResourceGroupSample.ts][metricalertslistbyresourcegroupsample] | Retrieve alert rule definitions in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json | -| [metricAlertsListBySubscriptionSample.ts][metricalertslistbysubscriptionsample] | Retrieve alert rule definitions in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json | -| [metricAlertsStatusListByNameSample.ts][metricalertsstatuslistbynamesample] | Retrieve an alert rule status. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json | -| [metricAlertsStatusListSample.ts][metricalertsstatuslistsample] | Retrieve an alert rule status. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json | -| [metricAlertsUpdateSample.ts][metricalertsupdatesample] | Update an metric alert definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json | -| [metricDefinitionsListAtSubscriptionScopeSample.ts][metricdefinitionslistatsubscriptionscopesample] | Lists the metric definitions for the subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricDefinitions.json | -| [metricDefinitionsListSample.ts][metricdefinitionslistsample] | Lists the metric definitions for the resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsApplicationInsights.json | -| [metricNamespacesListSample.ts][metricnamespaceslistsample] | Lists the metric namespaces for the resource. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricNamespaces.json | -| [metricsListAtSubscriptionScopePostSample.ts][metricslistatsubscriptionscopepostsample] | **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json | -| [metricsListAtSubscriptionScopeSample.ts][metricslistatsubscriptionscopesample] | **Lists the metric data for a subscription**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json | -| [metricsListSample.ts][metricslistsample] | **Lists the metric values for a resource**. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetric.json | -| [monitorOperationsListSample.ts][monitoroperationslistsample] | Lists available Operations for this Resource Provider x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json | -| [operationsListSample.ts][operationslistsample] | Lists all of the available operations from Microsoft.Insights provider. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json | -| [predictiveMetricGetSample.ts][predictivemetricgetsample] | get predictive autoscale metric future data x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/GetPredictiveMetric.json | -| [privateEndpointConnectionsCreateOrUpdateSample.ts][privateendpointconnectionscreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json | -| [privateEndpointConnectionsDeleteSample.ts][privateendpointconnectionsdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionsGetSample.ts][privateendpointconnectionsgetsample] | Gets a private endpoint connection. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionsListByPrivateLinkScopeSample.ts][privateendpointconnectionslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json | -| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json | -| [privateLinkResourcesListByPrivateLinkScopeSample.ts][privatelinkresourceslistbyprivatelinkscopesample] | Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json | -| [privateLinkScopeOperationStatusGetSample.ts][privatelinkscopeoperationstatusgetsample] | Get the status of an azure asynchronous operation associated with a private link scope operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json | -| [privateLinkScopedResourcesCreateOrUpdateSample.ts][privatelinkscopedresourcescreateorupdatesample] | Approve or reject a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json | -| [privateLinkScopedResourcesDeleteSample.ts][privatelinkscopedresourcesdeletesample] | Deletes a private endpoint connection with a given name. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json | -| [privateLinkScopedResourcesGetSample.ts][privatelinkscopedresourcesgetsample] | Gets a scoped resource in a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json | -| [privateLinkScopedResourcesListByPrivateLinkScopeSample.ts][privatelinkscopedresourceslistbyprivatelinkscopesample] | Gets all private endpoint connections on a private link scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json | -| [privateLinkScopesCreateOrUpdateSample.ts][privatelinkscopescreateorupdatesample] | Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json | -| [privateLinkScopesDeleteSample.ts][privatelinkscopesdeletesample] | Deletes a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json | -| [privateLinkScopesGetSample.ts][privatelinkscopesgetsample] | Returns a Azure Monitor PrivateLinkScope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json | -| [privateLinkScopesListByResourceGroupSample.ts][privatelinkscopeslistbyresourcegroupsample] | Gets a list of Azure Monitor PrivateLinkScopes within a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json | -| [privateLinkScopesListSample.ts][privatelinkscopeslistsample] | Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json | -| [privateLinkScopesUpdateTagsSample.ts][privatelinkscopesupdatetagssample] | Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json | -| [scheduledQueryRulesCreateOrUpdateSample.ts][scheduledqueryrulescreateorupdatesample] | Creates or updates a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRule.json | -| [scheduledQueryRulesDeleteSample.ts][scheduledqueryrulesdeletesample] | Deletes a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/deleteScheduledQueryRule.json | -| [scheduledQueryRulesGetSample.ts][scheduledqueryrulesgetsample] | Retrieve an scheduled query rule definition. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/getScheduledQueryRule.json | -| [scheduledQueryRulesListByResourceGroupSample.ts][scheduledqueryruleslistbyresourcegroupsample] | Retrieve scheduled query rule definitions in a resource group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesByResourceGroup.json | -| [scheduledQueryRulesListBySubscriptionSample.ts][scheduledqueryruleslistbysubscriptionsample] | Retrieve a scheduled query rule definitions in a subscription. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesBySubscription.json | -| [scheduledQueryRulesUpdateSample.ts][scheduledqueryrulesupdatesample] | Update a scheduled query rule. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/patchScheduledQueryRule.json | -| [tenantActionGroupsCreateOrUpdateSample.ts][tenantactiongroupscreateorupdatesample] | Create a new tenant action group or update an existing one. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/createOrUpdateTenantActionGroup.json | -| [tenantActionGroupsDeleteSample.ts][tenantactiongroupsdeletesample] | Delete a tenant action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/deleteTenantActionGroup.json | -| [tenantActionGroupsGetSample.ts][tenantactiongroupsgetsample] | Get a tenant action group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTenantActionGroup.json | -| [tenantActionGroupsListByManagementGroupIdSample.ts][tenantactiongroupslistbymanagementgroupidsample] | Get a list of all tenant action groups in a management group. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/listTenantActionGroups.json | -| [tenantActionGroupsUpdateSample.ts][tenantactiongroupsupdatesample] | Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/patchTenantActionGroup.json | -| [tenantActivityLogsListSample.ts][tenantactivitylogslistsample] | Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does _not_ retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json | -| [vmInsightsGetOnboardingStatusSample.ts][vminsightsgetonboardingstatussample] | Retrieves the VM Insights onboarding status for the specified resource or resource scope. x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json | - -## Prerequisites - -The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). - -Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: - -```bash -npm install -g typescript -``` - -You need [an Azure subscription][freesub] to run these sample programs. - -Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. - -Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. - -## Setup - -To run the samples using the published version of the package: - -1. Install the dependencies using `npm`: - -```bash -npm install -``` - -2. Compile the samples: - -```bash -npm run build -``` - -3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. - -4. Run whichever samples you like (note that some samples may require additional setup, see the table above): - -```bash -node dist/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js -``` - -Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): - -```bash -npx cross-env MONITOR_SUBSCRIPTION_ID="" MONITOR_RESOURCE_GROUP="" node dist/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.js -``` - -## Next Steps - -Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. - -[actiongroupscreatenotificationsatactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts -[actiongroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateOrUpdateSample.ts -[actiongroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsDeleteSample.ts -[actiongroupsenablereceiversample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsEnableReceiverSample.ts -[actiongroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetSample.ts -[actiongroupsgettestnotificationsatactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts -[actiongroupslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListByResourceGroupSample.ts -[actiongroupslistbysubscriptionidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListBySubscriptionIdSample.ts -[actiongroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsUpdateSample.ts -[activitylogalertscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsCreateOrUpdateSample.ts -[activitylogalertsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsDeleteSample.ts -[activitylogalertsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsGetSample.ts -[activitylogalertslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListByResourceGroupSample.ts -[activitylogalertslistbysubscriptionidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListBySubscriptionIdSample.ts -[activitylogalertsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsUpdateSample.ts -[activitylogslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogsListSample.ts -[alertruleincidentsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsGetSample.ts -[alertruleincidentslistbyalertrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsListByAlertRuleSample.ts -[alertrulescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesCreateOrUpdateSample.ts -[alertrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesDeleteSample.ts -[alertrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesGetSample.ts -[alertruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListByResourceGroupSample.ts -[alertruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListBySubscriptionSample.ts -[alertrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesUpdateSample.ts -[autoscalesettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsCreateOrUpdateSample.ts -[autoscalesettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsDeleteSample.ts -[autoscalesettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsGetSample.ts -[autoscalesettingslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListByResourceGroupSample.ts -[autoscalesettingslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListBySubscriptionSample.ts -[autoscalesettingsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsUpdateSample.ts -[azuremonitorworkspacescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesCreateSample.ts -[azuremonitorworkspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesDeleteSample.ts -[azuremonitorworkspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesGetSample.ts -[azuremonitorworkspaceslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListByResourceGroupSample.ts -[azuremonitorworkspaceslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListBySubscriptionSample.ts -[azuremonitorworkspacesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesUpdateSample.ts -[baselineslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/baselinesListSample.ts -[createnotificationsattenantactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/createNotificationsAtTenantActionGroupResourceLevelSample.ts -[datacollectionendpointscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsCreateSample.ts -[datacollectionendpointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsDeleteSample.ts -[datacollectionendpointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsGetSample.ts -[datacollectionendpointslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListByResourceGroupSample.ts -[datacollectionendpointslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListBySubscriptionSample.ts -[datacollectionendpointsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsUpdateSample.ts -[datacollectionruleassociationscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsCreateSample.ts -[datacollectionruleassociationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsDeleteSample.ts -[datacollectionruleassociationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsGetSample.ts -[datacollectionruleassociationslistbydatacollectionendpointsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts -[datacollectionruleassociationslistbyresourcesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByResourceSample.ts -[datacollectionruleassociationslistbyrulesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByRuleSample.ts -[datacollectionrulescreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesCreateSample.ts -[datacollectionrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesDeleteSample.ts -[datacollectionrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesGetSample.ts -[datacollectionruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListByResourceGroupSample.ts -[datacollectionruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListBySubscriptionSample.ts -[datacollectionrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesUpdateSample.ts -[diagnosticsettingscategorygetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryGetSample.ts -[diagnosticsettingscategorylistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryListSample.ts -[diagnosticsettingscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCreateOrUpdateSample.ts -[diagnosticsettingsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsDeleteSample.ts -[diagnosticsettingsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsGetSample.ts -[diagnosticsettingslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsListSample.ts -[eventcategorieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/eventCategoriesListSample.ts -[gettestnotificationsattenantactiongroupresourcelevelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts -[logprofilescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesCreateOrUpdateSample.ts -[logprofilesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesDeleteSample.ts -[logprofilesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesGetSample.ts -[logprofileslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesListSample.ts -[logprofilesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesUpdateSample.ts -[metricalertscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsCreateOrUpdateSample.ts -[metricalertsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsDeleteSample.ts -[metricalertsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsGetSample.ts -[metricalertslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListByResourceGroupSample.ts -[metricalertslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListBySubscriptionSample.ts -[metricalertsstatuslistbynamesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListByNameSample.ts -[metricalertsstatuslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListSample.ts -[metricalertsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsUpdateSample.ts -[metricdefinitionslistatsubscriptionscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListAtSubscriptionScopeSample.ts -[metricdefinitionslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListSample.ts -[metricnamespaceslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricNamespacesListSample.ts -[metricslistatsubscriptionscopepostsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopePostSample.ts -[metricslistatsubscriptionscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopeSample.ts -[metricslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListSample.ts -[monitoroperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/monitorOperationsListSample.ts -[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/operationsListSample.ts -[predictivemetricgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/predictiveMetricGetSample.ts -[privateendpointconnectionscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts -[privateendpointconnectionsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts -[privateendpointconnectionsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsGetSample.ts -[privateendpointconnectionslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts -[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesGetSample.ts -[privatelinkresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts -[privatelinkscopeoperationstatusgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopeOperationStatusGetSample.ts -[privatelinkscopedresourcescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesCreateOrUpdateSample.ts -[privatelinkscopedresourcesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesDeleteSample.ts -[privatelinkscopedresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesGetSample.ts -[privatelinkscopedresourceslistbyprivatelinkscopesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts -[privatelinkscopescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts -[privatelinkscopesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesDeleteSample.ts -[privatelinkscopesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesGetSample.ts -[privatelinkscopeslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts -[privatelinkscopeslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListSample.ts -[privatelinkscopesupdatetagssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts -[scheduledqueryrulescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesCreateOrUpdateSample.ts -[scheduledqueryrulesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesDeleteSample.ts -[scheduledqueryrulesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesGetSample.ts -[scheduledqueryruleslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListByResourceGroupSample.ts -[scheduledqueryruleslistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListBySubscriptionSample.ts -[scheduledqueryrulesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesUpdateSample.ts -[tenantactiongroupscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsCreateOrUpdateSample.ts -[tenantactiongroupsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsDeleteSample.ts -[tenantactiongroupsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsGetSample.ts -[tenantactiongroupslistbymanagementgroupidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsListByManagementGroupIdSample.ts -[tenantactiongroupsupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsUpdateSample.ts -[tenantactivitylogslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActivityLogsListSample.ts -[vminsightsgetonboardingstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/vmInsightsGetOnboardingStatusSample.ts -[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-monitor?view=azure-node-preview -[freesub]: https://azure.microsoft.com/free/ -[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor/README.md -[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/package.json b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/package.json deleted file mode 100644 index 4dc14104f67e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@azure-samples/arm-monitor-ts-beta", - "private": true, - "version": "1.0.0", - "description": " client library samples for TypeScript (Beta)", - "engines": { - "node": ">=18.0.0" - }, - "scripts": { - "build": "tsc", - "prebuild": "rimraf dist/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/Azure/azure-sdk-for-js.git", - "directory": "sdk/monitor/arm-monitor" - }, - "keywords": [ - "node", - "azure", - "typescript", - "browser", - "isomorphic" - ], - "author": "Microsoft Corporation", - "license": "MIT", - "bugs": { - "url": "https://github.com/Azure/azure-sdk-for-js/issues" - }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/arm-monitor", - "dependencies": { - "@azure/arm-monitor": "next", - "dotenv": "latest", - "@azure/identity": "^4.2.1" - }, - "devDependencies": { - "@types/node": "^18.0.0", - "typescript": "~5.5.3", - "rimraf": "latest" - } -} diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/sample.env b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/sample.env deleted file mode 100644 index 672847a3fea0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/sample.env +++ /dev/null @@ -1,4 +0,0 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts deleted file mode 100644 index 733196a69e01..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateNotificationsAtActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,160 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { NotificationRequestBody, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/postTestNotificationsAtActionGroupResourceLevel.json - */ -async function createNotificationsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationRequest: NotificationRequestBody = { - alertType: "budget", - armRoleReceivers: [ - { - name: "ArmRole-Common", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: true, - }, - { - name: "ArmRole-nonCommon", - roleId: "11111111-1111-1111-1111-111111111111", - useCommonAlertSchema: false, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "http://test.me", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: - "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.actionGroups.beginCreateNotificationsAtActionGroupResourceLevelAndWait( - resourceGroupName, - actionGroupName, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateOrUpdateSample.ts deleted file mode 100644 index 7a4bd7d9e999..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActionGroupResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new action group or update an existing one. - * - * @summary Create a new action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/createOrUpdateActionGroup.json - */ -async function createOrUpdateAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroup: ActionGroupResource = { - armRoleReceivers: [ - { - name: "Sample armRole", - roleId: "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", - useCommonAlertSchema: true, - }, - ], - automationRunbookReceivers: [ - { - name: "testRunbook", - automationAccountId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest", - isGlobalRunbook: false, - runbookName: "Sample runbook", - serviceUri: "", - useCommonAlertSchema: true, - webhookResourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084", - }, - ], - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - azureFunctionReceivers: [ - { - name: "Sample azureFunction", - functionAppResourceId: - "/subscriptions/5def922a-3ed4-49c1-b9fd-05ec533819a3/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp", - functionName: "HttpTriggerCSharp1", - httpTriggerUrl: "http://test.me", - useCommonAlertSchema: true, - }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - eventHubReceivers: [ - { - name: "Sample eventHub", - eventHubName: "testEventHub", - eventHubNameSpace: "testEventHubNameSpace", - subscriptionId: "187f412d-1758-44d9-b052-169e2564721d", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - }, - ], - groupShortName: "sample", - itsmReceivers: [ - { - name: "Sample itsm", - connectionId: "a3b9076c-ce8e-434e-85b4-aff10cb3c8f1", - region: "westcentralus", - ticketConfiguration: - '{"PayloadRevision":0,"WorkItemType":"Incident","UseTemplate":false,"WorkItemData":"{}","CreateOneWIPerCI":false}', - workspaceId: - "5def922a-3ed4-49c1-b9fd-05ec533819a3|55dfd1f8-7e59-4f89-bf56-4c82f5ace23c", - }, - ], - location: "Global", - logicAppReceivers: [ - { - name: "Sample logicApp", - callbackUrl: - "https://prod-27.northcentralus.logic.azure.com/workflows/68e572e818e5457ba898763b7db90877/triggers/manual/paths/invoke/azns/test?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Abpsb72UYJxPPvmDo937uzofupO5r_vIeWEx7KVHo7w", - resourceId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp", - useCommonAlertSchema: false, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.createOrUpdate( - resourceGroupName, - actionGroupName, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsDeleteSample.ts deleted file mode 100644 index 23ed92f9919e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an action group. - * - * @summary Delete an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/deleteActionGroup.json - */ -async function deleteAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.delete( - resourceGroupName, - actionGroupName, - ); - console.log(result); -} - -async function main() { - deleteAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsEnableReceiverSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsEnableReceiverSample.ts deleted file mode 100644 index 8e014051264e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsEnableReceiverSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { EnableRequest, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * - * @summary Enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled. This operation is only supported for Email or SMS receivers. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/enableReceiver.json - */ -async function enableTheReceiver() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const enableRequest: EnableRequest = { receiverName: "John Doe's mobile" }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.enableReceiver( - resourceGroupName, - actionGroupName, - enableRequest, - ); - console.log(result); -} - -async function main() { - enableTheReceiver(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetSample.ts deleted file mode 100644 index daf9508f7493..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get an action group. - * - * @summary Get an action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getActionGroup.json - */ -async function getAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.get( - resourceGroupName, - actionGroupName, - ); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts deleted file mode 100644 index a12029e2ba9e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsGetTestNotificationsAtActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/getTestNotificationsAtActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "11111111-1111-1111-1111-111111111111"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestRgName"; - const actionGroupName = "TestAgName"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.actionGroups.getTestNotificationsAtActionGroupResourceLevel( - resourceGroupName, - actionGroupName, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListByResourceGroupSample.ts deleted file mode 100644 index d64c55e1f080..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a resource group. - * - * @summary Get a list of all action groups in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtResourceGroupLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtResourceGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListBySubscriptionIdSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListBySubscriptionIdSample.ts deleted file mode 100644 index a6d18adbfc1b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsListBySubscriptionIdSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all action groups in a subscription. - * - * @summary Get a list of all action groups in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/listActionGroups.json - */ -async function listActionGroupsAtSubscriptionLevel() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.actionGroups.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActionGroupsAtSubscriptionLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsUpdateSample.ts deleted file mode 100644 index 440971ec6e70..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/actionGroupsUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActionGroupPatchBody, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-01-01/examples/patchActionGroup.json - */ -async function patchAnActionGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Default-NotificationRules"; - const actionGroupName = "SampleActionGroup"; - const actionGroupPatch: ActionGroupPatchBody = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.actionGroups.update( - resourceGroupName, - actionGroupName, - actionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsCreateOrUpdateSample.ts deleted file mode 100644 index 8bbfed32c2ba..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsCreateOrUpdateSample.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ActivityLogAlertResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdate.json - */ -async function createOrUpdateAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: "Description of sample Activity Log Alert rule.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "Administrative", field: "category" }, - { equals: "Error", field: "level" }, - ], - }, - enabled: true, - location: "Global", - scopes: ["/subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithAnyOfCondition.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithAnyOfCondition"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: - "Description of sample Activity Log Alert rule with 'anyOf' condition.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - anyOf: [ - { equals: "Incident", field: "properties.incidentType" }, - { equals: "Maintenance", field: "properties.incidentType" }, - ], - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create a new Activity Log Alert rule or update an existing one. - * - * @summary Create a new Activity Log Alert rule or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_CreateOrUpdateRuleWithContainsAny.json - */ -async function createOrUpdateAnActivityLogAlertRuleWithContainsAny() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRuleWithContainsAny"; - const activityLogAlertRule: ActivityLogAlertResource = { - description: - "Description of sample Activity Log Alert rule with 'containsAny'.", - actions: { - actionGroups: [ - { - actionGroupId: - "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/actionGroups/SampleActionGroup", - webhookProperties: { sampleWebhookProperty: "SamplePropertyValue" }, - }, - ], - }, - condition: { - allOf: [ - { equals: "ServiceHealth", field: "category" }, - { - containsAny: ["North Europe", "West Europe"], - field: "properties.impactedServices[*].ImpactedRegions[*].RegionName", - }, - ], - }, - enabled: true, - location: "Global", - scopes: ["subscriptions/187f412d-1758-44d9-b052-169e2564721d"], - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.createOrUpdate( - resourceGroupName, - activityLogAlertName, - activityLogAlertRule, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnActivityLogAlertRule(); - createOrUpdateAnActivityLogAlertRuleWithAnyOfCondition(); - createOrUpdateAnActivityLogAlertRuleWithContainsAny(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsDeleteSample.ts deleted file mode 100644 index c75ec67ba460..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an Activity Log Alert rule. - * - * @summary Delete an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Delete.json - */ -async function deleteAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.delete( - resourceGroupName, - activityLogAlertName, - ); - console.log(result); -} - -async function main() { - deleteAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsGetSample.ts deleted file mode 100644 index 338adbd0edae..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get an Activity Log Alert rule. - * - * @summary Get an Activity Log Alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Get.json - */ -async function getAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.get( - resourceGroupName, - activityLogAlertName, - ); - console.log(result); -} - -async function main() { - getAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListByResourceGroupSample.ts deleted file mode 100644 index c2fb3ccf061a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a resource group. - * - * @summary Get a list of all Activity Log Alert rules in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListByResourceGroupName.json - */ -async function listActivityLogAlerts() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listActivityLogAlerts(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListBySubscriptionIdSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListBySubscriptionIdSample.ts deleted file mode 100644 index 173f96e013a3..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsListBySubscriptionIdSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all Activity Log Alert rules in a subscription. - * - * @summary Get a list of all Activity Log Alert rules in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_ListBySubscriptionId.json - */ -async function getListOfAllActivityLogAlertRulesUnderASubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogAlerts.listBySubscriptionId()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getListOfAllActivityLogAlertRulesUnderASubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsUpdateSample.ts deleted file mode 100644 index 2e3c18d79144..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogAlertsUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRulePatchObject, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * - * @summary Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2020-10-01/examples/ActivityLogAlertRule_Update.json - */ -async function patchAnActivityLogAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "187f412d-1758-44d9-b052-169e2564721d"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const activityLogAlertName = "SampleActivityLogAlertRule"; - const activityLogAlertRulePatch: AlertRulePatchObject = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.activityLogAlerts.update( - resourceGroupName, - activityLogAlertName, - activityLogAlertRulePatch, - ); - console.log(result); -} - -async function main() { - patchAnActivityLogAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogsListSample.ts deleted file mode 100644 index e60e9b888bec..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/activityLogsListSample.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ActivityLogsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFiltered.json - */ -async function getActivityLogsWithFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Provides the list of records from the activity logs. - * - * @summary Provides the list of records from the activity logs. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetActivityLogsFilteredAndSelected.json - */ -async function getActivityLogsWithFilterAndSelect() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "089bd33f-d4ec-47fe-8ba5-0753aa5c5b33"; - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: ActivityLogsListOptionalParams = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.activityLogs.list(filter, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getActivityLogsWithFilter(); - getActivityLogsWithFilterAndSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsGetSample.ts deleted file mode 100644 index 313e0a278be7..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets an incident associated to an alert rule - * - * @summary Gets an incident associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRuleIncident.json - */ -async function getASingleAlertRuleIncident() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const incidentName = "Website_started"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRuleIncidents.get( - resourceGroupName, - ruleName, - incidentName, - ); - console.log(result); -} - -async function main() { - getASingleAlertRuleIncident(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsListByAlertRuleSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsListByAlertRuleSample.ts deleted file mode 100644 index 726c6be15ae1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRuleIncidentsListByAlertRuleSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of incidents associated to an alert rule - * - * @summary Gets a list of incidents associated to an alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleIncidents.json - */ -async function listAlertRuleIncidents() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "myRuleName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRuleIncidents.listByAlertRule( - resourceGroupName, - ruleName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRuleIncidents(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesCreateOrUpdateSample.ts deleted file mode 100644 index de00048aa768..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesCreateOrUpdateSample.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRuleResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a classic metric alert rule. - * - * @summary Creates or updates a classic metric alert rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateAlertRule.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const parameters: AlertRuleResource = { - namePropertiesName: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - location: "West US", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesDeleteSample.ts deleted file mode 100644 index 6bd0b7f8913b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesDeleteSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a classic metric alert rule - * - * @summary Deletes a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteAlertRule.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesGetSample.ts deleted file mode 100644 index 1eed90dfd819..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a classic metric alert rule - * - * @summary Gets a classic metric alert rule - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getAlertRule.json - */ -async function getAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListByResourceGroupSample.ts deleted file mode 100644 index c76944b45eb0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a resource group. - * - * @summary List the classic metric alert rules within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRule.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListBySubscriptionSample.ts deleted file mode 100644 index 04a8b5846cd7..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the classic metric alert rules within a subscription. - * - * @summary List the classic metric alert rules within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listAlertRuleBySubscription.json - */ -async function listAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.alertRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesUpdateSample.ts deleted file mode 100644 index 3c57aa6f9457..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/alertRulesUpdateSample.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AlertRuleResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchAlertRule.json - */ -async function patchAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "Rac46PostSwapRG"; - const ruleName = "chiricutin"; - const alertRulesResource: AlertRuleResourcePatch = { - name: "chiricutin", - description: "Pura Vida", - actions: [], - condition: { - dataSource: { - metricName: "Requests", - odataType: - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", - resourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/leoalerttest", - }, - odataType: - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", - operator: "GreaterThan", - threshold: 3, - timeAggregation: "Total", - windowSize: "PT5M", - }, - isEnabled: true, - tags: { - $type: - "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.alertRules.update( - resourceGroupName, - ruleName, - alertRulesResource, - ); - console.log(result); -} - -async function main() { - patchAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsCreateOrUpdateSample.ts deleted file mode 100644 index 2dd06ae8fa1a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { AutoscaleSettingResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an autoscale setting. - * - * @summary Creates or updates an autoscale setting. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/createOrUpdateAutoscaleSetting.json - */ -async function createOrUpdateAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const parameters: AutoscaleSettingResource = { - enabled: true, - location: "West US", - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1", key2: "value2" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.createOrUpdate( - resourceGroupName, - autoscaleSettingName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsDeleteSample.ts deleted file mode 100644 index e90cd698fb7d..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes and autoscale setting - * - * @summary Deletes and autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/deleteAutoscaleSetting.json - */ -async function deleteAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.delete( - resourceGroupName, - autoscaleSettingName, - ); - console.log(result); -} - -async function main() { - deleteAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsGetSample.ts deleted file mode 100644 index e9b2ee193f89..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets an autoscale setting - * - * @summary Gets an autoscale setting - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/getAutoscaleSetting.json - */ -async function getAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.get( - resourceGroupName, - autoscaleSettingName, - ); - console.log(result); -} - -async function main() { - getAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListByResourceGroupSample.ts deleted file mode 100644 index 9261615d1ba1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a resource group - * - * @summary Lists the autoscale settings for a resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSetting.json - */ -async function listAutoscaleSettings() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettings(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListBySubscriptionSample.ts deleted file mode 100644 index 726e2114046d..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the autoscale settings for a subscription - * - * @summary Lists the autoscale settings for a subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/listAutoscaleSettingBySubscription.json - */ -async function listAutoscaleSettingsBySubs() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.autoscaleSettings.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAutoscaleSettingsBySubs(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsUpdateSample.ts deleted file mode 100644 index db85f6be0964..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/autoscaleSettingsUpdateSample.ts +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AutoscaleSettingResourcePatch, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/patchAutoscaleSetting.json - */ -async function patchAnAutoscaleSetting() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "TestingMetricsScaleSet"; - const autoscaleSettingName = "MySetting"; - const autoscaleSettingResource: AutoscaleSettingResourcePatch = { - enabled: true, - notifications: [ - { - email: { - customEmails: ["gu@ms.com", "ge@ns.net"], - sendToSubscriptionAdministrator: true, - sendToSubscriptionCoAdministrators: true, - }, - operation: "Scale", - webhooks: [{ properties: {}, serviceUri: "http://myservice.com" }], - }, - ], - predictiveAutoscalePolicy: { scaleMode: "Enabled" }, - profiles: [ - { - name: "adios", - capacity: { default: "1", maximum: "10", minimum: "1" }, - fixedDate: { - end: new Date("2015-03-05T14:30:00Z"), - start: new Date("2015-03-05T14:00:00Z"), - timeZone: "UTC", - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - { - name: "saludos", - capacity: { default: "1", maximum: "10", minimum: "1" }, - recurrence: { - frequency: "Week", - schedule: { days: ["1"], hours: [5], minutes: [15], timeZone: "UTC" }, - }, - rules: [ - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 10, - timeAggregation: "Average", - timeGrain: "PT1M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT5M", - direction: "Increase", - value: "1", - }, - }, - { - metricTrigger: { - dividePerInstance: false, - metricName: "Percentage CPU", - metricResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - operator: "GreaterThan", - statistic: "Average", - threshold: 15, - timeAggregation: "Average", - timeGrain: "PT2M", - timeWindow: "PT5M", - }, - scaleAction: { - type: "ChangeCount", - cooldown: "PT6M", - direction: "Decrease", - value: "2", - }, - }, - ], - }, - ], - tags: { key1: "value1" }, - targetResourceUri: - "/subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/TestingMetricsScaleSet/providers/Microsoft.Compute/virtualMachineScaleSets/testingsc", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.autoscaleSettings.update( - resourceGroupName, - autoscaleSettingName, - autoscaleSettingResource, - ); - console.log(result); -} - -async function main() { - patchAnAutoscaleSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesCreateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesCreateSample.ts deleted file mode 100644 index 10781f2104ed..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorWorkspaceResource, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an Azure Monitor Workspace - * - * @summary Creates or updates an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesCreate.json - */ -async function createOrUpdateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResource = { - location: "eastus", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.create( - resourceGroupName, - azureMonitorWorkspaceName, - azureMonitorWorkspaceProperties, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesDeleteSample.ts deleted file mode 100644 index 1832e3f562b4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an Azure Monitor Workspace - * - * @summary Deletes an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesDelete.json - */ -async function deleteAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.beginDeleteAndWait( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - deleteAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesGetSample.ts deleted file mode 100644 index bdbdf74193da..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified Azure Monitor Workspace - * - * @summary Returns the specified Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesGet.json - */ -async function getAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.get( - resourceGroupName, - azureMonitorWorkspaceName, - ); - console.log(result); -} - -async function main() { - getAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListByResourceGroupSample.ts deleted file mode 100644 index 70e924f73993..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified resource group - * - * @summary Lists all Azure Monitor Workspaces in the specified resource group - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListByResourceGroup.json - */ -async function listAzureMonitorWorkspacesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListBySubscriptionSample.ts deleted file mode 100644 index c93180634493..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all Azure Monitor Workspaces in the specified subscription - * - * @summary Lists all Azure Monitor Workspaces in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesListBySubscription.json - */ -async function listAzureMonitorWorkspacesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAzureMonitorWorkspacesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesUpdateSample.ts deleted file mode 100644 index 2861ff3597fb..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/azureMonitorWorkspacesUpdateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorWorkspaceResourceForUpdate, - AzureMonitorWorkspacesUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of an Azure Monitor Workspace - * - * @summary Updates part of an Azure Monitor Workspace - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/AzureMonitorWorkspacesUpdate.json - */ -async function updateAnAzureMonitorWorkspace() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const azureMonitorWorkspaceName = "myAzureMonitorWorkspace"; - const azureMonitorWorkspaceProperties: AzureMonitorWorkspaceResourceForUpdate = - { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: AzureMonitorWorkspacesUpdateOptionalParams = { - azureMonitorWorkspaceProperties, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.azureMonitorWorkspaces.update( - resourceGroupName, - azureMonitorWorkspaceName, - options, - ); - console.log(result); -} - -async function main() { - updateAnAzureMonitorWorkspace(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/baselinesListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/baselinesListSample.ts deleted file mode 100644 index 8e54237d1005..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/baselinesListSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { BaselinesListOptionalParams, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric baseline values for a resource**. - * - * @summary **Lists the metric baseline values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2019-03-01/examples/metricBaselines.json - */ -async function getMetricBaselines() { - const resourceUri = - "subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1"; - const timespan = "2019-03-12T11:00:00.000Z/2019-03-12T12:00:00.000Z"; - const interval = "PT1H"; - const aggregation = "average"; - const sensitivities = "Low,Medium"; - const options: BaselinesListOptionalParams = { - timespan, - interval, - aggregation, - sensitivities, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.baselines.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricBaselines(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/createNotificationsAtTenantActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/createNotificationsAtTenantActionGroupResourceLevelSample.ts deleted file mode 100644 index 87c845b526dc..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/createNotificationsAtTenantActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TenantNotificationRequestBody, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Send test notifications to a set of provided receivers - * - * @summary Send test notifications to a set of provided receivers - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/postTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function createNotificationsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationRequest: TenantNotificationRequestBody = { - alertType: "servicehealth", - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "1234567890", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "1234567890" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = - await client.beginCreateNotificationsAtTenantActionGroupResourceLevelAndWait( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationRequest, - ); - console.log(result); -} - -async function main() { - createNotificationsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsCreateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsCreateSample.ts deleted file mode 100644 index aa9f8773b4e4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsCreateSample.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionEndpointResource, - DataCollectionEndpointsCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data collection endpoint. - * - * @summary Creates or updates a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsCreate.json - */ -async function createOrUpdateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body: DataCollectionEndpointResource = { - location: "eastus", - networkAcls: { publicNetworkAccess: "Enabled" }, - }; - const options: DataCollectionEndpointsCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.create( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsDeleteSample.ts deleted file mode 100644 index e17f075b9a23..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a data collection endpoint. - * - * @summary Deletes a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsDelete.json - */ -async function deleteDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.delete( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - deleteDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsGetSample.ts deleted file mode 100644 index 32fbd2cb592e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified data collection endpoint. - * - * @summary Returns the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsGet.json - */ -async function getDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.get( - resourceGroupName, - dataCollectionEndpointName, - ); - console.log(result); -} - -async function main() { - getDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListByResourceGroupSample.ts deleted file mode 100644 index 9b2a3a003c36..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified resource group. - * - * @summary Lists all data collection endpoints in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListByResourceGroup.json - */ -async function listDataCollectionEndpointsByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListBySubscriptionSample.ts deleted file mode 100644 index c37c502e0ae8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection endpoints in the specified subscription - * - * @summary Lists all data collection endpoints in the specified subscription - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsListBySubscription.json - */ -async function listDataCollectionEndpointsBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionEndpoints.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionEndpointsBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsUpdateSample.ts deleted file mode 100644 index caec3152cac8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionEndpointsUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ResourceForUpdate, - DataCollectionEndpointsUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of a data collection endpoint. - * - * @summary Updates part of a data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionEndpointsUpdate.json - */ -async function updateDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myCollectionEndpoint"; - const body: ResourceForUpdate = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: DataCollectionEndpointsUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionEndpoints.update( - resourceGroupName, - dataCollectionEndpointName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsCreateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsCreateSample.ts deleted file mode 100644 index 5d9708ab1a78..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsCreateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionRuleAssociationProxyOnlyResource, - DataCollectionRuleAssociationsCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates an association. - * - * @summary Creates or updates an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsCreate.json - */ -async function createOrUpdateAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const body: DataCollectionRuleAssociationProxyOnlyResource = { - dataCollectionRuleId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Insights/dataCollectionRules/myCollectionRule", - }; - const options: DataCollectionRuleAssociationsCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.create( - resourceUri, - associationName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsDeleteSample.ts deleted file mode 100644 index a4b2f25fae63..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsDeleteSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes an association. - * - * @summary Deletes an association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsDelete.json - */ -async function deleteAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.delete( - resourceUri, - associationName, - ); - console.log(result); -} - -async function main() { - deleteAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsGetSample.ts deleted file mode 100644 index 20b00406b89b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsGetSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified association. - * - * @summary Returns the specified association. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsGet.json - */ -async function getAssociation() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const associationName = "myAssociation"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.dataCollectionRuleAssociations.get( - resourceUri, - associationName, - ); - console.log(result); -} - -async function main() { - getAssociation(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts deleted file mode 100644 index 56f6836f8c99..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByDataCollectionEndpointSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection endpoint. - * - * @summary Lists associations for the specified data collection endpoint. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByDataCollectionEndpoint.json - */ -async function listAssociationsForSpecifiedDataCollectionEndpoint() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionEndpointName = "myDataCollectionEndpointName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByDataCollectionEndpoint( - resourceGroupName, - dataCollectionEndpointName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionEndpoint(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByResourceSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByResourceSample.ts deleted file mode 100644 index fc961715ee80..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByResourceSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified resource. - * - * @summary Lists associations for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByResource.json - */ -async function listAssociationsForSpecifiedResource() { - const resourceUri = - "subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByResource( - resourceUri, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByRuleSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByRuleSample.ts deleted file mode 100644 index a5fc435a2756..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRuleAssociationsListByRuleSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists associations for the specified data collection rule. - * - * @summary Lists associations for the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRuleAssociationsListByRule.json - */ -async function listAssociationsForSpecifiedDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRuleAssociations.listByRule( - resourceGroupName, - dataCollectionRuleName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listAssociationsForSpecifiedDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesCreateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesCreateSample.ts deleted file mode 100644 index d7bd41641348..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesCreateSample.ts +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - DataCollectionRuleResource, - DataCollectionRulesCreateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a data collection rule. - * - * @summary Creates or updates a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesCreate.json - */ -async function createOrUpdateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body: DataCollectionRuleResource = { - dataFlows: [ - { - destinations: ["centralWorkspace"], - streams: [ - "Microsoft-Perf", - "Microsoft-Syslog", - "Microsoft-WindowsEvent", - ], - }, - ], - dataSources: { - performanceCounters: [ - { - name: "cloudTeamCoreCounters", - counterSpecifiers: [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length", - ], - samplingFrequencyInSeconds: 15, - streams: ["Microsoft-Perf"], - }, - { - name: "appTeamExtraCounters", - counterSpecifiers: ["\\Process(_Total)\\Thread Count"], - samplingFrequencyInSeconds: 30, - streams: ["Microsoft-Perf"], - }, - ], - syslog: [ - { - name: "cronSyslog", - facilityNames: ["cron"], - logLevels: ["Debug", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - { - name: "syslogBase", - facilityNames: ["syslog"], - logLevels: ["Alert", "Critical", "Emergency"], - streams: ["Microsoft-Syslog"], - }, - ], - windowsEventLogs: [ - { - name: "cloudSecurityTeamEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: ["Security!"], - }, - { - name: "appTeam1AppEvents", - streams: ["Microsoft-WindowsEvent"], - xPathQueries: [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]", - ], - }, - ], - }, - destinations: { - logAnalytics: [ - { - name: "centralWorkspace", - workspaceResourceId: - "/subscriptions/703362b3-f278-4e4b-9179-c76eaf41ffc2/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/centralTeamWorkspace", - }, - ], - }, - location: "eastus", - }; - const options: DataCollectionRulesCreateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.create( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - createOrUpdateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesDeleteSample.ts deleted file mode 100644 index 144b71046e72..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a data collection rule. - * - * @summary Deletes a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesDelete.json - */ -async function deleteDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.delete( - resourceGroupName, - dataCollectionRuleName, - ); - console.log(result); -} - -async function main() { - deleteDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesGetSample.ts deleted file mode 100644 index ab14ec95ceb1..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns the specified data collection rule. - * - * @summary Returns the specified data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesGet.json - */ -async function getDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.get( - resourceGroupName, - dataCollectionRuleName, - ); - console.log(result); -} - -async function main() { - getDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListByResourceGroupSample.ts deleted file mode 100644 index 90ada4b6922c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified resource group. - * - * @summary Lists all data collection rules in the specified resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListByResourceGroup.json - */ -async function listDataCollectionRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListBySubscriptionSample.ts deleted file mode 100644 index dc2a3a90da04..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all data collection rules in the specified subscription. - * - * @summary Lists all data collection rules in the specified subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesListBySubscription.json - */ -async function listDataCollectionRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.dataCollectionRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listDataCollectionRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesUpdateSample.ts deleted file mode 100644 index dbf9a1df4b13..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/dataCollectionRulesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ResourceForUpdate, - DataCollectionRulesUpdateOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates part of a data collection rule. - * - * @summary Updates part of a data collection rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-06-01/examples/DataCollectionRulesUpdate.json - */ -async function updateDataCollectionRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "703362b3-f278-4e4b-9179-c76eaf41ffc2"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "myResourceGroup"; - const dataCollectionRuleName = "myCollectionRule"; - const body: ResourceForUpdate = { tags: { tag1: "A", tag2: "B", tag3: "C" } }; - const options: DataCollectionRulesUpdateOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.dataCollectionRules.update( - resourceGroupName, - dataCollectionRuleName, - options, - ); - console.log(result); -} - -async function main() { - updateDataCollectionRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryGetSample.ts deleted file mode 100644 index fd9f1273f88f..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryGetSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the diagnostic settings category for the specified resource. - * - * @summary Gets the diagnostic settings category for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "WorkflowRuntime"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettingsCategory.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryListSample.ts deleted file mode 100644 index 9a441e16a814..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCategoryListSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the diagnostic settings categories for the specified resource. - * - * @summary Lists the diagnostic settings categories for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategories.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettingsCategory.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCreateOrUpdateSample.ts deleted file mode 100644 index 8abbc6d55e51..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsCreateOrUpdateSample.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { DiagnosticSettingsResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSetting.json - */ -async function createsOrUpdatesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters: DiagnosticSettingsResource = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - categoryGroup: "allLogs", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate( - resourceUri, - name, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates diagnostic settings for the specified resource. - * - * @summary Creates or updates diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSettingCategory.json - */ -async function createsOrUpdatesTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const parameters: DiagnosticSettingsResource = { - eventHubAuthorizationRuleId: - "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/authorizationrules/myrule", - eventHubName: "myeventhub", - logAnalyticsDestinationType: "Dedicated", - logs: [ - { - category: "WorkflowRuntime", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - marketplacePartnerId: - "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", - metrics: [ - { - category: "WorkflowMetrics", - enabled: true, - retentionPolicy: { days: 0, enabled: false }, - }, - ], - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", - workspaceId: "", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.createOrUpdate( - resourceUri, - name, - parameters, - ); - console.log(result); -} - -async function main() { - createsOrUpdatesTheDiagnosticSetting(); - createsOrUpdatesTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsDeleteSample.ts deleted file mode 100644 index 7172f91eea87..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsDeleteSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes existing diagnostic settings for the specified resource. - * - * @summary Deletes existing diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/deleteDiagnosticSetting.json - */ -async function deletesTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.delete(resourceUri, name); - console.log(result); -} - -async function main() { - deletesTheDiagnosticSetting(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsGetSample.ts deleted file mode 100644 index 1d85c1acac71..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsGetSample.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSetting.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings for the specified resource. - * - * @summary Gets the active diagnostic settings for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const name = "mysetting"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.diagnosticSettings.get(resourceUri, name); - console.log(result); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsListSample.ts deleted file mode 100644 index 0ce9d28caef0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/diagnosticSettingsListSample.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettings.json - */ -async function getsTheDiagnosticSetting() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the active diagnostic settings list for the specified resource. - * - * @summary Gets the active diagnostic settings list for the specified resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/examples/listDiagnosticSettingsCategory.json - */ -async function getsTheDiagnosticSettingForCategory() { - const resourceUri = - "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.diagnosticSettings.list(resourceUri)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsTheDiagnosticSetting(); - getsTheDiagnosticSettingForCategory(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/eventCategoriesListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/eventCategoriesListSample.ts deleted file mode 100644 index 079ab97d5e1e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/eventCategoriesListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * - * @summary Get the list of available event categories supported in the Activity Logs Service.
The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetEventCategories.json - */ -async function getEventCategories() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.eventCategories.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getEventCategories(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts deleted file mode 100644 index 388d9366e325..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/getTestNotificationsAtTenantActionGroupResourceLevelSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the test notifications by the notification id - * - * @summary Get the test notifications by the notification id - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTestNotificationsAtTenantActionGroupResourceLevel.json - */ -async function getNotificationDetailsAtTenantActionGroupLevel() { - const managementGroupId = "11111111-1111-1111-1111-111111111111"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const notificationId = "11000222191287"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = - await client.getTestNotificationsAtTenantActionGroupResourceLevel( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - notificationId, - ); - console.log(result); -} - -async function main() { - getNotificationDetailsAtTenantActionGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesCreateOrUpdateSample.ts deleted file mode 100644 index bad8f3081c8b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { LogProfileResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update a log profile in Azure Monitoring REST API. - * - * @summary Create or update a log profile in Azure Monitoring REST API. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/createOrUpdateLogProfile.json - */ -async function createOrUpdateALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const parameters: LogProfileResource = { - categories: ["Write", "Delete", "Action"], - location: "", - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: {}, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.createOrUpdate( - logProfileName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesDeleteSample.ts deleted file mode 100644 index c264d326b6a3..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesDeleteSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes the log profile. - * - * @summary Deletes the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/deleteLogProfile.json - */ -async function deleteLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "b67f7fec-69fc-4974-9099-a26bd6ffeda3"; - const logProfileName = "Rac46PostSwapRG"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.delete(logProfileName); - console.log(result); -} - -async function main() { - deleteLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesGetSample.ts deleted file mode 100644 index 9e2f9f31105a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesGetSample.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the log profile. - * - * @summary Gets the log profile. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/getLogProfile.json - */ -async function getLogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "default"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.get(logProfileName); - console.log(result); -} - -async function main() { - getLogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesListSample.ts deleted file mode 100644 index 717850be0c5a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to List the log profiles. - * - * @summary List the log profiles. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/listLogProfile.json - */ -async function listLogProfiles() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listLogProfiles(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesUpdateSample.ts deleted file mode 100644 index 355e5ada2ef5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/logProfilesUpdateSample.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { LogProfileResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2016-03-01/examples/patchLogProfile.json - */ -async function patchALogProfile() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "df602c9c-7aa0-407d-a6fb-eb20c8bd1192"; - const logProfileName = "Rac46PostSwapRG"; - const logProfilesResource: LogProfileResourcePatch = { - categories: ["Write", "Delete", "Action"], - locations: ["global"], - retentionPolicy: { days: 3, enabled: true }, - serviceBusRuleId: "", - storageAccountId: - "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/JohnKemTest/providers/Microsoft.Storage/storageAccounts/johnkemtest8162", - tags: { key1: "value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.logProfiles.update( - logProfileName, - logProfilesResource, - ); - console.log(result); -} - -async function main() { - patchALogProfile(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsCreateOrUpdateSample.ts deleted file mode 100644 index 947c9f1c71f8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsCreateOrUpdateSample.ts +++ /dev/null @@ -1,504 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricAlertResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertMultipleResource.json - */ -async function createOrUpdateADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateDynamicMetricAlertSingleResource.json - */ -async function createOrUpdateADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - alertSensitivity: "Medium", - criterionType: "DynamicThresholdCriterion", - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 4, - numberOfEvaluationPeriods: 4, - }, - ignoreDataBefore: new Date("2019-04-04T21:00:00.000Z"), - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterOrLessThan", - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateWebTestMetricAlert.json - */ -async function createOrUpdateAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const parameters: MetricAlertResource = { - description: - 'Automatically created alert rule for availability test "component-example" a', - actions: [], - criteria: { - componentId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - failedLocationCount: 2, - odataType: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria", - webTestId: - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", - "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", - ], - severity: 4, - tags: { - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/components/webtestNameExample": - "Resource", - "hiddenLink:/subscriptions/12345678123412341234123456789101/resourcegroups/rgExample/providers/microsoftInsights/webtests/componentExample": - "Resource", - }, - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertMultipleResource.json - */ -async function createOrUpdateAnAlertRuleForMultipleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSingleResource.json - */ -async function createOrUpdateAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertResourceGroup.json - */ -async function createOrUpdateAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1", - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2", - ], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertSubscription.json - */ -async function createOrUpdateAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "Percentage CPU", - metricNamespace: "microsoft.compute/virtualmachines", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1M", - location: "global", - scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"], - severity: 3, - tags: {}, - targetResourceRegion: "southcentralus", - targetResourceType: "Microsoft.Compute/virtualMachines", - windowSize: "PT15M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Create or update an metric alert definition. - * - * @summary Create or update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/createOrUpdateMetricAlertWithDimensions.json - */ -async function createOrUpdateAnAlertRulesWithDimensions() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleDimensions"; - const parameters: MetricAlertResource = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "Metric1", - criterionType: "StaticThresholdCriterion", - dimensions: [ - { name: "ActivityName", operator: "Include", values: ["*"] }, - { name: "StatusCode", operator: "Include", values: ["200"] }, - ], - metricName: "Availability", - metricNamespace: "Microsoft.KeyVault/vaults", - operator: "GreaterThan", - threshold: 55, - timeAggregation: "Average", - }, - ], - odataType: - "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "PT1H", - location: "global", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource", - ], - severity: 3, - tags: {}, - windowSize: "P1D", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateADynamicAlertRuleForMultipleResources(); - createOrUpdateADynamicAlertRuleForSingleResource(); - createOrUpdateAWebTestAlertRule(); - createOrUpdateAnAlertRuleForMultipleResource(); - createOrUpdateAnAlertRuleForSingleResource(); - createOrUpdateAnAlertRuleOnResourceGroupS(); - createOrUpdateAnAlertRuleOnSubscription(); - createOrUpdateAnAlertRulesWithDimensions(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsDeleteSample.ts deleted file mode 100644 index 30628e3520d6..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsDeleteSample.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete an alert rule definition. - * - * @summary Delete an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/deleteMetricAlert.json - */ -async function deleteAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.delete(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - deleteAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsGetSample.ts deleted file mode 100644 index c1b733567e66..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsGetSample.ts +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertMultipleResource.json - */ -async function getADynamicAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getDynamicMetricAlertSingleResource.json - */ -async function getADynamicAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getWebTestMetricAlert.json - */ -async function getAWebTestAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "12345678-1234-1234-1234-123456789101"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "rg-example"; - const ruleName = "webtest-name-example"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertMultipleResource.json - */ -async function getAnAlertRuleForMultipleResources() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertOnMultipleResources"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSingleResource.json - */ -async function getAnAlertRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertResourceGroup.json - */ -async function getAnAlertRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest1"; - const ruleName = "MetricAlertAtResourceGroupLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieve an alert rule definition. - * - * @summary Retrieve an alert rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertSubscription.json - */ -async function getAnAlertRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "MetricAlertAtSubscriptionLevel"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.get(resourceGroupName, ruleName); - console.log(result); -} - -async function main() { - getADynamicAlertRuleForMultipleResources(); - getADynamicAlertRuleForSingleResource(); - getAWebTestAlertRule(); - getAnAlertRuleForMultipleResources(); - getAnAlertRuleForSingleResource(); - getAnAlertRuleOnResourceGroupS(); - getAnAlertRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListByResourceGroupSample.ts deleted file mode 100644 index 7ad857f8bb94..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListByResourceGroupSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a resource group. - * - * @summary Retrieve alert rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListBySubscriptionSample.ts deleted file mode 100644 index 8e5e162a5570..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve alert rule definitions in a subscription. - * - * @summary Retrieve alert rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/listMetricAlert.json - */ -async function listMetricAlertRules() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricAlerts.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listMetricAlertRules(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListByNameSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListByNameSample.ts deleted file mode 100644 index d5d248b62b58..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListByNameSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatusByName.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "009f6022-67ec-423e-9aa7-691182870588"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "EastUs"; - const ruleName = "custom1"; - const statusName = - "cmVzb3VyY2VJZD0vc3Vic2NyaXB0aW9ucy8xNGRkZjBjNS03N2M1LTRiNTMtODRmNi1lMWZhNDNhZDY4ZjcvcmVzb3VyY2VHcm91cHMvZ2lndGVzdC9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvdmlydHVhbE1hY2hpbmVzL2dpZ3dhZG1l"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.listByName( - resourceGroupName, - ruleName, - statusName, - ); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListSample.ts deleted file mode 100644 index cd0b5a85286a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsStatusListSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an alert rule status. - * - * @summary Retrieve an alert rule status. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/getMetricAlertStatus.json - */ -async function getAnAlertRuleStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlertsStatus.list( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - getAnAlertRuleStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsUpdateSample.ts deleted file mode 100644 index de7466ba7931..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricAlertsUpdateSample.ts +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricAlertResourcePatch, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update an metric alert definition. - * - * @summary Update an metric alert definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-03-01/examples/UpdateMetricAlert.json - */ -async function createOrUpdateAnAlertRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "gigtest"; - const ruleName = "chiricutin"; - const parameters: MetricAlertResourcePatch = { - description: "This is the description of the rule1", - actions: [ - { - actionGroupId: - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2", - webHookProperties: { key11: "value11", key12: "value12" }, - }, - ], - autoMitigate: true, - criteria: { - allOf: [ - { - name: "High_CPU_80", - criterionType: "StaticThresholdCriterion", - dimensions: [], - metricName: "\\Processor(_Total)\\% Processor Time", - operator: "GreaterThan", - threshold: 80.5, - timeAggregation: "Average", - }, - ], - odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", - }, - enabled: true, - evaluationFrequency: "Pt1m", - scopes: [ - "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme", - ], - severity: 3, - tags: {}, - windowSize: "Pt15m", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricAlerts.update( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAnAlertRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListAtSubscriptionScopeSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListAtSubscriptionScopeSample.ts deleted file mode 100644 index b4f4df36e829..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListAtSubscriptionScopeSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricDefinitionsListAtSubscriptionScopeOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the subscription. - * - * @summary Lists the metric definitions for the subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricDefinitions.json - */ -async function getSubscriptionLevelMetricDefinitionsWithoutFilter() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricDefinitionsListAtSubscriptionScopeOptionalParams = { - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.metricDefinitions.listAtSubscriptionScope( - region, - options, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getSubscriptionLevelMetricDefinitionsWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListSample.ts deleted file mode 100644 index 7928720f9ce0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricDefinitionsListSample.ts +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricDefinitionsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsApplicationInsights.json - */ -async function getApplicationInsightsMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions"; - const metricnamespace = "microsoft.insights/components"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitions.json - */ -async function getMetricDefinitionsWithoutFilter() { - const resourceUri = - "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions"; - const metricnamespace = "Microsoft.Web/sites"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Lists the metric definitions for the resource. - * - * @summary Lists the metric definitions for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricDefinitionsMetricClass.json - */ -async function getStorageCacheMetricDefinitionsWithMetricClass() { - const resourceUri = - "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache"; - const metricnamespace = "microsoft.storagecache/caches"; - const options: MetricDefinitionsListOptionalParams = { metricnamespace }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricDefinitions.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getApplicationInsightsMetricDefinitionsWithoutFilter(); - getMetricDefinitionsWithoutFilter(); - getStorageCacheMetricDefinitionsWithMetricClass(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricNamespacesListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricNamespacesListSample.ts deleted file mode 100644 index 7abb83ae8617..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricNamespacesListSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricNamespacesListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists the metric namespaces for the resource. - * - * @summary Lists the metric namespaces for the resource. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricNamespaces.json - */ -async function getMetricNamespacesWithoutFilter() { - const resourceUri = - "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill"; - const startTime = "2020-08-31T15:53:00Z"; - const options: MetricNamespacesListOptionalParams = { startTime }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.metricNamespaces.list(resourceUri, options)) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getMetricNamespacesWithoutFilter(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopePostSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopePostSample.ts deleted file mode 100644 index 433c516655ce..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopePostSample.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricsListAtSubscriptionScopePostOptionalParams, - SubscriptionScopeMetricsRequestBodyParameters, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function postRequestForSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/PostMultiResourceMetricBody.json - */ -async function postRequestForSubscriptionLevelMetricDataUsingBodyParams() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const body: SubscriptionScopeMetricsRequestBodyParameters = { - aggregation: "count", - autoAdjustTimegrain: true, - filter: "LUN eq '0' and Microsoft.ResourceId eq '*'", - interval: "PT6H", - metricNames: "Data Disk Max Burst IOPS", - metricNamespace: "microsoft.compute/virtualmachines", - orderBy: "count desc", - rollUpBy: "LUN", - timespan: "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z", - top: 10, - validateDimensions: false, - }; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { body }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * - * @summary **Lists the metric data for a subscription**. Parameters can be specified on either query params or the body. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function postRequestForSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricsListAtSubscriptionScopePostOptionalParams = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScopePost( - region, - options, - ); - console.log(result); -} - -async function main() { - postRequestForSubscriptionLevelMetricData(); - postRequestForSubscriptionLevelMetricDataUsingBodyParams(); - postRequestForSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopeSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopeSample.ts deleted file mode 100644 index a89632386efc..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListAtSubscriptionScopeSample.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - MetricsListAtSubscriptionScopeOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetric.json - */ -async function getSubscriptionLevelMetricData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-08T19:00:00Z/2021-06-12T01:00:00Z"; - const interval = "PT6H"; - const metricnames = "Data Disk Max Burst IOPS"; - const aggregation = "count"; - const top = 10; - const orderby = "count desc"; - const filter = "LUN eq '0' and Microsoft.ResourceId eq '*'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListAtSubscriptionScopeOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope( - region, - options, - ); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric data for a subscription**. - * - * @summary **Lists the metric data for a subscription**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMultiResourceMetricMetadata.json - */ -async function getSubscriptionLevelMetricMetadata() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "92d2a2d8-b514-432d-8cc9-a5f9272630d5"; - const region = "westus2"; - const timespan = "2021-06-10T02:23:16.129Z/2021-06-12T02:23:16.129Z"; - const metricnames = "Data Disk Max Burst IOPS"; - const filter = "LUN eq '0'"; - const metricnamespace = "microsoft.compute/virtualmachines"; - const options: MetricsListAtSubscriptionScopeOptionalParams = { - timespan, - metricnames, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.metricsOperations.listAtSubscriptionScope( - region, - options, - ); - console.log(result); -} - -async function main() { - getSubscriptionLevelMetricData(); - getSubscriptionLevelMetricMetadata(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListSample.ts deleted file mode 100644 index 2d67205afcbb..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/metricsListSample.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MetricsListOptionalParams, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetric.json - */ -async function getMetricForData() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2021-04-20T09:00:00.000Z/2021-04-20T14:00:00.000Z"; - const interval = "PT6H"; - const metricnames = "BlobCount,BlobCapacity"; - const aggregation = "average,minimum,maximum"; - const top = 5; - const orderby = "average asc"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - top, - orderby, - filter, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricMetadata.json - */ -async function getMetricForMetadata() { - const resourceUri = - "subscriptions/1f3fa6d2-851c-4a91-9087-1a050f3a9c38/resourceGroups/todking/providers/Microsoft.Storage/storageAccounts/tkfileserv/blobServices/default"; - const timespan = "2017-04-14T02:20:00Z/2017-04-14T04:20:00Z"; - const filter = "Tier eq '*'"; - const metricnamespace = "Microsoft.Storage/storageAccounts/blobServices"; - const options: MetricsListOptionalParams = { - timespan, - filter, - metricnamespace, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -/** - * This sample demonstrates how to **Lists the metric values for a resource**. - * - * @summary **Lists the metric values for a resource**. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2024-02-01/examples/GetMetricError.json - */ -async function getMetricWithError() { - const resourceUri = - "subscriptions/ac41e21f-afd6-4a79-8070-f01eba278f97/resourceGroups/todking/providers/Microsoft.DocumentDb/databaseAccounts/tk-cosmos-mongo"; - const timespan = "2021-06-07T21:51:00Z/2021-06-08T01:51:00Z"; - const interval = "FULL"; - const metricnames = "MongoRequestsCount,MongoRequests"; - const aggregation = "average"; - const metricnamespace = "microsoft.documentdb/databaseaccounts"; - const autoAdjustTimegrain = true; - const validateDimensions = false; - const options: MetricsListOptionalParams = { - timespan, - interval, - metricnames, - aggregation, - metricnamespace, - autoAdjustTimegrain, - validateDimensions, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.metricsOperations.list(resourceUri, options); - console.log(result); -} - -async function main() { - getMetricForData(); - getMetricForMetadata(); - getMetricWithError(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/monitorOperationsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/monitorOperationsListSample.ts deleted file mode 100644 index 045f032c8936..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/monitorOperationsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists available Operations for this Resource Provider - * - * @summary Lists available Operations for this Resource Provider - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Monitor/stable/2023-04-03/examples/OperationsGet.json - */ -async function getOperationsList() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.monitorOperations.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getOperationsList(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/operationsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/operationsListSample.ts deleted file mode 100644 index b286ddbb34f4..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/operationsListSample.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Lists all of the available operations from Microsoft.Insights provider. - * - * @summary Lists all of the available operations from Microsoft.Insights provider. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/OperationList.json - */ -async function getAListOfOperationsForAResourceProvider() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.operations.list(); - console.log(result); -} - -async function main() { - getAListOfOperationsForAResourceProvider(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/predictiveMetricGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/predictiveMetricGetSample.ts deleted file mode 100644 index 9a7c480f7915..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/predictiveMetricGetSample.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to get predictive autoscale metric future data - * - * @summary get predictive autoscale metric future data - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2022-10-01/examples/GetPredictiveMetric.json - */ -async function getMetricForData() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-0000-0000-0000-000000000000"; - const resourceGroupName = process.env["MONITOR_RESOURCE_GROUP"] || "myRG"; - const autoscaleSettingName = "vmss1-Autoscale-775"; - const timespan = "2021-10-14T22:00:00.000Z/2021-10-16T22:00:00.000Z"; - const interval = "PT1H"; - const metricNamespace = "Microsoft.Compute/virtualMachineScaleSets"; - const metricName = "PercentageCPU"; - const aggregation = "Total"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.predictiveMetric.get( - resourceGroupName, - autoscaleSettingName, - timespan, - interval, - metricNamespace, - metricName, - aggregation, - ); - console.log(result); -} - -async function main() { - getMetricForData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts deleted file mode 100644 index f12ecfd0e1a3..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsCreateOrUpdateSample.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - PrivateEndpointConnectionAutoGenerated, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionUpdate.json - */ -async function approveOrRejectAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const parameters: PrivateEndpointConnectionAutoGenerated = { - privateLinkServiceConnectionState: { - description: "Approved by johndoe@contoso.com", - status: "Approved", - }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.privateEndpointConnections.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - parameters, - ); - console.log(result); -} - -async function main() { - approveOrRejectAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts deleted file mode 100644 index b2d510a0dc74..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionDelete.json - */ -async function deletesAPrivateEndpointConnectionWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.beginDeleteAndWait( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - deletesAPrivateEndpointConnectionWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsGetSample.ts deleted file mode 100644 index a5053be5921c..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a private endpoint connection. - * - * @summary Gets a private endpoint connection. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const privateEndpointConnectionName = "private-endpoint-connection-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.get( - resourceGroupName, - scopeName, - privateEndpointConnectionName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts deleted file mode 100644 index 82e26845e8a5..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateEndpointConnectionsListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateEndpointConnectionList.json - */ -async function getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateEndpointConnections.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesGetSample.ts deleted file mode 100644 index da3d37e7be57..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const groupName = "azuremonitor"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.get( - resourceGroupName, - scopeName, - groupName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts deleted file mode 100644 index 41c6e17e0eb0..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkResourcesListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * - * @summary Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json - */ -async function getsPrivateEndpointConnection() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - getsPrivateEndpointConnection(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopeOperationStatusGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopeOperationStatusGetSample.ts deleted file mode 100644 index 1cafd43a5a9e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopeOperationStatusGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get the status of an azure asynchronous operation associated with a private link scope operation. - * - * @summary Get the status of an azure asynchronous operation associated with a private link scope operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/privateLinkScopeOperationStatuses.json - */ -async function getSpecificOperationStatus() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "613192d7-503f-477a-9cfe-4efc3ee2bd60"; - const asyncOperationId = "713192d7-503f-477a-9cfe-4efc3ee2bd11"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopeOperationStatus.get( - asyncOperationId, - resourceGroupName, - ); - console.log(result); -} - -async function main() { - getSpecificOperationStatus(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesCreateOrUpdateSample.ts deleted file mode 100644 index eaea51c8f729..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesCreateOrUpdateSample.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ScopedResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Approve or reject a private endpoint connection with a given name. - * - * @summary Approve or reject a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceUpdate.json - */ -async function updateAScopedResourceInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const parameters: ScopedResource = { - linkedResourceId: - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/MyResourceGroup/providers/Microsoft.Insights/components/my-component", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = - await client.privateLinkScopedResources.beginCreateOrUpdateAndWait( - resourceGroupName, - scopeName, - name, - parameters, - ); - console.log(result); -} - -async function main() { - updateAScopedResourceInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesDeleteSample.ts deleted file mode 100644 index f4935412308e..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesDeleteSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a private endpoint connection with a given name. - * - * @summary Deletes a private endpoint connection with a given name. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceDelete.json - */ -async function deletesAScopedResourceWithAGivenName() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.beginDeleteAndWait( - resourceGroupName, - scopeName, - name, - ); - console.log(result); -} - -async function main() { - deletesAScopedResourceWithAGivenName(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesGetSample.ts deleted file mode 100644 index 4355ecc90325..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesGetSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a scoped resource in a private link scope. - * - * @summary Gets a scoped resource in a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceGet.json - */ -async function getsPrivateLinkScopedResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const name = "scoped-resource-name"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopedResources.get( - resourceGroupName, - scopeName, - name, - ); - console.log(result); -} - -async function main() { - getsPrivateLinkScopedResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts deleted file mode 100644 index e7ec7a6a1b3b..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopedResourcesListByPrivateLinkScopeSample.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets all private endpoint connections on a private link scope. - * - * @summary Gets all private endpoint connections on a private link scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopedResourceList.json - */ -async function getsListOfScopedResourcesInAPrivateLinkScope() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "00000000-1111-2222-3333-444444444444"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "MyResourceGroup"; - const scopeName = "MyPrivateLinkScope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopedResources.listByPrivateLinkScope( - resourceGroupName, - scopeName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getsListOfScopedResourcesInAPrivateLinkScope(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts deleted file mode 100644 index 8d964871e0cb..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesCreateOrUpdateSample.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - AzureMonitorPrivateLinkScope, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesCreate.json - */ -async function privateLinkScopeCreate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * - * @summary Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdate.json - */ -async function privateLinkScopeUpdate() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const azureMonitorPrivateLinkScopePayload: AzureMonitorPrivateLinkScope = { - accessModeSettings: { - exclusions: [], - ingestionAccessMode: "Open", - queryAccessMode: "Open", - }, - location: "Global", - tags: { tag1: "Value1" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.createOrUpdate( - resourceGroupName, - scopeName, - azureMonitorPrivateLinkScopePayload, - ); - console.log(result); -} - -async function main() { - privateLinkScopeCreate(); - privateLinkScopeUpdate(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesDeleteSample.ts deleted file mode 100644 index 93e9f346b2cd..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a Azure Monitor PrivateLinkScope. - * - * @summary Deletes a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesDelete.json - */ -async function privateLinkScopesDelete() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.beginDeleteAndWait( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - privateLinkScopesDelete(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesGetSample.ts deleted file mode 100644 index beda48c7d9e6..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Returns a Azure Monitor PrivateLinkScope. - * - * @summary Returns a Azure Monitor PrivateLinkScope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesGet.json - */ -async function privateLinkScopeGet() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.get( - resourceGroupName, - scopeName, - ); - console.log(result); -} - -async function main() { - privateLinkScopeGet(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts deleted file mode 100644 index eb1272b7f136..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * - * @summary Gets a list of Azure Monitor PrivateLinkScopes within a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesListByResourceGroup.json - */ -async function privateLinkScopeListByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopeListByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListSample.ts deleted file mode 100644 index 47d4083d2f79..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesListSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * - * @summary Gets a list of all Azure Monitor PrivateLinkScopes within a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesList.json - */ -async function privateLinkScopesListJson() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "86dc51d3-92ed-4d7e-947a-775ea79b4919"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.privateLinkScopes.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - privateLinkScopesListJson(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts deleted file mode 100644 index d819b01691db..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/privateLinkScopesUpdateTagsSample.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { TagsResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2021-07-01-preview/examples/PrivateLinkScopesUpdateTagsOnly.json - */ -async function privateLinkScopeUpdateTagsOnly() { - const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "subid"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "my-resource-group"; - const scopeName = "my-privatelinkscope"; - const privateLinkScopeTags: TagsResource = { - tags: { tag1: "Value1", tag2: "Value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.privateLinkScopes.updateTags( - resourceGroupName, - scopeName, - privateLinkScopeTags, - ); - console.log(result); -} - -async function main() { - privateLinkScopeUpdateTagsOnly(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesCreateOrUpdateSample.ts deleted file mode 100644 index 42f16dfab229..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesCreateOrUpdateSample.ts +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { ScheduledQueryRuleResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters: ScheduledQueryRuleResource = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1/providers/Microsoft.Compute/virtualMachines/vm1", - ], - severity: 4, - skipQueryValidation: true, - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleResourceGroup.json - */ -async function createOrUpdateAScheduledQueryRuleOnResourceGroupS() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters: ScheduledQueryRuleResource = { - description: "Health check rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - operator: "GreaterThan", - query: "Heartbeat", - threshold: 360, - timeAggregation: "Count", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: [ - "/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147/resourceGroups/scopeResourceGroup1", - ], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -/** - * This sample demonstrates how to Creates or updates a scheduled query rule. - * - * @summary Creates or updates a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/createOrUpdateScheduledQueryRuleSubscription.json - */ -async function createOrUpdateAScheduledQueryRuleOnSubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const parameters: ScheduledQueryRuleResource = { - description: "Performance rule", - actions: { - actionGroups: [ - "/subscriptions/1cf177ed-1330-4692-80ea-fd3d7783b147/resourcegroups/sqrapi/providers/microsoft.insights/actiongroups/myactiongroup", - ], - actionProperties: { - icmTitle: "Custom title in ICM", - icmTsgId: "https://tsg.url", - }, - customProperties: { key11: "value11", key12: "value12" }, - }, - checkWorkspaceAlertsStorageConfigured: true, - criteria: { - allOf: [ - { - dimensions: [ - { - name: "ComputerIp", - operator: "Exclude", - values: ["192.168.1.1"], - }, - { name: "OSType", operator: "Include", values: ["*"] }, - ], - failingPeriods: { - minFailingPeriodsToAlert: 1, - numberOfEvaluationPeriods: 1, - }, - metricMeasureColumn: "% Processor Time", - operator: "GreaterThan", - query: 'Perf | where ObjectName == "Processor"', - resourceIdColumn: "resourceId", - threshold: 70, - timeAggregation: "Average", - }, - ], - }, - enabled: true, - evaluationFrequency: "PT5M", - location: "eastus", - muteActionsDuration: "PT30M", - ruleResolveConfiguration: { autoResolved: true, timeToResolve: "PT10M" }, - scopes: ["/subscriptions/aaf177ed-1330-a9f2-80ea-fd3d7783b147"], - severity: 4, - skipQueryValidation: true, - targetResourceTypes: ["Microsoft.Compute/virtualMachines"], - windowSize: "PT10M", - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.createOrUpdate( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRuleForSingleResource(); - createOrUpdateAScheduledQueryRuleOnResourceGroupS(); - createOrUpdateAScheduledQueryRuleOnSubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesDeleteSample.ts deleted file mode 100644 index ad2dae6a2220..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesDeleteSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Deletes a scheduled query rule. - * - * @summary Deletes a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/deleteScheduledQueryRule.json - */ -async function deleteAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.delete( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - deleteAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesGetSample.ts deleted file mode 100644 index b4ba0312261a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesGetSample.ts +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve an scheduled query rule definition. - * - * @summary Retrieve an scheduled query rule definition. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/getScheduledQueryRule.json - */ -async function getAScheduledQueryRuleForSingleResource() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "perf"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.get( - resourceGroupName, - ruleName, - ); - console.log(result); -} - -async function main() { - getAScheduledQueryRuleForSingleResource(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListByResourceGroupSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListByResourceGroupSample.ts deleted file mode 100644 index 1889afaf05b9..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListByResourceGroupSample.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve scheduled query rule definitions in a resource group. - * - * @summary Retrieve scheduled query rule definitions in a resource group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesByResourceGroup.json - */ -async function listScheduledQueryRulesByResourceGroup() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listByResourceGroup( - resourceGroupName, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesByResourceGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListBySubscriptionSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListBySubscriptionSample.ts deleted file mode 100644 index a523211e0f3a..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesListBySubscriptionSample.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieve a scheduled query rule definitions in a subscription. - * - * @summary Retrieve a scheduled query rule definitions in a subscription. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/listScheduledQueryRulesBySubscription.json - */ -async function listScheduledQueryRulesBySubscription() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const resArray = new Array(); - for await (let item of client.scheduledQueryRules.listBySubscription()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listScheduledQueryRulesBySubscription(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesUpdateSample.ts deleted file mode 100644 index 1ce4b56df4c7..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/scheduledQueryRulesUpdateSample.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ScheduledQueryRuleResourcePatch, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Update a scheduled query rule. - * - * @summary Update a scheduled query rule. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2023-12-01/examples/patchScheduledQueryRule.json - */ -async function createOrUpdateAScheduledQueryRule() { - const subscriptionId = - process.env["MONITOR_SUBSCRIPTION_ID"] || - "dd4bfc94-a096-412b-9c43-4bd13e35afbc"; - const resourceGroupName = - process.env["MONITOR_RESOURCE_GROUP"] || "QueryResourceGroupName"; - const ruleName = "heartbeat"; - const parameters: ScheduledQueryRuleResourcePatch = { enabled: false }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential, subscriptionId); - const result = await client.scheduledQueryRules.update( - resourceGroupName, - ruleName, - parameters, - ); - console.log(result); -} - -async function main() { - createOrUpdateAScheduledQueryRule(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsCreateOrUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsCreateOrUpdateSample.ts deleted file mode 100644 index 5f5ce86ec8ae..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsCreateOrUpdateSample.ts +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { TenantActionGroupResource, MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Create a new tenant action group or update an existing one. - * - * @summary Create a new tenant action group or update an existing one. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/createOrUpdateTenantActionGroup.json - */ -async function createOrUpdateATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const actionGroup: TenantActionGroupResource = { - azureAppPushReceivers: [ - { name: "Sample azureAppPush", emailAddress: "johndoe@email.com" }, - ], - emailReceivers: [ - { - name: "John Doe's email", - emailAddress: "johndoe@email.com", - useCommonAlertSchema: false, - }, - { - name: "Jane Smith's email", - emailAddress: "janesmith@email.com", - useCommonAlertSchema: true, - }, - ], - enabled: true, - groupShortName: "sample", - location: "Global", - smsReceivers: [ - { - name: "John Doe's mobile", - countryCode: "1", - phoneNumber: "2062022299", - }, - { - name: "Jane Smith's mobile", - countryCode: "1", - phoneNumber: "0987654321", - }, - ], - tags: {}, - voiceReceivers: [ - { name: "Sample voice", countryCode: "1", phoneNumber: "2062022299" }, - ], - webhookReceivers: [ - { - name: "Sample webhook 1", - serviceUri: "http://www.example.com/webhook1", - useCommonAlertSchema: true, - }, - { - name: "Sample webhook 2", - identifierUri: - "http://someidentifier/d7811ba3-7996-4a93-99b6-6b2f3f355f8a", - objectId: "d3bb868c-fe44-452c-aa26-769a6538c808", - serviceUri: "http://www.example.com/webhook2", - tenantId: "68a4459a-ccb8-493c-b9da-dd30457d1b84", - useAadAuth: true, - useCommonAlertSchema: true, - }, - ], - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.createOrUpdate( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - actionGroup, - ); - console.log(result); -} - -async function main() { - createOrUpdateATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsDeleteSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsDeleteSample.ts deleted file mode 100644 index ea6270c509a8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsDeleteSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Delete a tenant action group. - * - * @summary Delete a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/deleteTenantActionGroup.json - */ -async function deleteATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.delete( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - deleteATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsGetSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsGetSample.ts deleted file mode 100644 index c81aee4afa46..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsGetSample.ts +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a tenant action group. - * - * @summary Get a tenant action group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/getTenantActionGroup.json - */ -async function getAnActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.get( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - ); - console.log(result); -} - -async function main() { - getAnActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsListByManagementGroupIdSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsListByManagementGroupIdSample.ts deleted file mode 100644 index 581bc4dde681..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsListByManagementGroupIdSample.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Get a list of all tenant action groups in a management group. - * - * @summary Get a list of all tenant action groups in a management group. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/listTenantActionGroups.json - */ -async function listTenantActionGroupsAtManagementGroupLevel() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActionGroups.listByManagementGroupId( - managementGroupId, - xMsClientTenantId, - )) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - listTenantActionGroupsAtManagementGroupLevel(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsUpdateSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsUpdateSample.ts deleted file mode 100644 index 32bd1c1c97bd..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActionGroupsUpdateSample.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - ActionGroupPatchBodyAutoGenerated, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * - * @summary Updates an existing tenant action group's tags. To update other fields use the CreateOrUpdate method. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2023-05-01-preview/examples/patchTenantActionGroup.json - */ -async function patchATenantActionGroup() { - const managementGroupId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupName = "testTenantActionGroup"; - const xMsClientTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; - const tenantActionGroupPatch: ActionGroupPatchBodyAutoGenerated = { - enabled: false, - tags: { key1: "value1", key2: "value2" }, - }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.tenantActionGroups.update( - managementGroupId, - tenantActionGroupName, - xMsClientTenantId, - tenantActionGroupPatch, - ); - console.log(result); -} - -async function main() { - patchATenantActionGroup(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActivityLogsListSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActivityLogsListSample.ts deleted file mode 100644 index 90a9af196975..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/tenantActivityLogsListSample.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { - TenantActivityLogsListOptionalParams, - MonitorClient, -} from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFiltered.json - */ -async function getTenantActivityLogsWithFilter() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const options: TenantActivityLogsListOptionalParams = { filter }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsFilteredAndSelected.json - */ -async function getTenantActivityLogsWithFilterAndSelect() { - const filter = - "eventTimestamp ge '2015-01-21T20:00:00Z' and eventTimestamp le '2015-01-23T20:00:00Z' and resourceGroupName eq 'MSSupportGroup'"; - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: TenantActivityLogsListOptionalParams = { filter, select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsSelected.json - */ -async function getTenantActivityLogsWithSelect() { - const select = - "eventName,id,resourceGroupName,resourceProviderName,operationName,status,eventTimestamp,correlationId,submissionTimestamp,level"; - const options: TenantActivityLogsListOptionalParams = { select }; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list(options)) { - resArray.push(item); - } - console.log(resArray); -} - -/** - * This sample demonstrates how to Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * - * @summary Gets the Activity Logs for the Tenant.
Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).
One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2015-04-01/examples/GetTenantActivityLogsNoParams.json - */ -async function getTenantActivityLogsWithoutFilterOrSelect() { - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const resArray = new Array(); - for await (let item of client.tenantActivityLogs.list()) { - resArray.push(item); - } - console.log(resArray); -} - -async function main() { - getTenantActivityLogsWithFilter(); - getTenantActivityLogsWithFilterAndSelect(); - getTenantActivityLogsWithSelect(); - getTenantActivityLogsWithoutFilterOrSelect(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/vmInsightsGetOnboardingStatusSample.ts b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/vmInsightsGetOnboardingStatusSample.ts deleted file mode 100644 index 235bc2b84fc7..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/src/vmInsightsGetOnboardingStatusSample.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. -import { MonitorClient } from "@azure/arm-monitor"; -import { DefaultAzureCredential } from "@azure/identity"; -import * as dotenv from "dotenv"; - -dotenv.config(); - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusVMScaleSet.json - */ -async function getStatusForAVMScaleSetThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/my-service-cluster/providers/Microsoft.Compute/virtualMachineScaleSets/scale-set-01"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVMUnknown.json - */ -async function getStatusForAVMThatHasNotYetReportedData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSingleVM.json - */ -async function getStatusForAVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/vm-resource-group/providers/Microsoft.Compute/virtualMachines/ubuntu-vm"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusResourceGroup.json - */ -async function getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = - "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87/resourceGroups/resource-group-with-vms"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -/** - * This sample demonstrates how to Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * - * @summary Retrieves the VM Insights onboarding status for the specified resource or resource scope. - * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/preview/2018-11-27-preview/examples/getOnboardingStatusSubscription.json - */ -async function getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData() { - const resourceUri = "subscriptions/3d51de47-8d1c-4d24-b42f-bcae075dfa87"; - const credential = new DefaultAzureCredential(); - const client = new MonitorClient(credential); - const result = await client.vMInsights.getOnboardingStatus(resourceUri); - console.log(result); -} - -async function main() { - getStatusForAVMScaleSetThatIsActivelyReportingData(); - getStatusForAVMThatHasNotYetReportedData(); - getStatusForAVMThatIsActivelyReportingData(); - getStatusForAResourceGroupThatHasAtLeastOneVMThatIsActivelyReportingData(); - getStatusForASubscriptionThatHasAtLeastOneVMThatIsActivelyReportingData(); -} - -main().catch(console.error); diff --git a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/tsconfig.json b/sdk/monitor/arm-monitor/samples/v8-beta/typescript/tsconfig.json deleted file mode 100644 index 984eed535aa8..000000000000 --- a/sdk/monitor/arm-monitor/samples/v8-beta/typescript/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "ES2020", - "module": "commonjs", - "moduleResolution": "node", - "resolveJsonModule": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "alwaysStrict": true, - "outDir": "dist", - "rootDir": "src" - }, - "include": [ - "src/**/*.ts" - ] -} diff --git a/sdk/monitor/arm-monitor/src/models/index.ts b/sdk/monitor/arm-monitor/src/models/index.ts index 10c4defa49d4..d18918bb78f4 100644 --- a/sdk/monitor/arm-monitor/src/models/index.ts +++ b/sdk/monitor/arm-monitor/src/models/index.ts @@ -28,100 +28,189 @@ export type MultiMetricCriteriaUnion = | MetricCriteria | DynamicMetricCriteria; -/** Represents collection of metric namespaces. */ -export interface MetricNamespaceCollection { - /** The values for the metric namespaces. */ - value: MetricNamespace[]; +/** Result of a list NSP (network security perimeter) configurations request. */ +export interface NetworkSecurityPerimeterConfigurationListResult { + /** Array of network security perimeter results. */ + value?: NetworkSecurityPerimeterConfiguration[]; + /** The link used to get the next page of results. */ + nextLink?: string; } -/** Metric namespace class specifies the metadata for a metric namespace. */ -export interface MetricNamespace { - /** The ID of the metric namespace. */ - id?: string; - /** The type of the namespace. */ - type?: string; - /** The escaped name of the namespace. */ - name?: string; - /** Kind of namespace */ - classification?: NamespaceClassification; - /** Properties which include the fully qualified namespace name. */ - properties?: MetricNamespaceName; +/** Network security configuration properties. */ +export interface NetworkSecurityPerimeterConfigurationProperties { + /** + * Provisioning state of a network security perimeter configuration that is being created or updated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: NetworkSecurityPerimeterConfigurationProvisioningState; + /** + * List of provisioning issues, if any + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningIssues?: ProvisioningIssue[]; + /** Information about a network security perimeter (NSP) */ + networkSecurityPerimeter?: NetworkSecurityPerimeter; + /** Information about resource association */ + resourceAssociation?: ResourceAssociation; + /** Network security perimeter configuration profile */ + profile?: NetworkSecurityProfile; } -/** The fully qualified metric namespace name. */ -export interface MetricNamespaceName { - /** The metric namespace name. */ - metricNamespaceName?: string; +/** Describes a provisioning issue for a network security perimeter configuration */ +export interface ProvisioningIssue { + /** + * Name of the issue + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Details of a provisioning issue for a network security perimeter (NSP) configuration. Resource providers should generate separate provisioning issue elements for each separate issue detected, and include a meaningful and distinctive description, as well as any appropriate suggestedResourceIds and suggestedAccessRules + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: ProvisioningIssueProperties; } -/** Describes the format of Error response. */ -export interface ErrorResponse { - /** Error code */ - code?: string; - /** Error message indicating why the operation failed. */ - message?: string; +/** Details of a provisioning issue for a network security perimeter (NSP) configuration. Resource providers should generate separate provisioning issue elements for each separate issue detected, and include a meaningful and distinctive description, as well as any appropriate suggestedResourceIds and suggestedAccessRules */ +export interface ProvisioningIssueProperties { + /** + * Type of issue + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly issueType?: IssueType; + /** + * Severity of the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly severity?: Severity; + /** + * Description of the issue + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Fully qualified resource IDs of suggested resources that can be associated to the network security perimeter (NSP) to remediate the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly suggestedResourceIds?: string[]; + /** + * Access rules that can be added to the network security profile (NSP) to remediate the issue. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly suggestedAccessRules?: AccessRule[]; } -/** Represents collection of metric definitions. */ -export interface SubscriptionScopeMetricDefinitionCollection { - /** The values for the metric definitions. */ - value: SubscriptionScopeMetricDefinition[]; +/** Access rule in a network security perimeter configuration profile */ +export interface AccessRule { + /** Name of the access rule */ + name?: string; + /** Properties of Access Rule */ + properties?: AccessRuleProperties; +} + +/** Properties of Access Rule */ +export interface AccessRuleProperties { + /** Direction of Access Rule */ + direction?: AccessRuleDirection; + /** Address prefixes in the CIDR format for inbound rules */ + addressPrefixes?: string[]; + /** Subscriptions for inbound rules */ + subscriptions?: AccessRulePropertiesSubscriptionsItem[]; + /** Network security perimeters for inbound rules */ + networkSecurityPerimeters?: NetworkSecurityPerimeter[]; + /** Fully qualified domain names (FQDN) for outbound rules */ + fullyQualifiedDomainNames?: string[]; + /** Email addresses for outbound rules */ + emailAddresses?: string[]; + /** Phone numbers for outbound rules */ + phoneNumbers?: string[]; +} + +/** Subscription identifiers */ +export interface AccessRulePropertiesSubscriptionsItem { + /** The fully qualified Azure resource ID of the subscription e.g. ('/subscriptions/00000000-0000-0000-0000-000000000000') */ + id?: string; } -/** Metric definition class specifies the metadata for a metric. */ -export interface SubscriptionScopeMetricDefinition { - /** Flag to indicate whether the dimension is required. */ - isDimensionRequired?: boolean; - /** The resource identifier of the resource that emitted the metric. */ - resourceId?: string; - /** The namespace the metric belongs to. */ - namespace?: string; - /** The name and the display name of the metric, i.e. it is a localizable string. */ - name?: LocalizableString; - /** Detailed description of this metric. */ - displayDescription?: string; - /** Custom category name for this metric. */ - category?: string; - /** The class of the metric. */ - metricClass?: MetricClass; - /** The unit of the metric. */ - unit?: MetricUnit; - /** The primary aggregation type value defining how to use the values for display. */ - primaryAggregationType?: MetricAggregationType; - /** The collection of what aggregation types are supported. */ - supportedAggregationTypes?: MetricAggregationType[]; - /** The collection of what aggregation intervals are available to be queried. */ - metricAvailabilities?: MetricAvailability[]; - /** The resource identifier of the metric definition. */ +/** Information about a network security perimeter (NSP) */ +export interface NetworkSecurityPerimeter { + /** Fully qualified Azure resource ID of the NSP resource */ id?: string; - /** The name and the display name of the dimension, i.e. it is a localizable string. */ - dimensions?: LocalizableString[]; + /** Universal unique ID (UUID) of the network security perimeter */ + perimeterGuid?: string; + /** Location of the network security perimeter */ + location?: string; } -/** The localizable string class. */ -export interface LocalizableString { - /** The invariant value. */ - value: string; - /** The display name. */ - localizedValue?: string; +/** Information about resource association */ +export interface ResourceAssociation { + /** Name of the resource association */ + name?: string; + /** Access mode of the resource association */ + accessMode?: ResourceAssociationAccessMode; } -/** Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain. */ -export interface MetricAvailability { - /** The time grain specifies a supported aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. */ - timeGrain?: string; - /** The retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. */ - retention?: string; +/** Network security perimeter configuration profile */ +export interface NetworkSecurityProfile { + /** Name of the profile */ + name?: string; + /** Current access rules version */ + accessRulesVersion?: number; + /** List of Access Rules */ + accessRules?: AccessRule[]; + /** Current diagnostic settings version */ + diagnosticSettingsVersion?: number; + /** List of log categories that are enabled */ + enabledLogCategories?: string[]; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */ -export interface ErrorContract { +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface Resource { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface SystemData { + /** The identity that created the resource. */ + createdBy?: string; + /** The type of identity that created the resource. */ + createdByType?: CreatedByType; + /** The timestamp of resource creation (UTC). */ + createdAt?: Date; + /** The identity that last modified the resource. */ + lastModifiedBy?: string; + /** The type of identity that last modified the resource. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { /** The error object. */ - error?: ErrorResponseAutoGenerated; + error?: ErrorDetail; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */ -export interface ErrorResponseAutoGenerated { +/** The error detail. */ +export interface ErrorDetail { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -141,7 +230,7 @@ export interface ErrorResponseAutoGenerated { * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: ErrorResponseAutoGenerated[]; + readonly details?: ErrorDetail[]; /** * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -163,313 +252,383 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** Represents collection of metric definitions. */ -export interface MetricDefinitionCollection { - /** The values for the metric definitions. */ - value: MetricDefinition[]; -} - -/** Metric definition class specifies the metadata for a metric. */ -export interface MetricDefinition { - /** Flag to indicate whether the dimension is required. */ - isDimensionRequired?: boolean; - /** The resource identifier of the resource that emitted the metric. */ - resourceId?: string; - /** The namespace the metric belongs to. */ - namespace?: string; - /** The name and the display name of the metric, i.e. it is a localizable string. */ - name?: LocalizableString; - /** Detailed description of this metric. */ - displayDescription?: string; - /** Custom category name for this metric. */ - category?: string; - /** The class of the metric. */ - metricClass?: MetricClass; - /** The unit of the metric. */ - unit?: MetricUnit; - /** The primary aggregation type value defining how to use the values for display. */ - primaryAggregationType?: AggregationType; - /** The collection of what aggregation types are supported. */ - supportedAggregationTypes?: AggregationType[]; - /** The collection of what aggregation intervals are available to be queried. */ - metricAvailabilities?: MetricAvailability[]; - /** The resource identifier of the metric definition. */ - id?: string; - /** The name and the display name of the dimension, i.e. it is a localizable string. */ - dimensions?: LocalizableString[]; -} - -/** The response to a metrics query. */ -export interface Response { - /** The integer value representing the relative cost of the query. */ - cost?: number; - /** The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. */ - timespan: string; +/** An email receiver. */ +export interface EmailReceiver { + /** The name of the email receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The email address of this receiver. */ + emailAddress: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; /** - * The interval (window size) for which the metric data was returned in ISO 8601 duration format with a special case for 'FULL' value that returns single datapoint for entire time span requested (*Examples: PT15M, PT1H, P1D, FULL*). - * This may be adjusted and different from what was originally requested if AutoAdjustTimegrain=true is specified. This is not present if a metadata request was made. + * The receiver status of the e-mail. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - interval?: string; - /** The namespace of the metrics being queried */ - namespace?: string; - /** The region of the resource being queried for metrics. */ - resourceregion?: string; - /** The value of the collection. */ - value: Metric[]; -} - -/** The result data of a query. */ -export interface Metric { - /** The metric Id. */ - id: string; - /** The resource type of the metric resource. */ - type: string; - /** The name and the display name of the metric, i.e. it is localizable string. */ - name: LocalizableString; - /** Detailed description of this metric. */ - displayDescription?: string; - /** 'Success' or the error details on query failures for this metric. */ - errorCode?: string; - /** Error message encountered querying this specific metric. */ - errorMessage?: string; - /** The unit of the metric. */ - unit: MetricUnit; - /** The time series returned when a data query is performed. */ - timeseries: TimeSeriesElement[]; + readonly status?: ReceiverStatus; } -/** A time series result type. The discriminator value is always TimeSeries in this case. */ -export interface TimeSeriesElement { - /** The metadata values returned if $filter was specified in the call. */ - metadatavalues?: MetadataValue[]; - /** An array of data points representing the metric values. This is only returned if a result type of data is specified. */ - data?: MetricValue[]; +/** An SMS receiver. */ +export interface SmsReceiver { + /** The name of the SMS receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The country code of the SMS receiver. */ + countryCode: string; + /** The phone number of the SMS receiver. */ + phoneNumber: string; + /** + * The status of the receiver. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: ReceiverStatus; } -/** Represents a metric metadata value. */ -export interface MetadataValue { - /** The name of the metadata. */ - name?: LocalizableString; - /** The value of the metadata. */ - value?: string; +/** A webhook receiver. */ +export interface WebhookReceiver { + /** The name of the webhook receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The URI where webhooks should be sent. */ + serviceUri: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; + /** Indicates whether or not use AAD authentication. */ + useAadAuth?: boolean; + /** Indicates the webhook app object Id for aad auth. */ + objectId?: string; + /** Indicates the identifier uri for aad auth. */ + identifierUri?: string; + /** Indicates the tenant id for aad auth. */ + tenantId?: string; } -/** Represents a metric value. */ -export interface MetricValue { - /** The timestamp for the metric value in ISO 8601 format. */ - timeStamp: Date; - /** The average value in the time range. */ - average?: number; - /** The least value in the time range. */ - minimum?: number; - /** The greatest value in the time range. */ - maximum?: number; - /** The sum of all of the values in the time range. */ - total?: number; - /** The number of samples in the time range. Can be used to determine the number of values that contributed to the average value. */ - count?: number; +/** An Itsm receiver. */ +export interface ItsmReceiver { + /** The name of the Itsm receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** OMS LA instance identifier. */ + workspaceId: string; + /** Unique identification of ITSM connection among multiple defined in above workspace. */ + connectionId: string; + /** JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well. */ + ticketConfiguration: string; + /** Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' */ + region: string; } -/** Query parameters can also be specified in the body, specifying the same parameter in both the body and query parameters will result in an error. */ -export interface SubscriptionScopeMetricsRequestBodyParameters { - /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */ - timespan?: string; - /** - * The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special case for 'FULL' value that returns single datapoint for entire time span requested. - * *Examples: PT15M, PT1H, P1D, FULL* - */ - interval?: string; - /** The names of the metrics (comma separated) to retrieve. */ - metricNames?: string; - /** The list of aggregation types (comma separated) to retrieve. */ - aggregation?: string; - /** The **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid because the logical or operator cannot separate two different metadata names.
- Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. */ - filter?: string; - /** - * The maximum number of records to retrieve. - * Valid only if $filter is specified. - * Defaults to 10. - */ - top?: number; - /** - * The aggregation to use for sorting results and the direction of the sort. - * Only one order can be specified. - * Examples: sum asc. - */ - orderBy?: string; - /** Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. */ - rollUpBy?: string; - /** Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. */ - resultType?: MetricResultType; - /** Metric namespace where the metrics you want reside. */ - metricNamespace?: string; - /** When set to true, if the timespan passed in is not supported by this metric, the API will return the result using the closest supported timespan. When set to false, an error is returned for invalid timespan parameters. Defaults to false. */ - autoAdjustTimegrain?: boolean; - /** When set to false, invalid filter parameter values will be ignored. When set to true, an error is returned for invalid filter parameters. Defaults to true. */ - validateDimensions?: boolean; +/** The Azure mobile App push notification receiver. */ +export interface AzureAppPushReceiver { + /** The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The email address registered for the Azure mobile app. */ + emailAddress: string; } -/** A pageable list of resources */ -export interface AzureMonitorWorkspaceResourceListResult { - /** A list of resources */ - value: AzureMonitorWorkspaceResource[]; - /** The URL to use for getting the next set of results */ - nextLink?: string; +/** The Azure Automation Runbook notification receiver. */ +export interface AutomationRunbookReceiver { + /** The Azure automation account Id which holds this runbook and authenticate to Azure resource. */ + automationAccountId: string; + /** The name for this runbook. */ + runbookName: string; + /** The resource id for webhook linked to this runbook. */ + webhookResourceId: string; + /** Indicates whether this instance is global runbook. */ + isGlobalRunbook: boolean; + /** Indicates name of the webhook. */ + name?: string; + /** The URI where webhooks should be sent. */ + serviceUri?: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; } -/** Properties of an Azure Monitor Workspace */ -export interface AzureMonitorWorkspace { - /** - * The immutable Id of the Azure Monitor Workspace. This property is read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly accountId?: string; - /** - * Properties related to the metrics container in the Azure Monitor Workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly metrics?: AzureMonitorWorkspaceMetrics; - /** - * The provisioning state of the Azure Monitor Workspace. Set to Succeeded if everything is healthy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * The Data Collection Rule and Endpoint used for ingestion by default. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly defaultIngestionSettings?: AzureMonitorWorkspaceDefaultIngestionSettings; - /** - * List of private endpoint connections - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** - * Gets or sets allow or disallow public network access to Azure Monitor Workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicNetworkAccess?: PublicNetworkAccess; +/** A voice receiver. */ +export interface VoiceReceiver { + /** The name of the voice receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The country code of the voice receiver. */ + countryCode: string; + /** The phone number of the voice receiver. */ + phoneNumber: string; } -/** Properties related to the metrics container in the Azure Monitor Workspace */ -export interface Metrics { - /** - * The Prometheus query endpoint for the Azure Monitor Workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly prometheusQueryEndpoint?: string; - /** - * An internal identifier for the metrics container. Only to be used by the system - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly internalId?: string; +/** A logic app receiver. */ +export interface LogicAppReceiver { + /** The name of the logic app receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The azure resource id of the logic app receiver. */ + resourceId: string; + /** The callback url where http request sent to. */ + callbackUrl: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; } -/** Settings for data ingestion */ -export interface IngestionSettings { - /** - * The Azure resource Id of the default data collection rule for this Azure Monitor Workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataCollectionRuleResourceId?: string; - /** - * The Azure resource Id of the default data collection endpoint for this Azure Monitor Workspace. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dataCollectionEndpointResourceId?: string; +/** An azure function receiver. */ +export interface AzureFunctionReceiver { + /** The name of the azure function receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The azure resource id of the function app. */ + functionAppResourceId: string; + /** The function name in the function app. */ + functionName: string; + /** The http trigger url where http request sent to. */ + httpTriggerUrl: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; } -/** The private endpoint resource. */ -export interface PrivateEndpoint { - /** - * The ARM identifier for private endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; +/** An arm role receiver. */ +export interface ArmRoleReceiver { + /** The name of the arm role receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The arm role id. */ + roleId: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; } -/** A collection of information about the state of the connection between service consumer and provider. */ -export interface PrivateLinkServiceConnectionState { - /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ - status?: PrivateEndpointServiceConnectionStatus; - /** The reason for approval/rejection of the connection. */ - description?: string; - /** A message indicating if changes on the service provider require any updates on the consumer. */ - actionsRequired?: string; +/** An Event hub receiver. */ +export interface EventHubReceiver { + /** The name of the Event hub receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The Event Hub namespace */ + eventHubNameSpace: string; + /** The name of the specific Event Hub queue */ + eventHubName: string; + /** Indicates whether to use common alert schema. */ + useCommonAlertSchema?: boolean; + /** The tenant Id for the subscription containing this event hub */ + tenantId?: string; + /** The Id for the subscription containing this event hub */ + subscriptionId: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface Resource { +/** An Incident receiver. */ +export interface IncidentReceiver { + /** The name of the Incident receiver. Names must be unique across all receivers within an action group. */ + name: string; + /** The incident service connection */ + connection: IncidentServiceConnection; + /** The incident management service type */ + incidentManagementService: IncidentManagementService; + /** Field mappings for the incident service */ + mappings: { [propertyName: string]: string }; +} + +/** The connection info for Incident Receiver. */ +export interface IncidentServiceConnection { + /** The name of the connection. */ + name: string; + /** GUID value representing the connection ID for the incident management service. */ + id: string; +} + +/** An azure resource object */ +export interface AzureResource { /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; /** - * The name of the resource + * Azure resource name * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Azure resource type * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; -} + /** Resource location */ + location: string; + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} -/** Metadata pertaining to creation and last modification of the resource. */ -export interface SystemData { - /** The identity that created the resource. */ - createdBy?: string; - /** The type of identity that created the resource. */ - createdByType?: CreatedByType; - /** The timestamp of resource creation (UTC). */ - createdAt?: Date; - /** The identity that last modified the resource. */ - lastModifiedBy?: string; - /** The type of identity that last modified the resource. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; +/** Describes the format of Error response. */ +export interface ErrorResponseAutoGenerated { + /** Error code */ + code?: string; + /** Error message indicating why the operation failed. */ + message?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The name of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; +/** An action group object for the body of patch operations. */ +export interface ActionGroupPatchBody { + /** Resource tags */ + tags?: { [propertyName: string]: string }; + /** Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated. */ + enabled?: boolean; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponseAutoGenerated2 { +/** The request body which contain contact detail metadata */ +export interface NotificationRequestBody { + /** The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, actualcostbudget, forecastedbudget */ + alertType: string; + /** The list of email receivers that are part of this action group. */ + emailReceivers?: EmailReceiver[]; + /** The list of SMS receivers that are part of this action group. */ + smsReceivers?: SmsReceiver[]; + /** The list of webhook receivers that are part of this action group. */ + webhookReceivers?: WebhookReceiver[]; + /** The list of ITSM receivers that are part of this action group. */ + itsmReceivers?: ItsmReceiver[]; + /** The list of AzureAppPush receivers that are part of this action group. */ + azureAppPushReceivers?: AzureAppPushReceiver[]; + /** The list of AutomationRunbook receivers that are part of this action group. */ + automationRunbookReceivers?: AutomationRunbookReceiver[]; + /** The list of voice receivers that are part of this action group. */ + voiceReceivers?: VoiceReceiver[]; + /** The list of logic app receivers that are part of this action group. */ + logicAppReceivers?: LogicAppReceiver[]; + /** The list of azure function receivers that are part of this action group. */ + azureFunctionReceivers?: AzureFunctionReceiver[]; + /** The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. */ + armRoleReceivers?: ArmRoleReceiver[]; + /** The list of event hub receivers that are part of this action group. */ + eventHubReceivers?: EventHubReceiver[]; + /** The list of incident receivers that are part of this action group. */ + incidentReceivers?: IncidentReceiver[]; +} + +/** The details of the test notification results. */ +export interface TestNotificationDetailsResponse { + /** The context info */ + context?: Context; + /** The overall state */ + state: string; + /** The completed time */ + completedTime?: string; + /** The created time */ + createdTime?: string; + /** The list of action detail */ + actionDetails?: ActionDetail[]; +} + +/** The context info */ +export interface Context { + /** The source of the notification request */ + notificationSource?: string; + /** The context id type */ + contextType?: string; +} + +/** The action detail */ +export interface ActionDetail { + /** The mechanism type */ + mechanismType?: string; + /** The name of the action */ + name?: string; + /** The status of the action */ + status?: string; + /** The substatus of the action */ + subState?: string; + /** The send time */ + sendTime?: string; + /** The detail of the friendly error message */ + detail?: string; +} + +/** A list of action groups. */ +export interface ActionGroupList { + /** The list of action groups. */ + value?: ActionGroupResource[]; + /** Provides the link to retrieve the next set of elements. */ + nextLink?: string; +} + +/** Describes a receiver that should be resubscribed. */ +export interface EnableRequest { + /** The name of the receiver to resubscribe. */ + receiverName: string; +} + +/** Represents collection of metric namespaces. */ +export interface MetricNamespaceCollection { + /** The values for the metric namespaces. */ + value: MetricNamespace[]; +} + +/** Metric namespace class specifies the metadata for a metric namespace. */ +export interface MetricNamespace { + /** The ID of the metric namespace. */ + id?: string; + /** The type of the namespace. */ + type?: string; + /** The escaped name of the namespace. */ + name?: string; + /** Kind of namespace */ + classification?: NamespaceClassification; + /** Properties which include the fully qualified namespace name. */ + properties?: MetricNamespaceName; +} + +/** The fully qualified metric namespace name. */ +export interface MetricNamespaceName { + /** The metric namespace name. */ + metricNamespaceName?: string; +} + +/** Represents collection of metric definitions. */ +export interface SubscriptionScopeMetricDefinitionCollection { + /** The values for the metric definitions. */ + value: SubscriptionScopeMetricDefinition[]; +} + +/** Metric definition class specifies the metadata for a metric. */ +export interface SubscriptionScopeMetricDefinition { + /** Flag to indicate whether the dimension is required. */ + isDimensionRequired?: boolean; + /** The resource identifier of the resource that emitted the metric. */ + resourceId?: string; + /** The namespace the metric belongs to. */ + namespace?: string; + /** The name and the display name of the metric, i.e. it is a localizable string. */ + name?: LocalizableString; + /** Detailed description of this metric. */ + displayDescription?: string; + /** Custom category name for this metric. */ + category?: string; + /** The class of the metric. */ + metricClass?: MetricClass; + /** The unit of the metric. */ + unit?: MetricUnit; + /** The primary aggregation type value defining how to use the values for display. */ + primaryAggregationType?: MetricAggregationType; + /** The collection of what aggregation types are supported. */ + supportedAggregationTypes?: MetricAggregationType[]; + /** The collection of what aggregation intervals are available to be queried. */ + metricAvailabilities?: MetricAvailability[]; + /** The resource identifier of the metric definition. */ + id?: string; + /** The name and the display name of the dimension, i.e. it is a localizable string. */ + dimensions?: LocalizableString[]; +} + +/** The localizable string class. */ +export interface LocalizableString { + /** The invariant value. */ + value: string; + /** The display name. */ + localizedValue?: string; +} + +/** Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain. */ +export interface MetricAvailability { + /** The time grain specifies a supported aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. */ + timeGrain?: string; + /** The retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. */ + retention?: string; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */ +export interface ErrorContract { /** The error object. */ - error?: ErrorDetail; + error?: ErrorResponseAutoGenerated2; } -/** The error detail. */ -export interface ErrorDetail { +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.) */ +export interface ErrorResponseAutoGenerated2 { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -489,7 +648,7 @@ export interface ErrorDetail { * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: ErrorDetail[]; + readonly details?: ErrorResponseAutoGenerated2[]; /** * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -497,127 +656,442 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Definition of ARM tracked top level resource properties for the Update operation */ -export interface AzureMonitorWorkspaceResourceForUpdate { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ -export interface OperationListResult { - /** - * List of operations supported by the resource provider - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Operation[]; - /** - * URL to get the next set of operation list results (if there are any). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +/** Represents collection of metric definitions. */ +export interface MetricDefinitionCollection { + /** The values for the metric definitions. */ + value: MetricDefinition[]; } -/** Details of a REST API operation, returned from the Resource Provider Operations API */ -export interface Operation { - /** - * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isDataAction?: boolean; - /** Localized display information for this particular operation. */ - display?: OperationDisplay; +/** Metric definition class specifies the metadata for a metric. */ +export interface MetricDefinition { + /** Flag to indicate whether the dimension is required. */ + isDimensionRequired?: boolean; + /** The resource identifier of the resource that emitted the metric. */ + resourceId?: string; + /** The namespace the metric belongs to. */ + namespace?: string; + /** The name and the display name of the metric, i.e. it is a localizable string. */ + name?: LocalizableString; + /** Detailed description of this metric. */ + displayDescription?: string; + /** Custom category name for this metric. */ + category?: string; + /** The class of the metric. */ + metricClass?: MetricClass; + /** The unit of the metric. */ + unit?: MetricUnit; + /** The primary aggregation type value defining how to use the values for display. */ + primaryAggregationType?: AggregationType; + /** The collection of what aggregation types are supported. */ + supportedAggregationTypes?: AggregationType[]; + /** The collection of what aggregation intervals are available to be queried. */ + metricAvailabilities?: MetricAvailability[]; + /** The resource identifier of the metric definition. */ + id?: string; + /** The name and the display name of the dimension, i.e. it is a localizable string. */ + dimensions?: LocalizableString[]; +} + +/** The response to a metrics query. */ +export interface Response { + /** The integer value representing the relative cost of the query. */ + cost?: number; + /** The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. */ + timespan: string; /** - * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" - * NOTE: This property will not be serialized. It can only be populated by the server. + * The interval (window size) for which the metric data was returned in ISO 8601 duration format with a special case for 'FULL' value that returns single datapoint for entire time span requested (*Examples: PT15M, PT1H, P1D, FULL*). + * This may be adjusted and different from what was originally requested if AutoAdjustTimegrain=true is specified. This is not present if a metadata request was made. */ - readonly origin?: Origin; + interval?: string; + /** The namespace of the metrics being queried */ + namespace?: string; + /** The region of the resource being queried for metrics. */ + resourceregion?: string; + /** The value of the collection. */ + value: Metric[]; +} + +/** The result data of a query. */ +export interface Metric { + /** The metric Id. */ + id: string; + /** The resource type of the metric resource. */ + type: string; + /** The name and the display name of the metric, i.e. it is localizable string. */ + name: LocalizableString; + /** Detailed description of this metric. */ + displayDescription?: string; + /** 'Success' or the error details on query failures for this metric. */ + errorCode?: string; + /** Error message encountered querying this specific metric. */ + errorMessage?: string; + /** The unit of the metric. */ + unit: MetricUnit; + /** The time series returned when a data query is performed. */ + timeseries: TimeSeriesElement[]; +} + +/** A time series result type. The discriminator value is always TimeSeries in this case. */ +export interface TimeSeriesElement { + /** The metadata values returned if $filter was specified in the call. */ + metadatavalues?: MetadataValue[]; + /** An array of data points representing the metric values. This is only returned if a result type of data is specified. */ + data?: MetricValue[]; +} + +/** Represents a metric metadata value. */ +export interface MetadataValue { + /** The name of the metadata. */ + name?: LocalizableString; + /** The value of the metadata. */ + value?: string; +} + +/** Represents a metric value. */ +export interface MetricValue { + /** The timestamp for the metric value in ISO 8601 format. */ + timeStamp: Date; + /** The average value in the time range. */ + average?: number; + /** The least value in the time range. */ + minimum?: number; + /** The greatest value in the time range. */ + maximum?: number; + /** The sum of all of the values in the time range. */ + total?: number; + /** The number of samples in the time range. Can be used to determine the number of values that contributed to the average value. */ + count?: number; +} + +/** Query parameters can also be specified in the body, specifying the same parameter in both the body and query parameters will result in an error. */ +export interface SubscriptionScopeMetricsRequestBodyParameters { + /** The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. */ + timespan?: string; /** - * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. - * NOTE: This property will not be serialized. It can only be populated by the server. + * The interval (i.e. timegrain) of the query in ISO 8601 duration format. Defaults to PT1M. Special case for 'FULL' value that returns single datapoint for entire time span requested. + * *Examples: PT15M, PT1H, P1D, FULL* */ - readonly actionType?: ActionType; + interval?: string; + /** The names of the metrics (comma separated) to retrieve. */ + metricNames?: string; + /** The list of aggregation types (comma separated) to retrieve. */ + aggregation?: string; + /** The **$filter** is used to reduce the set of metric data returned.
Example:
Metric contains metadata A, B and C.
- Return all time series of C where A = a1 and B = b1 or b2
**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**
- Invalid variant:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**
This is invalid because the logical or operator cannot separate two different metadata names.
- Return all time series where A = a1, B = b1 and C = c1:
**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**
- Return all time series where A = a1
**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. */ + filter?: string; + /** + * The maximum number of records to retrieve. + * Valid only if $filter is specified. + * Defaults to 10. + */ + top?: number; + /** + * The aggregation to use for sorting results and the direction of the sort. + * Only one order can be specified. + * Examples: sum asc. + */ + orderBy?: string; + /** Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries. */ + rollUpBy?: string; + /** Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. */ + resultType?: MetricResultType; + /** Metric namespace where the metrics you want reside. */ + metricNamespace?: string; + /** When set to true, if the timespan passed in is not supported by this metric, the API will return the result using the closest supported timespan. When set to false, an error is returned for invalid timespan parameters. Defaults to false. */ + autoAdjustTimegrain?: boolean; + /** When set to false, invalid filter parameter values will be ignored. When set to true, an error is returned for invalid filter parameters. Defaults to true. */ + validateDimensions?: boolean; } -/** Localized display information for this particular operation. */ -export interface OperationDisplay { +/** A pageable list of resources */ +export interface AzureMonitorWorkspaceResourceListResult { + /** A list of resources */ + value: AzureMonitorWorkspaceResource[]; + /** The URL to use for getting the next set of results */ + nextLink?: string; +} + +/** Properties of an Azure Monitor Workspace */ +export interface AzureMonitorWorkspace { /** - * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * The immutable Id of the Azure Monitor Workspace. This property is read-only. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provider?: string; + readonly accountId?: string; /** - * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * Properties related to the metrics container in the Azure Monitor Workspace * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resource?: string; + readonly metrics?: AzureMonitorWorkspaceMetrics; /** - * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * The provisioning state of the Azure Monitor Workspace. Set to Succeeded if everything is healthy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operation?: string; + readonly provisioningState?: ProvisioningState; /** - * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * The Data Collection Rule and Endpoint used for ingestion by default. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly defaultIngestionSettings?: AzureMonitorWorkspaceDefaultIngestionSettings; + /** + * List of private endpoint connections + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; + /** Gets or sets allow or disallow public network access to Azure Monitor Workspace */ + publicNetworkAccess?: PublicNetworkAccess; } -/** Represents a collection of autoscale setting resources. */ -export interface AutoscaleSettingResourceCollection { - /** the values for the autoscale setting resources. */ - value: AutoscaleSettingResource[]; - /** URL to get the next set of results. */ - nextLink?: string; +/** Properties related to the metrics container in the Azure Monitor Workspace */ +export interface Metrics { + /** + * The Prometheus query endpoint for the Azure Monitor Workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly prometheusQueryEndpoint?: string; + /** + * An internal identifier for the metrics container. Only to be used by the system + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly internalId?: string; } -/** Autoscale profile. */ -export interface AutoscaleProfile { - /** the name of the profile. */ - name: string; - /** the number of instances that can be used during this profile. */ - capacity: ScaleCapacity; - /** the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. */ - rules: ScaleRule[]; - /** the specific date-time for the profile. This element is not used if the Recurrence element is used. */ - fixedDate?: TimeWindow; - /** the repeating times at which this profile begins. This element is not used if the FixedDate element is used. */ - recurrence?: Recurrence; +/** Settings for data ingestion */ +export interface IngestionSettings { + /** + * The Azure resource Id of the default data collection rule for this Azure Monitor Workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataCollectionRuleResourceId?: string; + /** + * The Azure resource Id of the default data collection endpoint for this Azure Monitor Workspace. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dataCollectionEndpointResourceId?: string; } -/** The number of instances that can be used during this profile. */ -export interface ScaleCapacity { - /** the minimum number of instances for the resource. */ - minimum: string; - /** the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. */ - maximum: string; - /** the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. */ - default: string; +/** The private endpoint resource. */ +export interface PrivateEndpoint { + /** + * The ARM identifier for private endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; } -/** A rule that provide the triggers and parameters for the scaling action. */ -export interface ScaleRule { - /** the trigger that results in a scaling action. */ - metricTrigger: MetricTrigger; - /** the parameters for the scaling action. */ - scaleAction: ScaleAction; +/** A collection of information about the state of the connection between service consumer and provider. */ +export interface PrivateLinkServiceConnectionState { + /** Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ + status?: PrivateEndpointServiceConnectionStatus; + /** The reason for approval/rejection of the connection. */ + description?: string; + /** A message indicating if changes on the service provider require any updates on the consumer. */ + actionsRequired?: string; } -/** The trigger that results in a scaling action. */ -export interface MetricTrigger { - /** the name of the metric that defines what the rule monitors. */ - metricName: string; - /** the namespace of the metric that defines what the rule monitors. */ - metricNamespace?: string; - /** the resource identifier of the resource the rule monitors. */ - metricResourceUri: string; - /** the location of the resource the rule monitors. */ - metricResourceLocation?: string; - /** the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. */ +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated2 { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The name of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated3 { + /** The error object. */ + error?: ErrorDetailAutoGenerated; +} + +/** The error detail. */ +export interface ErrorDetailAutoGenerated { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** Definition of ARM tracked top level resource properties for the Update operation */ +export interface AzureMonitorWorkspaceResourceForUpdate { + /** Resource tags */ + tags?: { [propertyName: string]: string }; +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** Represents a collection of autoscale setting resources. */ +export interface AutoscaleSettingResourceCollection { + /** the values for the autoscale setting resources. */ + value: AutoscaleSettingResource[]; + /** URL to get the next set of results. */ + nextLink?: string; +} + +/** Autoscale profile. */ +export interface AutoscaleProfile { + /** the name of the profile. */ + name: string; + /** the number of instances that can be used during this profile. */ + capacity: ScaleCapacity; + /** the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. */ + rules: ScaleRule[]; + /** the specific date-time for the profile. This element is not used if the Recurrence element is used. */ + fixedDate?: TimeWindow; + /** the repeating times at which this profile begins. This element is not used if the FixedDate element is used. */ + recurrence?: Recurrence; +} + +/** The number of instances that can be used during this profile. */ +export interface ScaleCapacity { + /** the minimum number of instances for the resource. */ + minimum: string; + /** the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. */ + maximum: string; + /** the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. */ + default: string; +} + +/** A rule that provide the triggers and parameters for the scaling action. */ +export interface ScaleRule { + /** the trigger that results in a scaling action. */ + metricTrigger: MetricTrigger; + /** the parameters for the scaling action. */ + scaleAction: ScaleAction; +} + +/** The trigger that results in a scaling action. */ +export interface MetricTrigger { + /** the name of the metric that defines what the rule monitors. */ + metricName: string; + /** the namespace of the metric that defines what the rule monitors. */ + metricNamespace?: string; + /** the resource identifier of the resource the rule monitors. */ + metricResourceUri: string; + /** the location of the resource the rule monitors. */ + metricResourceLocation?: string; + /** the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. */ timeGrain: string; /** the metric statistic type. How the metrics from multiple instances are combined. */ statistic: MetricStatisticType; @@ -724,7 +1198,7 @@ export interface PredictiveAutoscalePolicy { } /** The autoscale setting resource. */ -export interface ResourceAutoGenerated2 { +export interface ResourceAutoGenerated3 { /** * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -913,7 +1387,7 @@ export interface RuleAction { } /** An azure resource object */ -export interface ResourceAutoGenerated3 { +export interface ResourceAutoGenerated4 { /** * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -975,7 +1449,7 @@ export interface RetentionPolicy { } /** An azure resource object */ -export interface ResourceAutoGenerated4 { +export interface ResourceAutoGenerated5 { /** * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1044,7 +1518,7 @@ export interface LogSettings { } /** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated5 { +export interface ResourceAutoGenerated6 { /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1075,8 +1549,8 @@ export interface DiagnosticSettingsCategoryResourceCollection { } /** An email receiver. */ -export interface EmailReceiver { - /** The name of the email receiver. Names must be unique across all receivers within an action group. */ +export interface EmailReceiverAutoGenerated { + /** The name of the email receiver. Names must be unique across all receivers within a tenant action group. */ name: string; /** The email address of this receiver. */ emailAddress: string; @@ -1090,8 +1564,8 @@ export interface EmailReceiver { } /** An SMS receiver. */ -export interface SmsReceiver { - /** The name of the SMS receiver. Names must be unique across all receivers within an action group. */ +export interface SmsReceiverAutoGenerated { + /** The name of the SMS receiver. Names must be unique across all receivers within a tenant action group. */ name: string; /** The country code of the SMS receiver. */ countryCode: string; @@ -1105,8 +1579,8 @@ export interface SmsReceiver { } /** A webhook receiver. */ -export interface WebhookReceiver { - /** The name of the webhook receiver. Names must be unique across all receivers within an action group. */ +export interface WebhookReceiverAutoGenerated { + /** The name of the webhook receiver. Names must be unique across all receivers within a tenant action group. */ name: string; /** The URI where webhooks should be sent. */ serviceUri: string; @@ -1122,270 +1596,9 @@ export interface WebhookReceiver { tenantId?: string; } -/** An Itsm receiver. */ -export interface ItsmReceiver { - /** The name of the Itsm receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** OMS LA instance identifier. */ - workspaceId: string; - /** Unique identification of ITSM connection among multiple defined in above workspace. */ - connectionId: string; - /** JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well. */ - ticketConfiguration: string; - /** Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' */ - region: string; -} - /** The Azure mobile App push notification receiver. */ -export interface AzureAppPushReceiver { - /** The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The email address registered for the Azure mobile app. */ - emailAddress: string; -} - -/** The Azure Automation Runbook notification receiver. */ -export interface AutomationRunbookReceiver { - /** The Azure automation account Id which holds this runbook and authenticate to Azure resource. */ - automationAccountId: string; - /** The name for this runbook. */ - runbookName: string; - /** The resource id for webhook linked to this runbook. */ - webhookResourceId: string; - /** Indicates whether this instance is global runbook. */ - isGlobalRunbook: boolean; - /** Indicates name of the webhook. */ - name?: string; - /** The URI where webhooks should be sent. */ - serviceUri?: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; -} - -/** A voice receiver. */ -export interface VoiceReceiver { - /** The name of the voice receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The country code of the voice receiver. */ - countryCode: string; - /** The phone number of the voice receiver. */ - phoneNumber: string; -} - -/** A logic app receiver. */ -export interface LogicAppReceiver { - /** The name of the logic app receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The azure resource id of the logic app receiver. */ - resourceId: string; - /** The callback url where http request sent to. */ - callbackUrl: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; -} - -/** An azure function receiver. */ -export interface AzureFunctionReceiver { - /** The name of the azure function receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The azure resource id of the function app. */ - functionAppResourceId: string; - /** The function name in the function app. */ - functionName: string; - /** The http trigger url where http request sent to. */ - httpTriggerUrl: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; -} - -/** An arm role receiver. */ -export interface ArmRoleReceiver { - /** The name of the arm role receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The arm role id. */ - roleId: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; -} - -/** An Event hub receiver. */ -export interface EventHubReceiver { - /** The name of the Event hub receiver. Names must be unique across all receivers within an action group. */ - name: string; - /** The Event Hub namespace */ - eventHubNameSpace: string; - /** The name of the specific Event Hub queue */ - eventHubName: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; - /** The tenant Id for the subscription containing this event hub */ - tenantId?: string; - /** The Id for the subscription containing this event hub */ - subscriptionId: string; -} - -/** An azure resource object */ -export interface AzureResource { - /** - * Azure resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Azure resource name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Azure resource type - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** Resource location */ - location: string; - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** An action group object for the body of patch operations. */ -export interface ActionGroupPatchBody { - /** Resource tags */ - tags?: { [propertyName: string]: string }; - /** Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated. */ - enabled?: boolean; -} - -/** The request body which contain contact detail metadata */ -export interface NotificationRequestBody { - /** The value of the supported alert type. Supported alert type values are: servicehealth, metricstaticthreshold, metricsdynamicthreshold, logalertv2, smartalert, webtestalert, logalertv1numresult, logalertv1metricmeasurement, resourcehealth, activitylog, actualcostbudget, forecastedbudget */ - alertType: string; - /** The list of email receivers that are part of this action group. */ - emailReceivers?: EmailReceiver[]; - /** The list of SMS receivers that are part of this action group. */ - smsReceivers?: SmsReceiver[]; - /** The list of webhook receivers that are part of this action group. */ - webhookReceivers?: WebhookReceiver[]; - /** The list of ITSM receivers that are part of this action group. */ - itsmReceivers?: ItsmReceiver[]; - /** The list of AzureAppPush receivers that are part of this action group. */ - azureAppPushReceivers?: AzureAppPushReceiver[]; - /** The list of AutomationRunbook receivers that are part of this action group. */ - automationRunbookReceivers?: AutomationRunbookReceiver[]; - /** The list of voice receivers that are part of this action group. */ - voiceReceivers?: VoiceReceiver[]; - /** The list of logic app receivers that are part of this action group. */ - logicAppReceivers?: LogicAppReceiver[]; - /** The list of azure function receivers that are part of this action group. */ - azureFunctionReceivers?: AzureFunctionReceiver[]; - /** The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. */ - armRoleReceivers?: ArmRoleReceiver[]; - /** The list of event hub receivers that are part of this action group. */ - eventHubReceivers?: EventHubReceiver[]; -} - -/** The details of the test notification results. */ -export interface TestNotificationDetailsResponse { - /** The context info */ - context?: Context; - /** The overall state */ - state: string; - /** The completed time */ - completedTime?: string; - /** The created time */ - createdTime?: string; - /** The list of action detail */ - actionDetails?: ActionDetail[]; -} - -/** The context info */ -export interface Context { - /** The source of the notification request */ - notificationSource?: string; - /** The context id type */ - contextType?: string; -} - -/** The action detail */ -export interface ActionDetail { - /** The mechanism type */ - mechanismType?: string; - /** The name of the action */ - name?: string; - /** The status of the action */ - status?: string; - /** The substatus of the action */ - subState?: string; - /** The send time */ - sendTime?: string; - /** The detail of the friendly error message */ - detail?: string; -} - -/** A list of action groups. */ -export interface ActionGroupList { - /** The list of action groups. */ - value?: ActionGroupResource[]; - /** Provides the link to retrieve the next set of elements. */ - nextLink?: string; -} - -/** Describes a receiver that should be resubscribed. */ -export interface EnableRequest { - /** The name of the receiver to resubscribe. */ - receiverName: string; -} - -/** An email receiver. */ -export interface EmailReceiverAutoGenerated { - /** The name of the email receiver. Names must be unique across all receivers within a tenant action group. */ - name: string; - /** The email address of this receiver. */ - emailAddress: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; - /** - * The receiver status of the e-mail. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: ReceiverStatus; -} - -/** An SMS receiver. */ -export interface SmsReceiverAutoGenerated { - /** The name of the SMS receiver. Names must be unique across all receivers within a tenant action group. */ - name: string; - /** The country code of the SMS receiver. */ - countryCode: string; - /** The phone number of the SMS receiver. */ - phoneNumber: string; - /** - * The status of the receiver. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: ReceiverStatus; -} - -/** A webhook receiver. */ -export interface WebhookReceiverAutoGenerated { - /** The name of the webhook receiver. Names must be unique across all receivers within a tenant action group. */ - name: string; - /** The URI where webhooks should be sent. */ - serviceUri: string; - /** Indicates whether to use common alert schema. */ - useCommonAlertSchema?: boolean; - /** Indicates whether or not use AAD authentication. */ - useAadAuth?: boolean; - /** Indicates the webhook app object Id for aad auth. */ - objectId?: string; - /** Indicates the identifier uri for aad auth. */ - identifierUri?: string; - /** Indicates the tenant id for aad auth. */ - tenantId?: string; -} - -/** The Azure mobile App push notification receiver. */ -export interface AzureAppPushReceiverAutoGenerated { - /** The name of the Azure mobile app push receiver. Names must be unique across all receivers within a tenant action group. */ +export interface AzureAppPushReceiverAutoGenerated { + /** The name of the Azure mobile app push receiver. Names must be unique across all receivers within a tenant action group. */ name: string; /** The email address registered for the Azure mobile app. */ emailAddress: string; @@ -1464,13 +1677,13 @@ export interface ActionDetailAutoGenerated { } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponseAutoGenerated3 { +export interface ErrorResponseAutoGenerated4 { /** The error object. */ - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } /** The error detail. */ -export interface ErrorDetailAutoGenerated { +export interface ErrorDetailAutoGenerated2 { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1490,7 +1703,7 @@ export interface ErrorDetailAutoGenerated { * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: ErrorDetailAutoGenerated[]; + readonly details?: ErrorDetailAutoGenerated2[]; /** * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1756,7 +1969,7 @@ export interface MetricAlertAction { } /** An azure resource object */ -export interface ResourceAutoGenerated6 { +export interface ResourceAutoGenerated7 { /** * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2107,7 +2320,7 @@ export interface WorkspaceInfo { } /** An azure resource object */ -export interface ProxyResource { +export interface ProxyResourceAutoGenerated { /** * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2179,7 +2392,7 @@ export interface AccessModeSettingsExclusion { /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ export interface DefaultErrorResponse { /** The error object. */ - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } /** A container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkScope instance. */ @@ -2201,7 +2414,7 @@ export interface OperationStatus { /** The status of the operation. */ status?: string; /** The error detail of the operation if any. */ - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } /** A list of private link resources */ @@ -2290,7 +2503,7 @@ export interface AzureResourceAutoGenerated { } /** The error response. */ -export interface ErrorResponseAutoGenerated4 { +export interface ErrorResponseAutoGenerated5 { /** * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2498,6 +2711,11 @@ export interface Metadata { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisionedByResourceId?: string; + /** + * Immutable Id of azure offering managing this resource on-behalf-of customer. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisionedByImmutableId?: string; } /** Managed service identity (system assigned and/or user assigned identities) */ @@ -2537,7 +2755,7 @@ export interface UserAssignedIdentity { /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ export interface ErrorResponseCommonV2 { /** The error object. */ - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; } /** Definition of ARM tracked top level resource properties for update operation. */ @@ -2678,6 +2896,15 @@ export interface DataCollectionRuleResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metadata?: DataCollectionRuleMetadata; + /** + * Defines the ingestion endpoints to send data to via this rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpoints?: DataCollectionRuleEndpoints; + /** Defines all the references that may be used in other sections of the DCR */ + references?: DataCollectionRuleReferences; + /** Agent settings used to modify agent behavior on a given host */ + agentSettings?: DataCollectionRuleAgentSettings; /** Declaration of custom streams used in this rule. */ streamDeclarations?: { [propertyName: string]: StreamDeclaration }; /** @@ -2712,6 +2939,15 @@ export interface DataCollectionRule { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly metadata?: DataCollectionRuleMetadata; + /** + * Defines the ingestion endpoints to send data to via this rule. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpoints?: DataCollectionRuleEndpoints; + /** Defines all the references that may be used in other sections of the DCR */ + references?: DataCollectionRuleReferences; + /** Agent settings used to modify agent behavior on a given host */ + agentSettings?: DataCollectionRuleAgentSettings; /** Declaration of custom streams used in this rule. */ streamDeclarations?: { [propertyName: string]: StreamDeclaration }; /** @@ -2730,10 +2966,64 @@ export interface DataCollectionRule { readonly provisioningState?: KnownDataCollectionRuleProvisioningState; } -/** Declaration of a custom stream. */ -export interface StreamDeclaration { - /** List of columns used by data in this stream. */ - columns?: ColumnDefinition[]; +/** This defines all the ingestion endpoints that can be used by this rule */ +export interface EndpointsSpec { + /** + * The ingestion endpoint for logs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logsIngestion?: string; + /** + * The ingestion endpoint for metrics + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly metricsIngestion?: string; +} + +/** This section defines all the references that may be used in other sections of the DCR */ +export interface ReferencesSpec { + /** All the enrichment data sources referenced in data flows */ + enrichmentData?: ReferencesSpecEnrichmentData; +} + +/** All the enrichment data sources referenced in data flows */ +export interface EnrichmentData { + /** All the storage blobs used as enrichment data sources */ + storageBlobs?: StorageBlob[]; +} + +export interface StorageBlob { + /** Resource Id of the storage account that hosts the blob */ + resourceId?: string; + /** Url of the storage blob */ + blobUrl?: string; + /** The type of lookup to perform on the blob */ + lookupType?: KnownStorageBlobLookupType; + /** The name of the enrichment data source used as an alias when referencing this data source in data flows */ + name?: string; +} + +/** An agent setting */ +export interface AgentSettingsSpec { + /** All the settings that are applicable to the logs agent (AMA) */ + logs?: AgentSetting[]; +} + +/** A setting used to control an agent behavior on a host machine */ +export interface AgentSetting { + /** + * The name of the setting. + * Must be part of the list of supported settings + */ + name?: KnownAgentSettingName; + /** The value of the setting */ + value?: string; +} + +/** Declaration of a custom stream. */ +export interface StreamDeclaration { + /** List of columns used by data in this stream. */ + columns?: ColumnDefinition[]; } /** Definition of custom data column. */ @@ -2786,6 +3076,8 @@ export interface PerfCounterDataSource { * To get a list of performance counters on Windows, run the command 'typeperf'. */ counterSpecifiers?: string[]; + /** The KQL query to transform the data source. */ + transformKql?: string; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2805,6 +3097,8 @@ export interface WindowsEventLogDataSource { streams?: KnownWindowsEventLogDataSourceStreams[]; /** A list of Windows Event Log queries in XPATH format. */ xPathQueries?: string[]; + /** The KQL query to transform the data source. */ + transformKql?: string; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2826,6 +3120,8 @@ export interface SyslogDataSource { facilityNames?: KnownSyslogDataSourceFacilityNames[]; /** The log levels to collect. */ logLevels?: KnownSyslogDataSourceLogLevels[]; + /** The KQL query to transform the data source. */ + transformKql?: string; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2869,6 +3165,8 @@ export interface LogFilesDataSource { format: KnownLogFilesDataSourceFormat; /** The log files specific settings. */ settings?: LogFilesDataSourceSettings; + /** The KQL query to transform the data source. */ + transformKql?: string; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2894,6 +3192,8 @@ export interface IisLogsDataSource { streams: string[]; /** Absolute paths file location */ logDirectories?: string[]; + /** The KQL query to transform the data source. */ + transformKql?: string; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2905,6 +3205,8 @@ export interface IisLogsDataSource { export interface WindowsFirewallLogsDataSource { /** Firewall logs streams */ streams: string[]; + /** Firewall logs profile filter */ + profileFilter?: KnownWindowsFirewallLogsDataSourceProfileFilter[]; /** * A friendly name for the data source. * This name should be unique across all data sources (regardless of type) within the data collection rule. @@ -2975,6 +3277,10 @@ export interface DestinationsSpec { storageTablesDirect?: StorageTableDestination[]; /** List of storage accounts destinations. */ storageAccounts?: StorageBlobDestination[]; + /** List of Microsoft Fabric destinations. */ + microsoftFabric?: MicrosoftFabricDestination[]; + /** List of Azure Data Explorer destinations. */ + azureDataExplorer?: AdxDestination[]; } /** Log Analytics destination. */ @@ -3062,6 +3368,41 @@ export interface StorageTableDestination { name?: string; } +/** Microsoft Fabric destination (non-Azure). */ +export interface MicrosoftFabricDestination { + /** The tenant id of the Microsoft Fabric resource. */ + tenantId?: string; + /** The artifact id of the Microsoft Fabric resource. */ + artifactId?: string; + /** The name of the database to which data will be ingested. */ + databaseName?: string; + /** The ingestion uri of the Microsoft Fabric resource. */ + ingestionUri?: string; + /** + * A friendly name for the destination. + * This name should be unique across all destinations (regardless of type) within the data collection rule. + */ + name?: string; +} + +/** Azure Data Explorer (Adx) destination. */ +export interface AdxDestination { + /** The ARM resource id of the Adx resource. */ + resourceId?: string; + /** The name of the database to which data will be ingested. */ + databaseName?: string; + /** + * The ingestion uri of the Adx resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestionUri?: string; + /** + * A friendly name for the destination. + * This name should be unique across all destinations (regardless of type) within the data collection rule. + */ + name?: string; +} + /** Definition of which streams are sent to which destinations. */ export interface DataFlow { /** List of streams for this data flow. */ @@ -3074,6 +3415,8 @@ export interface DataFlow { outputStream?: string; /** The builtIn transform to transform stream data */ builtInTransform?: string; + /** Flag to enable overflow column in LA destinations */ + captureOverflow?: boolean; } /** The claims for a rule management event data source. */ @@ -3130,6 +3473,69 @@ export interface DynamicThresholdFailingPeriods { minFailingPeriodsToAlert: number; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends Resource {} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface DataCollectionEndpointResourceSystemData extends SystemData {} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface DataCollectionRuleAssociationProxyOnlyResourceSystemData + extends SystemData {} + +/** Metadata pertaining to creation and last modification of the resource. */ +export interface DataCollectionRuleResourceSystemData extends SystemData {} + +/** An action group resource. */ +export interface ActionGroupResource extends AzureResource { + /** The short name of the action group. This will be used in SMS messages. */ + groupShortName?: string; + /** Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. */ + enabled?: boolean; + /** The list of email receivers that are part of this action group. */ + emailReceivers?: EmailReceiver[]; + /** The list of SMS receivers that are part of this action group. */ + smsReceivers?: SmsReceiver[]; + /** The list of webhook receivers that are part of this action group. */ + webhookReceivers?: WebhookReceiver[]; + /** The list of ITSM receivers that are part of this action group. */ + itsmReceivers?: ItsmReceiver[]; + /** The list of AzureAppPush receivers that are part of this action group. */ + azureAppPushReceivers?: AzureAppPushReceiver[]; + /** The list of AutomationRunbook receivers that are part of this action group. */ + automationRunbookReceivers?: AutomationRunbookReceiver[]; + /** The list of voice receivers that are part of this action group. */ + voiceReceivers?: VoiceReceiver[]; + /** The list of logic app receivers that are part of this action group. */ + logicAppReceivers?: LogicAppReceiver[]; + /** The list of azure function receivers that are part of this action group. */ + azureFunctionReceivers?: AzureFunctionReceiver[]; + /** The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. */ + armRoleReceivers?: ArmRoleReceiver[]; + /** The list of event hub receivers that are part of this action group. */ + eventHubReceivers?: EventHubReceiver[]; + /** The list of incident receivers that are part of this action group. */ + incidentReceivers?: IncidentReceiver[]; +} + +/** A tenant action group resource. */ +export interface TenantActionGroupResource extends AzureResource { + /** The short name of the action group. This will be used in SMS messages. */ + groupShortName?: string; + /** Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications. */ + enabled?: boolean; + /** The list of email receivers that are part of this tenant action group. */ + emailReceivers?: EmailReceiverAutoGenerated[]; + /** The list of SMS receivers that are part of this tenant action group. */ + smsReceivers?: SmsReceiverAutoGenerated[]; + /** The list of webhook receivers that are part of this tenant action group. */ + webhookReceivers?: WebhookReceiverAutoGenerated[]; + /** The list of AzureAppPush receivers that are part of this tenant action group. */ + azureAppPushReceivers?: AzureAppPushReceiverAutoGenerated[]; + /** The list of voice receivers that are part of this tenant action group. */ + voiceReceivers?: VoiceReceiverAutoGenerated[]; +} + /** Resource properties */ export interface AzureMonitorWorkspaceResourceProperties extends AzureMonitorWorkspace {} @@ -3142,7 +3548,7 @@ export interface AzureMonitorWorkspaceDefaultIngestionSettings extends IngestionSettings {} /** The private endpoint connection resource. */ -export interface PrivateEndpointConnection extends Resource { +export interface PrivateEndpointConnection extends ResourceAutoGenerated { /** * The group ids for the private endpoint resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3156,18 +3562,8 @@ export interface PrivateEndpointConnection extends Resource { provisioningState?: PrivateEndpointConnectionProvisioningState; } -/** Metadata pertaining to creation and last modification of the resource. */ -export interface DataCollectionEndpointResourceSystemData extends SystemData {} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface DataCollectionRuleAssociationProxyOnlyResourceSystemData - extends SystemData {} - -/** Metadata pertaining to creation and last modification of the resource. */ -export interface DataCollectionRuleResourceSystemData extends SystemData {} - /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResource extends ResourceAutoGenerated { +export interface TrackedResource extends ResourceAutoGenerated2 { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** The geo-location where the resource lives */ @@ -3175,7 +3571,7 @@ export interface TrackedResource extends ResourceAutoGenerated { } /** The autoscale setting resource. */ -export interface AutoscaleSettingResource extends ResourceAutoGenerated2 { +export interface AutoscaleSettingResource extends ResourceAutoGenerated3 { /** the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. */ profiles: AutoscaleProfile[]; /** the collection of notifications. */ @@ -3277,7 +3673,7 @@ export interface RuleWebhookAction extends RuleAction { } /** The alert rule resource. */ -export interface AlertRuleResource extends ResourceAutoGenerated3 { +export interface AlertRuleResource extends ResourceAutoGenerated4 { /** the name of the alert rule. */ namePropertiesName: string; /** the description of the alert rule that will be included in the alert email. */ @@ -3300,7 +3696,7 @@ export interface AlertRuleResource extends ResourceAutoGenerated3 { } /** The log profile resource. */ -export interface LogProfileResource extends ResourceAutoGenerated4 { +export interface LogProfileResource extends ResourceAutoGenerated5 { /** the resource id of the storage account to which you would like to send the Activity Log. */ storageAccountId?: string; /** The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. */ @@ -3314,7 +3710,7 @@ export interface LogProfileResource extends ResourceAutoGenerated4 { } /** The diagnostic setting resource. */ -export interface DiagnosticSettingsResource extends ResourceAutoGenerated5 { +export interface DiagnosticSettingsResource extends ResourceAutoGenerated6 { /** * The system metadata related to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3342,7 +3738,7 @@ export interface DiagnosticSettingsResource extends ResourceAutoGenerated5 { /** The diagnostic settings category resource. */ export interface DiagnosticSettingsCategoryResource - extends ResourceAutoGenerated5 { + extends ResourceAutoGenerated6 { /** * The system metadata related to this resource. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3356,7 +3752,7 @@ export interface DiagnosticSettingsCategoryResource /** The Private Endpoint Connection resource. */ export interface PrivateEndpointConnectionAutoGenerated - extends ResourceAutoGenerated5 { + extends ResourceAutoGenerated6 { /** The resource of private end point. */ privateEndpoint?: PrivateEndpointAutoGenerated; /** A collection of information about the state of the connection between service consumer and provider. */ @@ -3366,7 +3762,7 @@ export interface PrivateEndpointConnectionAutoGenerated } /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ -export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated5 { +export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated6 { /** Resource tags. */ tags?: { [propertyName: string]: string }; /** The geo-location where the resource lives */ @@ -3374,7 +3770,7 @@ export interface TrackedResourceAutoGenerated extends ResourceAutoGenerated5 { } /** A private link resource */ -export interface PrivateLinkResource extends ResourceAutoGenerated5 { +export interface PrivateLinkResource extends ResourceAutoGenerated6 { /** * The private link resource group id. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3390,55 +3786,7 @@ export interface PrivateLinkResource extends ResourceAutoGenerated5 { } /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResourceAutoGenerated extends ResourceAutoGenerated5 {} - -/** An action group resource. */ -export interface ActionGroupResource extends AzureResource { - /** The short name of the action group. This will be used in SMS messages. */ - groupShortName?: string; - /** Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. */ - enabled?: boolean; - /** The list of email receivers that are part of this action group. */ - emailReceivers?: EmailReceiver[]; - /** The list of SMS receivers that are part of this action group. */ - smsReceivers?: SmsReceiver[]; - /** The list of webhook receivers that are part of this action group. */ - webhookReceivers?: WebhookReceiver[]; - /** The list of ITSM receivers that are part of this action group. */ - itsmReceivers?: ItsmReceiver[]; - /** The list of AzureAppPush receivers that are part of this action group. */ - azureAppPushReceivers?: AzureAppPushReceiver[]; - /** The list of AutomationRunbook receivers that are part of this action group. */ - automationRunbookReceivers?: AutomationRunbookReceiver[]; - /** The list of voice receivers that are part of this action group. */ - voiceReceivers?: VoiceReceiver[]; - /** The list of logic app receivers that are part of this action group. */ - logicAppReceivers?: LogicAppReceiver[]; - /** The list of azure function receivers that are part of this action group. */ - azureFunctionReceivers?: AzureFunctionReceiver[]; - /** The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported. */ - armRoleReceivers?: ArmRoleReceiver[]; - /** The list of event hub receivers that are part of this action group. */ - eventHubReceivers?: EventHubReceiver[]; -} - -/** A tenant action group resource. */ -export interface TenantActionGroupResource extends AzureResource { - /** The short name of the action group. This will be used in SMS messages. */ - groupShortName?: string; - /** Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications. */ - enabled?: boolean; - /** The list of email receivers that are part of this tenant action group. */ - emailReceivers?: EmailReceiverAutoGenerated[]; - /** The list of SMS receivers that are part of this tenant action group. */ - smsReceivers?: SmsReceiverAutoGenerated[]; - /** The list of webhook receivers that are part of this tenant action group. */ - webhookReceivers?: WebhookReceiverAutoGenerated[]; - /** The list of AzureAppPush receivers that are part of this tenant action group. */ - azureAppPushReceivers?: AzureAppPushReceiverAutoGenerated[]; - /** The list of voice receivers that are part of this tenant action group. */ - voiceReceivers?: VoiceReceiverAutoGenerated[]; -} +export interface ProxyResourceAutoGenerated2 extends ResourceAutoGenerated6 {} /** Specifies the metric alert criteria for a single resource that has multiple metric criteria. */ export interface MetricAlertSingleResourceMultipleMetricCriteria @@ -3472,7 +3820,7 @@ export interface MetricAlertMultipleResourceMultipleMetricCriteria } /** The metric alert resource. */ -export interface MetricAlertResource extends ResourceAutoGenerated6 { +export interface MetricAlertResource extends ResourceAutoGenerated7 { /** the description of the metric alert that will be included in the alert email. */ description?: string; /** Alert severity {0, 1, 2, 3, 4} */ @@ -3508,7 +3856,7 @@ export interface MetricAlertResource extends ResourceAutoGenerated6 { } /** VM Insights onboarding status for a resource. */ -export interface VMInsightsOnboardingStatus extends ProxyResource { +export interface VMInsightsOnboardingStatus extends ProxyResourceAutoGenerated { /** Azure Resource Manager identifier of the resource whose onboarding status is being represented. */ resourceId?: string; /** The onboarding status for the resource. Note that, a higher level scope, e.g., resource group or subscription, is considered onboarded if at least one resource under it is onboarded. */ @@ -3599,6 +3947,18 @@ export interface DataCollectionRuleAssociationProxyOnlyResourceProperties export interface DataCollectionRuleResourceProperties extends DataCollectionRule {} +/** Defines the ingestion endpoints to send data to via this rule. */ +export interface DataCollectionRuleEndpoints extends EndpointsSpec {} + +/** Defines all the references that may be used in other sections of the DCR */ +export interface DataCollectionRuleReferences extends ReferencesSpec {} + +/** All the enrichment data sources referenced in data flows */ +export interface ReferencesSpecEnrichmentData extends EnrichmentData {} + +/** Agent settings used to modify agent behavior on a given host */ +export interface DataCollectionRuleAgentSettings extends AgentSettingsSpec {} + /** * The specification of data sources. * This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint. @@ -3648,6 +4008,12 @@ export interface DynamicMetricCriteria extends MultiMetricCriteria { ignoreDataBefore?: Date; } +/** Network security perimeter (NSP) configuration resource */ +export interface NetworkSecurityPerimeterConfiguration extends ProxyResource { + /** Network security configuration properties. */ + properties?: NetworkSecurityPerimeterConfigurationProperties; +} + /** An Azure Monitor Workspace definition */ export interface AzureMonitorWorkspaceResource extends TrackedResource { /** @@ -3680,11 +4046,8 @@ export interface AzureMonitorWorkspaceResource extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: PrivateEndpointConnection[]; - /** - * Gets or sets allow or disallow public network access to Azure Monitor Workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicNetworkAccess?: PublicNetworkAccess; + /** Gets or sets allow or disallow public network access to Azure Monitor Workspace */ + publicNetworkAccess?: PublicNetworkAccess; } /** An Azure Monitor PrivateLinkScope definition. */ @@ -3710,7 +4073,7 @@ export interface AzureMonitorPrivateLinkScope } /** A private link scoped resource */ -export interface ScopedResource extends ProxyResourceAutoGenerated { +export interface ScopedResource extends ProxyResourceAutoGenerated2 { /** * System data * NOTE: This property will not be serialized. It can only be populated by the server. @@ -3725,9 +4088,8 @@ export interface ScopedResource extends ProxyResourceAutoGenerated { readonly provisioningState?: string; } -/** Defines headers for AzureMonitorWorkspaces_delete operation. */ -export interface AzureMonitorWorkspacesDeleteHeaders { - azureAsyncOperation?: string; +/** Defines headers for ActionGroups_reconcileNSP operation. */ +export interface ActionGroupsReconcileNSPHeaders { location?: string; } @@ -3737,71 +4099,240 @@ export interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeader location?: string; } +/** Defines headers for DataCollectionEndpoints_reconcileNSP operation. */ +export interface DataCollectionEndpointsReconcileNSPHeaders { + location?: string; +} + +/** Defines headers for ScheduledQueryRule_reconcileNSP operation. */ +export interface ScheduledQueryRuleReconcileNSPHeaders { + location?: string; +} + +/** Defines headers for AzureMonitorWorkspaces_delete operation. */ +export interface AzureMonitorWorkspacesDeleteHeaders { + azureAsyncOperation?: string; + location?: string; +} + /** Defines headers for MonitorClient_createNotificationsAtTenantActionGroupResourceLevel operation. */ export interface MonitorClientCreateNotificationsAtTenantActionGroupResourceLevelHeaders { /** The location header that has the polling uri. */ location?: string; } -/** Known values of {@link NamespaceClassification} that the service accepts. */ -export enum KnownNamespaceClassification { - /** Platform */ - Platform = "Platform", - /** Custom */ - Custom = "Custom", - /** Qos */ - Qos = "Qos", +/** Known values of {@link NetworkSecurityPerimeterConfigurationProvisioningState} that the service accepts. */ +export enum KnownNetworkSecurityPerimeterConfigurationProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Creating */ + Creating = "Creating", + /** Updating */ + Updating = "Updating", + /** Deleting */ + Deleting = "Deleting", + /** Accepted */ + Accepted = "Accepted", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", } /** - * Defines values for NamespaceClassification. \ - * {@link KnownNamespaceClassification} can be used interchangeably with NamespaceClassification, + * Defines values for NetworkSecurityPerimeterConfigurationProvisioningState. \ + * {@link KnownNetworkSecurityPerimeterConfigurationProvisioningState} can be used interchangeably with NetworkSecurityPerimeterConfigurationProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Platform** \ - * **Custom** \ - * **Qos** + * **Succeeded** \ + * **Creating** \ + * **Updating** \ + * **Deleting** \ + * **Accepted** \ + * **Failed** \ + * **Canceled** */ -export type NamespaceClassification = string; +export type NetworkSecurityPerimeterConfigurationProvisioningState = string; -/** Known values of {@link MetricClass} that the service accepts. */ -export enum KnownMetricClass { - /** Availability */ - Availability = "Availability", - /** Transactions */ - Transactions = "Transactions", - /** Errors */ - Errors = "Errors", - /** Latency */ - Latency = "Latency", - /** Saturation */ - Saturation = "Saturation", +/** Known values of {@link IssueType} that the service accepts. */ +export enum KnownIssueType { + /** Unknown issue type */ + Unknown = "Unknown", + /** An error occurred while applying the network security perimeter (NSP) configuration. */ + ConfigurationPropagationFailure = "ConfigurationPropagationFailure", + /** A network connectivity issue is happening on the resource which could be addressed either by adding new resources to the network security perimeter (NSP) or by modifying access rules. */ + MissingPerimeterConfiguration = "MissingPerimeterConfiguration", + /** An managed identity hasn't been associated with the resource. The resource will still be able to validate inbound traffic from the network security perimeter (NSP) or matching inbound access rules, but it won't be able to perform outbound access as a member of the NSP. */ + MissingIdentityConfiguration = "MissingIdentityConfiguration", } /** - * Defines values for MetricClass. \ - * {@link KnownMetricClass} can be used interchangeably with MetricClass, + * Defines values for IssueType. \ + * {@link KnownIssueType} can be used interchangeably with IssueType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Availability** \ - * **Transactions** \ - * **Errors** \ - * **Latency** \ - * **Saturation** + * **Unknown**: Unknown issue type \ + * **ConfigurationPropagationFailure**: An error occurred while applying the network security perimeter (NSP) configuration. \ + * **MissingPerimeterConfiguration**: A network connectivity issue is happening on the resource which could be addressed either by adding new resources to the network security perimeter (NSP) or by modifying access rules. \ + * **MissingIdentityConfiguration**: An managed identity hasn't been associated with the resource. The resource will still be able to validate inbound traffic from the network security perimeter (NSP) or matching inbound access rules, but it won't be able to perform outbound access as a member of the NSP. */ -export type MetricClass = string; +export type IssueType = string; -/** Known values of {@link MetricUnit} that the service accepts. */ -export enum KnownMetricUnit { - /** Unit of raw quantity. */ - Count = "Count", - /** Unit of memory in bytes. */ - Bytes = "Bytes", - /** Unit of time in seconds. */ - Seconds = "Seconds", - /** Rate unit of raw quantity per second. */ - CountPerSecond = "CountPerSecond", - /** Rate unit of memory in bytes per second. */ +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Warning */ + Warning = "Warning", + /** Error */ + Error = "Error", +} + +/** + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Warning** \ + * **Error** + */ +export type Severity = string; + +/** Known values of {@link AccessRuleDirection} that the service accepts. */ +export enum KnownAccessRuleDirection { + /** Applies to inbound network traffic to the secured resources. */ + Inbound = "Inbound", + /** Applies to outbound network traffic from the secured resources */ + Outbound = "Outbound", +} + +/** + * Defines values for AccessRuleDirection. \ + * {@link KnownAccessRuleDirection} can be used interchangeably with AccessRuleDirection, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Inbound**: Applies to inbound network traffic to the secured resources. \ + * **Outbound**: Applies to outbound network traffic from the secured resources + */ +export type AccessRuleDirection = string; + +/** Known values of {@link ResourceAssociationAccessMode} that the service accepts. */ +export enum KnownResourceAssociationAccessMode { + /** Enforced access mode - traffic to the resource that failed access checks is blocked */ + Enforced = "Enforced", + /** Learning access mode - traffic to the resource is enabled for analysis but not blocked */ + Learning = "Learning", + /** Audit access mode - traffic to the resource that fails access checks is logged but not blocked */ + Audit = "Audit", +} + +/** + * Defines values for ResourceAssociationAccessMode. \ + * {@link KnownResourceAssociationAccessMode} can be used interchangeably with ResourceAssociationAccessMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enforced**: Enforced access mode - traffic to the resource that failed access checks is blocked \ + * **Learning**: Learning access mode - traffic to the resource is enabled for analysis but not blocked \ + * **Audit**: Audit access mode - traffic to the resource that fails access checks is logged but not blocked + */ +export type ResourceAssociationAccessMode = string; + +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", +} + +/** + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** + */ +export type CreatedByType = string; + +/** Known values of {@link IncidentManagementService} that the service accepts. */ +export enum KnownIncidentManagementService { + /** Icm */ + Icm = "Icm", +} + +/** + * Defines values for IncidentManagementService. \ + * {@link KnownIncidentManagementService} can be used interchangeably with IncidentManagementService, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Icm** + */ +export type IncidentManagementService = string; + +/** Known values of {@link NamespaceClassification} that the service accepts. */ +export enum KnownNamespaceClassification { + /** Platform */ + Platform = "Platform", + /** Custom */ + Custom = "Custom", + /** Qos */ + Qos = "Qos", +} + +/** + * Defines values for NamespaceClassification. \ + * {@link KnownNamespaceClassification} can be used interchangeably with NamespaceClassification, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Platform** \ + * **Custom** \ + * **Qos** + */ +export type NamespaceClassification = string; + +/** Known values of {@link MetricClass} that the service accepts. */ +export enum KnownMetricClass { + /** Availability */ + Availability = "Availability", + /** Transactions */ + Transactions = "Transactions", + /** Errors */ + Errors = "Errors", + /** Latency */ + Latency = "Latency", + /** Saturation */ + Saturation = "Saturation", +} + +/** + * Defines values for MetricClass. \ + * {@link KnownMetricClass} can be used interchangeably with MetricClass, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Availability** \ + * **Transactions** \ + * **Errors** \ + * **Latency** \ + * **Saturation** + */ +export type MetricClass = string; + +/** Known values of {@link MetricUnit} that the service accepts. */ +export enum KnownMetricUnit { + /** Unit of raw quantity. */ + Count = "Count", + /** Unit of memory in bytes. */ + Bytes = "Bytes", + /** Unit of time in seconds. */ + Seconds = "Seconds", + /** Rate unit of raw quantity per second. */ + CountPerSecond = "CountPerSecond", + /** Rate unit of memory in bytes per second. */ BytesPerSecond = "BytesPerSecond", /** Percentage unit. */ Percent = "Percent", @@ -3962,30 +4493,6 @@ export enum KnownPrivateEndpointConnectionProvisioningState { */ export type PrivateEndpointConnectionProvisioningState = string; -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", -} - -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; - /** Known values of {@link PublicNetworkAccess} that the service accepts. */ export enum KnownPublicNetworkAccess { /** Enabled */ @@ -4418,6 +4925,42 @@ export enum KnownKnownDataCollectionRuleAssociationProvisioningState { */ export type KnownDataCollectionRuleAssociationProvisioningState = string; +/** Known values of {@link KnownStorageBlobLookupType} that the service accepts. */ +export enum KnownKnownStorageBlobLookupType { + /** String */ + String = "String", + /** Cidr */ + Cidr = "Cidr", +} + +/** + * Defines values for KnownStorageBlobLookupType. \ + * {@link KnownKnownStorageBlobLookupType} can be used interchangeably with KnownStorageBlobLookupType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **String** \ + * **Cidr** + */ +export type KnownStorageBlobLookupType = string; + +/** Known values of {@link KnownAgentSettingName} that the service accepts. */ +export enum KnownKnownAgentSettingName { + /** MaxDiskQuotaInMB */ + MaxDiskQuotaInMB = "MaxDiskQuotaInMB", + /** UseTimeReceivedForForwardedEvents */ + UseTimeReceivedForForwardedEvents = "UseTimeReceivedForForwardedEvents", +} + +/** + * Defines values for KnownAgentSettingName. \ + * {@link KnownKnownAgentSettingName} can be used interchangeably with KnownAgentSettingName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **MaxDiskQuotaInMB** \ + * **UseTimeReceivedForForwardedEvents** + */ +export type KnownAgentSettingName = string; + /** Known values of {@link KnownColumnDefinitionType} that the service accepts. */ export enum KnownKnownColumnDefinitionType { /** String */ @@ -4504,6 +5047,8 @@ export type KnownSyslogDataSourceStreams = string; /** Known values of {@link KnownSyslogDataSourceFacilityNames} that the service accepts. */ export enum KnownKnownSyslogDataSourceFacilityNames { + /** Asterisk */ + Asterisk = "*", /** Alert */ Alert = "alert", /** Audit */ @@ -4522,6 +5067,22 @@ export enum KnownKnownSyslogDataSourceFacilityNames { Ftp = "ftp", /** Kern */ Kern = "kern", + /** Local0 */ + Local0 = "local0", + /** Local1 */ + Local1 = "local1", + /** Local2 */ + Local2 = "local2", + /** Local3 */ + Local3 = "local3", + /** Local4 */ + Local4 = "local4", + /** Local5 */ + Local5 = "local5", + /** Local6 */ + Local6 = "local6", + /** Local7 */ + Local7 = "local7", /** Lpr */ Lpr = "lpr", /** Mail */ @@ -4540,24 +5101,6 @@ export enum KnownKnownSyslogDataSourceFacilityNames { User = "user", /** Uucp */ Uucp = "uucp", - /** Local0 */ - Local0 = "local0", - /** Local1 */ - Local1 = "local1", - /** Local2 */ - Local2 = "local2", - /** Local3 */ - Local3 = "local3", - /** Local4 */ - Local4 = "local4", - /** Local5 */ - Local5 = "local5", - /** Local6 */ - Local6 = "local6", - /** Local7 */ - Local7 = "local7", - /** Asterisk */ - Asterisk = "*", } /** @@ -4565,6 +5108,7 @@ export enum KnownKnownSyslogDataSourceFacilityNames { * {@link KnownKnownSyslogDataSourceFacilityNames} can be used interchangeably with KnownSyslogDataSourceFacilityNames, * this enum contains the known values that the service supports. * ### Known values supported by the service + * ***** \ * **alert** \ * **audit** \ * **auth** \ @@ -4574,15 +5118,6 @@ export enum KnownKnownSyslogDataSourceFacilityNames { * **daemon** \ * **ftp** \ * **kern** \ - * **lpr** \ - * **mail** \ - * **mark** \ - * **news** \ - * **nopri** \ - * **ntp** \ - * **syslog** \ - * **user** \ - * **uucp** \ * **local0** \ * **local1** \ * **local2** \ @@ -4591,7 +5126,15 @@ export enum KnownKnownSyslogDataSourceFacilityNames { * **local5** \ * **local6** \ * **local7** \ - * ***** + * **lpr** \ + * **mail** \ + * **mark** \ + * **news** \ + * **nopri** \ + * **ntp** \ + * **syslog** \ + * **user** \ + * **uucp** */ export type KnownSyslogDataSourceFacilityNames = string; @@ -4663,6 +5206,8 @@ export type KnownExtensionDataSourceStreams = string; /** Known values of {@link KnownLogFilesDataSourceFormat} that the service accepts. */ export enum KnownKnownLogFilesDataSourceFormat { + /** Json */ + Json = "json", /** Text */ Text = "text", } @@ -4672,6 +5217,7 @@ export enum KnownKnownLogFilesDataSourceFormat { * {@link KnownKnownLogFilesDataSourceFormat} can be used interchangeably with KnownLogFilesDataSourceFormat, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **json** \ * **text** */ export type KnownLogFilesDataSourceFormat = string; @@ -4715,6 +5261,27 @@ export enum KnownKnownLogFileTextSettingsRecordStartTimestampFormat { */ export type KnownLogFileTextSettingsRecordStartTimestampFormat = string; +/** Known values of {@link KnownWindowsFirewallLogsDataSourceProfileFilter} that the service accepts. */ +export enum KnownKnownWindowsFirewallLogsDataSourceProfileFilter { + /** Domain */ + Domain = "Domain", + /** Private */ + Private = "Private", + /** Public */ + Public = "Public", +} + +/** + * Defines values for KnownWindowsFirewallLogsDataSourceProfileFilter. \ + * {@link KnownKnownWindowsFirewallLogsDataSourceProfileFilter} can be used interchangeably with KnownWindowsFirewallLogsDataSourceProfileFilter, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Domain** \ + * **Private** \ + * **Public** + */ +export type KnownWindowsFirewallLogsDataSourceProfileFilter = string; + /** Known values of {@link KnownPrometheusForwarderDataSourceStreams} that the service accepts. */ export enum KnownKnownPrometheusForwarderDataSourceStreams { /** MicrosoftPrometheusMetrics */ @@ -4877,123 +5444,361 @@ export enum KnownAggregationTypeEnum { */ export type AggregationTypeEnum = string; -/** Known values of {@link DynamicThresholdOperator} that the service accepts. */ -export enum KnownDynamicThresholdOperator { - /** GreaterThan */ - GreaterThan = "GreaterThan", - /** LessThan */ - LessThan = "LessThan", - /** GreaterOrLessThan */ - GreaterOrLessThan = "GreaterOrLessThan", +/** Known values of {@link DynamicThresholdOperator} that the service accepts. */ +export enum KnownDynamicThresholdOperator { + /** GreaterThan */ + GreaterThan = "GreaterThan", + /** LessThan */ + LessThan = "LessThan", + /** GreaterOrLessThan */ + GreaterOrLessThan = "GreaterOrLessThan", +} + +/** + * Defines values for DynamicThresholdOperator. \ + * {@link KnownDynamicThresholdOperator} can be used interchangeably with DynamicThresholdOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **GreaterThan** \ + * **LessThan** \ + * **GreaterOrLessThan** + */ +export type DynamicThresholdOperator = string; + +/** Known values of {@link DynamicThresholdSensitivity} that the service accepts. */ +export enum KnownDynamicThresholdSensitivity { + /** Low */ + Low = "Low", + /** Medium */ + Medium = "Medium", + /** High */ + High = "High", +} + +/** + * Defines values for DynamicThresholdSensitivity. \ + * {@link KnownDynamicThresholdSensitivity} can be used interchangeably with DynamicThresholdSensitivity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Low** \ + * **Medium** \ + * **High** + */ +export type DynamicThresholdSensitivity = string; +/** Defines values for ReceiverStatus. */ +export type ReceiverStatus = "NotSpecified" | "Enabled" | "Disabled"; +/** Defines values for AggregationType. */ +export type AggregationType = + | "None" + | "Average" + | "Count" + | "Minimum" + | "Maximum" + | "Total"; +/** Defines values for ResultType. */ +export type ResultType = "Data" | "Metadata"; +/** Defines values for MetricStatisticType. */ +export type MetricStatisticType = "Average" | "Min" | "Max" | "Sum" | "Count"; +/** Defines values for TimeAggregationType. */ +export type TimeAggregationType = + | "Average" + | "Minimum" + | "Maximum" + | "Total" + | "Count" + | "Last"; +/** Defines values for ComparisonOperationType. */ +export type ComparisonOperationType = + | "Equals" + | "NotEquals" + | "GreaterThan" + | "GreaterThanOrEqual" + | "LessThan" + | "LessThanOrEqual"; +/** Defines values for ScaleDirection. */ +export type ScaleDirection = "None" | "Increase" | "Decrease"; +/** Defines values for ScaleType. */ +export type ScaleType = + | "ChangeCount" + | "PercentChangeCount" + | "ExactCount" + | "ServiceAllowedNextValue"; +/** Defines values for RecurrenceFrequency. */ +export type RecurrenceFrequency = + | "None" + | "Second" + | "Minute" + | "Hour" + | "Day" + | "Week" + | "Month" + | "Year"; +/** Defines values for PredictiveAutoscalePolicyScaleMode. */ +export type PredictiveAutoscalePolicyScaleMode = + | "Disabled" + | "ForecastOnly" + | "Enabled"; +/** Defines values for EventLevel. */ +export type EventLevel = + | "Critical" + | "Error" + | "Warning" + | "Informational" + | "Verbose"; +/** Defines values for IdentityType. */ +export type IdentityType = "SystemAssigned" | "UserAssigned" | "None"; +/** Defines values for ConditionOperator. */ +export type ConditionOperator = + | "GreaterThan" + | "GreaterThanOrEqual" + | "LessThan" + | "LessThanOrEqual" + | "Equals"; +/** Defines values for TimeAggregationOperator. */ +export type TimeAggregationOperator = + | "Average" + | "Minimum" + | "Maximum" + | "Total" + | "Last"; + +/** Optional parameters. */ +export interface ActionGroupsListNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNSP operation. */ +export type ActionGroupsListNSPResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface ActionGroupsGetNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getNSP operation. */ +export type ActionGroupsGetNSPResponse = NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface ActionGroupsReconcileNSPOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the reconcileNSP operation. */ +export type ActionGroupsReconcileNSPResponse = ActionGroupsReconcileNSPHeaders; + +/** Optional parameters. */ +export interface ActionGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource; + +/** Optional parameters. */ +export interface ActionGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ActionGroupsGetResponse = ActionGroupResource; + +/** Optional parameters. */ +export interface ActionGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ActionGroupsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type ActionGroupsUpdateResponse = ActionGroupResource; + +/** Optional parameters. */ +export interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createNotificationsAtActionGroupResourceLevel operation. */ +export type ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse = + TestNotificationDetailsResponse; + +/** Optional parameters. */ +export interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getTestNotificationsAtActionGroupResourceLevel operation. */ +export type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse = + TestNotificationDetailsResponse; + +/** Optional parameters. */ +export interface ActionGroupsListBySubscriptionIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionId operation. */ +export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList; + +/** Optional parameters. */ +export interface ActionGroupsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type ActionGroupsListByResourceGroupResponse = ActionGroupList; + +/** Optional parameters. */ +export interface ActionGroupsEnableReceiverOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface ActionGroupsListNSPNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNSPNext operation. */ +export type ActionGroupsListNSPNextResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsListNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNSP operation. */ +export type DataCollectionEndpointsListNSPResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsGetNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getNSP operation. */ +export type DataCollectionEndpointsGetNSPResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface DataCollectionEndpointsReconcileNSPOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the reconcileNSP operation. */ +export type DataCollectionEndpointsReconcileNSPResponse = + DataCollectionEndpointsReconcileNSPHeaders; + +/** Optional parameters. */ +export interface DataCollectionEndpointsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type DataCollectionEndpointsListByResourceGroupResponse = + DataCollectionEndpointResourceListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type DataCollectionEndpointsListBySubscriptionResponse = + DataCollectionEndpointResourceListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DataCollectionEndpointsGetResponse = DataCollectionEndpointResource; + +/** Optional parameters. */ +export interface DataCollectionEndpointsCreateOptionalParams + extends coreClient.OperationOptions { + /** The payload */ + body?: DataCollectionEndpointResource; +} + +/** Contains response data for the create operation. */ +export type DataCollectionEndpointsCreateResponse = + DataCollectionEndpointResource; + +/** Optional parameters. */ +export interface DataCollectionEndpointsUpdateOptionalParams + extends coreClient.OperationOptions { + /** The payload */ + body?: ResourceForUpdate; +} + +/** Contains response data for the update operation. */ +export type DataCollectionEndpointsUpdateResponse = + DataCollectionEndpointResource; + +/** Optional parameters. */ +export interface DataCollectionEndpointsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DataCollectionEndpointsListNSPNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNSPNext operation. */ +export type DataCollectionEndpointsListNSPNextResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type DataCollectionEndpointsListByResourceGroupNextResponse = + DataCollectionEndpointResourceListResult; + +/** Optional parameters. */ +export interface DataCollectionEndpointsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type DataCollectionEndpointsListBySubscriptionNextResponse = + DataCollectionEndpointResourceListResult; + +/** Optional parameters. */ +export interface ScheduledQueryRuleListNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNSP operation. */ +export type ScheduledQueryRuleListNSPResponse = + NetworkSecurityPerimeterConfigurationListResult; + +/** Optional parameters. */ +export interface ScheduledQueryRuleGetNSPOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getNSP operation. */ +export type ScheduledQueryRuleGetNSPResponse = + NetworkSecurityPerimeterConfiguration; + +/** Optional parameters. */ +export interface ScheduledQueryRuleReconcileNSPOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; } -/** - * Defines values for DynamicThresholdOperator. \ - * {@link KnownDynamicThresholdOperator} can be used interchangeably with DynamicThresholdOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **GreaterThan** \ - * **LessThan** \ - * **GreaterOrLessThan** - */ -export type DynamicThresholdOperator = string; +/** Contains response data for the reconcileNSP operation. */ +export type ScheduledQueryRuleReconcileNSPResponse = + ScheduledQueryRuleReconcileNSPHeaders; -/** Known values of {@link DynamicThresholdSensitivity} that the service accepts. */ -export enum KnownDynamicThresholdSensitivity { - /** Low */ - Low = "Low", - /** Medium */ - Medium = "Medium", - /** High */ - High = "High", -} +/** Optional parameters. */ +export interface ScheduledQueryRuleListNSPNextOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for DynamicThresholdSensitivity. \ - * {@link KnownDynamicThresholdSensitivity} can be used interchangeably with DynamicThresholdSensitivity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Low** \ - * **Medium** \ - * **High** - */ -export type DynamicThresholdSensitivity = string; -/** Defines values for AggregationType. */ -export type AggregationType = - | "None" - | "Average" - | "Count" - | "Minimum" - | "Maximum" - | "Total"; -/** Defines values for ResultType. */ -export type ResultType = "Data" | "Metadata"; -/** Defines values for MetricStatisticType. */ -export type MetricStatisticType = "Average" | "Min" | "Max" | "Sum" | "Count"; -/** Defines values for TimeAggregationType. */ -export type TimeAggregationType = - | "Average" - | "Minimum" - | "Maximum" - | "Total" - | "Count" - | "Last"; -/** Defines values for ComparisonOperationType. */ -export type ComparisonOperationType = - | "Equals" - | "NotEquals" - | "GreaterThan" - | "GreaterThanOrEqual" - | "LessThan" - | "LessThanOrEqual"; -/** Defines values for ScaleDirection. */ -export type ScaleDirection = "None" | "Increase" | "Decrease"; -/** Defines values for ScaleType. */ -export type ScaleType = - | "ChangeCount" - | "PercentChangeCount" - | "ExactCount" - | "ServiceAllowedNextValue"; -/** Defines values for RecurrenceFrequency. */ -export type RecurrenceFrequency = - | "None" - | "Second" - | "Minute" - | "Hour" - | "Day" - | "Week" - | "Month" - | "Year"; -/** Defines values for PredictiveAutoscalePolicyScaleMode. */ -export type PredictiveAutoscalePolicyScaleMode = - | "Disabled" - | "ForecastOnly" - | "Enabled"; -/** Defines values for ReceiverStatus. */ -export type ReceiverStatus = "NotSpecified" | "Enabled" | "Disabled"; -/** Defines values for EventLevel. */ -export type EventLevel = - | "Critical" - | "Error" - | "Warning" - | "Informational" - | "Verbose"; -/** Defines values for IdentityType. */ -export type IdentityType = "SystemAssigned" | "UserAssigned" | "None"; -/** Defines values for ConditionOperator. */ -export type ConditionOperator = - | "GreaterThan" - | "GreaterThanOrEqual" - | "LessThan" - | "LessThanOrEqual" - | "Equals"; -/** Defines values for TimeAggregationOperator. */ -export type TimeAggregationOperator = - | "Average" - | "Minimum" - | "Maximum" - | "Total" - | "Last"; +/** Contains response data for the listNSPNext operation. */ +export type ScheduledQueryRuleListNSPNextResponse = + NetworkSecurityPerimeterConfigurationListResult; /** Optional parameters. */ export interface MetricNamespacesListOptionalParams @@ -5449,70 +6254,6 @@ export interface DiagnosticSettingsCategoryListOptionalParams export type DiagnosticSettingsCategoryListResponse = DiagnosticSettingsCategoryResourceCollection; -/** Optional parameters. */ -export interface ActionGroupsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type ActionGroupsCreateOrUpdateResponse = ActionGroupResource; - -/** Optional parameters. */ -export interface ActionGroupsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ActionGroupsGetResponse = ActionGroupResource; - -/** Optional parameters. */ -export interface ActionGroupsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface ActionGroupsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type ActionGroupsUpdateResponse = ActionGroupResource; - -/** Optional parameters. */ -export interface ActionGroupsCreateNotificationsAtActionGroupResourceLevelOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createNotificationsAtActionGroupResourceLevel operation. */ -export type ActionGroupsCreateNotificationsAtActionGroupResourceLevelResponse = - TestNotificationDetailsResponse; - -/** Optional parameters. */ -export interface ActionGroupsGetTestNotificationsAtActionGroupResourceLevelOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getTestNotificationsAtActionGroupResourceLevel operation. */ -export type ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse = - TestNotificationDetailsResponse; - -/** Optional parameters. */ -export interface ActionGroupsListBySubscriptionIdOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionId operation. */ -export type ActionGroupsListBySubscriptionIdResponse = ActionGroupList; - -/** Optional parameters. */ -export interface ActionGroupsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type ActionGroupsListByResourceGroupResponse = ActionGroupList; - -/** Optional parameters. */ -export interface ActionGroupsEnableReceiverOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ export interface TenantActionGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} @@ -5975,71 +6716,6 @@ export interface ActivityLogAlertsListByResourceGroupNextOptionalParams /** Contains response data for the listByResourceGroupNext operation. */ export type ActivityLogAlertsListByResourceGroupNextResponse = AlertRuleList; -/** Optional parameters. */ -export interface DataCollectionEndpointsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type DataCollectionEndpointsListByResourceGroupResponse = - DataCollectionEndpointResourceListResult; - -/** Optional parameters. */ -export interface DataCollectionEndpointsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type DataCollectionEndpointsListBySubscriptionResponse = - DataCollectionEndpointResourceListResult; - -/** Optional parameters. */ -export interface DataCollectionEndpointsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DataCollectionEndpointsGetResponse = DataCollectionEndpointResource; - -/** Optional parameters. */ -export interface DataCollectionEndpointsCreateOptionalParams - extends coreClient.OperationOptions { - /** The payload */ - body?: DataCollectionEndpointResource; -} - -/** Contains response data for the create operation. */ -export type DataCollectionEndpointsCreateResponse = - DataCollectionEndpointResource; - -/** Optional parameters. */ -export interface DataCollectionEndpointsUpdateOptionalParams - extends coreClient.OperationOptions { - /** The payload */ - body?: ResourceForUpdate; -} - -/** Contains response data for the update operation. */ -export type DataCollectionEndpointsUpdateResponse = - DataCollectionEndpointResource; - -/** Optional parameters. */ -export interface DataCollectionEndpointsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface DataCollectionEndpointsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type DataCollectionEndpointsListByResourceGroupNextResponse = - DataCollectionEndpointResourceListResult; - -/** Optional parameters. */ -export interface DataCollectionEndpointsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscriptionNext operation. */ -export type DataCollectionEndpointsListBySubscriptionNextResponse = - DataCollectionEndpointResourceListResult; - /** Optional parameters. */ export interface DataCollectionRuleAssociationsListByResourceOptionalParams extends coreClient.OperationOptions {} @@ -6156,7 +6832,10 @@ export type DataCollectionRulesUpdateResponse = DataCollectionRuleResource; /** Optional parameters. */ export interface DataCollectionRulesDeleteOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** If set to 'true' then all associations of this data collection rule will also be deleted */ + deleteAssociations?: boolean; +} /** Optional parameters. */ export interface DataCollectionRulesListByResourceGroupNextOptionalParams diff --git a/sdk/monitor/arm-monitor/src/models/mappers.ts b/sdk/monitor/arm-monitor/src/models/mappers.ts index cf8c983420e5..ee5971685caa 100644 --- a/sdk/monitor/arm-monitor/src/models/mappers.ts +++ b/sdk/monitor/arm-monitor/src/models/mappers.ts @@ -8,53 +8,93 @@ import * as coreClient from "@azure/core-client"; -export const MetricNamespaceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricNamespaceCollection", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricNamespace", +export const NetworkSecurityPerimeterConfigurationListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + }, }, }, }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, }, - }, -}; + }; -export const MetricNamespace: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricNamespace", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", +export const NetworkSecurityPerimeterConfigurationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationProperties", + modelProperties: { + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, }, - }, - type: { - serializedName: "type", - type: { - name: "String", + provisioningIssues: { + serializedName: "provisioningIssues", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProvisioningIssue", + }, + }, + }, + }, + networkSecurityPerimeter: { + serializedName: "networkSecurityPerimeter", + type: { + name: "Composite", + className: "NetworkSecurityPerimeter", + }, + }, + resourceAssociation: { + serializedName: "resourceAssociation", + type: { + name: "Composite", + className: "ResourceAssociation", + }, + }, + profile: { + serializedName: "profile", + type: { + name: "Composite", + className: "NetworkSecurityProfile", + }, }, }, + }, + }; + +export const ProvisioningIssue: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProvisioningIssue", + modelProperties: { name: { serializedName: "name", - type: { - name: "String", - }, - }, - classification: { - serializedName: "classification", + readOnly: true, type: { name: "String", }, @@ -63,169 +103,165 @@ export const MetricNamespace: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "MetricNamespaceName", + className: "ProvisioningIssueProperties", }, }, }, }, }; -export const MetricNamespaceName: coreClient.CompositeMapper = { +export const ProvisioningIssueProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricNamespaceName", + className: "ProvisioningIssueProperties", modelProperties: { - metricNamespaceName: { - serializedName: "metricNamespaceName", + issueType: { + serializedName: "issueType", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - code: { - serializedName: "code", + severity: { + serializedName: "severity", + readOnly: true, type: { name: "String", }, }, - message: { - serializedName: "message", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const SubscriptionScopeMetricDefinitionCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SubscriptionScopeMetricDefinitionCollection", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubscriptionScopeMetricDefinition", - }, + suggestedResourceIds: { + serializedName: "suggestedResourceIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + suggestedAccessRules: { + serializedName: "suggestedAccessRules", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessRule", }, }, }, }, }, - }; + }, +}; -export const SubscriptionScopeMetricDefinition: coreClient.CompositeMapper = { +export const AccessRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubscriptionScopeMetricDefinition", + className: "AccessRule", modelProperties: { - isDimensionRequired: { - serializedName: "isDimensionRequired", - type: { - name: "Boolean", - }, - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String", - }, - }, - namespace: { - serializedName: "namespace", - type: { - name: "String", - }, - }, name: { serializedName: "name", - type: { - name: "Composite", - className: "LocalizableString", - }, - }, - displayDescription: { - serializedName: "displayDescription", type: { name: "String", }, }, - category: { - serializedName: "category", + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "AccessRuleProperties", }, }, - metricClass: { - serializedName: "metricClass", + }, + }, +}; + +export const AccessRuleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessRuleProperties", + modelProperties: { + direction: { + serializedName: "direction", type: { name: "String", }, }, - unit: { - serializedName: "unit", + addressPrefixes: { + serializedName: "addressPrefixes", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - primaryAggregationType: { - serializedName: "primaryAggregationType", + subscriptions: { + serializedName: "subscriptions", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessRulePropertiesSubscriptionsItem", + }, + }, }, }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", + networkSecurityPerimeters: { + serializedName: "networkSecurityPerimeters", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "NetworkSecurityPerimeter", }, }, }, }, - metricAvailabilities: { - serializedName: "metricAvailabilities", + fullyQualifiedDomainNames: { + serializedName: "fullyQualifiedDomainNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "MetricAvailability", + name: "String", }, }, }, }, - id: { - serializedName: "id", + emailAddresses: { + serializedName: "emailAddresses", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - dimensions: { - serializedName: "dimensions", + phoneNumbers: { + serializedName: "phoneNumbers", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LocalizableString", + name: "String", }, }, }, @@ -234,20 +270,41 @@ export const SubscriptionScopeMetricDefinition: coreClient.CompositeMapper = { }, }; -export const LocalizableString: coreClient.CompositeMapper = { +export const AccessRulePropertiesSubscriptionsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessRulePropertiesSubscriptionsItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const NetworkSecurityPerimeter: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocalizableString", + className: "NetworkSecurityPerimeter", modelProperties: { - value: { - serializedName: "value", - required: true, + id: { + serializedName: "id", type: { name: "String", }, }, - localizedValue: { - serializedName: "localizedValue", + perimeterGuid: { + serializedName: "perimeterGuid", + type: { + name: "Uuid", + }, + }, + location: { + serializedName: "location", type: { name: "String", }, @@ -256,47 +313,179 @@ export const LocalizableString: coreClient.CompositeMapper = { }, }; -export const MetricAvailability: coreClient.CompositeMapper = { +export const ResourceAssociation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAvailability", + className: "ResourceAssociation", modelProperties: { - timeGrain: { - serializedName: "timeGrain", + name: { + serializedName: "name", type: { - name: "TimeSpan", + name: "String", }, }, - retention: { - serializedName: "retention", + accessMode: { + serializedName: "accessMode", type: { - name: "TimeSpan", + name: "String", }, }, }, }, }; -export const ErrorContract: coreClient.CompositeMapper = { +export const NetworkSecurityProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorContract", + className: "NetworkSecurityProfile", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + accessRulesVersion: { + serializedName: "accessRulesVersion", + type: { + name: "Number", + }, + }, + accessRules: { + serializedName: "accessRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessRule", + }, + }, + }, + }, + diagnosticSettingsVersion: { + serializedName: "diagnosticSettingsVersion", + type: { + name: "Number", + }, + }, + enabledLogCategories: { + serializedName: "enabledLogCategories", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, +}; + +export const SystemData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", modelProperties: { error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ErrorDetail", }, }, }, }, }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", @@ -327,7 +516,7 @@ export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ErrorDetail", }, }, }, @@ -373,534 +562,443 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { }, }; -export const MetricDefinitionCollection: coreClient.CompositeMapper = { +export const EmailReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinitionCollection", + className: "EmailReceiver", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricDefinition", - }, - }, + name: "String", + }, + }, + emailAddress: { + serializedName: "emailAddress", + required: true, + type: { + name: "String", + }, + }, + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", + type: { + name: "Boolean", + }, + }, + status: { + serializedName: "status", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["NotSpecified", "Enabled", "Disabled"], }, }, }, }, }; -export const MetricDefinition: coreClient.CompositeMapper = { +export const SmsReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricDefinition", + className: "SmsReceiver", modelProperties: { - isDimensionRequired: { - serializedName: "isDimensionRequired", + name: { + serializedName: "name", + required: true, type: { - name: "Boolean", + name: "String", }, }, - resourceId: { - serializedName: "resourceId", + countryCode: { + serializedName: "countryCode", + required: true, type: { name: "String", }, }, - namespace: { - serializedName: "namespace", + phoneNumber: { + serializedName: "phoneNumber", + required: true, type: { name: "String", }, }, - name: { - serializedName: "name", + status: { + serializedName: "status", + readOnly: true, type: { - name: "Composite", - className: "LocalizableString", + name: "Enum", + allowedValues: ["NotSpecified", "Enabled", "Disabled"], }, }, - displayDescription: { - serializedName: "displayDescription", + }, + }, +}; + +export const WebhookReceiver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhookReceiver", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - category: { - serializedName: "category", + serviceUri: { + serializedName: "serviceUri", + required: true, type: { name: "String", }, }, - metricClass: { - serializedName: "metricClass", + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "String", + name: "Boolean", }, }, - unit: { - serializedName: "unit", + useAadAuth: { + defaultValue: false, + serializedName: "useAadAuth", type: { - name: "String", - }, - }, - primaryAggregationType: { - serializedName: "primaryAggregationType", - type: { - name: "Enum", - allowedValues: [ - "None", - "Average", - "Count", - "Minimum", - "Maximum", - "Total", - ], - }, - }, - supportedAggregationTypes: { - serializedName: "supportedAggregationTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "None", - "Average", - "Count", - "Minimum", - "Maximum", - "Total", - ], - }, - }, + name: "Boolean", }, }, - metricAvailabilities: { - serializedName: "metricAvailabilities", + objectId: { + serializedName: "objectId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAvailability", - }, - }, + name: "String", }, }, - id: { - serializedName: "id", + identifierUri: { + serializedName: "identifierUri", type: { name: "String", }, }, - dimensions: { - serializedName: "dimensions", + tenantId: { + serializedName: "tenantId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LocalizableString", - }, - }, + name: "String", }, }, }, }, }; -export const Response: coreClient.CompositeMapper = { +export const ItsmReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Response", + className: "ItsmReceiver", modelProperties: { - cost: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "cost", - type: { - name: "Number", - }, - }, - timespan: { - serializedName: "timespan", + name: { + serializedName: "name", required: true, type: { name: "String", }, }, - interval: { - serializedName: "interval", + workspaceId: { + serializedName: "workspaceId", + required: true, type: { name: "String", }, }, - namespace: { - serializedName: "namespace", + connectionId: { + serializedName: "connectionId", + required: true, type: { name: "String", }, }, - resourceregion: { - serializedName: "resourceregion", + ticketConfiguration: { + serializedName: "ticketConfiguration", + required: true, type: { name: "String", }, }, - value: { - serializedName: "value", + region: { + serializedName: "region", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Metric", - }, - }, + name: "String", }, }, }, }, }; -export const Metric: coreClient.CompositeMapper = { +export const AzureAppPushReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metric", + className: "AzureAppPushReceiver", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", required: true, type: { name: "String", }, }, - type: { - serializedName: "type", + emailAddress: { + serializedName: "emailAddress", required: true, type: { name: "String", }, }, - name: { - serializedName: "name", + }, + }, +}; + +export const AutomationRunbookReceiver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationRunbookReceiver", + modelProperties: { + automationAccountId: { + serializedName: "automationAccountId", + required: true, type: { - name: "Composite", - className: "LocalizableString", + name: "String", }, }, - displayDescription: { - serializedName: "displayDescription", + runbookName: { + serializedName: "runbookName", + required: true, type: { name: "String", }, }, - errorCode: { - serializedName: "errorCode", + webhookResourceId: { + serializedName: "webhookResourceId", + required: true, type: { name: "String", }, }, - errorMessage: { - serializedName: "errorMessage", + isGlobalRunbook: { + serializedName: "isGlobalRunbook", + required: true, + type: { + name: "Boolean", + }, + }, + name: { + serializedName: "name", type: { name: "String", }, }, - unit: { - serializedName: "unit", - required: true, + serviceUri: { + serializedName: "serviceUri", type: { name: "String", }, }, - timeseries: { - serializedName: "timeseries", - required: true, + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TimeSeriesElement", - }, - }, + name: "Boolean", }, }, }, }, }; -export const TimeSeriesElement: coreClient.CompositeMapper = { +export const VoiceReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeSeriesElement", + className: "VoiceReceiver", modelProperties: { - metadatavalues: { - serializedName: "metadatavalues", + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetadataValue", - }, - }, + name: "String", }, }, - data: { - serializedName: "data", + countryCode: { + serializedName: "countryCode", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricValue", - }, - }, + name: "String", + }, + }, + phoneNumber: { + serializedName: "phoneNumber", + required: true, + type: { + name: "String", }, }, }, }, }; -export const MetadataValue: coreClient.CompositeMapper = { +export const LogicAppReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetadataValue", + className: "LogicAppReceiver", modelProperties: { name: { serializedName: "name", + required: true, type: { - name: "Composite", - className: "LocalizableString", + name: "String", }, }, - value: { - serializedName: "value", + resourceId: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, + }, + callbackUrl: { + serializedName: "callbackUrl", + required: true, type: { name: "String", }, }, + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", + type: { + name: "Boolean", + }, + }, }, }, }; -export const MetricValue: coreClient.CompositeMapper = { +export const AzureFunctionReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricValue", + className: "AzureFunctionReceiver", modelProperties: { - timeStamp: { - serializedName: "timeStamp", + name: { + serializedName: "name", required: true, type: { - name: "DateTime", + name: "String", }, }, - average: { - serializedName: "average", + functionAppResourceId: { + serializedName: "functionAppResourceId", + required: true, type: { - name: "Number", + name: "String", }, }, - minimum: { - serializedName: "minimum", - type: { - name: "Number", - }, - }, - maximum: { - serializedName: "maximum", + functionName: { + serializedName: "functionName", + required: true, type: { - name: "Number", + name: "String", }, }, - total: { - serializedName: "total", + httpTriggerUrl: { + serializedName: "httpTriggerUrl", + required: true, type: { - name: "Number", + name: "String", }, }, - count: { - serializedName: "count", + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "Number", + name: "Boolean", }, }, }, }, }; -export const SubscriptionScopeMetricsRequestBodyParameters: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SubscriptionScopeMetricsRequestBodyParameters", - modelProperties: { - timespan: { - serializedName: "timespan", - type: { - name: "String", - }, - }, - interval: { - serializedName: "interval", - type: { - name: "String", - }, - }, - metricNames: { - serializedName: "metricNames", - type: { - name: "String", - }, - }, - aggregation: { - serializedName: "aggregation", - type: { - name: "String", - }, - }, - filter: { - serializedName: "filter", - type: { - name: "String", - }, - }, - top: { - serializedName: "top", - type: { - name: "Number", - }, - }, - orderBy: { - serializedName: "orderBy", - type: { - name: "String", - }, - }, - rollUpBy: { - serializedName: "rollUpBy", - type: { - name: "String", - }, - }, - resultType: { - serializedName: "resultType", - type: { - name: "String", - }, - }, - metricNamespace: { - serializedName: "metricNamespace", - type: { - name: "String", - }, - }, - autoAdjustTimegrain: { - serializedName: "autoAdjustTimegrain", - type: { - name: "Boolean", - }, - }, - validateDimensions: { - serializedName: "validateDimensions", - type: { - name: "Boolean", - }, +export const ArmRoleReceiver: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArmRoleReceiver", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", }, }, - }, - }; - -export const AzureMonitorWorkspaceResourceListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AzureMonitorWorkspaceResourceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureMonitorWorkspaceResource", - }, - }, - }, + roleId: { + serializedName: "roleId", + required: true, + type: { + name: "String", }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + }, + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const AzureMonitorWorkspace: coreClient.CompositeMapper = { +export const EventHubReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorWorkspace", + className: "EventHubReceiver", modelProperties: { - accountId: { - serializedName: "accountId", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - metrics: { - serializedName: "metrics", + eventHubNameSpace: { + serializedName: "eventHubNameSpace", + required: true, type: { - name: "Composite", - className: "AzureMonitorWorkspaceMetrics", + name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + eventHubName: { + serializedName: "eventHubName", + required: true, type: { name: "String", }, }, - defaultIngestionSettings: { - serializedName: "defaultIngestionSettings", + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "Composite", - className: "AzureMonitorWorkspaceDefaultIngestionSettings", + name: "Boolean", }, }, - privateEndpointConnections: { - serializedName: "privateEndpointConnections", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - }, - }, + name: "String", }, }, - publicNetworkAccess: { - serializedName: "publicNetworkAccess", - readOnly: true, + subscriptionId: { + serializedName: "subscriptionId", + required: true, type: { name: "String", }, @@ -909,44 +1007,59 @@ export const AzureMonitorWorkspace: coreClient.CompositeMapper = { }, }; -export const Metrics: coreClient.CompositeMapper = { +export const IncidentReceiver: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metrics", + className: "IncidentReceiver", modelProperties: { - prometheusQueryEndpoint: { - serializedName: "prometheusQueryEndpoint", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - internalId: { - serializedName: "internalId", - readOnly: true, + connection: { + serializedName: "connection", + type: { + name: "Composite", + className: "IncidentServiceConnection", + }, + }, + incidentManagementService: { + serializedName: "incidentManagementService", + required: true, type: { name: "String", }, }, + mappings: { + serializedName: "mappings", + required: true, + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, }, }, }; -export const IngestionSettings: coreClient.CompositeMapper = { +export const IncidentServiceConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IngestionSettings", + className: "IncidentServiceConnection", modelProperties: { - dataCollectionRuleResourceId: { - serializedName: "dataCollectionRuleResourceId", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - dataCollectionEndpointResourceId: { - serializedName: "dataCollectionEndpointResourceId", - readOnly: true, + id: { + serializedName: "id", + required: true, type: { name: "String", }, @@ -955,53 +1068,10 @@ export const IngestionSettings: coreClient.CompositeMapper = { }, }; -export const PrivateEndpoint: coreClient.CompositeMapper = { +export const AzureResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpoint", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - modelProperties: { - status: { - serializedName: "status", - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - actionsRequired: { - serializedName: "actionsRequired", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", + className: "AzureResource", modelProperties: { id: { serializedName: "id", @@ -1024,318 +1094,291 @@ export const Resource: coreClient.CompositeMapper = { name: "String", }, }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String", - }, - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime", - }, - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + location: { + serializedName: "location", + required: true, type: { name: "String", }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + tags: { + serializedName: "tags", type: { - name: "DateTime", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const ResourceAutoGenerated: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated", + className: "ErrorResponseAutoGenerated", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, + code: { + serializedName: "code", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + message: { + serializedName: "message", type: { name: "String", }, }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, }, }, }; -export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = { +export const ActionGroupPatchBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated2", + className: "ActionGroupPatchBody", modelProperties: { - error: { - serializedName: "error", + tags: { + serializedName: "tags", type: { - name: "Composite", - className: "ErrorDetail", + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + enabled: { + defaultValue: true, + serializedName: "properties.enabled", + type: { + name: "Boolean", }, }, }, }, }; -export const ErrorDetail: coreClient.CompositeMapper = { +export const NotificationRequestBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetail", + className: "NotificationRequestBody", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", + alertType: { + constraints: { + MaxLength: 30, }, - }, - message: { - serializedName: "message", - readOnly: true, + serializedName: "alertType", + required: true, type: { name: "String", }, }, - target: { - serializedName: "target", - readOnly: true, + emailReceivers: { + serializedName: "emailReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailReceiver", + }, + }, }, }, - details: { - serializedName: "details", - readOnly: true, + smsReceivers: { + serializedName: "smsReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetail", + className: "SmsReceiver", }, }, }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + webhookReceivers: { + serializedName: "webhookReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorAdditionalInfo", + className: "WebhookReceiver", }, }, }, }, - }, - }, -}; - -export const AzureMonitorWorkspaceResourceForUpdate: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AzureMonitorWorkspaceResourceForUpdate", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, + itsmReceivers: { + serializedName: "itsmReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ItsmReceiver", + }, }, }, }, - }, - }; - -export const OperationListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + azureAppPushReceivers: { + serializedName: "azureAppPushReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Operation", + className: "AzureAppPushReceiver", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + automationRunbookReceivers: { + serializedName: "automationRunbookReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationRunbookReceiver", + }, + }, }, }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, + voiceReceivers: { + serializedName: "voiceReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VoiceReceiver", + }, + }, }, }, - isDataAction: { - serializedName: "isDataAction", - readOnly: true, + logicAppReceivers: { + serializedName: "logicAppReceivers", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicAppReceiver", + }, + }, }, }, - display: { - serializedName: "display", + azureFunctionReceivers: { + serializedName: "azureFunctionReceivers", type: { - name: "Composite", - className: "OperationDisplay", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureFunctionReceiver", + }, + }, }, }, - origin: { - serializedName: "origin", - readOnly: true, + armRoleReceivers: { + serializedName: "armRoleReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArmRoleReceiver", + }, + }, }, }, - actionType: { - serializedName: "actionType", - readOnly: true, + eventHubReceivers: { + serializedName: "eventHubReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventHubReceiver", + }, + }, + }, + }, + incidentReceivers: { + serializedName: "incidentReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IncidentReceiver", + }, + }, }, }, }, }, }; -export const OperationDisplay: coreClient.CompositeMapper = { +export const TestNotificationDetailsResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationDisplay", + className: "TestNotificationDetailsResponse", modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, + context: { + serializedName: "context", type: { - name: "String", + name: "Composite", + className: "Context", }, }, - resource: { - serializedName: "resource", - readOnly: true, + state: { + serializedName: "state", + required: true, type: { name: "String", }, }, - operation: { - serializedName: "operation", - readOnly: true, + completedTime: { + serializedName: "completedTime", type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + createdTime: { + serializedName: "createdTime", type: { name: "String", }, }, + actionDetails: { + serializedName: "actionDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActionDetail", + }, + }, + }, + }, }, }, }; -export const AutoscaleSettingResourceCollection: coreClient.CompositeMapper = { +export const Context: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoscaleSettingResourceCollection", + className: "Context", modelProperties: { - value: { - serializedName: "value", - required: true, + notificationSource: { + serializedName: "notificationSource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutoscaleSettingResource", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + contextType: { + serializedName: "contextType", type: { name: "String", }, @@ -1344,77 +1387,85 @@ export const AutoscaleSettingResourceCollection: coreClient.CompositeMapper = { }, }; -export const AutoscaleProfile: coreClient.CompositeMapper = { +export const ActionDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoscaleProfile", + className: "ActionDetail", modelProperties: { + mechanismType: { + serializedName: "MechanismType", + type: { + name: "String", + }, + }, name: { - serializedName: "name", - required: true, + serializedName: "Name", type: { name: "String", }, }, - capacity: { - serializedName: "capacity", + status: { + serializedName: "Status", type: { - name: "Composite", - className: "ScaleCapacity", + name: "String", }, }, - rules: { - serializedName: "rules", - required: true, + subState: { + serializedName: "SubState", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScaleRule", - }, - }, + name: "String", }, }, - fixedDate: { - serializedName: "fixedDate", + sendTime: { + serializedName: "SendTime", type: { - name: "Composite", - className: "TimeWindow", + name: "String", }, }, - recurrence: { - serializedName: "recurrence", + detail: { + serializedName: "Detail", type: { - name: "Composite", - className: "Recurrence", + name: "String", }, }, }, }, }; -export const ScaleCapacity: coreClient.CompositeMapper = { +export const ActionGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleCapacity", + className: "ActionGroupList", modelProperties: { - minimum: { - serializedName: "minimum", - required: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActionGroupResource", + }, + }, }, }, - maximum: { - serializedName: "maximum", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - default: { - serializedName: "default", + }, + }, +}; + +export const EnableRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnableRequest", + modelProperties: { + receiverName: { + serializedName: "receiverName", required: true, type: { name: "String", @@ -1424,163 +1475,168 @@ export const ScaleCapacity: coreClient.CompositeMapper = { }, }; -export const ScaleRule: coreClient.CompositeMapper = { +export const MetricNamespaceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScaleRule", + className: "MetricNamespaceCollection", modelProperties: { - metricTrigger: { - serializedName: "metricTrigger", - type: { - name: "Composite", - className: "MetricTrigger", - }, - }, - scaleAction: { - serializedName: "scaleAction", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "ScaleAction", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricNamespace", + }, + }, }, }, }, }, }; -export const MetricTrigger: coreClient.CompositeMapper = { +export const MetricNamespace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricTrigger", + className: "MetricNamespace", modelProperties: { - metricName: { - serializedName: "metricName", - required: true, + id: { + serializedName: "id", type: { name: "String", }, }, - metricNamespace: { - serializedName: "metricNamespace", + type: { + serializedName: "type", type: { name: "String", }, }, - metricResourceUri: { - serializedName: "metricResourceUri", - required: true, + name: { + serializedName: "name", type: { name: "String", }, }, - metricResourceLocation: { - serializedName: "metricResourceLocation", + classification: { + serializedName: "classification", type: { name: "String", }, }, - timeGrain: { - serializedName: "timeGrain", - required: true, + properties: { + serializedName: "properties", type: { - name: "TimeSpan", + name: "Composite", + className: "MetricNamespaceName", }, }, - statistic: { - serializedName: "statistic", - required: true, + }, + }, +}; + +export const MetricNamespaceName: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricNamespaceName", + modelProperties: { + metricNamespaceName: { + serializedName: "metricNamespaceName", type: { - name: "Enum", - allowedValues: ["Average", "Min", "Max", "Sum", "Count"], + name: "String", }, }, - timeWindow: { - serializedName: "timeWindow", - required: true, + }, + }, +}; + +export const SubscriptionScopeMetricDefinitionCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SubscriptionScopeMetricDefinitionCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubscriptionScopeMetricDefinition", + }, + }, + }, + }, + }, + }, + }; + +export const SubscriptionScopeMetricDefinition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SubscriptionScopeMetricDefinition", + modelProperties: { + isDimensionRequired: { + serializedName: "isDimensionRequired", type: { - name: "TimeSpan", + name: "Boolean", }, }, - timeAggregation: { - serializedName: "timeAggregation", - required: true, + resourceId: { + serializedName: "resourceId", type: { - name: "Enum", - allowedValues: [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count", - "Last", - ], + name: "String", }, }, - operator: { - serializedName: "operator", - required: true, + namespace: { + serializedName: "namespace", type: { - name: "Enum", - allowedValues: [ - "Equals", - "NotEquals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual", - ], + name: "String", }, }, - threshold: { - serializedName: "threshold", - required: true, + name: { + serializedName: "name", type: { - name: "Number", + name: "Composite", + className: "LocalizableString", }, }, - dimensions: { - serializedName: "dimensions", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScaleRuleMetricDimension", - }, - }, + name: "String", }, }, - dividePerInstance: { - serializedName: "dividePerInstance", + category: { + serializedName: "category", type: { - name: "Boolean", + name: "String", }, }, - }, - }, -}; - -export const ScaleRuleMetricDimension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleRuleMetricDimension", - modelProperties: { - dimensionName: { - serializedName: "DimensionName", - required: true, + metricClass: { + serializedName: "metricClass", type: { name: "String", }, }, - operator: { - serializedName: "Operator", - required: true, + unit: { + serializedName: "unit", type: { name: "String", }, }, - values: { - serializedName: "Values", - required: true, + primaryAggregationType: { + serializedName: "primaryAggregationType", + type: { + name: "String", + }, + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { @@ -1590,160 +1646,169 @@ export const ScaleRuleMetricDimension: coreClient.CompositeMapper = { }, }, }, - }, - }, -}; - -export const ScaleAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScaleAction", - modelProperties: { - direction: { - serializedName: "direction", - required: true, - type: { - name: "Enum", - allowedValues: ["None", "Increase", "Decrease"], - }, - }, - type: { - serializedName: "type", - required: true, + metricAvailabilities: { + serializedName: "metricAvailabilities", type: { - name: "Enum", - allowedValues: [ - "ChangeCount", - "PercentChangeCount", - "ExactCount", - "ServiceAllowedNextValue", - ], + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailability", + }, + }, }, }, - value: { - defaultValue: "1", - serializedName: "value", + id: { + serializedName: "id", type: { name: "String", }, }, - cooldown: { - serializedName: "cooldown", - required: true, + dimensions: { + serializedName: "dimensions", type: { - name: "TimeSpan", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LocalizableString", + }, + }, }, }, }, }, }; -export const TimeWindow: coreClient.CompositeMapper = { +export const LocalizableString: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeWindow", + className: "LocalizableString", modelProperties: { - timeZone: { - serializedName: "timeZone", - type: { - name: "String", - }, - }, - start: { - serializedName: "start", + value: { + serializedName: "value", required: true, type: { - name: "DateTime", + name: "String", }, }, - end: { - serializedName: "end", - required: true, + localizedValue: { + serializedName: "localizedValue", type: { - name: "DateTime", + name: "String", }, }, }, }, }; -export const Recurrence: coreClient.CompositeMapper = { +export const MetricAvailability: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Recurrence", + className: "MetricAvailability", modelProperties: { - frequency: { - serializedName: "frequency", - required: true, + timeGrain: { + serializedName: "timeGrain", type: { - name: "Enum", - allowedValues: [ - "None", - "Second", - "Minute", - "Hour", - "Day", - "Week", - "Month", - "Year", - ], + name: "TimeSpan", }, }, - schedule: { - serializedName: "schedule", + retention: { + serializedName: "retention", type: { - name: "Composite", - className: "RecurrentSchedule", + name: "TimeSpan", }, }, }, }, }; -export const RecurrentSchedule: coreClient.CompositeMapper = { +export const ErrorContract: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RecurrentSchedule", + className: "ErrorContract", modelProperties: { - timeZone: { - serializedName: "timeZone", - required: true, + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorResponseAutoGenerated2", }, }, - days: { - serializedName: "days", - required: true, + }, + }, +}; + +export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated2", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "ErrorResponseAutoGenerated2", }, }, }, }, - hours: { - serializedName: "hours", - required: true, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Number", + name: "Composite", + className: "ErrorAdditionalInfo", }, }, }, }, - minutes: { - serializedName: "minutes", + }, + }, +}; + +export const MetricDefinitionCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricDefinitionCollection", + modelProperties: { + value: { + serializedName: "value", required: true, type: { name: "Sequence", element: { type: { - name: "Number", + name: "Composite", + className: "MetricDefinition", }, }, }, @@ -1752,68 +1817,119 @@ export const RecurrentSchedule: coreClient.CompositeMapper = { }, }; -export const AutoscaleNotification: coreClient.CompositeMapper = { +export const MetricDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoscaleNotification", + className: "MetricDefinition", modelProperties: { - operation: { - defaultValue: "Scale", - isConstant: true, - serializedName: "operation", + isDimensionRequired: { + serializedName: "isDimensionRequired", + type: { + name: "Boolean", + }, + }, + resourceId: { + serializedName: "resourceId", type: { name: "String", }, }, - email: { - serializedName: "email", + namespace: { + serializedName: "namespace", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", type: { name: "Composite", - className: "EmailNotification", + className: "LocalizableString", }, }, - webhooks: { - serializedName: "webhooks", + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String", + }, + }, + category: { + serializedName: "category", + type: { + name: "String", + }, + }, + metricClass: { + serializedName: "metricClass", + type: { + name: "String", + }, + }, + unit: { + serializedName: "unit", + type: { + name: "String", + }, + }, + primaryAggregationType: { + serializedName: "primaryAggregationType", + type: { + name: "Enum", + allowedValues: [ + "None", + "Average", + "Count", + "Minimum", + "Maximum", + "Total", + ], + }, + }, + supportedAggregationTypes: { + serializedName: "supportedAggregationTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WebhookNotification", + name: "Enum", + allowedValues: [ + "None", + "Average", + "Count", + "Minimum", + "Maximum", + "Total", + ], }, }, }, }, - }, - }, -}; - -export const EmailNotification: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EmailNotification", - modelProperties: { - sendToSubscriptionAdministrator: { - defaultValue: false, - serializedName: "sendToSubscriptionAdministrator", + metricAvailabilities: { + serializedName: "metricAvailabilities", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailability", + }, + }, }, }, - sendToSubscriptionCoAdministrators: { - defaultValue: false, - serializedName: "sendToSubscriptionCoAdministrators", + id: { + serializedName: "id", type: { - name: "Boolean", + name: "String", }, }, - customEmails: { - serializedName: "customEmails", + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "LocalizableString", }, }, }, @@ -1822,282 +1938,189 @@ export const EmailNotification: coreClient.CompositeMapper = { }, }; -export const WebhookNotification: coreClient.CompositeMapper = { +export const Response: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WebhookNotification", + className: "Response", modelProperties: { - serviceUri: { - serializedName: "serviceUri", + cost: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "cost", + type: { + name: "Number", + }, + }, + timespan: { + serializedName: "timespan", + required: true, type: { name: "String", }, }, - properties: { - serializedName: "properties", + interval: { + serializedName: "interval", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - }, - }, -}; - -export const PredictiveAutoscalePolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PredictiveAutoscalePolicy", - modelProperties: { - scaleMode: { - serializedName: "scaleMode", - required: true, + namespace: { + serializedName: "namespace", type: { - name: "Enum", - allowedValues: ["Disabled", "ForecastOnly", "Enabled"], + name: "String", }, }, - scaleLookAheadTime: { - serializedName: "scaleLookAheadTime", + resourceregion: { + serializedName: "resourceregion", type: { - name: "TimeSpan", + name: "String", + }, + }, + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Metric", + }, + }, }, }, }, }, }; -export const ResourceAutoGenerated2: coreClient.CompositeMapper = { +export const Metric: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated2", + className: "Metric", modelProperties: { id: { serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, + required: true, type: { name: "String", }, }, type: { serializedName: "type", - readOnly: true, + required: true, type: { name: "String", }, }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - }, - }, -}; - -export const AutoscaleErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoscaleErrorResponse", - modelProperties: { - error: { - serializedName: "error", + name: { + serializedName: "name", type: { name: "Composite", - className: "AutoscaleErrorResponseError", + className: "LocalizableString", }, }, - systemData: { - serializedName: "systemData", + displayDescription: { + serializedName: "displayDescription", type: { - name: "Composite", - className: "SystemData", + name: "String", }, }, - }, - }, -}; - -export const AutoscaleErrorResponseError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoscaleErrorResponseError", - modelProperties: { - code: { - serializedName: "code", + errorCode: { + serializedName: "errorCode", type: { name: "String", }, }, - message: { - serializedName: "message", + errorMessage: { + serializedName: "errorMessage", type: { name: "String", }, }, - target: { - serializedName: "target", + unit: { + serializedName: "unit", + required: true, type: { name: "String", }, }, - details: { - serializedName: "details", + timeseries: { + serializedName: "timeseries", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeSeriesElement", + }, + }, }, }, }, }, }; -export const AutoscaleSettingResourcePatch: coreClient.CompositeMapper = { +export const TimeSeriesElement: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutoscaleSettingResourcePatch", + className: "TimeSeriesElement", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - profiles: { - constraints: { - MaxItems: 20, - }, - serializedName: "properties.profiles", + metadatavalues: { + serializedName: "metadatavalues", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutoscaleProfile", + className: "MetadataValue", }, }, }, }, - notifications: { - serializedName: "properties.notifications", + data: { + serializedName: "data", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutoscaleNotification", + className: "MetricValue", }, }, }, }, - enabled: { - defaultValue: false, - serializedName: "properties.enabled", - type: { - name: "Boolean", - }, - }, - predictiveAutoscalePolicy: { - serializedName: "properties.predictiveAutoscalePolicy", - type: { - name: "Composite", - className: "PredictiveAutoscalePolicy", - }, - }, - name: { - serializedName: "properties.name", - type: { - name: "String", - }, - }, - targetResourceUri: { - serializedName: "properties.targetResourceUri", - type: { - name: "String", - }, - }, - targetResourceLocation: { - serializedName: "properties.targetResourceLocation", - type: { - name: "String", - }, - }, }, }, }; -export const PredictiveResponse: coreClient.CompositeMapper = { +export const MetadataValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PredictiveResponse", + className: "MetadataValue", modelProperties: { - timespan: { - serializedName: "timespan", - type: { - name: "String", - }, - }, - interval: { - serializedName: "interval", - type: { - name: "TimeSpan", - }, - }, - metricName: { - serializedName: "metricName", + name: { + serializedName: "name", type: { - name: "String", + name: "Composite", + className: "LocalizableString", }, }, - targetResourceId: { - serializedName: "targetResourceId", + value: { + serializedName: "value", type: { name: "String", }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PredictiveValue", - }, - }, - }, - }, }, }, }; -export const PredictiveValue: coreClient.CompositeMapper = { +export const MetricValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PredictiveValue", + className: "MetricValue", modelProperties: { timeStamp: { serializedName: "timeStamp", @@ -2106,244 +2129,288 @@ export const PredictiveValue: coreClient.CompositeMapper = { name: "DateTime", }, }, - value: { - serializedName: "value", - required: true, + average: { + serializedName: "average", type: { name: "Number", }, }, - }, - }, -}; - -export const OperationListResultAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationListResultAutoGenerated", - modelProperties: { - value: { - serializedName: "value", + minimum: { + serializedName: "minimum", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationAutoGenerated", - }, - }, + name: "Number", }, }, - nextLink: { - serializedName: "nextLink", + maximum: { + serializedName: "maximum", type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const OperationAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationAutoGenerated", - modelProperties: { - name: { - serializedName: "name", + total: { + serializedName: "total", type: { - name: "String", + name: "Number", }, }, - display: { - serializedName: "display", + count: { + serializedName: "count", type: { - name: "Composite", - className: "OperationDisplayAutoGenerated", + name: "Number", }, }, }, }, }; -export const OperationDisplayAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplayAutoGenerated", - modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String", +export const SubscriptionScopeMetricsRequestBodyParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SubscriptionScopeMetricsRequestBodyParameters", + modelProperties: { + timespan: { + serializedName: "timespan", + type: { + name: "String", + }, }, - }, - resource: { - serializedName: "resource", - type: { - name: "String", + interval: { + serializedName: "interval", + type: { + name: "String", + }, + }, + metricNames: { + serializedName: "metricNames", + type: { + name: "String", + }, + }, + aggregation: { + serializedName: "aggregation", + type: { + name: "String", + }, + }, + filter: { + serializedName: "filter", + type: { + name: "String", + }, + }, + top: { + serializedName: "top", + type: { + name: "Number", + }, + }, + orderBy: { + serializedName: "orderBy", + type: { + name: "String", + }, + }, + rollUpBy: { + serializedName: "rollUpBy", + type: { + name: "String", + }, + }, + resultType: { + serializedName: "resultType", + type: { + name: "String", + }, + }, + metricNamespace: { + serializedName: "metricNamespace", + type: { + name: "String", + }, + }, + autoAdjustTimegrain: { + serializedName: "autoAdjustTimegrain", + type: { + name: "Boolean", + }, + }, + validateDimensions: { + serializedName: "validateDimensions", + type: { + name: "Boolean", + }, }, }, - operation: { - serializedName: "operation", - type: { - name: "String", + }, + }; + +export const AzureMonitorWorkspaceResourceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureMonitorWorkspaceResourceListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMonitorWorkspaceResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const Incident: coreClient.CompositeMapper = { +export const AzureMonitorWorkspace: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Incident", + className: "AzureMonitorWorkspace", modelProperties: { - name: { - serializedName: "name", + accountId: { + serializedName: "accountId", readOnly: true, type: { name: "String", }, }, - ruleName: { - serializedName: "ruleName", - readOnly: true, + metrics: { + serializedName: "metrics", type: { - name: "String", + name: "Composite", + className: "AzureMonitorWorkspaceMetrics", }, }, - isActive: { - serializedName: "isActive", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - activatedTime: { - serializedName: "activatedTime", - readOnly: true, + defaultIngestionSettings: { + serializedName: "defaultIngestionSettings", type: { - name: "DateTime", + name: "Composite", + className: "AzureMonitorWorkspaceDefaultIngestionSettings", }, }, - resolvedTime: { - serializedName: "resolvedTime", + privateEndpointConnections: { + serializedName: "privateEndpointConnections", readOnly: true, - type: { - name: "DateTime", - }, - }, - }, - }, -}; - -export const IncidentListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IncidentListResult", - modelProperties: { - value: { - serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Incident", + className: "PrivateEndpointConnection", }, }, }, }, + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String", + }, + }, }, }, }; -export const RuleCondition: coreClient.CompositeMapper = { +export const Metrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleCondition", - uberParent: "RuleCondition", - polymorphicDiscriminator: { - serializedName: "odata\\.type", - clientName: "odataType", - }, + className: "Metrics", modelProperties: { - odataType: { - serializedName: "odata\\.type", - required: true, + prometheusQueryEndpoint: { + serializedName: "prometheusQueryEndpoint", + readOnly: true, type: { name: "String", }, }, - dataSource: { - serializedName: "dataSource", + internalId: { + serializedName: "internalId", + readOnly: true, type: { - name: "Composite", - className: "RuleDataSource", + name: "String", }, }, }, }, }; -export const RuleDataSource: coreClient.CompositeMapper = { +export const IngestionSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleDataSource", - uberParent: "RuleDataSource", - polymorphicDiscriminator: { - serializedName: "odata\\.type", - clientName: "odataType", - }, + className: "IngestionSettings", modelProperties: { - odataType: { - serializedName: "odata\\.type", - required: true, + dataCollectionRuleResourceId: { + serializedName: "dataCollectionRuleResourceId", + readOnly: true, type: { name: "String", }, }, - resourceUri: { - serializedName: "resourceUri", + dataCollectionEndpointResourceId: { + serializedName: "dataCollectionEndpointResourceId", + readOnly: true, type: { name: "String", }, }, - legacyResourceId: { - serializedName: "legacyResourceId", + }, + }, +}; + +export const PrivateEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpoint", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - resourceLocation: { - serializedName: "resourceLocation", + }, + }, +}; + +export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + modelProperties: { + status: { + serializedName: "status", type: { name: "String", }, }, - metricNamespace: { - serializedName: "metricNamespace", + description: { + serializedName: "description", type: { name: "String", }, }, - }, - }, -}; - -export const RuleAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleAction", - uberParent: "RuleAction", - polymorphicDiscriminator: { - serializedName: "odata\\.type", - clientName: "odataType", - }, - modelProperties: { - odataType: { - serializedName: "odata\\.type", - required: true, + actionsRequired: { + serializedName: "actionsRequired", type: { name: "String", }, @@ -2352,10 +2419,10 @@ export const RuleAction: coreClient.CompositeMapper = { }, }; -export const ResourceAutoGenerated3: coreClient.CompositeMapper = { +export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated3", + className: "ResourceAutoGenerated", modelProperties: { id: { serializedName: "id", @@ -2378,249 +2445,257 @@ export const ResourceAutoGenerated3: coreClient.CompositeMapper = { name: "String", }, }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - tags: { - serializedName: "tags", + systemData: { + serializedName: "systemData", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Composite", + className: "SystemData", }, }, }, }, }; -export const AlertRuleResourcePatch: coreClient.CompositeMapper = { +export const ResourceAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertRuleResourcePatch", + className: "ResourceAutoGenerated2", modelProperties: { - tags: { - serializedName: "tags", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, name: { - serializedName: "properties.name", + serializedName: "name", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "properties.description", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", + systemData: { + serializedName: "systemData", type: { - name: "String", + name: "Composite", + className: "SystemData", }, }, - isEnabled: { - serializedName: "properties.isEnabled", + }, + }, +}; + +export const ErrorResponseAutoGenerated3: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated3", + modelProperties: { + error: { + serializedName: "error", type: { - name: "Boolean", + name: "Composite", + className: "ErrorDetailAutoGenerated", }, }, - condition: { - serializedName: "properties.condition", + }, + }, +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, type: { - name: "Composite", - className: "RuleCondition", + name: "String", }, }, - action: { - serializedName: "properties.action", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Composite", - className: "RuleAction", + name: "String", }, }, - actions: { - serializedName: "properties.actions", + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RuleAction", + className: "ErrorDetailAutoGenerated", }, }, }, }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { - name: "DateTime", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, }, }, }, }, }; -export const AlertRuleResourceCollection: coreClient.CompositeMapper = { +export const AzureMonitorWorkspaceResourceForUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureMonitorWorkspaceResourceForUpdate", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, + }; + +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertRuleResourceCollection", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AlertRuleResource", + className: "Operation", }, }, }, }, - }, - }, -}; - -export const RetentionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RetentionPolicy", - modelProperties: { - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean", - }, - }, - days: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "days", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const ResourceAutoGenerated4: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated4", + className: "Operation", modelProperties: { - id: { - serializedName: "id", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + isDataAction: { + serializedName: "isDataAction", readOnly: true, type: { - name: "String", + name: "Boolean", }, }, - type: { - serializedName: "type", - readOnly: true, + display: { + serializedName: "display", type: { - name: "String", + name: "Composite", + className: "OperationDisplay", }, }, - location: { - serializedName: "location", - required: true, + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String", }, }, - tags: { - serializedName: "tags", + actionType: { + serializedName: "actionType", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const LogProfileResourcePatch: coreClient.CompositeMapper = { +export const OperationDisplay: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogProfileResourcePatch", + className: "OperationDisplay", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - storageAccountId: { - serializedName: "properties.storageAccountId", + provider: { + serializedName: "provider", + readOnly: true, type: { name: "String", }, }, - serviceBusRuleId: { - serializedName: "properties.serviceBusRuleId", + resource: { + serializedName: "resource", + readOnly: true, type: { name: "String", }, }, - locations: { - serializedName: "properties.locations", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - categories: { - serializedName: "properties.categories", + operation: { + serializedName: "operation", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - retentionPolicy: { - serializedName: "properties.retentionPolicy", + description: { + serializedName: "description", + readOnly: true, type: { - name: "Composite", - className: "RetentionPolicy", + name: "String", }, }, }, }, }; -export const LogProfileCollection: coreClient.CompositeMapper = { +export const AutoscaleSettingResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogProfileCollection", + className: "AutoscaleSettingResourceCollection", modelProperties: { value: { serializedName: "value", @@ -2630,107 +2705,93 @@ export const LogProfileCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LogProfileResource", + className: "AutoscaleSettingResource", }, }, }, }, - }, - }, -}; - -export const MetricSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricSettings", - modelProperties: { - timeGrain: { - serializedName: "timeGrain", - type: { - name: "TimeSpan", - }, - }, - category: { - serializedName: "category", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, }, - enabled: { - serializedName: "enabled", - required: true, - type: { - name: "Boolean", - }, - }, - retentionPolicy: { - serializedName: "retentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicy", - }, - }, }, }, }; -export const LogSettings: coreClient.CompositeMapper = { +export const AutoscaleProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogSettings", + className: "AutoscaleProfile", modelProperties: { - category: { - serializedName: "category", + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - categoryGroup: { - serializedName: "categoryGroup", + capacity: { + serializedName: "capacity", type: { - name: "String", + name: "Composite", + className: "ScaleCapacity", }, }, - enabled: { - serializedName: "enabled", + rules: { + serializedName: "rules", required: true, type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRule", + }, + }, }, }, - retentionPolicy: { - serializedName: "retentionPolicy", + fixedDate: { + serializedName: "fixedDate", type: { name: "Composite", - className: "RetentionPolicy", + className: "TimeWindow", + }, + }, + recurrence: { + serializedName: "recurrence", + type: { + name: "Composite", + className: "Recurrence", }, }, }, }, }; -export const ResourceAutoGenerated5: coreClient.CompositeMapper = { +export const ScaleCapacity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated5", + className: "ScaleCapacity", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + minimum: { + serializedName: "minimum", + required: true, type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + maximum: { + serializedName: "maximum", + required: true, type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + default: { + serializedName: "default", + required: true, type: { name: "String", }, @@ -2739,487 +2800,623 @@ export const ResourceAutoGenerated5: coreClient.CompositeMapper = { }, }; -export const DiagnosticSettingsResourceCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DiagnosticSettingsResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnosticSettingsResource", - }, - }, - }, +export const ScaleRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleRule", + modelProperties: { + metricTrigger: { + serializedName: "metricTrigger", + type: { + name: "Composite", + className: "MetricTrigger", }, }, - }, - }; - -export const DiagnosticSettingsCategoryResourceCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DiagnosticSettingsCategoryResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiagnosticSettingsCategoryResource", - }, - }, - }, + scaleAction: { + serializedName: "scaleAction", + type: { + name: "Composite", + className: "ScaleAction", }, }, }, - }; + }, +}; -export const EmailReceiver: coreClient.CompositeMapper = { +export const MetricTrigger: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EmailReceiver", + className: "MetricTrigger", modelProperties: { - name: { - serializedName: "name", + metricName: { + serializedName: "metricName", required: true, type: { name: "String", }, }, - emailAddress: { - serializedName: "emailAddress", - required: true, + metricNamespace: { + serializedName: "metricNamespace", type: { name: "String", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + metricResourceUri: { + serializedName: "metricResourceUri", + required: true, type: { - name: "Boolean", + name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, + metricResourceLocation: { + serializedName: "metricResourceLocation", type: { - name: "Enum", - allowedValues: ["NotSpecified", "Enabled", "Disabled"], + name: "String", }, }, - }, - }, -}; - -export const SmsReceiver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SmsReceiver", - modelProperties: { - name: { - serializedName: "name", + timeGrain: { + serializedName: "timeGrain", required: true, type: { - name: "String", + name: "TimeSpan", }, }, - countryCode: { - serializedName: "countryCode", + statistic: { + serializedName: "statistic", required: true, type: { - name: "String", + name: "Enum", + allowedValues: ["Average", "Min", "Max", "Sum", "Count"], }, }, - phoneNumber: { - serializedName: "phoneNumber", + timeWindow: { + serializedName: "timeWindow", required: true, type: { - name: "String", + name: "TimeSpan", }, }, - status: { - serializedName: "status", - readOnly: true, + timeAggregation: { + serializedName: "timeAggregation", + required: true, type: { name: "Enum", - allowedValues: ["NotSpecified", "Enabled", "Disabled"], + allowedValues: [ + "Average", + "Minimum", + "Maximum", + "Total", + "Count", + "Last", + ], }, }, - }, - }, -}; - -export const WebhookReceiver: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebhookReceiver", - modelProperties: { - name: { - serializedName: "name", + operator: { + serializedName: "operator", required: true, type: { - name: "String", + name: "Enum", + allowedValues: [ + "Equals", + "NotEquals", + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual", + ], }, }, - serviceUri: { - serializedName: "serviceUri", + threshold: { + serializedName: "threshold", required: true, type: { - name: "String", + name: "Number", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + dimensions: { + serializedName: "dimensions", type: { - name: "Boolean", - }, - }, - useAadAuth: { - defaultValue: false, - serializedName: "useAadAuth", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleRuleMetricDimension", + }, + }, + }, + }, + dividePerInstance: { + serializedName: "dividePerInstance", type: { name: "Boolean", }, }, - objectId: { - serializedName: "objectId", + }, + }, +}; + +export const ScaleRuleMetricDimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleRuleMetricDimension", + modelProperties: { + dimensionName: { + serializedName: "DimensionName", + required: true, type: { name: "String", }, }, - identifierUri: { - serializedName: "identifierUri", + operator: { + serializedName: "Operator", + required: true, type: { name: "String", }, }, - tenantId: { - serializedName: "tenantId", + values: { + serializedName: "Values", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const ItsmReceiver: coreClient.CompositeMapper = { +export const ScaleAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ItsmReceiver", + className: "ScaleAction", modelProperties: { - name: { - serializedName: "name", + direction: { + serializedName: "direction", required: true, type: { - name: "String", + name: "Enum", + allowedValues: ["None", "Increase", "Decrease"], }, }, - workspaceId: { - serializedName: "workspaceId", + type: { + serializedName: "type", required: true, + type: { + name: "Enum", + allowedValues: [ + "ChangeCount", + "PercentChangeCount", + "ExactCount", + "ServiceAllowedNextValue", + ], + }, + }, + value: { + defaultValue: "1", + serializedName: "value", type: { name: "String", }, }, - connectionId: { - serializedName: "connectionId", + cooldown: { + serializedName: "cooldown", required: true, + type: { + name: "TimeSpan", + }, + }, + }, + }, +}; + +export const TimeWindow: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeWindow", + modelProperties: { + timeZone: { + serializedName: "timeZone", type: { name: "String", }, }, - ticketConfiguration: { - serializedName: "ticketConfiguration", + start: { + serializedName: "start", required: true, type: { - name: "String", + name: "DateTime", }, }, - region: { - serializedName: "region", + end: { + serializedName: "end", required: true, type: { - name: "String", + name: "DateTime", }, }, }, }, }; -export const AzureAppPushReceiver: coreClient.CompositeMapper = { +export const Recurrence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureAppPushReceiver", + className: "Recurrence", modelProperties: { - name: { - serializedName: "name", + frequency: { + serializedName: "frequency", required: true, type: { - name: "String", + name: "Enum", + allowedValues: [ + "None", + "Second", + "Minute", + "Hour", + "Day", + "Week", + "Month", + "Year", + ], }, }, - emailAddress: { - serializedName: "emailAddress", - required: true, + schedule: { + serializedName: "schedule", type: { - name: "String", + name: "Composite", + className: "RecurrentSchedule", }, }, }, }, }; -export const AutomationRunbookReceiver: coreClient.CompositeMapper = { +export const RecurrentSchedule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationRunbookReceiver", + className: "RecurrentSchedule", modelProperties: { - automationAccountId: { - serializedName: "automationAccountId", + timeZone: { + serializedName: "timeZone", required: true, type: { name: "String", }, }, - runbookName: { - serializedName: "runbookName", + days: { + serializedName: "days", required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - webhookResourceId: { - serializedName: "webhookResourceId", + hours: { + serializedName: "hours", required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, }, }, - isGlobalRunbook: { - serializedName: "isGlobalRunbook", + minutes: { + serializedName: "minutes", required: true, type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, }, }, - name: { - serializedName: "name", + }, + }, +}; + +export const AutoscaleNotification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoscaleNotification", + modelProperties: { + operation: { + defaultValue: "Scale", + isConstant: true, + serializedName: "operation", type: { name: "String", }, }, - serviceUri: { - serializedName: "serviceUri", + email: { + serializedName: "email", type: { - name: "String", + name: "Composite", + className: "EmailNotification", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + webhooks: { + serializedName: "webhooks", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebhookNotification", + }, + }, }, }, }, }, }; -export const VoiceReceiver: coreClient.CompositeMapper = { +export const EmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VoiceReceiver", + className: "EmailNotification", modelProperties: { - name: { - serializedName: "name", - required: true, + sendToSubscriptionAdministrator: { + defaultValue: false, + serializedName: "sendToSubscriptionAdministrator", type: { - name: "String", + name: "Boolean", }, }, - countryCode: { - serializedName: "countryCode", - required: true, + sendToSubscriptionCoAdministrators: { + defaultValue: false, + serializedName: "sendToSubscriptionCoAdministrators", type: { - name: "String", + name: "Boolean", }, }, - phoneNumber: { - serializedName: "phoneNumber", - required: true, + customEmails: { + serializedName: "customEmails", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const LogicAppReceiver: coreClient.CompositeMapper = { +export const WebhookNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LogicAppReceiver", + className: "WebhookNotification", modelProperties: { - name: { - serializedName: "name", - required: true, + serviceUri: { + serializedName: "serviceUri", type: { name: "String", }, }, - resourceId: { - serializedName: "resourceId", - required: true, + properties: { + serializedName: "properties", type: { - name: "String", - }, + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - callbackUrl: { - serializedName: "callbackUrl", + }, + }, +}; + +export const PredictiveAutoscalePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PredictiveAutoscalePolicy", + modelProperties: { + scaleMode: { + serializedName: "scaleMode", required: true, type: { - name: "String", + name: "Enum", + allowedValues: ["Disabled", "ForecastOnly", "Enabled"], }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + scaleLookAheadTime: { + serializedName: "scaleLookAheadTime", type: { - name: "Boolean", + name: "TimeSpan", }, }, }, }, }; -export const AzureFunctionReceiver: coreClient.CompositeMapper = { +export const ResourceAutoGenerated3: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureFunctionReceiver", + className: "ResourceAutoGenerated3", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String", }, }, - functionAppResourceId: { - serializedName: "functionAppResourceId", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - functionName: { - serializedName: "functionName", + location: { + serializedName: "location", required: true, type: { name: "String", }, }, - httpTriggerUrl: { - serializedName: "httpTriggerUrl", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + systemData: { + serializedName: "systemData", type: { - name: "Boolean", + name: "Composite", + className: "SystemData", }, }, }, }, }; -export const ArmRoleReceiver: coreClient.CompositeMapper = { +export const AutoscaleErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ArmRoleReceiver", + className: "AutoscaleErrorResponse", modelProperties: { - name: { - serializedName: "name", - required: true, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "AutoscaleErrorResponseError", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, +}; + +export const AutoscaleErrorResponseError: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoscaleErrorResponseError", + modelProperties: { + code: { + serializedName: "code", type: { name: "String", }, }, - roleId: { - serializedName: "roleId", - required: true, + message: { + serializedName: "message", type: { name: "String", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + target: { + serializedName: "target", type: { - name: "Boolean", + name: "String", + }, + }, + details: { + serializedName: "details", + type: { + name: "String", }, }, }, }, }; -export const EventHubReceiver: coreClient.CompositeMapper = { +export const AutoscaleSettingResourcePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventHubReceiver", + className: "AutoscaleSettingResourcePatch", modelProperties: { - name: { - serializedName: "name", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - eventHubNameSpace: { - serializedName: "eventHubNameSpace", - required: true, + profiles: { + constraints: { + MaxItems: 20, + }, + serializedName: "properties.profiles", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoscaleProfile", + }, + }, }, }, - eventHubName: { - serializedName: "eventHubName", - required: true, + notifications: { + serializedName: "properties.notifications", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoscaleNotification", + }, + }, }, }, - useCommonAlertSchema: { + enabled: { defaultValue: false, - serializedName: "useCommonAlertSchema", + serializedName: "properties.enabled", type: { name: "Boolean", }, }, - tenantId: { - serializedName: "tenantId", + predictiveAutoscalePolicy: { + serializedName: "properties.predictiveAutoscalePolicy", + type: { + name: "Composite", + className: "PredictiveAutoscalePolicy", + }, + }, + name: { + serializedName: "properties.name", type: { name: "String", }, }, - subscriptionId: { - serializedName: "subscriptionId", - required: true, + targetResourceUri: { + serializedName: "properties.targetResourceUri", + type: { + name: "String", + }, + }, + targetResourceLocation: { + serializedName: "properties.targetResourceLocation", type: { name: "String", }, @@ -3228,263 +3425,207 @@ export const EventHubReceiver: coreClient.CompositeMapper = { }, }; -export const AzureResource: coreClient.CompositeMapper = { +export const PredictiveResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureResource", + className: "PredictiveResponse", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + timespan: { + serializedName: "timespan", type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + interval: { + serializedName: "interval", type: { - name: "String", + name: "TimeSpan", }, }, - type: { - serializedName: "type", - readOnly: true, + metricName: { + serializedName: "metricName", type: { name: "String", }, }, - location: { - serializedName: "location", - required: true, + targetResourceId: { + serializedName: "targetResourceId", type: { name: "String", }, }, - tags: { - serializedName: "tags", + data: { + serializedName: "data", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PredictiveValue", + }, + }, }, }, }, }, }; -export const ActionGroupPatchBody: coreClient.CompositeMapper = { +export const PredictiveValue: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionGroupPatchBody", + className: "PredictiveValue", modelProperties: { - tags: { - serializedName: "tags", + timeStamp: { + serializedName: "timeStamp", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "DateTime", }, }, - enabled: { - defaultValue: true, - serializedName: "properties.enabled", + value: { + serializedName: "value", + required: true, type: { - name: "Boolean", + name: "Number", }, }, }, }, }; -export const NotificationRequestBody: coreClient.CompositeMapper = { +export const OperationListResultAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationRequestBody", + className: "OperationListResultAutoGenerated", modelProperties: { - alertType: { - constraints: { - MaxLength: 30, - }, - serializedName: "alertType", - required: true, - type: { - name: "String", - }, - }, - emailReceivers: { - serializedName: "emailReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailReceiver", - }, - }, - }, - }, - smsReceivers: { - serializedName: "smsReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SmsReceiver", - }, - }, - }, - }, - webhookReceivers: { - serializedName: "webhookReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebhookReceiver", - }, - }, - }, - }, - itsmReceivers: { - serializedName: "itsmReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ItsmReceiver", - }, - }, - }, - }, - azureAppPushReceivers: { - serializedName: "azureAppPushReceivers", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureAppPushReceiver", + className: "OperationAutoGenerated", }, }, }, }, - automationRunbookReceivers: { - serializedName: "automationRunbookReceivers", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationRunbookReceiver", - }, - }, + name: "String", }, }, - voiceReceivers: { - serializedName: "voiceReceivers", + }, + }, +}; + +export const OperationAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationAutoGenerated", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VoiceReceiver", - }, - }, + name: "String", }, }, - logicAppReceivers: { - serializedName: "logicAppReceivers", + display: { + serializedName: "display", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogicAppReceiver", - }, - }, + name: "Composite", + className: "OperationDisplayAutoGenerated", }, }, - azureFunctionReceivers: { - serializedName: "azureFunctionReceivers", + }, + }, +}; + +export const OperationDisplayAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplayAutoGenerated", + modelProperties: { + provider: { + serializedName: "provider", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureFunctionReceiver", - }, - }, + name: "String", }, }, - armRoleReceivers: { - serializedName: "armRoleReceivers", + resource: { + serializedName: "resource", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ArmRoleReceiver", - }, - }, + name: "String", }, }, - eventHubReceivers: { - serializedName: "eventHubReceivers", + operation: { + serializedName: "operation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventHubReceiver", - }, - }, + name: "String", }, }, }, }, }; -export const TestNotificationDetailsResponse: coreClient.CompositeMapper = { +export const Incident: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TestNotificationDetailsResponse", + className: "Incident", modelProperties: { - context: { - serializedName: "context", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Composite", - className: "Context", + name: "String", }, }, - state: { - serializedName: "state", - required: true, + ruleName: { + serializedName: "ruleName", + readOnly: true, type: { name: "String", }, }, - completedTime: { - serializedName: "completedTime", + isActive: { + serializedName: "isActive", + readOnly: true, type: { - name: "String", + name: "Boolean", }, }, - createdTime: { - serializedName: "createdTime", + activatedTime: { + serializedName: "activatedTime", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - actionDetails: { - serializedName: "actionDetails", + resolvedTime: { + serializedName: "resolvedTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const IncidentListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IncidentListResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ActionDetail", + className: "Incident", }, }, }, @@ -3493,64 +3634,71 @@ export const TestNotificationDetailsResponse: coreClient.CompositeMapper = { }, }; -export const Context: coreClient.CompositeMapper = { +export const RuleCondition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Context", + className: "RuleCondition", + uberParent: "RuleCondition", + polymorphicDiscriminator: { + serializedName: "odata\\.type", + clientName: "odataType", + }, modelProperties: { - notificationSource: { - serializedName: "notificationSource", + odataType: { + serializedName: "odata\\.type", + required: true, type: { name: "String", }, }, - contextType: { - serializedName: "contextType", + dataSource: { + serializedName: "dataSource", type: { - name: "String", + name: "Composite", + className: "RuleDataSource", }, }, }, }, }; -export const ActionDetail: coreClient.CompositeMapper = { +export const RuleDataSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionDetail", + className: "RuleDataSource", + uberParent: "RuleDataSource", + polymorphicDiscriminator: { + serializedName: "odata\\.type", + clientName: "odataType", + }, modelProperties: { - mechanismType: { - serializedName: "MechanismType", - type: { - name: "String", - }, - }, - name: { - serializedName: "Name", + odataType: { + serializedName: "odata\\.type", + required: true, type: { name: "String", }, }, - status: { - serializedName: "Status", + resourceUri: { + serializedName: "resourceUri", type: { name: "String", }, }, - subState: { - serializedName: "SubState", + legacyResourceId: { + serializedName: "legacyResourceId", type: { name: "String", }, }, - sendTime: { - serializedName: "SendTime", + resourceLocation: { + serializedName: "resourceLocation", type: { name: "String", }, }, - detail: { - serializedName: "Detail", + metricNamespace: { + serializedName: "metricNamespace", type: { name: "String", }, @@ -3559,25 +3707,19 @@ export const ActionDetail: coreClient.CompositeMapper = { }, }; -export const ActionGroupList: coreClient.CompositeMapper = { +export const RuleAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionGroupList", + className: "RuleAction", + uberParent: "RuleAction", + polymorphicDiscriminator: { + serializedName: "odata\\.type", + clientName: "odataType", + }, modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActionGroupResource", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + odataType: { + serializedName: "odata\\.type", + required: true, type: { name: "String", }, @@ -3586,211 +3728,203 @@ export const ActionGroupList: coreClient.CompositeMapper = { }, }; -export const EnableRequest: coreClient.CompositeMapper = { +export const ResourceAutoGenerated4: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnableRequest", + className: "ResourceAutoGenerated4", modelProperties: { - receiverName: { - serializedName: "receiverName", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const EmailReceiverAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EmailReceiverAutoGenerated", - modelProperties: { name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String", }, }, - emailAddress: { - serializedName: "emailAddress", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + location: { + serializedName: "location", + required: true, type: { - name: "Boolean", + name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "Enum", - allowedValues: ["NotSpecified", "Enabled", "Disabled"], + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const SmsReceiverAutoGenerated: coreClient.CompositeMapper = { +export const AlertRuleResourcePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SmsReceiverAutoGenerated", + className: "AlertRuleResourcePatch", modelProperties: { - name: { - serializedName: "name", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - countryCode: { - serializedName: "countryCode", - required: true, + name: { + serializedName: "properties.name", type: { name: "String", }, }, - phoneNumber: { - serializedName: "phoneNumber", - required: true, + description: { + serializedName: "properties.description", type: { name: "String", }, }, - status: { - serializedName: "status", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["NotSpecified", "Enabled", "Disabled"], - }, - }, - }, - }, -}; - -export const WebhookReceiverAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WebhookReceiverAutoGenerated", - modelProperties: { - name: { - serializedName: "name", - required: true, + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String", }, }, - serviceUri: { - serializedName: "serviceUri", - required: true, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String", + name: "Boolean", }, }, - useCommonAlertSchema: { - defaultValue: false, - serializedName: "useCommonAlertSchema", + condition: { + serializedName: "properties.condition", type: { - name: "Boolean", + name: "Composite", + className: "RuleCondition", }, }, - useAadAuth: { - defaultValue: false, - serializedName: "useAadAuth", + action: { + serializedName: "properties.action", type: { - name: "Boolean", + name: "Composite", + className: "RuleAction", }, }, - objectId: { - serializedName: "objectId", + actions: { + serializedName: "properties.actions", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RuleAction", + }, + }, }, }, - identifierUri: { - serializedName: "identifierUri", + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - tenantId: { - serializedName: "tenantId", + }, + }, +}; + +export const AlertRuleResourceCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertRuleResourceCollection", + modelProperties: { + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertRuleResource", + }, + }, }, }, }, }, }; -export const AzureAppPushReceiverAutoGenerated: coreClient.CompositeMapper = { +export const RetentionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureAppPushReceiverAutoGenerated", + className: "RetentionPolicy", modelProperties: { - name: { - serializedName: "name", + enabled: { + serializedName: "enabled", required: true, type: { - name: "String", + name: "Boolean", }, }, - emailAddress: { - serializedName: "emailAddress", + days: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "days", required: true, type: { - name: "String", + name: "Number", }, }, }, }, }; -export const VoiceReceiverAutoGenerated: coreClient.CompositeMapper = { +export const ResourceAutoGenerated5: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VoiceReceiverAutoGenerated", + className: "ResourceAutoGenerated5", modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, name: { serializedName: "name", - required: true, + readOnly: true, type: { name: "String", }, }, - countryCode: { - serializedName: "countryCode", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - phoneNumber: { - serializedName: "phoneNumber", + location: { + serializedName: "location", required: true, type: { name: "String", }, }, - }, - }, -}; - -export const ActionGroupPatchBodyAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActionGroupPatchBodyAutoGenerated", - modelProperties: { tags: { serializedName: "tags", type: { @@ -3798,115 +3932,81 @@ export const ActionGroupPatchBodyAutoGenerated: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - enabled: { - defaultValue: true, - serializedName: "properties.enabled", - type: { - name: "Boolean", - }, - }, }, }, }; -export const TenantActionGroupList: coreClient.CompositeMapper = { +export const LogProfileResourcePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TenantActionGroupList", + className: "LogProfileResourcePatch", modelProperties: { - value: { - serializedName: "value", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TenantActionGroupResource", - }, - }, + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - nextLink: { - serializedName: "nextLink", + storageAccountId: { + serializedName: "properties.storageAccountId", type: { name: "String", }, }, - }, - }, -}; - -export const TenantNotificationRequestBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TenantNotificationRequestBody", - modelProperties: { - alertType: { - constraints: { - MaxLength: 30, - }, - serializedName: "alertType", - required: true, + serviceBusRuleId: { + serializedName: "properties.serviceBusRuleId", type: { name: "String", }, }, - emailReceivers: { - serializedName: "emailReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailReceiverAutoGenerated", - }, - }, - }, - }, - smsReceivers: { - serializedName: "smsReceivers", + locations: { + serializedName: "properties.locations", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SmsReceiverAutoGenerated", + name: "String", }, }, }, }, - webhookReceivers: { - serializedName: "webhookReceivers", + categories: { + serializedName: "properties.categories", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "WebhookReceiverAutoGenerated", + name: "String", }, }, }, }, - azureAppPushReceivers: { - serializedName: "azureAppPushReceivers", + retentionPolicy: { + serializedName: "properties.retentionPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureAppPushReceiverAutoGenerated", - }, - }, + name: "Composite", + className: "RetentionPolicy", }, }, - voiceReceivers: { - serializedName: "voiceReceivers", + }, + }, +}; + +export const LogProfileCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogProfileCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "VoiceReceiverAutoGenerated", + className: "LogProfileResource", }, }, }, @@ -3915,191 +4015,98 @@ export const TenantNotificationRequestBody: coreClient.CompositeMapper = { }, }; -export const TestNotificationDetailsResponseAutoGenerated: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "TestNotificationDetailsResponseAutoGenerated", - modelProperties: { - context: { - serializedName: "context", - type: { - name: "Composite", - className: "Context", - }, - }, - state: { - serializedName: "state", - required: true, - type: { - name: "String", - }, - }, - completedTime: { - serializedName: "completedTime", - type: { - name: "String", - }, - }, - createdTime: { - serializedName: "createdTime", - type: { - name: "String", - }, - }, - actionDetails: { - serializedName: "actionDetails", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActionDetailAutoGenerated", - }, - }, - }, - }, - }, - }, - }; - -export const ActionDetailAutoGenerated: coreClient.CompositeMapper = { +export const MetricSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionDetailAutoGenerated", + className: "MetricSettings", modelProperties: { - mechanismType: { - serializedName: "mechanismType", - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - type: { - name: "String", - }, - }, - status: { - serializedName: "status", - type: { - name: "String", - }, - }, - subState: { - serializedName: "subState", + timeGrain: { + serializedName: "timeGrain", type: { - name: "String", + name: "TimeSpan", }, }, - sendTime: { - serializedName: "sendTime", + category: { + serializedName: "category", type: { name: "String", }, }, - message: { - serializedName: "message", + enabled: { + serializedName: "enabled", + required: true, type: { - name: "String", + name: "Boolean", }, }, - }, - }, -}; - -export const ErrorResponseAutoGenerated3: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseAutoGenerated3", - modelProperties: { - error: { - serializedName: "error", + retentionPolicy: { + serializedName: "retentionPolicy", type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "RetentionPolicy", }, }, }, }, }; -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { +export const LogSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "LogSettings", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - readOnly: true, + category: { + serializedName: "category", type: { name: "String", }, }, - target: { - serializedName: "target", - readOnly: true, + categoryGroup: { + serializedName: "categoryGroup", type: { name: "String", }, }, - details: { - serializedName: "details", - readOnly: true, + enabled: { + serializedName: "enabled", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", - }, - }, + name: "Boolean", }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + retentionPolicy: { + serializedName: "retentionPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, + name: "Composite", + className: "RetentionPolicy", }, }, }, }, }; -export const EventDataCollection: coreClient.CompositeMapper = { +export const ResourceAutoGenerated6: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventDataCollection", + className: "ResourceAutoGenerated6", modelProperties: { - value: { - serializedName: "value", - required: true, + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventData", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, @@ -4108,184 +4115,173 @@ export const EventDataCollection: coreClient.CompositeMapper = { }, }; -export const EventData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EventData", - modelProperties: { - authorization: { - serializedName: "authorization", - type: { - name: "Composite", - className: "SenderAuthorization", +export const DiagnosticSettingsResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DiagnosticSettingsResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticSettingsResource", + }, + }, + }, }, }, - claims: { - serializedName: "claims", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, + }, + }; + +export const DiagnosticSettingsCategoryResourceCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DiagnosticSettingsCategoryResourceCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticSettingsCategoryResource", + }, + }, + }, }, }, - caller: { - serializedName: "caller", - readOnly: true, + }, + }; + +export const EmailReceiverAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EmailReceiverAutoGenerated", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + emailAddress: { + serializedName: "emailAddress", + required: true, type: { name: "String", }, }, - id: { - serializedName: "id", - readOnly: true, + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "String", + name: "Boolean", }, }, - eventDataId: { - serializedName: "eventDataId", + status: { + serializedName: "status", readOnly: true, type: { - name: "String", + name: "Enum", + allowedValues: ["NotSpecified", "Enabled", "Disabled"], }, }, - correlationId: { - serializedName: "correlationId", - readOnly: true, + }, + }, +}; + +export const SmsReceiverAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SmsReceiverAutoGenerated", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - eventName: { - serializedName: "eventName", - type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", - }, - }, - category: { - serializedName: "category", + countryCode: { + serializedName: "countryCode", + required: true, type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", + name: "String", }, }, - httpRequest: { - serializedName: "httpRequest", + phoneNumber: { + serializedName: "phoneNumber", + required: true, type: { - name: "Composite", - className: "HttpRequestInfo", + name: "String", }, }, - level: { - serializedName: "level", + status: { + serializedName: "status", readOnly: true, type: { name: "Enum", - allowedValues: [ - "Critical", - "Error", - "Warning", - "Informational", - "Verbose", - ], - }, - }, - resourceGroupName: { - serializedName: "resourceGroupName", - readOnly: true, - type: { - name: "String", - }, - }, - resourceProviderName: { - serializedName: "resourceProviderName", - type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", + allowedValues: ["NotSpecified", "Enabled", "Disabled"], }, }, - resourceId: { - serializedName: "resourceId", - readOnly: true, + }, + }, +}; + +export const WebhookReceiverAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WebhookReceiverAutoGenerated", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - resourceType: { - serializedName: "resourceType", - type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", - }, - }, - operationId: { - serializedName: "operationId", - readOnly: true, + serviceUri: { + serializedName: "serviceUri", + required: true, type: { name: "String", }, }, - operationName: { - serializedName: "operationName", - type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", - }, - }, - properties: { - serializedName: "properties", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", - }, - }, - subStatus: { - serializedName: "subStatus", + useCommonAlertSchema: { + defaultValue: false, + serializedName: "useCommonAlertSchema", type: { - name: "Composite", - className: "LocalizableStringAutoGenerated", + name: "Boolean", }, }, - eventTimestamp: { - serializedName: "eventTimestamp", - readOnly: true, + useAadAuth: { + defaultValue: false, + serializedName: "useAadAuth", type: { - name: "DateTime", + name: "Boolean", }, }, - submissionTimestamp: { - serializedName: "submissionTimestamp", - readOnly: true, + objectId: { + serializedName: "objectId", type: { - name: "DateTime", + name: "String", }, }, - subscriptionId: { - serializedName: "subscriptionId", - readOnly: true, + identifierUri: { + serializedName: "identifierUri", type: { name: "String", }, }, tenantId: { serializedName: "tenantId", - readOnly: true, type: { name: "String", }, @@ -4294,25 +4290,21 @@ export const EventData: coreClient.CompositeMapper = { }, }; -export const SenderAuthorization: coreClient.CompositeMapper = { +export const AzureAppPushReceiverAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SenderAuthorization", + className: "AzureAppPushReceiverAutoGenerated", modelProperties: { - action: { - serializedName: "action", - type: { - name: "String", - }, - }, - role: { - serializedName: "role", + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - scope: { - serializedName: "scope", + emailAddress: { + serializedName: "emailAddress", + required: true, type: { name: "String", }, @@ -4321,20 +4313,28 @@ export const SenderAuthorization: coreClient.CompositeMapper = { }, }; -export const LocalizableStringAutoGenerated: coreClient.CompositeMapper = { +export const VoiceReceiverAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocalizableStringAutoGenerated", + className: "VoiceReceiverAutoGenerated", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", required: true, type: { name: "String", }, }, - localizedValue: { - serializedName: "localizedValue", + countryCode: { + serializedName: "countryCode", + required: true, + type: { + name: "String", + }, + }, + phoneNumber: { + serializedName: "phoneNumber", + required: true, type: { name: "String", }, @@ -4343,202 +4343,127 @@ export const LocalizableStringAutoGenerated: coreClient.CompositeMapper = { }, }; -export const HttpRequestInfo: coreClient.CompositeMapper = { +export const ActionGroupPatchBodyAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HttpRequestInfo", + className: "ActionGroupPatchBodyAutoGenerated", modelProperties: { - clientRequestId: { - serializedName: "clientRequestId", - type: { - name: "String", - }, - }, - clientIpAddress: { - serializedName: "clientIpAddress", - type: { - name: "String", - }, - }, - method: { - serializedName: "method", + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - uri: { - serializedName: "uri", + enabled: { + defaultValue: true, + serializedName: "properties.enabled", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const EventCategoryCollection: coreClient.CompositeMapper = { +export const TenantActionGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EventCategoryCollection", + className: "TenantActionGroupList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LocalizableStringAutoGenerated", + className: "TenantActionGroupResource", }, }, }, }, - }, - }, -}; - -export const MetricBaselinesResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricBaselinesResponse", - modelProperties: { - value: { - serializedName: "value", + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SingleMetricBaseline", - }, - }, + name: "String", }, }, }, }, }; -export const SingleMetricBaseline: coreClient.CompositeMapper = { +export const TenantNotificationRequestBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SingleMetricBaseline", + className: "TenantNotificationRequestBody", modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - required: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - timespan: { - serializedName: "properties.timespan", - required: true, - type: { - name: "String", + alertType: { + constraints: { + MaxLength: 30, }, - }, - interval: { - serializedName: "properties.interval", + serializedName: "alertType", required: true, - type: { - name: "TimeSpan", - }, - }, - namespace: { - serializedName: "properties.namespace", type: { name: "String", }, }, - baselines: { - serializedName: "properties.baselines", - required: true, + emailReceivers: { + serializedName: "emailReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TimeSeriesBaseline", + className: "EmailReceiverAutoGenerated", }, }, }, }, - }, - }, -}; - -export const TimeSeriesBaseline: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TimeSeriesBaseline", - modelProperties: { - aggregation: { - serializedName: "aggregation", - required: true, - type: { - name: "String", - }, - }, - dimensions: { - serializedName: "dimensions", + smsReceivers: { + serializedName: "smsReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricSingleDimension", + className: "SmsReceiverAutoGenerated", }, }, }, }, - timestamps: { - serializedName: "timestamps", - required: true, + webhookReceivers: { + serializedName: "webhookReceivers", type: { name: "Sequence", element: { type: { - name: "DateTime", + name: "Composite", + className: "WebhookReceiverAutoGenerated", }, }, }, }, - data: { - serializedName: "data", - required: true, + azureAppPushReceivers: { + serializedName: "azureAppPushReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SingleBaseline", + className: "AzureAppPushReceiverAutoGenerated", }, }, }, }, - metadataValues: { - serializedName: "metadataValues", + voiceReceivers: { + serializedName: "voiceReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "BaselineMetadata", + className: "VoiceReceiverAutoGenerated", }, }, }, @@ -4547,21 +4472,91 @@ export const TimeSeriesBaseline: coreClient.CompositeMapper = { }, }; -export const MetricSingleDimension: coreClient.CompositeMapper = { +export const TestNotificationDetailsResponseAutoGenerated: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "TestNotificationDetailsResponseAutoGenerated", + modelProperties: { + context: { + serializedName: "context", + type: { + name: "Composite", + className: "Context", + }, + }, + state: { + serializedName: "state", + required: true, + type: { + name: "String", + }, + }, + completedTime: { + serializedName: "completedTime", + type: { + name: "String", + }, + }, + createdTime: { + serializedName: "createdTime", + type: { + name: "String", + }, + }, + actionDetails: { + serializedName: "actionDetails", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActionDetailAutoGenerated", + }, + }, + }, + }, + }, + }, + }; + +export const ActionDetailAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricSingleDimension", + className: "ActionDetailAutoGenerated", modelProperties: { + mechanismType: { + serializedName: "mechanismType", + type: { + name: "String", + }, + }, name: { serializedName: "name", - required: true, type: { name: "String", }, }, - value: { - serializedName: "value", - required: true, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + subState: { + serializedName: "subState", + type: { + name: "String", + }, + }, + sendTime: { + serializedName: "sendTime", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", type: { name: "String", }, @@ -4570,38 +4565,70 @@ export const MetricSingleDimension: coreClient.CompositeMapper = { }, }; -export const SingleBaseline: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated4: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SingleBaseline", + className: "ErrorResponseAutoGenerated4", modelProperties: { - sensitivity: { - serializedName: "sensitivity", - required: true, + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorDetailAutoGenerated2", }, }, - lowThresholds: { - serializedName: "lowThresholds", - required: true, + }, + }, +}; + +export const ErrorDetailAutoGenerated2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, + }, + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Number", + name: "Composite", + className: "ErrorDetailAutoGenerated2", }, }, }, }, - highThresholds: { - serializedName: "highThresholds", - required: true, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Number", + name: "Composite", + className: "ErrorAdditionalInfo", }, }, }, @@ -4610,65 +4637,26 @@ export const SingleBaseline: coreClient.CompositeMapper = { }, }; -export const BaselineMetadata: coreClient.CompositeMapper = { +export const EventDataCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineMetadata", + className: "EventDataCollection", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, value: { serializedName: "value", required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const MetricAlertResourceCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricAlertResourceCollection", - modelProperties: { - value: { - serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "MetricAlertResource", + className: "EventData", }, }, }, }, - }, - }, -}; - -export const MetricAlertCriteria: coreClient.CompositeMapper = { - serializedName: "MetricAlertCriteria", - type: { - name: "Composite", - className: "MetricAlertCriteria", - uberParent: "MetricAlertCriteria", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "odata\\.type", - clientName: "odataType", - }, - modelProperties: { - odataType: { - serializedName: "odata\\.type", - required: true, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -4677,526 +4665,501 @@ export const MetricAlertCriteria: coreClient.CompositeMapper = { }, }; -export const MetricAlertAction: coreClient.CompositeMapper = { +export const EventData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAlertAction", + className: "EventData", modelProperties: { - actionGroupId: { - serializedName: "actionGroupId", + authorization: { + serializedName: "authorization", type: { - name: "String", + name: "Composite", + className: "SenderAuthorization", }, }, - webHookProperties: { - serializedName: "webHookProperties", + claims: { + serializedName: "claims", + readOnly: true, type: { name: "Dictionary", value: { type: { name: "String" } }, }, }, - }, - }, -}; - -export const ResourceAutoGenerated6: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceAutoGenerated6", - modelProperties: { - id: { - serializedName: "id", + caller: { + serializedName: "caller", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + description: { + serializedName: "description", readOnly: true, type: { name: "String", }, }, - type: { - serializedName: "type", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - location: { - serializedName: "location", - required: true, + eventDataId: { + serializedName: "eventDataId", + readOnly: true, type: { name: "String", }, }, - tags: { - serializedName: "tags", + correlationId: { + serializedName: "correlationId", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - }, - }, -}; - -export const MetricAlertResourcePatch: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricAlertResourcePatch", - modelProperties: { - tags: { - serializedName: "tags", + eventName: { + serializedName: "eventName", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, - description: { - serializedName: "properties.description", + category: { + serializedName: "category", type: { - name: "String", + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, - severity: { - serializedName: "properties.severity", + httpRequest: { + serializedName: "httpRequest", type: { - name: "Number", + name: "Composite", + className: "HttpRequestInfo", }, }, - enabled: { - serializedName: "properties.enabled", + level: { + serializedName: "level", + readOnly: true, type: { - name: "Boolean", + name: "Enum", + allowedValues: [ + "Critical", + "Error", + "Warning", + "Informational", + "Verbose", + ], }, }, - scopes: { - serializedName: "properties.scopes", + resourceGroupName: { + serializedName: "resourceGroupName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - evaluationFrequency: { - serializedName: "properties.evaluationFrequency", + resourceProviderName: { + serializedName: "resourceProviderName", type: { - name: "TimeSpan", + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, - windowSize: { - serializedName: "properties.windowSize", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { - name: "TimeSpan", + name: "String", }, }, - targetResourceType: { - serializedName: "properties.targetResourceType", + resourceType: { + serializedName: "resourceType", type: { - name: "String", + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, - targetResourceRegion: { - serializedName: "properties.targetResourceRegion", + operationId: { + serializedName: "operationId", + readOnly: true, type: { name: "String", }, }, - criteria: { - serializedName: "properties.criteria", + operationName: { + serializedName: "operationName", type: { name: "Composite", - className: "MetricAlertCriteria", + className: "LocalizableStringAutoGenerated", }, }, - autoMitigate: { - serializedName: "properties.autoMitigate", + properties: { + serializedName: "properties", + readOnly: true, type: { - name: "Boolean", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - actions: { - serializedName: "properties.actions", + status: { + serializedName: "status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAlertAction", - }, - }, + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", + subStatus: { + serializedName: "subStatus", + type: { + name: "Composite", + className: "LocalizableStringAutoGenerated", + }, + }, + eventTimestamp: { + serializedName: "eventTimestamp", readOnly: true, type: { name: "DateTime", }, }, - isMigrated: { - serializedName: "properties.isMigrated", + submissionTimestamp: { + serializedName: "submissionTimestamp", readOnly: true, type: { - name: "Boolean", + name: "DateTime", }, }, - }, - }, -}; - -export const MetricAlertStatusCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricAlertStatusCollection", - modelProperties: { - value: { - serializedName: "value", + subscriptionId: { + serializedName: "subscriptionId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricAlertStatus", - }, - }, + name: "String", + }, + }, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", }, }, }, }, }; -export const MetricAlertStatus: coreClient.CompositeMapper = { +export const SenderAuthorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAlertStatus", + className: "SenderAuthorization", modelProperties: { - name: { - serializedName: "name", + action: { + serializedName: "action", type: { name: "String", }, }, - id: { - serializedName: "id", + role: { + serializedName: "role", type: { name: "String", }, }, - type: { - serializedName: "type", + scope: { + serializedName: "scope", type: { name: "String", }, }, - properties: { - serializedName: "properties", + }, + }, +}; + +export const LocalizableStringAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocalizableStringAutoGenerated", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "MetricAlertStatusProperties", + name: "String", + }, + }, + localizedValue: { + serializedName: "localizedValue", + type: { + name: "String", }, }, }, }, }; -export const MetricAlertStatusProperties: coreClient.CompositeMapper = { +export const HttpRequestInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MetricAlertStatusProperties", + className: "HttpRequestInfo", modelProperties: { - dimensions: { - serializedName: "dimensions", + clientRequestId: { + serializedName: "clientRequestId", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - status: { - serializedName: "status", + clientIpAddress: { + serializedName: "clientIpAddress", type: { name: "String", }, }, - timestamp: { - serializedName: "timestamp", + method: { + serializedName: "method", type: { - name: "DateTime", + name: "String", + }, + }, + uri: { + serializedName: "uri", + type: { + name: "String", }, }, }, }, }; -export const ScheduledQueryRuleResourceCollection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ScheduledQueryRuleResourceCollection", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScheduledQueryRuleResource", - }, +export const EventCategoryCollection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EventCategoryCollection", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LocalizableStringAutoGenerated", }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", + }, + }, + }, +}; + +export const MetricBaselinesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricBaselinesResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SingleMetricBaseline", + }, }, }, }, }, - }; + }, +}; -export const ScheduledQueryRuleResource: coreClient.CompositeMapper = { +export const SingleMetricBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduledQueryRuleResource", + className: "SingleMetricBaseline", modelProperties: { id: { serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, + required: true, type: { name: "String", }, }, type: { serializedName: "type", - readOnly: true, + required: true, type: { name: "String", }, }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity", - }, - }, - tags: { - serializedName: "tags", + name: { + serializedName: "name", + required: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - location: { - serializedName: "location", + timespan: { + serializedName: "properties.timespan", required: true, type: { name: "String", }, }, - kind: { - serializedName: "kind", + interval: { + serializedName: "properties.interval", + required: true, type: { - name: "String", + name: "TimeSpan", }, }, - etag: { - serializedName: "etag", - readOnly: true, + namespace: { + serializedName: "properties.namespace", type: { name: "String", }, }, - systemData: { - serializedName: "systemData", + baselines: { + serializedName: "properties.baselines", + required: true, type: { - name: "Composite", - className: "SystemData", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeSeriesBaseline", + }, + }, }, }, - createdWithApiVersion: { - serializedName: "properties.createdWithApiVersion", - readOnly: true, + }, + }, +}; + +export const TimeSeriesBaseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TimeSeriesBaseline", + modelProperties: { + aggregation: { + serializedName: "aggregation", + required: true, type: { name: "String", }, }, - isLegacyLogAnalyticsRule: { - serializedName: "properties.isLegacyLogAnalyticsRule", - readOnly: true, + dimensions: { + serializedName: "dimensions", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSingleDimension", + }, + }, }, }, - description: { - serializedName: "properties.description", - type: { - name: "String", - }, - }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String", - }, - }, - severity: { - serializedName: "properties.severity", - type: { - name: "Number", - }, - }, - enabled: { - serializedName: "properties.enabled", - type: { - name: "Boolean", - }, - }, - scopes: { - serializedName: "properties.scopes", + timestamps: { + serializedName: "timestamps", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "DateTime", }, }, }, }, - evaluationFrequency: { - serializedName: "properties.evaluationFrequency", - type: { - name: "TimeSpan", - }, - }, - windowSize: { - serializedName: "properties.windowSize", - type: { - name: "TimeSpan", - }, - }, - overrideQueryTimeRange: { - serializedName: "properties.overrideQueryTimeRange", - type: { - name: "TimeSpan", - }, - }, - targetResourceTypes: { - serializedName: "properties.targetResourceTypes", + data: { + serializedName: "data", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "SingleBaseline", }, }, }, }, - criteria: { - serializedName: "properties.criteria", - type: { - name: "Composite", - className: "ScheduledQueryRuleCriteria", - }, - }, - muteActionsDuration: { - serializedName: "properties.muteActionsDuration", - type: { - name: "TimeSpan", - }, - }, - actions: { - serializedName: "properties.actions", - type: { - name: "Composite", - className: "Actions", - }, - }, - isWorkspaceAlertsStorageConfigured: { - serializedName: "properties.isWorkspaceAlertsStorageConfigured", - readOnly: true, - type: { - name: "Boolean", - }, - }, - checkWorkspaceAlertsStorageConfigured: { - serializedName: "properties.checkWorkspaceAlertsStorageConfigured", - type: { - name: "Boolean", - }, - }, - skipQueryValidation: { - serializedName: "properties.skipQueryValidation", + metadataValues: { + serializedName: "metadataValues", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaselineMetadata", + }, + }, }, }, - autoMitigate: { - serializedName: "properties.autoMitigate", + }, + }, +}; + +export const MetricSingleDimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricSingleDimension", + modelProperties: { + name: { + serializedName: "name", + required: true, type: { - name: "Boolean", + name: "String", }, }, - ruleResolveConfiguration: { - serializedName: "properties.ruleResolveConfiguration", + value: { + serializedName: "value", + required: true, type: { - name: "Composite", - className: "RuleResolveConfiguration", + name: "String", }, }, }, }, }; -export const Identity: coreClient.CompositeMapper = { +export const SingleBaseline: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "SingleBaseline", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + sensitivity: { + serializedName: "sensitivity", + required: true, type: { name: "String", }, }, - type: { - serializedName: "type", + lowThresholds: { + serializedName: "lowThresholds", required: true, type: { - name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"], + name: "Sequence", + element: { + type: { + name: "Number", + }, + }, }, }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", + highThresholds: { + serializedName: "highThresholds", + required: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "UserIdentityProperties" }, + name: "Sequence", + element: { + type: { + name: "Number", + }, }, }, }, @@ -5204,21 +5167,21 @@ export const Identity: coreClient.CompositeMapper = { }, }; -export const UserIdentityProperties: coreClient.CompositeMapper = { +export const BaselineMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserIdentityProperties", + className: "BaselineMetadata", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - clientId: { - serializedName: "clientId", - readOnly: true, + value: { + serializedName: "value", + required: true, type: { name: "String", }, @@ -5227,19 +5190,19 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { }, }; -export const ScheduledQueryRuleCriteria: coreClient.CompositeMapper = { +export const MetricAlertResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduledQueryRuleCriteria", + className: "MetricAlertResourceCollection", modelProperties: { - allOf: { - serializedName: "allOf", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Condition", + className: "MetricAlertResource", }, }, }, @@ -5248,166 +5211,86 @@ export const ScheduledQueryRuleCriteria: coreClient.CompositeMapper = { }, }; -export const Condition: coreClient.CompositeMapper = { +export const MetricAlertCriteria: coreClient.CompositeMapper = { + serializedName: "MetricAlertCriteria", type: { name: "Composite", - className: "Condition", + className: "MetricAlertCriteria", + uberParent: "MetricAlertCriteria", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "odata\\.type", + clientName: "odataType", + }, modelProperties: { - query: { - serializedName: "query", + odataType: { + serializedName: "odata\\.type", + required: true, type: { name: "String", }, }, - timeAggregation: { - serializedName: "timeAggregation", + }, + }, +}; + +export const MetricAlertAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricAlertAction", + modelProperties: { + actionGroupId: { + serializedName: "actionGroupId", type: { name: "String", }, }, - metricMeasureColumn: { - serializedName: "metricMeasureColumn", + webHookProperties: { + serializedName: "webHookProperties", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - resourceIdColumn: { - serializedName: "resourceIdColumn", + }, + }, +}; + +export const ResourceAutoGenerated7: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated7", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - dimensions: { - serializedName: "dimensions", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Dimension", - }, - }, + name: "String", }, }, - operator: { - serializedName: "operator", - type: { - name: "Enum", - allowedValues: [ - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual", - "Equals", - ], - }, - }, - threshold: { - serializedName: "threshold", - type: { - name: "Number", - }, - }, - failingPeriods: { - serializedName: "failingPeriods", - type: { - name: "Composite", - className: "ConditionFailingPeriods", - }, - }, - metricName: { - serializedName: "metricName", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Dimension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Dimension", - modelProperties: { - name: { - serializedName: "name", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + location: { + serializedName: "location", required: true, type: { name: "String", }, }, - values: { - serializedName: "values", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const ConditionFailingPeriods: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConditionFailingPeriods", - modelProperties: { - numberOfEvaluationPeriods: { - defaultValue: 1, - serializedName: "numberOfEvaluationPeriods", - type: { - name: "Number", - }, - }, - minFailingPeriodsToAlert: { - defaultValue: 1, - serializedName: "minFailingPeriodsToAlert", - type: { - name: "Number", - }, - }, - }, - }, -}; - -export const Actions: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Actions", - modelProperties: { - actionGroups: { - serializedName: "actionGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - customProperties: { - serializedName: "customProperties", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - actionProperties: { - serializedName: "actionProperties", + tags: { + serializedName: "tags", type: { name: "Dictionary", value: { type: { name: "String" } }, @@ -5417,39 +5300,11 @@ export const Actions: coreClient.CompositeMapper = { }, }; -export const RuleResolveConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResolveConfiguration", - modelProperties: { - autoResolved: { - serializedName: "autoResolved", - type: { - name: "Boolean", - }, - }, - timeToResolve: { - serializedName: "timeToResolve", - type: { - name: "TimeSpan", - }, - }, - }, - }, -}; - -export const ScheduledQueryRuleResourcePatch: coreClient.CompositeMapper = { +export const MetricAlertResourcePatch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScheduledQueryRuleResourcePatch", + className: "MetricAlertResourcePatch", modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "Identity", - }, - }, tags: { serializedName: "tags", type: { @@ -5457,32 +5312,12 @@ export const ScheduledQueryRuleResourcePatch: coreClient.CompositeMapper = { value: { type: { name: "String" } }, }, }, - createdWithApiVersion: { - serializedName: "properties.createdWithApiVersion", - readOnly: true, - type: { - name: "String", - }, - }, - isLegacyLogAnalyticsRule: { - serializedName: "properties.isLegacyLogAnalyticsRule", - readOnly: true, - type: { - name: "Boolean", - }, - }, description: { serializedName: "properties.description", type: { name: "String", }, }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String", - }, - }, severity: { serializedName: "properties.severity", type: { @@ -5518,214 +5353,165 @@ export const ScheduledQueryRuleResourcePatch: coreClient.CompositeMapper = { name: "TimeSpan", }, }, - overrideQueryTimeRange: { - serializedName: "properties.overrideQueryTimeRange", + targetResourceType: { + serializedName: "properties.targetResourceType", type: { - name: "TimeSpan", + name: "String", }, }, - targetResourceTypes: { - serializedName: "properties.targetResourceTypes", + targetResourceRegion: { + serializedName: "properties.targetResourceRegion", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, criteria: { serializedName: "properties.criteria", type: { name: "Composite", - className: "ScheduledQueryRuleCriteria", + className: "MetricAlertCriteria", }, }, - muteActionsDuration: { - serializedName: "properties.muteActionsDuration", + autoMitigate: { + serializedName: "properties.autoMitigate", type: { - name: "TimeSpan", + name: "Boolean", }, }, actions: { serializedName: "properties.actions", type: { - name: "Composite", - className: "Actions", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAlertAction", + }, + }, }, }, - isWorkspaceAlertsStorageConfigured: { - serializedName: "properties.isWorkspaceAlertsStorageConfigured", + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", readOnly: true, type: { - name: "Boolean", - }, - }, - checkWorkspaceAlertsStorageConfigured: { - serializedName: "properties.checkWorkspaceAlertsStorageConfigured", - type: { - name: "Boolean", - }, - }, - skipQueryValidation: { - serializedName: "properties.skipQueryValidation", - type: { - name: "Boolean", + name: "DateTime", }, }, - autoMitigate: { - serializedName: "properties.autoMitigate", + isMigrated: { + serializedName: "properties.isMigrated", + readOnly: true, type: { name: "Boolean", }, }, - ruleResolveConfiguration: { - serializedName: "properties.ruleResolveConfiguration", - type: { - name: "Composite", - className: "RuleResolveConfiguration", - }, - }, }, }, }; -export const DataContainer: coreClient.CompositeMapper = { +export const MetricAlertStatusCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataContainer", + className: "MetricAlertStatusCollection", modelProperties: { - workspace: { - serializedName: "workspace", + value: { + serializedName: "value", type: { - name: "Composite", - className: "WorkspaceInfo", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAlertStatus", + }, + }, }, }, }, }, }; -export const WorkspaceInfo: coreClient.CompositeMapper = { +export const MetricAlertStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "WorkspaceInfo", + className: "MetricAlertStatus", modelProperties: { - id: { - serializedName: "id", - required: true, + name: { + serializedName: "name", type: { name: "String", }, }, - location: { - serializedName: "location", - required: true, - type: { - name: "String", - }, - }, - customerId: { - serializedName: "properties.customerId", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { id: { serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, type: { name: "String", }, }, type: { serializedName: "type", - readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const ResponseWithError: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResponseWithError", - modelProperties: { - error: { - serializedName: "error", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "ErrorModel", + className: "MetricAlertStatusProperties", }, }, }, }, }; -export const ErrorModel: coreClient.CompositeMapper = { +export const MetricAlertStatusProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorModel", + className: "MetricAlertStatusProperties", modelProperties: { - code: { - serializedName: "code", - required: true, + dimensions: { + serializedName: "dimensions", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - message: { - serializedName: "message", + status: { + serializedName: "status", type: { name: "String", }, }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime", + }, + }, }, }, }; -export const AzureMonitorPrivateLinkScopeListResult: coreClient.CompositeMapper = +export const ScheduledQueryRuleResourceCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorPrivateLinkScopeListResult", + className: "ScheduledQueryRuleResourceCollection", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureMonitorPrivateLinkScope", + className: "ScheduledQueryRuleResource", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -5734,10 +5520,10 @@ export const AzureMonitorPrivateLinkScopeListResult: coreClient.CompositeMapper }, }; -export const PrivateEndpointAutoGenerated: coreClient.CompositeMapper = { +export const ScheduledQueryRuleResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateEndpointAutoGenerated", + className: "ScheduledQueryRuleResource", modelProperties: { id: { serializedName: "id", @@ -5746,335 +5532,209 @@ export const PrivateEndpointAutoGenerated: coreClient.CompositeMapper = { name: "String", }, }, - }, - }, -}; - -export const AccessModeSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessModeSettings", - modelProperties: { - queryAccessMode: { - serializedName: "queryAccessMode", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String", }, }, - ingestionAccessMode: { - serializedName: "ingestionAccessMode", - required: true, + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - exclusions: { - serializedName: "exclusions", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AccessModeSettingsExclusion", - }, - }, + name: "Composite", + className: "Identity", }, }, - }, - }, -}; - -export const AccessModeSettingsExclusion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessModeSettingsExclusion", - modelProperties: { - privateEndpointConnectionName: { - serializedName: "privateEndpointConnectionName", + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - queryAccessMode: { - serializedName: "queryAccessMode", + location: { + serializedName: "location", + required: true, type: { name: "String", }, }, - ingestionAccessMode: { - serializedName: "ingestionAccessMode", + kind: { + serializedName: "kind", type: { name: "String", }, }, - }, - }, -}; - -export const DefaultErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DefaultErrorResponse", - modelProperties: { - error: { - serializedName: "error", + etag: { + serializedName: "etag", + readOnly: true, type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "String", }, }, - }, - }, -}; - -export const TagsResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TagsResource", - modelProperties: { - tags: { - serializedName: "tags", + systemData: { + serializedName: "systemData", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Composite", + className: "SystemData", }, }, - }, - }, -}; - -export const OperationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationStatus", - modelProperties: { - id: { - serializedName: "id", + createdWithApiVersion: { + serializedName: "properties.createdWithApiVersion", + readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + isLegacyLogAnalyticsRule: { + serializedName: "properties.isLegacyLogAnalyticsRule", + readOnly: true, type: { - name: "String", + name: "Boolean", }, }, - startTime: { - serializedName: "startTime", - nullable: true, + description: { + serializedName: "properties.description", type: { - name: "DateTime", + name: "String", }, }, - endTime: { - serializedName: "endTime", - nullable: true, + displayName: { + serializedName: "properties.displayName", type: { - name: "DateTime", + name: "String", }, }, - status: { - serializedName: "status", + severity: { + serializedName: "properties.severity", type: { - name: "String", + name: "Number", }, }, - error: { - serializedName: "error", + enabled: { + serializedName: "properties.enabled", type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "Boolean", }, }, - }, - }, -}; - -export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "value", + scopes: { + serializedName: "properties.scopes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateLinkResource", + name: "String", }, }, }, }, - }, - }, -}; - -export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "value", + evaluationFrequency: { + serializedName: "properties.evaluationFrequency", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnectionAutoGenerated", - }, - }, + name: "TimeSpan", }, }, - }, - }, -}; - -export const ScopedResourceListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScopedResourceListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + windowSize: { + serializedName: "properties.windowSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ScopedResource", - }, - }, + name: "TimeSpan", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + overrideQueryTimeRange: { + serializedName: "properties.overrideQueryTimeRange", type: { - name: "String", + name: "TimeSpan", }, }, - }, - }, -}; - -export const AlertRuleAllOfCondition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertRuleAllOfCondition", - modelProperties: { - allOf: { - serializedName: "allOf", - required: true, + targetResourceTypes: { + serializedName: "properties.targetResourceTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AlertRuleAnyOfOrLeafCondition", + name: "String", }, }, }, }, - }, - }, -}; - -export const AlertRuleLeafCondition: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertRuleLeafCondition", - modelProperties: { - field: { - serializedName: "field", + criteria: { + serializedName: "properties.criteria", type: { - name: "String", + name: "Composite", + className: "ScheduledQueryRuleCriteria", }, }, - equals: { - serializedName: "equals", + muteActionsDuration: { + serializedName: "properties.muteActionsDuration", type: { - name: "String", + name: "TimeSpan", }, }, - containsAny: { - serializedName: "containsAny", + actions: { + serializedName: "properties.actions", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Composite", + className: "Actions", }, }, - }, - }, -}; - -export const ActionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActionList", - modelProperties: { - actionGroups: { - serializedName: "actionGroups", + isWorkspaceAlertsStorageConfigured: { + serializedName: "properties.isWorkspaceAlertsStorageConfigured", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ActionGroup", - }, - }, + name: "Boolean", }, }, - }, - }, -}; - -export const ActionGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActionGroup", - modelProperties: { - actionGroupId: { - serializedName: "actionGroupId", - required: true, + checkWorkspaceAlertsStorageConfigured: { + serializedName: "properties.checkWorkspaceAlertsStorageConfigured", type: { - name: "String", + name: "Boolean", }, }, - webhookProperties: { - serializedName: "webhookProperties", + skipQueryValidation: { + serializedName: "properties.skipQueryValidation", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Boolean", + }, + }, + autoMitigate: { + serializedName: "properties.autoMitigate", + type: { + name: "Boolean", + }, + }, + ruleResolveConfiguration: { + serializedName: "properties.ruleResolveConfiguration", + type: { + name: "Composite", + className: "RuleResolveConfiguration", }, }, }, }, }; -export const AzureResourceAutoGenerated: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureResourceAutoGenerated", + className: "Identity", modelProperties: { - id: { - serializedName: "id", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + tenantId: { + serializedName: "tenantId", readOnly: true, type: { name: "String", @@ -6082,43 +5742,39 @@ export const AzureResourceAutoGenerated: coreClient.CompositeMapper = { }, type: { serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - location: { - defaultValue: "global", - serializedName: "location", + required: true, type: { - name: "String", + name: "Enum", + allowedValues: ["SystemAssigned", "UserAssigned", "None"], }, }, - tags: { - serializedName: "tags", + userAssignedIdentities: { + serializedName: "userAssignedIdentities", type: { name: "Dictionary", - value: { type: { name: "String" } }, + value: { + type: { name: "Composite", className: "UserIdentityProperties" }, + }, }, }, }, }, }; -export const ErrorResponseAutoGenerated4: coreClient.CompositeMapper = { +export const UserIdentityProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated4", + className: "UserIdentityProperties", modelProperties: { - code: { - serializedName: "code", + principalId: { + serializedName: "principalId", readOnly: true, type: { name: "String", }, }, - message: { - serializedName: "message", + clientId: { + serializedName: "clientId", readOnly: true, type: { name: "String", @@ -6128,150 +5784,248 @@ export const ErrorResponseAutoGenerated4: coreClient.CompositeMapper = { }, }; -export const AlertRulePatchObject: coreClient.CompositeMapper = { +export const ScheduledQueryRuleCriteria: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertRulePatchObject", + className: "ScheduledQueryRuleCriteria", modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - enabled: { - defaultValue: true, - serializedName: "properties.enabled", + allOf: { + serializedName: "allOf", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Condition", + }, + }, }, }, }, }, }; -export const AlertRuleList: coreClient.CompositeMapper = { +export const Condition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertRuleList", + className: "Condition", modelProperties: { - value: { - serializedName: "value", + query: { + serializedName: "query", + type: { + name: "String", + }, + }, + timeAggregation: { + serializedName: "timeAggregation", + type: { + name: "String", + }, + }, + metricMeasureColumn: { + serializedName: "metricMeasureColumn", + type: { + name: "String", + }, + }, + resourceIdColumn: { + serializedName: "resourceIdColumn", + type: { + name: "String", + }, + }, + dimensions: { + serializedName: "dimensions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ActivityLogAlertResource", + className: "Dimension", }, }, }, }, - nextLink: { - serializedName: "nextLink", + operator: { + serializedName: "operator", type: { - name: "String", + name: "Enum", + allowedValues: [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual", + "Equals", + ], + }, + }, + threshold: { + serializedName: "threshold", + type: { + name: "Number", + }, + }, + failingPeriods: { + serializedName: "failingPeriods", + type: { + name: "Composite", + className: "ConditionFailingPeriods", + }, + }, + metricName: { + serializedName: "metricName", + type: { + name: "String", }, }, }, }, }; -export const DataCollectionEndpointResourceListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DataCollectionEndpointResourceListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DataCollectionEndpointResource", - }, +export const Dimension: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + required: true, + type: { + name: "String", + }, + }, + values: { + serializedName: "values", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, + }, + }, + }, +}; + +export const ConditionFailingPeriods: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConditionFailingPeriods", + modelProperties: { + numberOfEvaluationPeriods: { + defaultValue: 1, + serializedName: "numberOfEvaluationPeriods", + type: { + name: "Number", + }, + }, + minFailingPeriodsToAlert: { + defaultValue: 1, + serializedName: "minFailingPeriodsToAlert", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const DataCollectionEndpointResource: coreClient.CompositeMapper = { +export const Actions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataCollectionEndpointResource", + className: "Actions", modelProperties: { - location: { - serializedName: "location", - required: true, + actionGroups: { + serializedName: "actionGroups", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - tags: { - serializedName: "tags", + customProperties: { + serializedName: "customProperties", type: { name: "Dictionary", value: { type: { name: "String" } }, }, }, - kind: { - serializedName: "kind", + actionProperties: { + serializedName: "actionProperties", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - identity: { - serializedName: "identity", + }, + }, +}; + +export const RuleResolveConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuleResolveConfiguration", + modelProperties: { + autoResolved: { + serializedName: "autoResolved", type: { - name: "Composite", - className: "DataCollectionEndpointResourceIdentity", + name: "Boolean", }, }, - id: { - serializedName: "id", - readOnly: true, + timeToResolve: { + serializedName: "timeToResolve", type: { - name: "String", + name: "TimeSpan", }, }, - name: { - serializedName: "name", - readOnly: true, + }, + }, +}; + +export const ScheduledQueryRuleResourcePatch: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScheduledQueryRuleResourcePatch", + modelProperties: { + identity: { + serializedName: "identity", type: { - name: "String", + name: "Composite", + className: "Identity", }, }, - type: { - serializedName: "type", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - etag: { - serializedName: "etag", + createdWithApiVersion: { + serializedName: "properties.createdWithApiVersion", readOnly: true, type: { name: "String", }, }, - systemData: { - serializedName: "systemData", + isLegacyLogAnalyticsRule: { + serializedName: "properties.isLegacyLogAnalyticsRule", + readOnly: true, type: { - name: "Composite", - className: "DataCollectionEndpointResourceSystemData", + name: "Boolean", }, }, description: { @@ -6280,200 +6034,187 @@ export const DataCollectionEndpointResource: coreClient.CompositeMapper = { name: "String", }, }, - immutableId: { - serializedName: "properties.immutableId", + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - configurationAccess: { - serializedName: "properties.configurationAccess", + severity: { + serializedName: "properties.severity", type: { - name: "Composite", - className: "DataCollectionEndpointConfigurationAccess", + name: "Number", }, }, - logsIngestion: { - serializedName: "properties.logsIngestion", + enabled: { + serializedName: "properties.enabled", type: { - name: "Composite", - className: "DataCollectionEndpointLogsIngestion", + name: "Boolean", }, }, - metricsIngestion: { - serializedName: "properties.metricsIngestion", + scopes: { + serializedName: "properties.scopes", type: { - name: "Composite", - className: "DataCollectionEndpointMetricsIngestion", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - networkAcls: { - serializedName: "properties.networkAcls", + evaluationFrequency: { + serializedName: "properties.evaluationFrequency", type: { - name: "Composite", - className: "DataCollectionEndpointNetworkAcls", + name: "TimeSpan", }, }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, + windowSize: { + serializedName: "properties.windowSize", type: { - name: "String", + name: "TimeSpan", }, }, - privateLinkScopedResources: { - serializedName: "properties.privateLinkScopedResources", - readOnly: true, + overrideQueryTimeRange: { + serializedName: "properties.overrideQueryTimeRange", + type: { + name: "TimeSpan", + }, + }, + targetResourceTypes: { + serializedName: "properties.targetResourceTypes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "PrivateLinkScopedResource", + name: "String", }, }, }, }, - failoverConfiguration: { - serializedName: "properties.failoverConfiguration", + criteria: { + serializedName: "properties.criteria", type: { name: "Composite", - className: "DataCollectionEndpointFailoverConfiguration", + className: "ScheduledQueryRuleCriteria", }, }, - metadata: { - serializedName: "properties.metadata", + muteActionsDuration: { + serializedName: "properties.muteActionsDuration", + type: { + name: "TimeSpan", + }, + }, + actions: { + serializedName: "properties.actions", type: { name: "Composite", - className: "DataCollectionEndpointMetadata", + className: "Actions", }, }, - }, - }, -}; - -export const DataCollectionEndpoint: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DataCollectionEndpoint", - modelProperties: { - description: { - serializedName: "description", + isWorkspaceAlertsStorageConfigured: { + serializedName: "properties.isWorkspaceAlertsStorageConfigured", + readOnly: true, type: { - name: "String", + name: "Boolean", }, }, - immutableId: { - serializedName: "immutableId", + checkWorkspaceAlertsStorageConfigured: { + serializedName: "properties.checkWorkspaceAlertsStorageConfigured", type: { - name: "String", + name: "Boolean", }, }, - configurationAccess: { - serializedName: "configurationAccess", + skipQueryValidation: { + serializedName: "properties.skipQueryValidation", type: { - name: "Composite", - className: "DataCollectionEndpointConfigurationAccess", + name: "Boolean", }, }, - logsIngestion: { - serializedName: "logsIngestion", + autoMitigate: { + serializedName: "properties.autoMitigate", type: { - name: "Composite", - className: "DataCollectionEndpointLogsIngestion", + name: "Boolean", }, }, - metricsIngestion: { - serializedName: "metricsIngestion", + ruleResolveConfiguration: { + serializedName: "properties.ruleResolveConfiguration", type: { name: "Composite", - className: "DataCollectionEndpointMetricsIngestion", + className: "RuleResolveConfiguration", }, }, - networkAcls: { - serializedName: "networkAcls", + }, + }, +}; + +export const DataContainer: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataContainer", + modelProperties: { + workspace: { + serializedName: "workspace", type: { name: "Composite", - className: "DataCollectionEndpointNetworkAcls", + className: "WorkspaceInfo", }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + }, + }, +}; + +export const WorkspaceInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceInfo", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { name: "String", }, }, - privateLinkScopedResources: { - serializedName: "privateLinkScopedResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkScopedResource", - }, - }, - }, - }, - failoverConfiguration: { - serializedName: "failoverConfiguration", + location: { + serializedName: "location", + required: true, type: { - name: "Composite", - className: "DataCollectionEndpointFailoverConfiguration", + name: "String", }, }, - metadata: { - serializedName: "metadata", + customerId: { + serializedName: "properties.customerId", + required: true, type: { - name: "Composite", - className: "DataCollectionEndpointMetadata", + name: "String", }, }, }, }, }; -export const ConfigurationAccessEndpointSpec: coreClient.CompositeMapper = { +export const ProxyResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConfigurationAccessEndpointSpec", + className: "ProxyResourceAutoGenerated", modelProperties: { - endpoint: { - serializedName: "endpoint", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const LogsIngestionEndpointSpec: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LogsIngestionEndpointSpec", - modelProperties: { - endpoint: { - serializedName: "endpoint", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const MetricsIngestionEndpointSpec: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "MetricsIngestionEndpointSpec", - modelProperties: { - endpoint: { - serializedName: "endpoint", + type: { + serializedName: "type", readOnly: true, type: { name: "String", @@ -6483,34 +6224,36 @@ export const MetricsIngestionEndpointSpec: coreClient.CompositeMapper = { }, }; -export const NetworkRuleSet: coreClient.CompositeMapper = { +export const ResponseWithError: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NetworkRuleSet", + className: "ResponseWithError", modelProperties: { - publicNetworkAccess: { - serializedName: "publicNetworkAccess", + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorModel", }, }, }, }, }; -export const PrivateLinkScopedResource: coreClient.CompositeMapper = { +export const ErrorModel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrivateLinkScopedResource", + className: "ErrorModel", modelProperties: { - resourceId: { - serializedName: "resourceId", + code: { + serializedName: "code", + required: true, type: { name: "String", }, }, - scopeId: { - serializedName: "scopeId", + message: { + serializedName: "message", type: { name: "String", }, @@ -6519,69 +6262,105 @@ export const PrivateLinkScopedResource: coreClient.CompositeMapper = { }, }; -export const FailoverConfigurationSpec: coreClient.CompositeMapper = { +export const AzureMonitorPrivateLinkScopeListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureMonitorPrivateLinkScopeListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureMonitorPrivateLinkScope", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PrivateEndpointAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverConfigurationSpec", + className: "PrivateEndpointAutoGenerated", modelProperties: { - activeLocation: { - serializedName: "activeLocation", + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - locations: { - serializedName: "locations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LocationSpec", - }, - }, - }, - }, }, }, }; -export const LocationSpec: coreClient.CompositeMapper = { +export const AccessModeSettings: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LocationSpec", + className: "AccessModeSettings", modelProperties: { - location: { - serializedName: "location", + queryAccessMode: { + serializedName: "queryAccessMode", + required: true, type: { name: "String", }, }, - provisioningStatus: { - serializedName: "provisioningStatus", + ingestionAccessMode: { + serializedName: "ingestionAccessMode", + required: true, type: { name: "String", }, }, + exclusions: { + serializedName: "exclusions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AccessModeSettingsExclusion", + }, + }, + }, + }, }, }, }; -export const Metadata: coreClient.CompositeMapper = { +export const AccessModeSettingsExclusion: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Metadata", + className: "AccessModeSettingsExclusion", modelProperties: { - provisionedBy: { - serializedName: "provisionedBy", - readOnly: true, + privateEndpointConnectionName: { + serializedName: "privateEndpointConnectionName", type: { name: "String", }, }, - provisionedByResourceId: { - serializedName: "provisionedByResourceId", - readOnly: true, + queryAccessMode: { + serializedName: "queryAccessMode", + type: { + name: "String", + }, + }, + ingestionAccessMode: { + serializedName: "ingestionAccessMode", type: { name: "String", }, @@ -6590,7 +6369,792 @@ export const Metadata: coreClient.CompositeMapper = { }, }; -export const ManagedServiceIdentity: coreClient.CompositeMapper = { +export const DefaultErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefaultErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, +}; + +export const TagsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TagsResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const OperationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + nullable: true, + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + nullable: true, + type: { + name: "DateTime", + }, + }, + status: { + serializedName: "status", + type: { + name: "String", + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, +}; + +export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResourceListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, +}; + +export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateEndpointConnectionListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnectionAutoGenerated", + }, + }, + }, + }, + }, + }, +}; + +export const ScopedResourceListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScopedResourceListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScopedResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AlertRuleAllOfCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertRuleAllOfCondition", + modelProperties: { + allOf: { + serializedName: "allOf", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AlertRuleAnyOfOrLeafCondition", + }, + }, + }, + }, + }, + }, +}; + +export const AlertRuleLeafCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertRuleLeafCondition", + modelProperties: { + field: { + serializedName: "field", + type: { + name: "String", + }, + }, + equals: { + serializedName: "equals", + type: { + name: "String", + }, + }, + containsAny: { + serializedName: "containsAny", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const ActionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionList", + modelProperties: { + actionGroups: { + serializedName: "actionGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActionGroup", + }, + }, + }, + }, + }, + }, +}; + +export const ActionGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionGroup", + modelProperties: { + actionGroupId: { + serializedName: "actionGroupId", + required: true, + type: { + name: "String", + }, + }, + webhookProperties: { + serializedName: "webhookProperties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const AzureResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureResourceAutoGenerated", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + defaultValue: "global", + serializedName: "location", + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const ErrorResponseAutoGenerated5: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated5", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AlertRulePatchObject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertRulePatchObject", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + enabled: { + defaultValue: true, + serializedName: "properties.enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AlertRuleList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertRuleList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ActivityLogAlertResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DataCollectionEndpointResourceListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataCollectionEndpointResourceListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCollectionEndpointResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const DataCollectionEndpointResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCollectionEndpointResource", + modelProperties: { + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "DataCollectionEndpointResourceIdentity", + }, + }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "DataCollectionEndpointResourceSystemData", + }, + }, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + immutableId: { + serializedName: "properties.immutableId", + type: { + name: "String", + }, + }, + configurationAccess: { + serializedName: "properties.configurationAccess", + type: { + name: "Composite", + className: "DataCollectionEndpointConfigurationAccess", + }, + }, + logsIngestion: { + serializedName: "properties.logsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointLogsIngestion", + }, + }, + metricsIngestion: { + serializedName: "properties.metricsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointMetricsIngestion", + }, + }, + networkAcls: { + serializedName: "properties.networkAcls", + type: { + name: "Composite", + className: "DataCollectionEndpointNetworkAcls", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + privateLinkScopedResources: { + serializedName: "properties.privateLinkScopedResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkScopedResource", + }, + }, + }, + }, + failoverConfiguration: { + serializedName: "properties.failoverConfiguration", + type: { + name: "Composite", + className: "DataCollectionEndpointFailoverConfiguration", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "DataCollectionEndpointMetadata", + }, + }, + }, + }, +}; + +export const DataCollectionEndpoint: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCollectionEndpoint", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + immutableId: { + serializedName: "immutableId", + type: { + name: "String", + }, + }, + configurationAccess: { + serializedName: "configurationAccess", + type: { + name: "Composite", + className: "DataCollectionEndpointConfigurationAccess", + }, + }, + logsIngestion: { + serializedName: "logsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointLogsIngestion", + }, + }, + metricsIngestion: { + serializedName: "metricsIngestion", + type: { + name: "Composite", + className: "DataCollectionEndpointMetricsIngestion", + }, + }, + networkAcls: { + serializedName: "networkAcls", + type: { + name: "Composite", + className: "DataCollectionEndpointNetworkAcls", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + privateLinkScopedResources: { + serializedName: "privateLinkScopedResources", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateLinkScopedResource", + }, + }, + }, + }, + failoverConfiguration: { + serializedName: "failoverConfiguration", + type: { + name: "Composite", + className: "DataCollectionEndpointFailoverConfiguration", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "DataCollectionEndpointMetadata", + }, + }, + }, + }, +}; + +export const ConfigurationAccessEndpointSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConfigurationAccessEndpointSpec", + modelProperties: { + endpoint: { + serializedName: "endpoint", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const LogsIngestionEndpointSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogsIngestionEndpointSpec", + modelProperties: { + endpoint: { + serializedName: "endpoint", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const MetricsIngestionEndpointSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MetricsIngestionEndpointSpec", + modelProperties: { + endpoint: { + serializedName: "endpoint", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NetworkRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NetworkRuleSet", + modelProperties: { + publicNetworkAccess: { + serializedName: "publicNetworkAccess", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateLinkScopedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkScopedResource", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + scopeId: { + serializedName: "scopeId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const FailoverConfigurationSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "FailoverConfigurationSpec", + modelProperties: { + activeLocation: { + serializedName: "activeLocation", + type: { + name: "String", + }, + }, + locations: { + serializedName: "locations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LocationSpec", + }, + }, + }, + }, + }, + }, +}; + +export const LocationSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LocationSpec", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + provisioningStatus: { + serializedName: "provisioningStatus", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Metadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Metadata", + modelProperties: { + provisionedBy: { + serializedName: "provisionedBy", + readOnly: true, + type: { + name: "String", + }, + }, + provisionedByResourceId: { + serializedName: "provisionedByResourceId", + readOnly: true, + type: { + name: "String", + }, + }, + provisionedByImmutableId: { + serializedName: "provisionedByImmutableId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ManagedServiceIdentity: coreClient.CompositeMapper = { type: { name: "Composite", className: "ManagedServiceIdentity", @@ -6661,7 +7225,7 @@ export const ErrorResponseCommonV2: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "ErrorDetailAutoGenerated2", }, }, }, @@ -6961,6 +7525,27 @@ export const DataCollectionRuleResource: coreClient.CompositeMapper = { className: "DataCollectionRuleMetadata", }, }, + endpoints: { + serializedName: "properties.endpoints", + type: { + name: "Composite", + className: "DataCollectionRuleEndpoints", + }, + }, + references: { + serializedName: "properties.references", + type: { + name: "Composite", + className: "DataCollectionRuleReferences", + }, + }, + agentSettings: { + serializedName: "properties.agentSettings", + type: { + name: "Composite", + className: "DataCollectionRuleAgentSettings", + }, + }, streamDeclarations: { serializedName: "properties.streamDeclarations", type: { @@ -7038,6 +7623,27 @@ export const DataCollectionRule: coreClient.CompositeMapper = { className: "DataCollectionRuleMetadata", }, }, + endpoints: { + serializedName: "endpoints", + type: { + name: "Composite", + className: "DataCollectionRuleEndpoints", + }, + }, + references: { + serializedName: "references", + type: { + name: "Composite", + className: "DataCollectionRuleReferences", + }, + }, + agentSettings: { + serializedName: "agentSettings", + type: { + name: "Composite", + className: "DataCollectionRuleAgentSettings", + }, + }, streamDeclarations: { serializedName: "streamDeclarations", type: { @@ -7061,21 +7667,156 @@ export const DataCollectionRule: coreClient.CompositeMapper = { className: "DataCollectionRuleDestinations", }, }, - dataFlows: { - serializedName: "dataFlows", + dataFlows: { + serializedName: "dataFlows", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataFlow", + }, + }, + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const EndpointsSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EndpointsSpec", + modelProperties: { + logsIngestion: { + serializedName: "logsIngestion", + readOnly: true, + type: { + name: "String", + }, + }, + metricsIngestion: { + serializedName: "metricsIngestion", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ReferencesSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReferencesSpec", + modelProperties: { + enrichmentData: { + serializedName: "enrichmentData", + type: { + name: "Composite", + className: "ReferencesSpecEnrichmentData", + }, + }, + }, + }, +}; + +export const EnrichmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnrichmentData", + modelProperties: { + storageBlobs: { + serializedName: "storageBlobs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "StorageBlob", + }, + }, + }, + }, + }, + }, +}; + +export const StorageBlob: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StorageBlob", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + blobUrl: { + serializedName: "blobUrl", + type: { + name: "String", + }, + }, + lookupType: { + serializedName: "lookupType", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AgentSettingsSpec: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentSettingsSpec", + modelProperties: { + logs: { + serializedName: "logs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "DataFlow", + className: "AgentSetting", }, }, }, }, - provisioningState: { - serializedName: "provisioningState", - readOnly: true, + }, + }, +}; + +export const AgentSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentSetting", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", type: { name: "String", }, @@ -7283,6 +8024,12 @@ export const PerfCounterDataSource: coreClient.CompositeMapper = { }, }, }, + transformKql: { + serializedName: "transformKql", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { @@ -7320,6 +8067,12 @@ export const WindowsEventLogDataSource: coreClient.CompositeMapper = { }, }, }, + transformKql: { + serializedName: "transformKql", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { @@ -7368,6 +8121,12 @@ export const SyslogDataSource: coreClient.CompositeMapper = { }, }, }, + transformKql: { + serializedName: "transformKql", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { @@ -7472,6 +8231,12 @@ export const LogFilesDataSource: coreClient.CompositeMapper = { className: "LogFilesDataSourceSettings", }, }, + transformKql: { + serializedName: "transformKql", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { @@ -7542,6 +8307,12 @@ export const IisLogsDataSource: coreClient.CompositeMapper = { }, }, }, + transformKql: { + serializedName: "transformKql", + type: { + name: "String", + }, + }, name: { serializedName: "name", type: { @@ -7569,6 +8340,17 @@ export const WindowsFirewallLogsDataSource: coreClient.CompositeMapper = { }, }, }, + profileFilter: { + serializedName: "profileFilter", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, name: { serializedName: "name", type: { @@ -7778,6 +8560,30 @@ export const DestinationsSpec: coreClient.CompositeMapper = { }, }, }, + microsoftFabric: { + serializedName: "microsoftFabric", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MicrosoftFabricDestination", + }, + }, + }, + }, + azureDataExplorer: { + serializedName: "azureDataExplorer", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdxDestination", + }, + }, + }, + }, }, }, }; @@ -7949,6 +8755,79 @@ export const StorageTableDestination: coreClient.CompositeMapper = { }, }; +export const MicrosoftFabricDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MicrosoftFabricDestination", + modelProperties: { + tenantId: { + serializedName: "tenantId", + type: { + name: "String", + }, + }, + artifactId: { + serializedName: "artifactId", + type: { + name: "String", + }, + }, + databaseName: { + serializedName: "databaseName", + type: { + name: "String", + }, + }, + ingestionUri: { + serializedName: "ingestionUri", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AdxDestination: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AdxDestination", + modelProperties: { + resourceId: { + serializedName: "resourceId", + type: { + name: "String", + }, + }, + databaseName: { + serializedName: "databaseName", + type: { + name: "String", + }, + }, + ingestionUri: { + serializedName: "ingestionUri", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + }, + }, +}; + export const DataFlow: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7994,6 +8873,12 @@ export const DataFlow: coreClient.CompositeMapper = { name: "String", }, }, + captureOverflow: { + serializedName: "captureOverflow", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -8173,773 +9058,678 @@ export const DynamicThresholdFailingPeriods: coreClient.CompositeMapper = { }, }; -export const AzureMonitorWorkspaceResourceProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AzureMonitorWorkspaceResourceProperties", - modelProperties: { - ...AzureMonitorWorkspace.type.modelProperties, - }, - }, - }; - -export const AzureMonitorWorkspaceMetrics: coreClient.CompositeMapper = { +export const ProxyResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorWorkspaceMetrics", + className: "ProxyResource", modelProperties: { - ...Metrics.type.modelProperties, + ...Resource.type.modelProperties, }, }, }; -export const AzureMonitorWorkspaceDefaultIngestionSettings: coreClient.CompositeMapper = +export const DataCollectionEndpointResourceSystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorWorkspaceDefaultIngestionSettings", + className: "DataCollectionEndpointResourceSystemData", modelProperties: { - ...IngestionSettings.type.modelProperties, + ...SystemData.type.modelProperties, }, }, }; -export const PrivateEndpointConnection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnection", - modelProperties: { - ...Resource.type.modelProperties, - groupIds: { - serializedName: "properties.groupIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpoint", - }, - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const DataCollectionEndpointResourceSystemData: coreClient.CompositeMapper = +export const DataCollectionRuleAssociationProxyOnlyResourceSystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataCollectionEndpointResourceSystemData", + className: "DataCollectionRuleAssociationProxyOnlyResourceSystemData", modelProperties: { ...SystemData.type.modelProperties, }, }, }; -export const DataCollectionRuleAssociationProxyOnlyResourceSystemData: coreClient.CompositeMapper = +export const DataCollectionRuleResourceSystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DataCollectionRuleAssociationProxyOnlyResourceSystemData", + className: "DataCollectionRuleResourceSystemData", modelProperties: { ...SystemData.type.modelProperties, }, - }, - }; - -export const DataCollectionRuleResourceSystemData: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DataCollectionRuleResourceSystemData", - modelProperties: { - ...SystemData.type.modelProperties, + }, + }; + +export const ActionGroupResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionGroupResource", + modelProperties: { + ...AzureResource.type.modelProperties, + groupShortName: { + constraints: { + MaxLength: 12, + }, + serializedName: "properties.groupShortName", + type: { + name: "String", + }, + }, + enabled: { + defaultValue: true, + serializedName: "properties.enabled", + type: { + name: "Boolean", + }, + }, + emailReceivers: { + serializedName: "properties.emailReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailReceiver", + }, + }, + }, + }, + smsReceivers: { + serializedName: "properties.smsReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SmsReceiver", + }, + }, + }, }, - }, - }; - -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...ResourceAutoGenerated.type.modelProperties, - tags: { - serializedName: "tags", + webhookReceivers: { + serializedName: "properties.webhookReceivers", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebhookReceiver", + }, + }, }, }, - location: { - serializedName: "location", - required: true, + itsmReceivers: { + serializedName: "properties.itsmReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ItsmReceiver", + }, + }, }, }, - }, - }, -}; - -export const AutoscaleSettingResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutoscaleSettingResource", - modelProperties: { - ...ResourceAutoGenerated2.type.modelProperties, - profiles: { - constraints: { - MaxItems: 20, + azureAppPushReceivers: { + serializedName: "properties.azureAppPushReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAppPushReceiver", + }, + }, }, - serializedName: "properties.profiles", - required: true, + }, + automationRunbookReceivers: { + serializedName: "properties.automationRunbookReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutoscaleProfile", + className: "AutomationRunbookReceiver", }, }, }, }, - notifications: { - serializedName: "properties.notifications", + voiceReceivers: { + serializedName: "properties.voiceReceivers", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutoscaleNotification", + className: "VoiceReceiver", }, }, }, }, - enabled: { - defaultValue: false, - serializedName: "properties.enabled", + logicAppReceivers: { + serializedName: "properties.logicAppReceivers", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogicAppReceiver", + }, + }, }, }, - predictiveAutoscalePolicy: { - serializedName: "properties.predictiveAutoscalePolicy", + azureFunctionReceivers: { + serializedName: "properties.azureFunctionReceivers", type: { - name: "Composite", - className: "PredictiveAutoscalePolicy", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureFunctionReceiver", + }, + }, }, }, - namePropertiesName: { - serializedName: "properties.name", + armRoleReceivers: { + serializedName: "properties.armRoleReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ArmRoleReceiver", + }, + }, }, }, - targetResourceUri: { - serializedName: "properties.targetResourceUri", + eventHubReceivers: { + serializedName: "properties.eventHubReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventHubReceiver", + }, + }, }, }, - targetResourceLocation: { - serializedName: "properties.targetResourceLocation", + incidentReceivers: { + serializedName: "properties.incidentReceivers", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IncidentReceiver", + }, + }, }, }, }, }, }; -export const ThresholdRuleCondition: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", +export const TenantActionGroupResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ThresholdRuleCondition", - uberParent: "RuleCondition", - polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, + className: "TenantActionGroupResource", modelProperties: { - ...RuleCondition.type.modelProperties, - operator: { - serializedName: "operator", - required: true, + ...AzureResource.type.modelProperties, + groupShortName: { + constraints: { + MaxLength: 12, + }, + serializedName: "properties.groupShortName", type: { - name: "Enum", - allowedValues: [ - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual", - "Equals", - ], + name: "String", }, }, - threshold: { - serializedName: "threshold", - required: true, + enabled: { + defaultValue: true, + serializedName: "properties.enabled", type: { - name: "Number", + name: "Boolean", }, }, - windowSize: { - serializedName: "windowSize", + emailReceivers: { + serializedName: "properties.emailReceivers", type: { - name: "TimeSpan", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailReceiverAutoGenerated", + }, + }, }, }, - timeAggregation: { - serializedName: "timeAggregation", + smsReceivers: { + serializedName: "properties.smsReceivers", type: { - name: "Enum", - allowedValues: ["Average", "Minimum", "Maximum", "Total", "Last"], + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SmsReceiverAutoGenerated", + }, + }, }, }, - }, - }, -}; - -export const LocationThresholdRuleCondition: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", - type: { - name: "Composite", - className: "LocationThresholdRuleCondition", - uberParent: "RuleCondition", - polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...RuleCondition.type.modelProperties, - windowSize: { - serializedName: "windowSize", + webhookReceivers: { + serializedName: "properties.webhookReceivers", type: { - name: "TimeSpan", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "WebhookReceiverAutoGenerated", + }, + }, }, }, - failedLocationCount: { - constraints: { - InclusiveMinimum: 0, + azureAppPushReceivers: { + serializedName: "properties.azureAppPushReceivers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureAppPushReceiverAutoGenerated", + }, + }, }, - serializedName: "failedLocationCount", - required: true, + }, + voiceReceivers: { + serializedName: "properties.voiceReceivers", type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VoiceReceiverAutoGenerated", + }, + }, }, }, }, }, }; -export const ManagementEventRuleCondition: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition", - type: { - name: "Composite", - className: "ManagementEventRuleCondition", - uberParent: "RuleCondition", - polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, - modelProperties: { - ...RuleCondition.type.modelProperties, - aggregation: { - serializedName: "aggregation", - type: { - name: "Composite", - className: "ManagementEventAggregationCondition", - }, +export const AzureMonitorWorkspaceResourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureMonitorWorkspaceResourceProperties", + modelProperties: { + ...AzureMonitorWorkspace.type.modelProperties, }, }, - }, -}; + }; -export const RuleMetricDataSource: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", +export const AzureMonitorWorkspaceMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleMetricDataSource", - uberParent: "RuleDataSource", - polymorphicDiscriminator: RuleDataSource.type.polymorphicDiscriminator, + className: "AzureMonitorWorkspaceMetrics", modelProperties: { - ...RuleDataSource.type.modelProperties, - metricName: { - serializedName: "metricName", - type: { - name: "String", - }, - }, + ...Metrics.type.modelProperties, }, }, }; -export const RuleManagementEventDataSource: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource", +export const AzureMonitorWorkspaceDefaultIngestionSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureMonitorWorkspaceDefaultIngestionSettings", + modelProperties: { + ...IngestionSettings.type.modelProperties, + }, + }, + }; + +export const PrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleManagementEventDataSource", - uberParent: "RuleDataSource", - polymorphicDiscriminator: RuleDataSource.type.polymorphicDiscriminator, + className: "PrivateEndpointConnection", modelProperties: { - ...RuleDataSource.type.modelProperties, - eventName: { - serializedName: "eventName", - type: { - name: "String", - }, - }, - eventSource: { - serializedName: "eventSource", - type: { - name: "String", - }, - }, - level: { - serializedName: "level", + ...ResourceAutoGenerated.type.modelProperties, + groupIds: { + serializedName: "properties.groupIds", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - operationName: { - serializedName: "operationName", + privateEndpoint: { + serializedName: "properties.privateEndpoint", type: { - name: "String", + name: "Composite", + className: "PrivateEndpoint", }, }, - resourceGroupName: { - serializedName: "resourceGroupName", + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", type: { - name: "String", + name: "Composite", + className: "PrivateLinkServiceConnectionState", }, }, - resourceProviderName: { - serializedName: "resourceProviderName", + provisioningState: { + serializedName: "properties.provisioningState", type: { name: "String", }, }, - status: { - serializedName: "status", + }, + }, +}; + +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...ResourceAutoGenerated2.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - subStatus: { - serializedName: "subStatus", + location: { + serializedName: "location", + required: true, type: { name: "String", }, }, - claims: { - serializedName: "claims", - type: { - name: "Composite", - className: "RuleManagementEventClaimsDataSource", - }, - }, }, }, }; -export const RuleEmailAction: coreClient.CompositeMapper = { - serializedName: "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", +export const AutoscaleSettingResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleEmailAction", - uberParent: "RuleAction", - polymorphicDiscriminator: RuleAction.type.polymorphicDiscriminator, + className: "AutoscaleSettingResource", modelProperties: { - ...RuleAction.type.modelProperties, - sendToServiceOwners: { - serializedName: "sendToServiceOwners", + ...ResourceAutoGenerated3.type.modelProperties, + profiles: { + constraints: { + MaxItems: 20, + }, + serializedName: "properties.profiles", + required: true, type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutoscaleProfile", + }, + }, }, }, - customEmails: { - serializedName: "customEmails", + notifications: { + serializedName: "properties.notifications", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "AutoscaleNotification", }, }, }, }, - }, - }, -}; - -export const RuleWebhookAction: coreClient.CompositeMapper = { - serializedName: - "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction", - type: { - name: "Composite", - className: "RuleWebhookAction", - uberParent: "RuleAction", - polymorphicDiscriminator: RuleAction.type.polymorphicDiscriminator, - modelProperties: { - ...RuleAction.type.modelProperties, - serviceUri: { - serializedName: "serviceUri", + enabled: { + defaultValue: false, + serializedName: "properties.enabled", type: { - name: "String", + name: "Boolean", }, }, - properties: { - serializedName: "properties", + predictiveAutoscalePolicy: { + serializedName: "properties.predictiveAutoscalePolicy", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Composite", + className: "PredictiveAutoscalePolicy", }, }, - }, - }, -}; - -export const AlertRuleResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertRuleResource", - modelProperties: { - ...ResourceAutoGenerated3.type.modelProperties, namePropertiesName: { serializedName: "properties.name", - required: true, type: { name: "String", }, }, - description: { - serializedName: "properties.description", + targetResourceUri: { + serializedName: "properties.targetResourceUri", type: { name: "String", }, }, - provisioningState: { - serializedName: "properties.provisioningState", + targetResourceLocation: { + serializedName: "properties.targetResourceLocation", type: { name: "String", }, }, - isEnabled: { - serializedName: "properties.isEnabled", + }, + }, +}; + +export const ThresholdRuleCondition: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition", + type: { + name: "Composite", + className: "ThresholdRuleCondition", + uberParent: "RuleCondition", + polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, + modelProperties: { + ...RuleCondition.type.modelProperties, + operator: { + serializedName: "operator", required: true, type: { - name: "Boolean", - }, - }, - condition: { - serializedName: "properties.condition", - type: { - name: "Composite", - className: "RuleCondition", + name: "Enum", + allowedValues: [ + "GreaterThan", + "GreaterThanOrEqual", + "LessThan", + "LessThanOrEqual", + "Equals", + ], }, }, - action: { - serializedName: "properties.action", + threshold: { + serializedName: "threshold", + required: true, type: { - name: "Composite", - className: "RuleAction", + name: "Number", }, }, - actions: { - serializedName: "properties.actions", + windowSize: { + serializedName: "windowSize", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuleAction", - }, - }, + name: "TimeSpan", }, }, - lastUpdatedTime: { - serializedName: "properties.lastUpdatedTime", - readOnly: true, + timeAggregation: { + serializedName: "timeAggregation", type: { - name: "DateTime", + name: "Enum", + allowedValues: ["Average", "Minimum", "Maximum", "Total", "Last"], }, }, }, }, }; -export const LogProfileResource: coreClient.CompositeMapper = { +export const LocationThresholdRuleCondition: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition", type: { name: "Composite", - className: "LogProfileResource", + className: "LocationThresholdRuleCondition", + uberParent: "RuleCondition", + polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...ResourceAutoGenerated4.type.modelProperties, - storageAccountId: { - serializedName: "properties.storageAccountId", - type: { - name: "String", - }, - }, - serviceBusRuleId: { - serializedName: "properties.serviceBusRuleId", + ...RuleCondition.type.modelProperties, + windowSize: { + serializedName: "windowSize", type: { - name: "String", + name: "TimeSpan", }, }, - locations: { - serializedName: "properties.locations", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + failedLocationCount: { + constraints: { + InclusiveMinimum: 0, }, - }, - categories: { - serializedName: "properties.categories", + serializedName: "failedLocationCount", required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - retentionPolicy: { - serializedName: "properties.retentionPolicy", - type: { - name: "Composite", - className: "RetentionPolicy", + name: "Number", }, }, }, }, }; -export const DiagnosticSettingsResource: coreClient.CompositeMapper = { +export const ManagementEventRuleCondition: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition", type: { name: "Composite", - className: "DiagnosticSettingsResource", + className: "ManagementEventRuleCondition", + uberParent: "RuleCondition", + polymorphicDiscriminator: RuleCondition.type.polymorphicDiscriminator, modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, - systemData: { - serializedName: "systemData", + ...RuleCondition.type.modelProperties, + aggregation: { + serializedName: "aggregation", type: { name: "Composite", - className: "SystemData", + className: "ManagementEventAggregationCondition", }, }, - storageAccountId: { - serializedName: "properties.storageAccountId", + }, + }, +}; + +export const RuleMetricDataSource: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", + type: { + name: "Composite", + className: "RuleMetricDataSource", + uberParent: "RuleDataSource", + polymorphicDiscriminator: RuleDataSource.type.polymorphicDiscriminator, + modelProperties: { + ...RuleDataSource.type.modelProperties, + metricName: { + serializedName: "metricName", type: { name: "String", }, }, - serviceBusRuleId: { - serializedName: "properties.serviceBusRuleId", + }, + }, +}; + +export const RuleManagementEventDataSource: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource", + type: { + name: "Composite", + className: "RuleManagementEventDataSource", + uberParent: "RuleDataSource", + polymorphicDiscriminator: RuleDataSource.type.polymorphicDiscriminator, + modelProperties: { + ...RuleDataSource.type.modelProperties, + eventName: { + serializedName: "eventName", type: { name: "String", }, }, - eventHubAuthorizationRuleId: { - serializedName: "properties.eventHubAuthorizationRuleId", + eventSource: { + serializedName: "eventSource", type: { name: "String", }, }, - eventHubName: { - serializedName: "properties.eventHubName", + level: { + serializedName: "level", type: { name: "String", }, }, - metrics: { - serializedName: "properties.metrics", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MetricSettings", - }, - }, - }, - }, - logs: { - serializedName: "properties.logs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "LogSettings", - }, - }, - }, - }, - workspaceId: { - serializedName: "properties.workspaceId", + operationName: { + serializedName: "operationName", type: { name: "String", }, }, - marketplacePartnerId: { - serializedName: "properties.marketplacePartnerId", + resourceGroupName: { + serializedName: "resourceGroupName", type: { name: "String", }, }, - logAnalyticsDestinationType: { - serializedName: "properties.logAnalyticsDestinationType", + resourceProviderName: { + serializedName: "resourceProviderName", type: { name: "String", }, }, - }, - }, -}; - -export const DiagnosticSettingsCategoryResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DiagnosticSettingsCategoryResource", - modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - }, - }, - categoryType: { - serializedName: "properties.categoryType", + status: { + serializedName: "status", type: { name: "String", }, }, - categoryGroups: { - serializedName: "properties.categoryGroups", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const PrivateEndpointConnectionAutoGenerated: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "PrivateEndpointConnectionAutoGenerated", - modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, - privateEndpoint: { - serializedName: "properties.privateEndpoint", - type: { - name: "Composite", - className: "PrivateEndpointAutoGenerated", - }, - }, - privateLinkServiceConnectionState: { - serializedName: "properties.privateLinkServiceConnectionState", - type: { - name: "Composite", - className: "PrivateLinkServiceConnectionState", - }, - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const TrackedResourceAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResourceAutoGenerated", - modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, - tags: { - serializedName: "tags", + subStatus: { + serializedName: "subStatus", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - location: { - serializedName: "location", - required: true, + claims: { + serializedName: "claims", type: { - name: "String", + name: "Composite", + className: "RuleManagementEventClaimsDataSource", }, }, }, }, }; -export const PrivateLinkResource: coreClient.CompositeMapper = { +export const RuleEmailAction: coreClient.CompositeMapper = { + serializedName: "Microsoft.Azure.Management.Insights.Models.RuleEmailAction", type: { name: "Composite", - className: "PrivateLinkResource", + className: "RuleEmailAction", + uberParent: "RuleAction", + polymorphicDiscriminator: RuleAction.type.polymorphicDiscriminator, modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, - groupId: { - serializedName: "properties.groupId", - readOnly: true, - type: { - name: "String", - }, - }, - requiredMembers: { - serializedName: "properties.requiredMembers", - readOnly: true, + ...RuleAction.type.modelProperties, + sendToServiceOwners: { + serializedName: "sendToServiceOwners", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Boolean", }, }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + customEmails: { + serializedName: "customEmails", type: { name: "Sequence", element: { @@ -8953,252 +9743,359 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { }, }; -export const ProxyResourceAutoGenerated: coreClient.CompositeMapper = { +export const RuleWebhookAction: coreClient.CompositeMapper = { + serializedName: + "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction", type: { name: "Composite", - className: "ProxyResourceAutoGenerated", + className: "RuleWebhookAction", + uberParent: "RuleAction", + polymorphicDiscriminator: RuleAction.type.polymorphicDiscriminator, modelProperties: { - ...ResourceAutoGenerated5.type.modelProperties, + ...RuleAction.type.modelProperties, + serviceUri: { + serializedName: "serviceUri", + type: { + name: "String", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, }, }, }; -export const ActionGroupResource: coreClient.CompositeMapper = { +export const AlertRuleResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionGroupResource", + className: "AlertRuleResource", modelProperties: { - ...AzureResource.type.modelProperties, - groupShortName: { - constraints: { - MaxLength: 12, + ...ResourceAutoGenerated4.type.modelProperties, + namePropertiesName: { + serializedName: "properties.name", + required: true, + type: { + name: "String", }, - serializedName: "properties.groupShortName", + }, + description: { + serializedName: "properties.description", type: { name: "String", }, }, - enabled: { - defaultValue: true, - serializedName: "properties.enabled", + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "properties.isEnabled", + required: true, type: { name: "Boolean", }, }, - emailReceivers: { - serializedName: "properties.emailReceivers", + condition: { + serializedName: "properties.condition", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EmailReceiver", - }, - }, + name: "Composite", + className: "RuleCondition", }, }, - smsReceivers: { - serializedName: "properties.smsReceivers", + action: { + serializedName: "properties.action", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SmsReceiver", - }, - }, + name: "Composite", + className: "RuleAction", }, }, - webhookReceivers: { - serializedName: "properties.webhookReceivers", + actions: { + serializedName: "properties.actions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "WebhookReceiver", + className: "RuleAction", }, }, }, }, - itsmReceivers: { - serializedName: "properties.itsmReceivers", + lastUpdatedTime: { + serializedName: "properties.lastUpdatedTime", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ItsmReceiver", - }, - }, + name: "DateTime", }, }, - azureAppPushReceivers: { - serializedName: "properties.azureAppPushReceivers", + }, + }, +}; + +export const LogProfileResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LogProfileResource", + modelProperties: { + ...ResourceAutoGenerated5.type.modelProperties, + storageAccountId: { + serializedName: "properties.storageAccountId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AzureAppPushReceiver", - }, - }, + name: "String", }, }, - automationRunbookReceivers: { - serializedName: "properties.automationRunbookReceivers", + serviceBusRuleId: { + serializedName: "properties.serviceBusRuleId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationRunbookReceiver", - }, - }, + name: "String", }, }, - voiceReceivers: { - serializedName: "properties.voiceReceivers", + locations: { + serializedName: "properties.locations", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VoiceReceiver", + name: "String", }, }, }, }, - logicAppReceivers: { - serializedName: "properties.logicAppReceivers", + categories: { + serializedName: "properties.categories", + required: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "LogicAppReceiver", + name: "String", }, }, }, }, - azureFunctionReceivers: { - serializedName: "properties.azureFunctionReceivers", + retentionPolicy: { + serializedName: "properties.retentionPolicy", + type: { + name: "Composite", + className: "RetentionPolicy", + }, + }, + }, + }, +}; + +export const DiagnosticSettingsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiagnosticSettingsResource", + modelProperties: { + ...ResourceAutoGenerated6.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + storageAccountId: { + serializedName: "properties.storageAccountId", + type: { + name: "String", + }, + }, + serviceBusRuleId: { + serializedName: "properties.serviceBusRuleId", + type: { + name: "String", + }, + }, + eventHubAuthorizationRuleId: { + serializedName: "properties.eventHubAuthorizationRuleId", + type: { + name: "String", + }, + }, + eventHubName: { + serializedName: "properties.eventHubName", + type: { + name: "String", + }, + }, + metrics: { + serializedName: "properties.metrics", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureFunctionReceiver", + className: "MetricSettings", }, }, }, }, - armRoleReceivers: { - serializedName: "properties.armRoleReceivers", + logs: { + serializedName: "properties.logs", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ArmRoleReceiver", + className: "LogSettings", }, }, }, }, - eventHubReceivers: { - serializedName: "properties.eventHubReceivers", + workspaceId: { + serializedName: "properties.workspaceId", + type: { + name: "String", + }, + }, + marketplacePartnerId: { + serializedName: "properties.marketplacePartnerId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventHubReceiver", - }, - }, + name: "String", + }, + }, + logAnalyticsDestinationType: { + serializedName: "properties.logAnalyticsDestinationType", + type: { + name: "String", }, }, }, }, }; -export const TenantActionGroupResource: coreClient.CompositeMapper = { +export const DiagnosticSettingsCategoryResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TenantActionGroupResource", + className: "DiagnosticSettingsCategoryResource", modelProperties: { - ...AzureResource.type.modelProperties, - groupShortName: { - constraints: { - MaxLength: 12, - }, - serializedName: "properties.groupShortName", + ...ResourceAutoGenerated6.type.modelProperties, + systemData: { + serializedName: "systemData", type: { - name: "String", + name: "Composite", + className: "SystemData", }, }, - enabled: { - defaultValue: true, - serializedName: "properties.enabled", + categoryType: { + serializedName: "properties.categoryType", type: { - name: "Boolean", + name: "String", }, }, - emailReceivers: { - serializedName: "properties.emailReceivers", + categoryGroups: { + serializedName: "properties.categoryGroups", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "EmailReceiverAutoGenerated", + name: "String", }, }, }, }, - smsReceivers: { - serializedName: "properties.smsReceivers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SmsReceiverAutoGenerated", - }, + }, + }, +}; + +export const PrivateEndpointConnectionAutoGenerated: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionAutoGenerated", + modelProperties: { + ...ResourceAutoGenerated6.type.modelProperties, + privateEndpoint: { + serializedName: "properties.privateEndpoint", + type: { + name: "Composite", + className: "PrivateEndpointAutoGenerated", + }, + }, + privateLinkServiceConnectionState: { + serializedName: "properties.privateLinkServiceConnectionState", + type: { + name: "Composite", + className: "PrivateLinkServiceConnectionState", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String", }, }, }, - webhookReceivers: { - serializedName: "properties.webhookReceivers", + }, + }; + +export const TrackedResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResourceAutoGenerated", + modelProperties: { + ...ResourceAutoGenerated6.type.modelProperties, + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebhookReceiverAutoGenerated", - }, - }, + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - azureAppPushReceivers: { - serializedName: "properties.azureAppPushReceivers", + location: { + serializedName: "location", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PrivateLinkResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + ...ResourceAutoGenerated6.type.modelProperties, + groupId: { + serializedName: "properties.groupId", + readOnly: true, + type: { + name: "String", + }, + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AzureAppPushReceiverAutoGenerated", + name: "String", }, }, }, }, - voiceReceivers: { - serializedName: "properties.voiceReceivers", + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "VoiceReceiverAutoGenerated", + name: "String", }, }, }, @@ -9207,6 +10104,16 @@ export const TenantActionGroupResource: coreClient.CompositeMapper = { }, }; +export const ProxyResourceAutoGenerated2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResourceAutoGenerated2", + modelProperties: { + ...ResourceAutoGenerated6.type.modelProperties, + }, + }, +}; + export const MetricAlertSingleResourceMultipleMetricCriteria: coreClient.CompositeMapper = { serializedName: @@ -9305,7 +10212,7 @@ export const MetricAlertResource: coreClient.CompositeMapper = { name: "Composite", className: "MetricAlertResource", modelProperties: { - ...ResourceAutoGenerated6.type.modelProperties, + ...ResourceAutoGenerated7.type.modelProperties, description: { serializedName: "properties.description", type: { @@ -9412,7 +10319,7 @@ export const VMInsightsOnboardingStatus: coreClient.CompositeMapper = { name: "Composite", className: "VMInsightsOnboardingStatus", modelProperties: { - ...ProxyResource.type.modelProperties, + ...ProxyResourceAutoGenerated.type.modelProperties, resourceId: { serializedName: "properties.resourceId", type: { @@ -9665,6 +10572,46 @@ export const DataCollectionRuleResourceProperties: coreClient.CompositeMapper = }, }; +export const DataCollectionRuleEndpoints: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCollectionRuleEndpoints", + modelProperties: { + ...EndpointsSpec.type.modelProperties, + }, + }, +}; + +export const DataCollectionRuleReferences: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCollectionRuleReferences", + modelProperties: { + ...ReferencesSpec.type.modelProperties, + }, + }, +}; + +export const ReferencesSpecEnrichmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ReferencesSpecEnrichmentData", + modelProperties: { + ...EnrichmentData.type.modelProperties, + }, + }, +}; + +export const DataCollectionRuleAgentSettings: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DataCollectionRuleAgentSettings", + modelProperties: { + ...AgentSettingsSpec.type.modelProperties, + }, + }, +}; + export const DataCollectionRuleDataSources: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9804,6 +10751,24 @@ export const DynamicMetricCriteria: coreClient.CompositeMapper = { }, }; +export const NetworkSecurityPerimeterConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "NetworkSecurityPerimeterConfigurationProperties", + }, + }, + }, + }, + }; + export const AzureMonitorWorkspaceResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9860,7 +10825,6 @@ export const AzureMonitorWorkspaceResource: coreClient.CompositeMapper = { }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", - readOnly: true, type: { name: "String", }, @@ -9918,7 +10882,7 @@ export const ScopedResource: coreClient.CompositeMapper = { name: "Composite", className: "ScopedResource", modelProperties: { - ...ProxyResourceAutoGenerated.type.modelProperties, + ...ProxyResourceAutoGenerated2.type.modelProperties, systemData: { serializedName: "systemData", type: { @@ -9943,17 +10907,11 @@ export const ScopedResource: coreClient.CompositeMapper = { }, }; -export const AzureMonitorWorkspacesDeleteHeaders: coreClient.CompositeMapper = { +export const ActionGroupsReconcileNSPHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureMonitorWorkspacesDeleteHeaders", + className: "ActionGroupsReconcileNSPHeaders", modelProperties: { - azureAsyncOperation: { - serializedName: "azure-asyncoperation", - type: { - name: "String", - }, - }, location: { serializedName: "location", type: { @@ -9981,6 +10939,59 @@ export const ActionGroupsCreateNotificationsAtActionGroupResourceLevelHeaders: c }, }; +export const DataCollectionEndpointsReconcileNSPHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DataCollectionEndpointsReconcileNSPHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const ScheduledQueryRuleReconcileNSPHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ScheduledQueryRuleReconcileNSPHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AzureMonitorWorkspacesDeleteHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureMonitorWorkspacesDeleteHeaders", + modelProperties: { + azureAsyncOperation: { + serializedName: "azure-asyncoperation", + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + export const MonitorClientCreateNotificationsAtTenantActionGroupResourceLevelHeaders: coreClient.CompositeMapper = { type: { diff --git a/sdk/monitor/arm-monitor/src/models/parameters.ts b/sdk/monitor/arm-monitor/src/models/parameters.ts index ae214a316d38..cea856318303 100644 --- a/sdk/monitor/arm-monitor/src/models/parameters.ts +++ b/sdk/monitor/arm-monitor/src/models/parameters.ts @@ -12,6 +12,12 @@ import { OperationQueryParameter, } from "@azure/core-client"; import { + ActionGroupResource as ActionGroupResourceMapper, + ActionGroupPatchBody as ActionGroupPatchBodyMapper, + NotificationRequestBody as NotificationRequestBodyMapper, + EnableRequest as EnableRequestMapper, + DataCollectionEndpointResource as DataCollectionEndpointResourceMapper, + ResourceForUpdate as ResourceForUpdateMapper, SubscriptionScopeMetricsRequestBodyParameters as SubscriptionScopeMetricsRequestBodyParametersMapper, AzureMonitorWorkspaceResource as AzureMonitorWorkspaceResourceMapper, AzureMonitorWorkspaceResourceForUpdate as AzureMonitorWorkspaceResourceForUpdateMapper, @@ -22,10 +28,6 @@ import { LogProfileResource as LogProfileResourceMapper, LogProfileResourcePatch as LogProfileResourcePatchMapper, DiagnosticSettingsResource as DiagnosticSettingsResourceMapper, - ActionGroupResource as ActionGroupResourceMapper, - ActionGroupPatchBody as ActionGroupPatchBodyMapper, - NotificationRequestBody as NotificationRequestBodyMapper, - EnableRequest as EnableRequestMapper, TenantActionGroupResource as TenantActionGroupResourceMapper, ActionGroupPatchBodyAutoGenerated as ActionGroupPatchBodyAutoGeneratedMapper, TenantNotificationRequestBody as TenantNotificationRequestBodyMapper, @@ -39,8 +41,6 @@ import { ScopedResource as ScopedResourceMapper, ActivityLogAlertResource as ActivityLogAlertResourceMapper, AlertRulePatchObject as AlertRulePatchObjectMapper, - DataCollectionEndpointResource as DataCollectionEndpointResourceMapper, - ResourceForUpdate as ResourceForUpdateMapper, DataCollectionRuleAssociationProxyOnlyResource as DataCollectionRuleAssociationProxyOnlyResourceMapper, DataCollectionRuleResource as DataCollectionRuleResourceMapper, } from "../models/mappers"; @@ -69,22 +69,51 @@ export const $host: OperationURLParameter = { skipEncoding: true, }; -export const resourceUri: OperationURLParameter = { - parameterPath: "resourceUri", +export const resourceGroupName: OperationURLParameter = { + parameterPath: "resourceGroupName", mapper: { - serializedName: "resourceUri", + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", required: true, type: { name: "String", }, }, - skipEncoding: true, +}; + +export const actionGroupName: OperationURLParameter = { + parameterPath: "actionGroupName", + mapper: { + constraints: { + Pattern: new RegExp("^.*$"), + MaxLength: 43, + }, + serializedName: "actionGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const subscriptionId: OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + serializedName: "subscriptionId", + required: true, + type: { + name: "Uuid", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2024-02-01", + defaultValue: "2021-10-01", isConstant: true, serializedName: "api-version", type: { @@ -93,23 +122,109 @@ export const apiVersion: OperationQueryParameter = { }, }; -export const startTime: OperationQueryParameter = { - parameterPath: ["options", "startTime"], +export const networkSecurityPerimeterConfigurationName: OperationURLParameter = + { + parameterPath: "networkSecurityPerimeterConfigurationName", + mapper: { + constraints: { + Pattern: new RegExp("^.*$"), + MaxLength: 512, + MinLength: 1, + }, + serializedName: "networkSecurityPerimeterConfigurationName", + required: true, + type: { + name: "String", + }, + }, + }; + +export const contentType: OperationParameter = { + parameterPath: ["options", "contentType"], mapper: { - serializedName: "startTime", + defaultValue: "application/json", + isConstant: true, + serializedName: "Content-Type", type: { name: "String", }, }, }; -export const subscriptionId: OperationURLParameter = { - parameterPath: "subscriptionId", +export const actionGroup: OperationParameter = { + parameterPath: "actionGroup", + mapper: ActionGroupResourceMapper, +}; + +export const actionGroupName1: OperationURLParameter = { + parameterPath: "actionGroupName", + mapper: { + serializedName: "actionGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const apiVersion1: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-09-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const actionGroupPatch: OperationParameter = { + parameterPath: "actionGroupPatch", + mapper: ActionGroupPatchBodyMapper, +}; + +export const notificationRequest: OperationParameter = { + parameterPath: "notificationRequest", + mapper: NotificationRequestBodyMapper, +}; + +export const notificationId: OperationURLParameter = { + parameterPath: "notificationId", + mapper: { + serializedName: "notificationId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const enableRequest: OperationParameter = { + parameterPath: "enableRequest", + mapper: EnableRequestMapper, +}; + +export const nextLink: OperationURLParameter = { + parameterPath: "nextLink", + mapper: { + serializedName: "nextLink", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const dataCollectionEndpointName: OperationURLParameter = { + parameterPath: "dataCollectionEndpointName", mapper: { constraints: { - MinLength: 1, + Pattern: new RegExp("^.*$"), + MaxLength: 43, }, - serializedName: "subscriptionId", + serializedName: "dataCollectionEndpointName", required: true, type: { name: "String", @@ -117,6 +232,88 @@ export const subscriptionId: OperationURLParameter = { }, }; +export const apiVersion2: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-03-11", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const dataCollectionEndpointName1: OperationURLParameter = { + parameterPath: "dataCollectionEndpointName", + mapper: { + serializedName: "dataCollectionEndpointName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const body: OperationParameter = { + parameterPath: ["options", "body"], + mapper: DataCollectionEndpointResourceMapper, +}; + +export const body1: OperationParameter = { + parameterPath: ["options", "body"], + mapper: ResourceForUpdateMapper, +}; + +export const ruleName: OperationURLParameter = { + parameterPath: "ruleName", + mapper: { + constraints: { + Pattern: new RegExp("^.*$"), + MaxLength: 43, + }, + serializedName: "ruleName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const resourceUri: OperationURLParameter = { + parameterPath: "resourceUri", + mapper: { + serializedName: "resourceUri", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + +export const apiVersion3: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-02-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const startTime: OperationQueryParameter = { + parameterPath: ["options", "startTime"], + mapper: { + serializedName: "startTime", + type: { + name: "String", + }, + }, +}; + export const region: OperationQueryParameter = { parameterPath: "region", mapper: { @@ -248,19 +445,7 @@ export const rollupby: OperationQueryParameter = { }, }; -export const contentType: OperationParameter = { - parameterPath: ["options", "contentType"], - mapper: { - defaultValue: "application/json", - isConstant: true, - serializedName: "Content-Type", - type: { - name: "String", - }, - }, -}; - -export const body: OperationParameter = { +export const body2: OperationParameter = { parameterPath: ["options", "body"], mapper: SubscriptionScopeMetricsRequestBodyParametersMapper, }; @@ -276,22 +461,7 @@ export const resultType1: OperationQueryParameter = { }, }; -export const resourceGroupName: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const apiVersion1: OperationQueryParameter = { +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-04-03", @@ -327,19 +497,7 @@ export const azureMonitorWorkspaceProperties1: OperationParameter = { mapper: AzureMonitorWorkspaceResourceForUpdateMapper, }; -export const nextLink: OperationURLParameter = { - parameterPath: "nextLink", - mapper: { - serializedName: "nextLink", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const apiVersion2: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-10-01", @@ -427,7 +585,7 @@ export const aggregation1: OperationQueryParameter = { }, }; -export const apiVersion3: OperationQueryParameter = { +export const apiVersion6: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2015-04-01", @@ -439,7 +597,7 @@ export const apiVersion3: OperationQueryParameter = { }, }; -export const ruleName: OperationURLParameter = { +export const ruleName1: OperationURLParameter = { parameterPath: "ruleName", mapper: { serializedName: "ruleName", @@ -461,7 +619,7 @@ export const incidentName: OperationURLParameter = { }, }; -export const apiVersion4: OperationQueryParameter = { +export const apiVersion7: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2016-03-01", @@ -504,7 +662,7 @@ export const logProfilesResource: OperationParameter = { mapper: LogProfileResourcePatchMapper, }; -export const apiVersion5: OperationQueryParameter = { +export const apiVersion8: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -532,60 +690,6 @@ export const parameters3: OperationParameter = { mapper: DiagnosticSettingsResourceMapper, }; -export const actionGroup: OperationParameter = { - parameterPath: "actionGroup", - mapper: ActionGroupResourceMapper, -}; - -export const actionGroupName: OperationURLParameter = { - parameterPath: "actionGroupName", - mapper: { - serializedName: "actionGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const apiVersion6: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-01-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const actionGroupPatch: OperationParameter = { - parameterPath: "actionGroupPatch", - mapper: ActionGroupPatchBodyMapper, -}; - -export const notificationRequest: OperationParameter = { - parameterPath: "notificationRequest", - mapper: NotificationRequestBodyMapper, -}; - -export const notificationId: OperationURLParameter = { - parameterPath: "notificationId", - mapper: { - serializedName: "notificationId", - required: true, - type: { - name: "String", - }, - }, -}; - -export const enableRequest: OperationParameter = { - parameterPath: "enableRequest", - mapper: EnableRequestMapper, -}; - export const actionGroup1: OperationParameter = { parameterPath: "actionGroup", mapper: TenantActionGroupResourceMapper, @@ -629,7 +733,7 @@ export const xMsClientTenantId: OperationParameter = { }, }; -export const apiVersion7: OperationQueryParameter = { +export const apiVersion9: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-05-01-preview", @@ -692,7 +796,7 @@ export const sensitivities: OperationQueryParameter = { }, }; -export const apiVersion8: OperationQueryParameter = { +export const apiVersion10: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2019-03-01", @@ -704,7 +808,7 @@ export const apiVersion8: OperationQueryParameter = { }, }; -export const apiVersion9: OperationQueryParameter = { +export const apiVersion11: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2018-03-01", @@ -737,7 +841,7 @@ export const statusName: OperationURLParameter = { }, }; -export const apiVersion10: OperationQueryParameter = { +export const apiVersion12: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-12-01", @@ -759,7 +863,7 @@ export const parameters7: OperationParameter = { mapper: ScheduledQueryRuleResourcePatchMapper, }; -export const apiVersion11: OperationQueryParameter = { +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2018-11-27-preview", @@ -771,7 +875,7 @@ export const apiVersion11: OperationQueryParameter = { }, }; -export const apiVersion12: OperationQueryParameter = { +export const apiVersion14: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-07-01-preview", @@ -863,7 +967,7 @@ export const activityLogAlertName: OperationURLParameter = { }, }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion15: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-10-01", @@ -880,39 +984,6 @@ export const activityLogAlertRulePatch: OperationParameter = { mapper: AlertRulePatchObjectMapper, }; -export const apiVersion14: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-06-01", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const dataCollectionEndpointName: OperationURLParameter = { - parameterPath: "dataCollectionEndpointName", - mapper: { - serializedName: "dataCollectionEndpointName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body1: OperationParameter = { - parameterPath: ["options", "body"], - mapper: DataCollectionEndpointResourceMapper, -}; - -export const body2: OperationParameter = { - parameterPath: ["options", "body"], - mapper: ResourceForUpdateMapper, -}; - export const resourceUri1: OperationURLParameter = { parameterPath: "resourceUri", mapper: { @@ -959,3 +1030,14 @@ export const body4: OperationParameter = { parameterPath: ["options", "body"], mapper: DataCollectionRuleResourceMapper, }; + +export const deleteAssociations: OperationQueryParameter = { + parameterPath: ["options", "deleteAssociations"], + mapper: { + defaultValue: false, + serializedName: "deleteAssociations", + type: { + name: "Boolean", + }, + }, +}; diff --git a/sdk/monitor/arm-monitor/src/monitorClient.ts b/sdk/monitor/arm-monitor/src/monitorClient.ts index 681ee6cfc699..5bebeef421aa 100644 --- a/sdk/monitor/arm-monitor/src/monitorClient.ts +++ b/sdk/monitor/arm-monitor/src/monitorClient.ts @@ -16,6 +16,9 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "./lroImpl"; import { + ActionGroupsImpl, + DataCollectionEndpointsImpl, + ScheduledQueryRuleImpl, MetricNamespacesImpl, MetricDefinitionsImpl, MetricsOperationsImpl, @@ -29,7 +32,6 @@ import { LogProfilesImpl, DiagnosticSettingsImpl, DiagnosticSettingsCategoryImpl, - ActionGroupsImpl, TenantActionGroupsImpl, ActivityLogsImpl, EventCategoriesImpl, @@ -45,11 +47,13 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkScopedResourcesImpl, ActivityLogAlertsImpl, - DataCollectionEndpointsImpl, DataCollectionRuleAssociationsImpl, DataCollectionRulesImpl, } from "./operations"; import { + ActionGroups, + DataCollectionEndpoints, + ScheduledQueryRule, MetricNamespaces, MetricDefinitions, MetricsOperations, @@ -63,7 +67,6 @@ import { LogProfiles, DiagnosticSettings, DiagnosticSettingsCategory, - ActionGroups, TenantActionGroups, ActivityLogs, EventCategories, @@ -79,7 +82,6 @@ import { PrivateEndpointConnections, PrivateLinkScopedResources, ActivityLogAlerts, - DataCollectionEndpoints, DataCollectionRuleAssociations, DataCollectionRules, } from "./operationsInterfaces"; @@ -101,7 +103,7 @@ export class MonitorClient extends coreClient.ServiceClient { /** * Initializes a new instance of the MonitorClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( @@ -193,6 +195,9 @@ export class MonitorClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; + this.actionGroups = new ActionGroupsImpl(this); + this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this); + this.scheduledQueryRule = new ScheduledQueryRuleImpl(this); this.metricNamespaces = new MetricNamespacesImpl(this); this.metricDefinitions = new MetricDefinitionsImpl(this); this.metricsOperations = new MetricsOperationsImpl(this); @@ -206,7 +211,6 @@ export class MonitorClient extends coreClient.ServiceClient { this.logProfiles = new LogProfilesImpl(this); this.diagnosticSettings = new DiagnosticSettingsImpl(this); this.diagnosticSettingsCategory = new DiagnosticSettingsCategoryImpl(this); - this.actionGroups = new ActionGroupsImpl(this); this.tenantActionGroups = new TenantActionGroupsImpl(this); this.activityLogs = new ActivityLogsImpl(this); this.eventCategories = new EventCategoriesImpl(this); @@ -223,7 +227,6 @@ export class MonitorClient extends coreClient.ServiceClient { this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this); this.privateLinkScopedResources = new PrivateLinkScopedResourcesImpl(this); this.activityLogAlerts = new ActivityLogAlertsImpl(this); - this.dataCollectionEndpoints = new DataCollectionEndpointsImpl(this); this.dataCollectionRuleAssociations = new DataCollectionRuleAssociationsImpl(this); this.dataCollectionRules = new DataCollectionRulesImpl(this); @@ -363,6 +366,9 @@ export class MonitorClient extends coreClient.ServiceClient { ); } + actionGroups: ActionGroups; + dataCollectionEndpoints: DataCollectionEndpoints; + scheduledQueryRule: ScheduledQueryRule; metricNamespaces: MetricNamespaces; metricDefinitions: MetricDefinitions; metricsOperations: MetricsOperations; @@ -376,7 +382,6 @@ export class MonitorClient extends coreClient.ServiceClient { logProfiles: LogProfiles; diagnosticSettings: DiagnosticSettings; diagnosticSettingsCategory: DiagnosticSettingsCategory; - actionGroups: ActionGroups; tenantActionGroups: TenantActionGroups; activityLogs: ActivityLogs; eventCategories: EventCategories; @@ -392,7 +397,6 @@ export class MonitorClient extends coreClient.ServiceClient { privateEndpointConnections: PrivateEndpointConnections; privateLinkScopedResources: PrivateLinkScopedResources; activityLogAlerts: ActivityLogAlerts; - dataCollectionEndpoints: DataCollectionEndpoints; dataCollectionRuleAssociations: DataCollectionRuleAssociations; dataCollectionRules: DataCollectionRules; } @@ -417,11 +421,11 @@ const createNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreClie bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated3, + bodyMapper: Mappers.ErrorResponseAutoGenerated4, }, }, requestBody: Parameters.notificationRequest1, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.managementGroupId, @@ -444,10 +448,10 @@ const getTestNotificationsAtTenantActionGroupResourceLevelOperationSpec: coreCli bodyMapper: Mappers.TestNotificationDetailsResponseAutoGenerated, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.notificationId, diff --git a/sdk/monitor/arm-monitor/src/operations/actionGroups.ts b/sdk/monitor/arm-monitor/src/operations/actionGroups.ts index 8f8ece36de0c..8ff27805d56b 100644 --- a/sdk/monitor/arm-monitor/src/operations/actionGroups.ts +++ b/sdk/monitor/arm-monitor/src/operations/actionGroups.ts @@ -7,6 +7,7 @@ */ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; import { ActionGroups } from "../operationsInterfaces"; import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; @@ -19,11 +20,19 @@ import { } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { + NetworkSecurityPerimeterConfiguration, + ActionGroupsListNSPNextOptionalParams, + ActionGroupsListNSPOptionalParams, + ActionGroupsListNSPResponse, ActionGroupResource, ActionGroupsListBySubscriptionIdOptionalParams, ActionGroupsListBySubscriptionIdResponse, ActionGroupsListByResourceGroupOptionalParams, ActionGroupsListByResourceGroupResponse, + ActionGroupsGetNSPOptionalParams, + ActionGroupsGetNSPResponse, + ActionGroupsReconcileNSPOptionalParams, + ActionGroupsReconcileNSPResponse, ActionGroupsCreateOrUpdateOptionalParams, ActionGroupsCreateOrUpdateResponse, ActionGroupsGetOptionalParams, @@ -39,6 +48,7 @@ import { ActionGroupsGetTestNotificationsAtActionGroupResourceLevelResponse, EnableRequest, ActionGroupsEnableReceiverOptionalParams, + ActionGroupsListNSPNextResponse, } from "../models"; /// @@ -54,6 +64,86 @@ export class ActionGroupsImpl implements ActionGroups { this.client = client; } + /** + * Gets a list of NSP configurations for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param options The options parameters. + */ + public listNSP( + resourceGroupName: string, + actionGroupName: string, + options?: ActionGroupsListNSPOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listNSPPagingAll( + resourceGroupName, + actionGroupName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listNSPPagingPage( + resourceGroupName, + actionGroupName, + options, + settings, + ); + }, + }; + } + + private async *listNSPPagingPage( + resourceGroupName: string, + actionGroupName: string, + options?: ActionGroupsListNSPOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ActionGroupsListNSPResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listNSP(resourceGroupName, actionGroupName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNSPNext( + resourceGroupName, + actionGroupName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listNSPPagingAll( + resourceGroupName: string, + actionGroupName: string, + options?: ActionGroupsListNSPOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listNSPPagingPage( + resourceGroupName, + actionGroupName, + options, + )) { + yield* page; + } + } + /** * Get a list of all action groups in a subscription. * @param options The options parameters. @@ -147,6 +237,150 @@ export class ActionGroupsImpl implements ActionGroups { } } + /** + * Gets a list of NSP configurations for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param options The options parameters. + */ + private _listNSP( + resourceGroupName: string, + actionGroupName: string, + options?: ActionGroupsListNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, actionGroupName, options }, + listNSPOperationSpec, + ); + } + + /** + * Gets a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsGetNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + actionGroupName, + networkSecurityPerimeterConfigurationName, + options, + }, + getNSPOperationSpec, + ); + } + + /** + * Reconciles a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSP( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ActionGroupsReconcileNSPResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + actionGroupName, + networkSecurityPerimeterConfigurationName, + options, + }, + spec: reconcileNSPOperationSpec, + }); + const poller = await createHttpPoller< + ActionGroupsReconcileNSPResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reconciles a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSPAndWait( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsReconcileNSPOptionalParams, + ): Promise { + const poller = await this.beginReconcileNSP( + resourceGroupName, + actionGroupName, + networkSecurityPerimeterConfigurationName, + options, + ); + return poller.pollUntilDone(); + } + /** * Create a new action group or update an existing one. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -386,10 +620,103 @@ export class ActionGroupsImpl implements ActionGroups { enableReceiverOperationSpec, ); } + + /** + * ListNSPNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param nextLink The nextLink from the previous successful call to the ListNSP method. + * @param options The options parameters. + */ + private _listNSPNext( + resourceGroupName: string, + actionGroupName: string, + nextLink: string, + options?: ActionGroupsListNSPNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, actionGroupName, nextLink, options }, + listNSPNextOperationSpec, + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.actionGroupName, + Parameters.subscriptionId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ActionGroupsReconcileNSPHeaders, + }, + 201: { + headersMapper: Mappers.ActionGroupsReconcileNSPHeaders, + }, + 202: { + headersMapper: Mappers.ActionGroupsReconcileNSPHeaders, + }, + 204: { + headersMapper: Mappers.ActionGroupsReconcileNSPHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", httpMethod: "PUT", @@ -401,16 +728,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.actionGroup, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -424,15 +751,15 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept], serializer, @@ -444,15 +771,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept], serializer, @@ -465,16 +792,16 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.actionGroupPatch, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -498,16 +825,16 @@ const createNotificationsAtActionGroupResourceLevelOperationSpec: coreClient.Ope bodyMapper: Mappers.TestNotificationDetailsResponse, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.notificationRequest, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -522,15 +849,15 @@ const getTestNotificationsAtActionGroupResourceLevelOperationSpec: coreClient.Op bodyMapper: Mappers.TestNotificationDetailsResponse, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, Parameters.notificationId, ], headerParameters: [Parameters.accept], @@ -544,10 +871,10 @@ const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActionGroupList, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -560,14 +887,14 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActionGroupList, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -581,18 +908,39 @@ const enableReceiverOperationSpec: coreClient.OperationSpec = { isError: true, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.enableRequest, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.actionGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, }; +const listNSPNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.actionGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts b/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts index ee2a158eaafc..51758fc13e2a 100644 --- a/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts +++ b/sdk/monitor/arm-monitor/src/operations/activityLogAlerts.ts @@ -327,15 +327,15 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActivityLogAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, requestBody: Parameters.activityLogAlertRule, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.activityLogAlertName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -350,14 +350,14 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActivityLogAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.activityLogAlertName, ], headerParameters: [Parameters.accept], @@ -370,14 +370,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.activityLogAlertName, ], headerParameters: [Parameters.accept], @@ -391,15 +391,15 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ActivityLogAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, requestBody: Parameters.activityLogAlertRulePatch, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.activityLogAlertName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -414,10 +414,10 @@ const listBySubscriptionIdOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleList, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -430,14 +430,14 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleList, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -450,7 +450,7 @@ const listBySubscriptionIdNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleList, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, urlParameters: [ @@ -469,13 +469,13 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleList, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated4, + bodyMapper: Mappers.ErrorResponseAutoGenerated5, }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/activityLogs.ts b/sdk/monitor/arm-monitor/src/operations/activityLogs.ts index 5f6d2c00b5ce..65683858686a 100644 --- a/sdk/monitor/arm-monitor/src/operations/activityLogs.ts +++ b/sdk/monitor/arm-monitor/src/operations/activityLogs.ts @@ -157,11 +157,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventDataCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, queryParameters: [ - Parameters.apiVersion3, + Parameters.apiVersion6, Parameters.filter1, Parameters.select, ], @@ -177,7 +177,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventDataCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, urlParameters: [ diff --git a/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts b/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts index 74b78eba0a91..5cf859623811 100644 --- a/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts +++ b/sdk/monitor/arm-monitor/src/operations/alertRuleIncidents.ts @@ -142,15 +142,15 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Incident, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, Parameters.incidentName, ], headerParameters: [Parameters.accept], @@ -164,12 +164,12 @@ const listByAlertRuleOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.IncidentListResult, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/alertRules.ts b/sdk/monitor/arm-monitor/src/operations/alertRules.ts index 89264c1f0901..f1c554f88c03 100644 --- a/sdk/monitor/arm-monitor/src/operations/alertRules.ts +++ b/sdk/monitor/arm-monitor/src/operations/alertRules.ts @@ -249,16 +249,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.parameters1, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -271,15 +271,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -292,15 +292,15 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -316,16 +316,16 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.alertRulesResource, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -339,14 +339,14 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -359,10 +359,10 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AlertRuleResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts b/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts index 254de50b72ec..7952f3f4d555 100644 --- a/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts +++ b/sdk/monitor/arm-monitor/src/operations/autoscaleSettings.ts @@ -320,11 +320,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AutoscaleErrorResponse, }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -344,11 +344,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.autoscaleSettingName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -365,11 +365,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AutoscaleErrorResponse, }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.autoscaleSettingName, ], headerParameters: [Parameters.accept], @@ -386,11 +386,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AutoscaleErrorResponse, }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.autoscaleSettingName, ], headerParameters: [Parameters.accept], @@ -408,11 +408,11 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.autoscaleSettingResource, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.autoscaleSettingName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -430,7 +430,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AutoscaleErrorResponse, }, }, - queryParameters: [Parameters.apiVersion2], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -448,8 +448,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/azureMonitorWorkspaces.ts b/sdk/monitor/arm-monitor/src/operations/azureMonitorWorkspaces.ts index aee8e95909a3..a5738d48f9c5 100644 --- a/sdk/monitor/arm-monitor/src/operations/azureMonitorWorkspaces.ts +++ b/sdk/monitor/arm-monitor/src/operations/azureMonitorWorkspaces.ts @@ -400,14 +400,14 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -420,10 +420,10 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -436,14 +436,14 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.azureMonitorWorkspaceName, ], headerParameters: [Parameters.accept], @@ -460,15 +460,15 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureMonitorWorkspaceProperties, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.azureMonitorWorkspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -483,15 +483,15 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResource, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureMonitorWorkspaceProperties1, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.azureMonitorWorkspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -515,14 +515,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { headersMapper: Mappers.AzureMonitorWorkspacesDeleteHeaders, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.azureMonitorWorkspaceName, ], headerParameters: [Parameters.accept], @@ -536,13 +536,13 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], @@ -556,7 +556,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureMonitorWorkspaceResourceListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/monitor/arm-monitor/src/operations/baselines.ts b/sdk/monitor/arm-monitor/src/operations/baselines.ts index aff88fee9643..9a8fd744889d 100644 --- a/sdk/monitor/arm-monitor/src/operations/baselines.ts +++ b/sdk/monitor/arm-monitor/src/operations/baselines.ts @@ -102,7 +102,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricBaselinesResponse, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, queryParameters: [ @@ -114,7 +114,7 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resultType1, Parameters.interval2, Parameters.sensitivities, - Parameters.apiVersion8, + Parameters.apiVersion10, ], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts index 96c84d207298..7fce46a3214d 100644 --- a/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionEndpoints.ts @@ -14,6 +14,16 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { MonitorClient } from "../monitorClient"; import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkSecurityPerimeterConfiguration, + DataCollectionEndpointsListNSPNextOptionalParams, + DataCollectionEndpointsListNSPOptionalParams, + DataCollectionEndpointsListNSPResponse, DataCollectionEndpointResource, DataCollectionEndpointsListByResourceGroupNextOptionalParams, DataCollectionEndpointsListByResourceGroupOptionalParams, @@ -21,6 +31,10 @@ import { DataCollectionEndpointsListBySubscriptionNextOptionalParams, DataCollectionEndpointsListBySubscriptionOptionalParams, DataCollectionEndpointsListBySubscriptionResponse, + DataCollectionEndpointsGetNSPOptionalParams, + DataCollectionEndpointsGetNSPResponse, + DataCollectionEndpointsReconcileNSPOptionalParams, + DataCollectionEndpointsReconcileNSPResponse, DataCollectionEndpointsGetOptionalParams, DataCollectionEndpointsGetResponse, DataCollectionEndpointsCreateOptionalParams, @@ -28,6 +42,7 @@ import { DataCollectionEndpointsUpdateOptionalParams, DataCollectionEndpointsUpdateResponse, DataCollectionEndpointsDeleteOptionalParams, + DataCollectionEndpointsListNSPNextResponse, DataCollectionEndpointsListByResourceGroupNextResponse, DataCollectionEndpointsListBySubscriptionNextResponse, } from "../models"; @@ -45,6 +60,91 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints { this.client = client; } + /** + * Gets a list of NSP configurations for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The options parameters. + */ + public listNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + options?: DataCollectionEndpointsListNSPOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listNSPPagingAll( + resourceGroupName, + dataCollectionEndpointName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listNSPPagingPage( + resourceGroupName, + dataCollectionEndpointName, + options, + settings, + ); + }, + }; + } + + private async *listNSPPagingPage( + resourceGroupName: string, + dataCollectionEndpointName: string, + options?: DataCollectionEndpointsListNSPOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: DataCollectionEndpointsListNSPResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listNSP( + resourceGroupName, + dataCollectionEndpointName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNSPNext( + resourceGroupName, + dataCollectionEndpointName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listNSPPagingAll( + resourceGroupName: string, + dataCollectionEndpointName: string, + options?: DataCollectionEndpointsListNSPOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listNSPPagingPage( + resourceGroupName, + dataCollectionEndpointName, + options, + )) { + yield* page; + } + } + /** * Lists all data collection endpoints in the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -168,6 +268,154 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints { } } + /** + * Gets a list of NSP configurations for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The options parameters. + */ + private _listNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + options?: DataCollectionEndpointsListNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataCollectionEndpointName, options }, + listNSPOperationSpec, + ); + } + + /** + * Gets the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsGetNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + dataCollectionEndpointName, + networkSecurityPerimeterConfigurationName, + options, + }, + getNSPOperationSpec, + ); + } + + /** + * Reconciles the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DataCollectionEndpointsReconcileNSPResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + dataCollectionEndpointName, + networkSecurityPerimeterConfigurationName, + options, + }, + spec: reconcileNSPOperationSpec, + }); + const poller = await createHttpPoller< + DataCollectionEndpointsReconcileNSPResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reconciles the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSPAndWait( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsReconcileNSPOptionalParams, + ): Promise { + const poller = await this.beginReconcileNSP( + resourceGroupName, + dataCollectionEndpointName, + networkSecurityPerimeterConfigurationName, + options, + ); + return poller.pollUntilDone(); + } + /** * Lists all data collection endpoints in the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -268,6 +516,26 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints { ); } + /** + * ListNSPNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param nextLink The nextLink from the previous successful call to the ListNSP method. + * @param options The options parameters. + */ + private _listNSPNext( + resourceGroupName: string, + dataCollectionEndpointName: string, + nextLink: string, + options?: DataCollectionEndpointsListNSPNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, dataCollectionEndpointName, nextLink, options }, + listNSPNextOperationSpec, + ); + } + /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -303,6 +571,80 @@ export class DataCollectionEndpointsImpl implements DataCollectionEndpoints { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const listNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.dataCollectionEndpointName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + Parameters.dataCollectionEndpointName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints/{dataCollectionEndpointName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.DataCollectionEndpointsReconcileNSPHeaders, + }, + 201: { + headersMapper: Mappers.DataCollectionEndpointsReconcileNSPHeaders, + }, + 202: { + headersMapper: Mappers.DataCollectionEndpointsReconcileNSPHeaders, + }, + 204: { + headersMapper: Mappers.DataCollectionEndpointsReconcileNSPHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + Parameters.dataCollectionEndpointName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionEndpoints", httpMethod: "GET", @@ -314,11 +656,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -334,7 +676,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -350,12 +692,12 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.dataCollectionEndpointName, + Parameters.subscriptionId, + Parameters.dataCollectionEndpointName1, ], headerParameters: [Parameters.accept], serializer, @@ -374,13 +716,13 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - requestBody: Parameters.body1, - queryParameters: [Parameters.apiVersion14], + requestBody: Parameters.body, + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.dataCollectionEndpointName, + Parameters.subscriptionId, + Parameters.dataCollectionEndpointName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -397,13 +739,13 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion14], + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.dataCollectionEndpointName, + Parameters.subscriptionId, + Parameters.dataCollectionEndpointName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -419,11 +761,32 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, + Parameters.resourceGroupName, Parameters.subscriptionId, + Parameters.dataCollectionEndpointName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNSPNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, Parameters.dataCollectionEndpointName, ], headerParameters: [Parameters.accept], @@ -442,8 +805,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts index 84ec4467b7b9..b1346ee799e3 100644 --- a/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionRuleAssociations.ts @@ -456,7 +456,7 @@ const listByResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.resourceUri1], headerParameters: [Parameters.accept], serializer, @@ -473,11 +473,11 @@ const listByRuleOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.dataCollectionRuleName, ], headerParameters: [Parameters.accept], @@ -495,12 +495,12 @@ const listByDataCollectionEndpointOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.dataCollectionEndpointName, + Parameters.subscriptionId, + Parameters.dataCollectionEndpointName1, ], headerParameters: [Parameters.accept], serializer, @@ -516,7 +516,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.resourceUri1, @@ -540,7 +540,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.resourceUri1, @@ -560,7 +560,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, Parameters.resourceUri1, @@ -603,8 +603,8 @@ const listByRuleNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.dataCollectionRuleName, ], @@ -626,10 +626,10 @@ const listByDataCollectionEndpointNextOperationSpec: coreClient.OperationSpec = }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, - Parameters.dataCollectionEndpointName, + Parameters.dataCollectionEndpointName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts b/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts index f594a5dc2bfd..818943efc52f 100644 --- a/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts +++ b/sdk/monitor/arm-monitor/src/operations/dataCollectionRules.ts @@ -310,11 +310,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -330,7 +330,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -346,11 +346,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.dataCollectionRuleName, ], headerParameters: [Parameters.accept], @@ -371,11 +371,11 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.dataCollectionRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -393,12 +393,12 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion14], + requestBody: Parameters.body1, + queryParameters: [Parameters.apiVersion2], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.dataCollectionRuleName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -415,11 +415,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseCommonV2, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion2, Parameters.deleteAssociations], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.dataCollectionRuleName, ], headerParameters: [Parameters.accept], @@ -438,8 +438,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettings.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettings.ts index 90ec3f4b7f37..7d1640d3856c 100644 --- a/sdk/monitor/arm-monitor/src/operations/diagnosticSettings.ts +++ b/sdk/monitor/arm-monitor/src/operations/diagnosticSettings.ts @@ -160,10 +160,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiagnosticSettingsResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name], headerParameters: [Parameters.accept], serializer, @@ -176,11 +176,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiagnosticSettingsResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.parameters3, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -193,10 +193,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name], headerParameters: [Parameters.accept], serializer, @@ -209,10 +209,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiagnosticSettingsResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategory.ts b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategory.ts index adddef3b8eb6..2103520d7d9a 100644 --- a/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategory.ts +++ b/sdk/monitor/arm-monitor/src/operations/diagnosticSettingsCategory.ts @@ -123,10 +123,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiagnosticSettingsCategoryResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri, Parameters.name], headerParameters: [Parameters.accept], serializer, @@ -139,10 +139,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DiagnosticSettingsCategoryResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/eventCategories.ts b/sdk/monitor/arm-monitor/src/operations/eventCategories.ts index 2a4323ce0002..155eb74d9725 100644 --- a/sdk/monitor/arm-monitor/src/operations/eventCategories.ts +++ b/sdk/monitor/arm-monitor/src/operations/eventCategories.ts @@ -95,10 +95,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventCategoryCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/index.ts b/sdk/monitor/arm-monitor/src/operations/index.ts index 665187a44183..67520fee2fd6 100644 --- a/sdk/monitor/arm-monitor/src/operations/index.ts +++ b/sdk/monitor/arm-monitor/src/operations/index.ts @@ -6,6 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./actionGroups"; +export * from "./dataCollectionEndpoints"; +export * from "./scheduledQueryRule"; export * from "./metricNamespaces"; export * from "./metricDefinitions"; export * from "./metricsOperations"; @@ -19,7 +22,6 @@ export * from "./alertRules"; export * from "./logProfiles"; export * from "./diagnosticSettings"; export * from "./diagnosticSettingsCategory"; -export * from "./actionGroups"; export * from "./tenantActionGroups"; export * from "./activityLogs"; export * from "./eventCategories"; @@ -35,6 +37,5 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./privateLinkScopedResources"; export * from "./activityLogAlerts"; -export * from "./dataCollectionEndpoints"; export * from "./dataCollectionRuleAssociations"; export * from "./dataCollectionRules"; diff --git a/sdk/monitor/arm-monitor/src/operations/logProfiles.ts b/sdk/monitor/arm-monitor/src/operations/logProfiles.ts index 74777cfb21a4..cb47f88d69c2 100644 --- a/sdk/monitor/arm-monitor/src/operations/logProfiles.ts +++ b/sdk/monitor/arm-monitor/src/operations/logProfiles.ts @@ -161,7 +161,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}", httpMethod: "DELETE", responses: { 200: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -177,10 +177,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LogProfileResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -198,7 +198,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters2, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -216,11 +216,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LogProfileResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.logProfilesResource, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -238,7 +238,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.LogProfileCollection, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts b/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts index fe0878f24f1b..06c4334b2737 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricAlerts.ts @@ -245,10 +245,10 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -261,14 +261,14 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertResourceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -281,15 +281,15 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -302,16 +302,16 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.parameters4, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -325,16 +325,16 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.parameters5, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -347,15 +347,15 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts b/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts index 01a1089e6f77..a6f40633f2e3 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricAlertsStatus.ts @@ -77,15 +77,15 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertStatusCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -98,15 +98,15 @@ const listByNameOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricAlertStatusCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion11], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, Parameters.statusName, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts b/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts index a5f6995b1c9a..875f4c0eaa22 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricDefinitions.ts @@ -176,7 +176,7 @@ const listAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion3, Parameters.region, Parameters.metricnamespace, ], @@ -192,10 +192,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricDefinitionCollection, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion, Parameters.metricnamespace], + queryParameters: [Parameters.apiVersion3, Parameters.metricnamespace], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts b/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts index df22bdf8c4a7..19cb0a1873df 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricNamespaces.ts @@ -102,10 +102,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.MetricNamespaceCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion, Parameters.startTime], + queryParameters: [Parameters.apiVersion3, Parameters.startTime], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/metricsOperations.ts b/sdk/monitor/arm-monitor/src/operations/metricsOperations.ts index df2844120c58..3f26bf4b3b28 100644 --- a/sdk/monitor/arm-monitor/src/operations/metricsOperations.ts +++ b/sdk/monitor/arm-monitor/src/operations/metricsOperations.ts @@ -93,7 +93,7 @@ const listAtSubscriptionScopeOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion3, Parameters.region, Parameters.metricnamespace, Parameters.timespan, @@ -123,9 +123,9 @@ const listAtSubscriptionScopePostOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorContract, }, }, - requestBody: Parameters.body, + requestBody: Parameters.body2, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion3, Parameters.region, Parameters.metricnamespace, Parameters.timespan, @@ -153,11 +153,11 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.Response, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion3, Parameters.metricnamespace, Parameters.timespan, Parameters.interval, diff --git a/sdk/monitor/arm-monitor/src/operations/monitorOperations.ts b/sdk/monitor/arm-monitor/src/operations/monitorOperations.ts index d98f9321e0a2..df8c2b7b3511 100644 --- a/sdk/monitor/arm-monitor/src/operations/monitorOperations.ts +++ b/sdk/monitor/arm-monitor/src/operations/monitorOperations.ts @@ -124,10 +124,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion1], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, @@ -140,7 +140,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated2, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [Parameters.$host, Parameters.nextLink], diff --git a/sdk/monitor/arm-monitor/src/operations/operations.ts b/sdk/monitor/arm-monitor/src/operations/operations.ts index 2ab5dddf3e31..aad1ce0b4e81 100644 --- a/sdk/monitor/arm-monitor/src/operations/operations.ts +++ b/sdk/monitor/arm-monitor/src/operations/operations.ts @@ -49,7 +49,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationListResultAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/predictiveMetric.ts b/sdk/monitor/arm-monitor/src/operations/predictiveMetric.ts index 9b2fc4e69ae9..05df4ffcfc00 100644 --- a/sdk/monitor/arm-monitor/src/operations/predictiveMetric.ts +++ b/sdk/monitor/arm-monitor/src/operations/predictiveMetric.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [ - Parameters.apiVersion2, + Parameters.apiVersion5, Parameters.timespan1, Parameters.interval1, Parameters.metricNamespace, @@ -91,8 +91,8 @@ const getOperationSpec: coreClient.OperationSpec = { ], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.autoscaleSettingName, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts b/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts index 5ec7449545b9..f3365225ceb6 100644 --- a/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts +++ b/sdk/monitor/arm-monitor/src/operations/privateEndpointConnections.ts @@ -288,11 +288,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, Parameters.privateEndpointConnectionName, ], @@ -320,11 +320,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters8, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, Parameters.privateEndpointConnectionName, ], @@ -344,11 +344,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, Parameters.privateEndpointConnectionName, ], @@ -366,11 +366,11 @@ const listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts index ae2f73db8187..3adde985c92d 100644 --- a/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkResources.ts @@ -80,11 +80,11 @@ const listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept], @@ -101,11 +101,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, Parameters.groupName, ], diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts index bc9f144b6e91..2b644ffe5768 100644 --- a/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopeOperationStatus.ts @@ -61,11 +61,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.asyncOperationId, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts index 7e82ee6fb394..840409cbdf9a 100644 --- a/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopedResources.ts @@ -385,11 +385,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.name, Parameters.scopeName, ], @@ -417,11 +417,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters9, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.name, Parameters.scopeName, ], @@ -441,11 +441,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.name, Parameters.scopeName, ], @@ -463,11 +463,11 @@ const listByPrivateLinkScopeOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept], @@ -486,8 +486,8 @@ const listByPrivateLinkScopeNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, Parameters.scopeName, ], diff --git a/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts b/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts index 4d90d23999f9..d9056b3069c5 100644 --- a/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts +++ b/sdk/monitor/arm-monitor/src/operations/privateLinkScopes.ts @@ -389,7 +389,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -405,11 +405,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -426,11 +426,11 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept], @@ -447,11 +447,11 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DefaultErrorResponse, }, }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept], @@ -472,11 +472,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureMonitorPrivateLinkScopePayload, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -495,11 +495,11 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.privateLinkScopeTags, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.scopeName, ], headerParameters: [Parameters.accept, Parameters.contentType], @@ -538,8 +538,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/scheduledQueryRule.ts b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRule.ts new file mode 100644 index 000000000000..970955ad47d9 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRule.ts @@ -0,0 +1,383 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ScheduledQueryRule } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { MonitorClient } from "../monitorClient"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + NetworkSecurityPerimeterConfiguration, + ScheduledQueryRuleListNSPNextOptionalParams, + ScheduledQueryRuleListNSPOptionalParams, + ScheduledQueryRuleListNSPResponse, + ScheduledQueryRuleGetNSPOptionalParams, + ScheduledQueryRuleGetNSPResponse, + ScheduledQueryRuleReconcileNSPOptionalParams, + ScheduledQueryRuleReconcileNSPResponse, + ScheduledQueryRuleListNSPNextResponse, +} from "../models"; + +/// +/** Class containing ScheduledQueryRule operations. */ +export class ScheduledQueryRuleImpl implements ScheduledQueryRule { + private readonly client: MonitorClient; + + /** + * Initialize a new instance of the class ScheduledQueryRule class. + * @param client Reference to the service client + */ + constructor(client: MonitorClient) { + this.client = client; + } + + /** + * Gets a list of NSP configurations for specified scheduled query rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + public listNSP( + resourceGroupName: string, + ruleName: string, + options?: ScheduledQueryRuleListNSPOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listNSPPagingAll(resourceGroupName, ruleName, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listNSPPagingPage( + resourceGroupName, + ruleName, + options, + settings, + ); + }, + }; + } + + private async *listNSPPagingPage( + resourceGroupName: string, + ruleName: string, + options?: ScheduledQueryRuleListNSPOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: ScheduledQueryRuleListNSPResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listNSP(resourceGroupName, ruleName, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNSPNext( + resourceGroupName, + ruleName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listNSPPagingAll( + resourceGroupName: string, + ruleName: string, + options?: ScheduledQueryRuleListNSPOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listNSPPagingPage( + resourceGroupName, + ruleName, + options, + )) { + yield* page; + } + } + + /** + * Gets a list of NSP configurations for specified scheduled query rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + private _listNSP( + resourceGroupName: string, + ruleName: string, + options?: ScheduledQueryRuleListNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, ruleName, options }, + listNSPOperationSpec, + ); + } + + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleGetNSPOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + ruleName, + networkSecurityPerimeterConfigurationName, + options, + }, + getNSPOperationSpec, + ); + } + + /** + * Reconcile network security perimeter configuration for ScheduledQueryRule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSP( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ScheduledQueryRuleReconcileNSPResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + ruleName, + networkSecurityPerimeterConfigurationName, + options, + }, + spec: reconcileNSPOperationSpec, + }); + const poller = await createHttpPoller< + ScheduledQueryRuleReconcileNSPResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", + }); + await poller.poll(); + return poller; + } + + /** + * Reconcile network security perimeter configuration for ScheduledQueryRule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + async beginReconcileNSPAndWait( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleReconcileNSPOptionalParams, + ): Promise { + const poller = await this.beginReconcileNSP( + resourceGroupName, + ruleName, + networkSecurityPerimeterConfigurationName, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNSPNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param nextLink The nextLink from the previous successful call to the ListNSP method. + * @param options The options parameters. + */ + private _listNSPNext( + resourceGroupName: string, + ruleName: string, + nextLink: string, + options?: ScheduledQueryRuleListNSPNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, ruleName, nextLink, options }, + listNSPNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}/networkSecurityPerimeterConfigurations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.ruleName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfiguration, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + Parameters.ruleName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const reconcileNSPOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile", + httpMethod: "POST", + responses: { + 200: { + headersMapper: Mappers.ScheduledQueryRuleReconcileNSPHeaders, + }, + 201: { + headersMapper: Mappers.ScheduledQueryRuleReconcileNSPHeaders, + }, + 202: { + headersMapper: Mappers.ScheduledQueryRuleReconcileNSPHeaders, + }, + 204: { + headersMapper: Mappers.ScheduledQueryRuleReconcileNSPHeaders, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.networkSecurityPerimeterConfigurationName, + Parameters.ruleName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNSPNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.NetworkSecurityPerimeterConfigurationListResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.ruleName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts index 57c3506a5bcc..45b5a4cfd741 100644 --- a/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts +++ b/sdk/monitor/arm-monitor/src/operations/scheduledQueryRules.ts @@ -315,7 +315,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorContract, }, }, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -331,11 +331,11 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorContract, }, }, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], serializer, @@ -351,12 +351,12 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorContract, }, }, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -376,12 +376,12 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -399,12 +399,12 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -420,12 +420,12 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorContract, }, }, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion12], urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.ruleName, + Parameters.subscriptionId, + Parameters.ruleName1, ], headerParameters: [Parameters.accept], serializer, @@ -462,8 +462,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { }, urlParameters: [ Parameters.$host, - Parameters.subscriptionId, Parameters.resourceGroupName, + Parameters.subscriptionId, Parameters.nextLink, ], headerParameters: [Parameters.accept], diff --git a/sdk/monitor/arm-monitor/src/operations/tenantActionGroups.ts b/sdk/monitor/arm-monitor/src/operations/tenantActionGroups.ts index 86e42571988f..da23c4bb9a69 100644 --- a/sdk/monitor/arm-monitor/src/operations/tenantActionGroups.ts +++ b/sdk/monitor/arm-monitor/src/operations/tenantActionGroups.ts @@ -229,11 +229,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TenantActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.actionGroup1, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.managementGroupId, @@ -255,10 +255,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TenantActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.managementGroupId, @@ -274,10 +274,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.managementGroupId, @@ -294,11 +294,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TenantActionGroupResource, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, requestBody: Parameters.tenantActionGroupPatch, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.managementGroupId, @@ -320,10 +320,10 @@ const listByManagementGroupIdOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.TenantActionGroupList, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion9], urlParameters: [Parameters.$host, Parameters.managementGroupId], headerParameters: [Parameters.accept, Parameters.xMsClientTenantId], serializer, diff --git a/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts b/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts index 8cc084daf88e..a7cd17c9daa7 100644 --- a/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts +++ b/sdk/monitor/arm-monitor/src/operations/tenantActivityLogs.ts @@ -130,12 +130,12 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventDataCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, queryParameters: [ Parameters.filter, - Parameters.apiVersion3, + Parameters.apiVersion6, Parameters.select, ], urlParameters: [Parameters.$host], @@ -150,7 +150,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.EventDataCollection, }, default: { - bodyMapper: Mappers.ErrorResponse, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, urlParameters: [Parameters.$host, Parameters.nextLink], diff --git a/sdk/monitor/arm-monitor/src/operations/vMInsights.ts b/sdk/monitor/arm-monitor/src/operations/vMInsights.ts index 8568778b5a17..081c3140aee9 100644 --- a/sdk/monitor/arm-monitor/src/operations/vMInsights.ts +++ b/sdk/monitor/arm-monitor/src/operations/vMInsights.ts @@ -58,7 +58,7 @@ const getOnboardingStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ResponseWithError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.resourceUri], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/monitor/arm-monitor/src/operationsInterfaces/actionGroups.ts b/sdk/monitor/arm-monitor/src/operationsInterfaces/actionGroups.ts index 1ac7d3b4d665..f3c35fc7e0ec 100644 --- a/sdk/monitor/arm-monitor/src/operationsInterfaces/actionGroups.ts +++ b/sdk/monitor/arm-monitor/src/operationsInterfaces/actionGroups.ts @@ -9,9 +9,15 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + NetworkSecurityPerimeterConfiguration, + ActionGroupsListNSPOptionalParams, ActionGroupResource, ActionGroupsListBySubscriptionIdOptionalParams, ActionGroupsListByResourceGroupOptionalParams, + ActionGroupsGetNSPOptionalParams, + ActionGroupsGetNSPResponse, + ActionGroupsReconcileNSPOptionalParams, + ActionGroupsReconcileNSPResponse, ActionGroupsCreateOrUpdateOptionalParams, ActionGroupsCreateOrUpdateResponse, ActionGroupsGetOptionalParams, @@ -32,6 +38,17 @@ import { /// /** Interface representing a ActionGroups. */ export interface ActionGroups { + /** + * Gets a list of NSP configurations for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param options The options parameters. + */ + listNSP( + resourceGroupName: string, + actionGroupName: string, + options?: ActionGroupsListNSPOptionalParams, + ): PagedAsyncIterableIterator; /** * Get a list of all action groups in a subscription. * @param options The options parameters. @@ -48,6 +65,53 @@ export interface ActionGroups { resourceGroupName: string, options?: ActionGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; + /** + * Gets a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsGetNSPOptionalParams, + ): Promise; + /** + * Reconciles a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSP( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ActionGroupsReconcileNSPResponse + > + >; + /** + * Reconciles a specified NSP configuration for specified action group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param actionGroupName The name of the action group. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSPAndWait( + resourceGroupName: string, + actionGroupName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ActionGroupsReconcileNSPOptionalParams, + ): Promise; /** * Create a new action group or update an existing one. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/monitor/arm-monitor/src/operationsInterfaces/dataCollectionEndpoints.ts b/sdk/monitor/arm-monitor/src/operationsInterfaces/dataCollectionEndpoints.ts index c6b374eb7605..fd9f64137efa 100644 --- a/sdk/monitor/arm-monitor/src/operationsInterfaces/dataCollectionEndpoints.ts +++ b/sdk/monitor/arm-monitor/src/operationsInterfaces/dataCollectionEndpoints.ts @@ -7,10 +7,17 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { + NetworkSecurityPerimeterConfiguration, + DataCollectionEndpointsListNSPOptionalParams, DataCollectionEndpointResource, DataCollectionEndpointsListByResourceGroupOptionalParams, DataCollectionEndpointsListBySubscriptionOptionalParams, + DataCollectionEndpointsGetNSPOptionalParams, + DataCollectionEndpointsGetNSPResponse, + DataCollectionEndpointsReconcileNSPOptionalParams, + DataCollectionEndpointsReconcileNSPResponse, DataCollectionEndpointsGetOptionalParams, DataCollectionEndpointsGetResponse, DataCollectionEndpointsCreateOptionalParams, @@ -23,6 +30,18 @@ import { /// /** Interface representing a DataCollectionEndpoints. */ export interface DataCollectionEndpoints { + /** + * Gets a list of NSP configurations for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param options The options parameters. + */ + listNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + options?: DataCollectionEndpointsListNSPOptionalParams, + ): PagedAsyncIterableIterator; /** * Lists all data collection endpoints in the specified resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -39,6 +58,56 @@ export interface DataCollectionEndpoints { listBySubscription( options?: DataCollectionEndpointsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; + /** + * Gets the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsGetNSPOptionalParams, + ): Promise; + /** + * Reconciles the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSP( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DataCollectionEndpointsReconcileNSPResponse + > + >; + /** + * Reconciles the specified NSP configuration for the specified data collection endpoint. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param dataCollectionEndpointName The name of the data collection endpoint. The name is case + * insensitive. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSPAndWait( + resourceGroupName: string, + dataCollectionEndpointName: string, + networkSecurityPerimeterConfigurationName: string, + options?: DataCollectionEndpointsReconcileNSPOptionalParams, + ): Promise; /** * Returns the specified data collection endpoint. * @param resourceGroupName The name of the resource group. The name is case insensitive. diff --git a/sdk/monitor/arm-monitor/src/operationsInterfaces/index.ts b/sdk/monitor/arm-monitor/src/operationsInterfaces/index.ts index 665187a44183..67520fee2fd6 100644 --- a/sdk/monitor/arm-monitor/src/operationsInterfaces/index.ts +++ b/sdk/monitor/arm-monitor/src/operationsInterfaces/index.ts @@ -6,6 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +export * from "./actionGroups"; +export * from "./dataCollectionEndpoints"; +export * from "./scheduledQueryRule"; export * from "./metricNamespaces"; export * from "./metricDefinitions"; export * from "./metricsOperations"; @@ -19,7 +22,6 @@ export * from "./alertRules"; export * from "./logProfiles"; export * from "./diagnosticSettings"; export * from "./diagnosticSettingsCategory"; -export * from "./actionGroups"; export * from "./tenantActionGroups"; export * from "./activityLogs"; export * from "./eventCategories"; @@ -35,6 +37,5 @@ export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; export * from "./privateLinkScopedResources"; export * from "./activityLogAlerts"; -export * from "./dataCollectionEndpoints"; export * from "./dataCollectionRuleAssociations"; export * from "./dataCollectionRules"; diff --git a/sdk/monitor/arm-monitor/src/operationsInterfaces/scheduledQueryRule.ts b/sdk/monitor/arm-monitor/src/operationsInterfaces/scheduledQueryRule.ts new file mode 100644 index 000000000000..effbb21c8857 --- /dev/null +++ b/sdk/monitor/arm-monitor/src/operationsInterfaces/scheduledQueryRule.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + NetworkSecurityPerimeterConfiguration, + ScheduledQueryRuleListNSPOptionalParams, + ScheduledQueryRuleGetNSPOptionalParams, + ScheduledQueryRuleGetNSPResponse, + ScheduledQueryRuleReconcileNSPOptionalParams, + ScheduledQueryRuleReconcileNSPResponse, +} from "../models"; + +/// +/** Interface representing a ScheduledQueryRule. */ +export interface ScheduledQueryRule { + /** + * Gets a list of NSP configurations for specified scheduled query rule. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param options The options parameters. + */ + listNSP( + resourceGroupName: string, + ruleName: string, + options?: ScheduledQueryRuleListNSPOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Gets a network security perimeter configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + getNSP( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleGetNSPOptionalParams, + ): Promise; + /** + * Reconcile network security perimeter configuration for ScheduledQueryRule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSP( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleReconcileNSPOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + ScheduledQueryRuleReconcileNSPResponse + > + >; + /** + * Reconcile network security perimeter configuration for ScheduledQueryRule resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ruleName The name of the rule. + * @param networkSecurityPerimeterConfigurationName The name for a network security perimeter + * configuration + * @param options The options parameters. + */ + beginReconcileNSPAndWait( + resourceGroupName: string, + ruleName: string, + networkSecurityPerimeterConfigurationName: string, + options?: ScheduledQueryRuleReconcileNSPOptionalParams, + ): Promise; +} diff --git a/sdk/monitor/arm-monitor/test/monitor_examples.ts b/sdk/monitor/arm-monitor/test/monitor_examples.ts deleted file mode 100644 index 1bbb1890ca74..000000000000 --- a/sdk/monitor/arm-monitor/test/monitor_examples.ts +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - env, - Recorder, - RecorderStartOptions, - delay, - isPlaybackMode, -} from "@azure-tools/test-recorder"; -import { createTestCredential } from "@azure-tools/test-credential"; -import { assert } from "chai"; -import { Context } from "mocha"; -import { MonitorClient } from "../src/monitorClient"; -import { LogicManagementClient } from "@azure/arm-logic"; -import { StorageManagementClient } from "@azure/arm-storage"; -import { EventHubManagementClient } from "@azure/arm-eventhub"; -import { OperationalInsightsManagementClient } from "@azure/arm-operationalinsights"; - -const replaceableVariables: Record = { - SUBSCRIPTION_ID: "azure_subscription_id" -}; - -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback: replaceableVariables, - removeCentralSanitizers: [ - "AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section - "AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section - ], -}; - -export const testPollingOptions = { - updateIntervalInMs: isPlaybackMode() ? 0 : undefined, -}; - -describe("Monitor test", () => { - let recorder: Recorder; - let subscriptionId: string; - let client: MonitorClient; - let location: string; - let resourceGroup: string; - let workflowName: string; - let storageAccountName: string; - let namespaceName: string; - let authorizationRuleName: string; - let eventhubName: string; - let workspaceName: string; - let logProfileName: string; - let diagnosticName: string; - let logic_client: LogicManagementClient; - let storage_client: StorageManagementClient; - let eventhub_client: EventHubManagementClient; - let op_client: OperationalInsightsManagementClient; - let workflowsId: string; - let storageId: string; - let authorizationId: string; - let workspaceId: string; - let azureMonitorWorkspaceName: string; - - beforeEach(async function (this: Context) { - recorder = new Recorder(this.currentTest); - await recorder.start(recorderOptions); - subscriptionId = env.SUBSCRIPTION_ID || ''; - // This is an example of how the environment variables are used - const credential = createTestCredential(); - client = new MonitorClient(credential, subscriptionId, recorder.configureClientOptions({})); - logic_client = new LogicManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - storage_client = new StorageManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - eventhub_client = new EventHubManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - op_client = new OperationalInsightsManagementClient(credential, subscriptionId, recorder.configureClientOptions({})); - location = "eastus"; - resourceGroup = "myjstest"; - workflowName = "myworkflowxxx"; - storageAccountName = "mystorageaccountyyy1"; - namespaceName = "mynamespacexxx"; - eventhubName = "myeventhubxxx"; - workspaceName = "myworkspacexxx"; - authorizationRuleName = "myauthorizationRulexxx"; - logProfileName = "mylogProfilexxx"; - diagnosticName = "mydiagnosticxxxx"; - azureMonitorWorkspaceName = "myAzureMonitorWorkspace" - }); - - afterEach(async function () { - await recorder.stop(); - }); - - it("create parameters for diagnosticSettings", async function () { - //workflows.createOrUpdate - const res = await logic_client.workflows.createOrUpdate(resourceGroup, workflowName, { - location: location, - definition: { - "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "triggers": {}, - "actions": {}, - "outputs": {} - } - }); - workflowsId = (res.id || "/").substring(1); - - //storageAccounts.beginCreateAndWait - const storageaccount = await storage_client.storageAccounts.beginCreateAndWait(resourceGroup, storageAccountName, { - sku: { - name: "Standard_GRS", - }, - kind: "StorageV2", - location: "eastus", - encryption: { - services: { - file: { - keyType: "Account", - enabled: true, - }, - blob: { - keyType: "Account", - enabled: true, - }, - }, - keySource: "Microsoft.Storage", - }, - tags: { - key1: "value1", - key2: "value2", - } - }, testPollingOptions); - storageId = storageaccount.id || ""; - - //namespaces.beginCreateOrUpdateAndWait - const namespaces = await eventhub_client.namespaces.beginCreateOrUpdateAndWait(resourceGroup, namespaceName, { - sku: { - name: "Standard", - tier: "Standard", - }, - location: location, - tags: { - tag1: "value1", - tag2: "value2", - } - }, testPollingOptions) - //namespaces.createOrUpdateAuthorizationRule - const authorization = await eventhub_client.namespaces.createOrUpdateAuthorizationRule(resourceGroup, namespaceName, authorizationRuleName, { rights: ["Listen", "Send", "Manage"] }); - authorizationId = authorization.id || ""; - - //workspaces.beginCreateOrUpdateAndWait - const workspace = await op_client.workspaces.beginCreateOrUpdateAndWait(resourceGroup, workspaceName, { - sku: { - name: "PerNode" - }, - retentionInDays: 30, - location: location, - tags: { - tag1: "value1" - } - }, testPollingOptions) - workspaceId = workspace.id || ""; - }); - // skip this case as no data plane write permissions - it.skip("eventhub create test", async function () { - // eventHubs.createOrUpdate - const eventhub = await eventhub_client.eventHubs.createOrUpdate(resourceGroup, namespaceName, eventhubName, { - messageRetentionInDays: 4, - partitionCount: 4, - status: "Active", - captureDescription: { - enabled: true, - encoding: "Avro", - intervalInSeconds: 120, - sizeLimitInBytes: 10485763, - destination: { - name: "EventHubArchive.AzureBlockBlob", - storageAccountResourceId: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/" + storageAccountName, - blobContainer: "container", - archiveNameFormat: "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", - } - } - }); - }) - - it("diagnosticSettings create test", async function () { - workflowsId = ((await logic_client.workflows.get(resourceGroup, workflowName)).id || "/").substring(1) - storageId = (await storage_client.storageAccounts.getProperties(resourceGroup, storageAccountName)).id || ""; - authorizationId = (await eventhub_client.namespaces.getAuthorizationRule(resourceGroup, namespaceName, authorizationRuleName)).id || ""; - workspaceId = (await op_client.workspaces.get(resourceGroup, workspaceName)).id || ""; - const res = await client.diagnosticSettings.createOrUpdate(workflowsId, diagnosticName, { - storageAccountId: storageId, - workspaceId: workspaceId, - eventHubAuthorizationRuleId: authorizationId, - eventHubName: eventhubName, - metrics: [], - logs: [ - { - category: "WorkflowRuntime", - enabled: true, - retentionPolicy: { - enabled: false, - days: 0 - } - } - ] - }) - assert.equal(res.name, diagnosticName); - }); - - it("diagnosticSettings get test", async function () { - const res = await client.diagnosticSettings.get(workflowsId, diagnosticName); - assert.equal(res.name, diagnosticName); - }); - - it("diagnosticSettings list test", async function () { - const res = await client.diagnosticSettings.list(workflowsId); - }); - - it("diagnosticSettings delete test", async function () { - const res = await client.diagnosticSettings.delete(workflowsId, diagnosticName); - }); - - it("logProfiles create test", async function () { - //delete sample logfile - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - if (resArray.length >= 1) { - await client.logProfiles.delete("sample-log-profile") - } - const res = await client.logProfiles.createOrUpdate(logProfileName, { - location: "", - locations: [ - "global" - ], - categories: [ - "Write", - "Delete", - "Action" - ], - retentionPolicy: { - enabled: true, - days: 3 - }, - storageAccountId: storageId - }) - assert.equal(res.name, logProfileName); - }); - - it("logProfiles get test", async function () { - const res = await client.logProfiles.get(logProfileName); - assert.equal(res.name, logProfileName); - }); - - it("logProfiles list test", async function () { - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("workspace create test", async function () { - const res = await client.azureMonitorWorkspaces.create( - resourceGroup, - azureMonitorWorkspaceName, - { - location - }); - assert.equal(res.name, azureMonitorWorkspaceName); - }); - - it("workspace get test", async function () { - const res = await client.azureMonitorWorkspaces.get(resourceGroup, azureMonitorWorkspaceName); - assert.equal(res.name, azureMonitorWorkspaceName); - }); - - it("workspace list test", async function () { - const resArray = new Array(); - for await (let item of client.azureMonitorWorkspaces.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 1); - }); - - it("workspace delete test", async function () { - const resArray = new Array(); - const res = await client.azureMonitorWorkspaces.beginDeleteAndWait(resourceGroup, azureMonitorWorkspaceName) - for await (let item of client.azureMonitorWorkspaces.listByResourceGroup(resourceGroup)) { - resArray.push(item); - } - assert.equal(resArray.length, 0); - }); - - it("metric listAtSubscriptionScope test", async function () { - const res = await client.metricsOperations.listAtSubscriptionScope( - location, - { - metricnamespace: "microsoft.compute/virtualmachines" - } - ); - }); - - it("metric list test", async function () { - const res = await client.metricsOperations.list( - "subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/" + storageAccountName + "/blobServices/default", - { - metricnamespace: "Microsoft.Storage/storageAccounts/blobServices" - } - ); - }); - - it("delete parameters for diagnosticSettings", async function () { - const workflowDlete = await logic_client.workflows.delete(resourceGroup, workflowName); - const storageDelete = await storage_client.storageAccounts.delete(resourceGroup, storageAccountName); - const namespaceDelete = await eventhub_client.namespaces.beginDeleteAndWait(resourceGroup, namespaceName, testPollingOptions); - const workspaceDelete = await op_client.workspaces.beginDeleteAndWait(resourceGroup, workspaceName, testPollingOptions); - }); - - it("logProfiles delete test", async function () { - const res = await client.logProfiles.delete(logProfileName); - const resArray = new Array(); - for await (let item of client.logProfiles.list()) { - resArray.push(item); - } - assert.equal(resArray.length, 1); //still exist sample logfile - }); -}); diff --git a/sdk/monitor/arm-monitor/test/sampleTest.ts b/sdk/monitor/arm-monitor/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/monitor/arm-monitor/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/monitor/arm-monitor/tsconfig.json b/sdk/monitor/arm-monitor/tsconfig.json index 293df9ae64ce..3e6ae96443f3 100644 --- a/sdk/monitor/arm-monitor/tsconfig.json +++ b/sdk/monitor/arm-monitor/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-monitor": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"