diff --git a/.github/workflows/template-validation.yaml b/.github/workflows/template-validation.yaml index a2e601c17b..a52d26950c 100644 --- a/.github/workflows/template-validation.yaml +++ b/.github/workflows/template-validation.yaml @@ -18,7 +18,7 @@ jobs: node-version: [12.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: diff --git a/.github/workflows/template-warnings.yaml b/.github/workflows/template-warnings.yaml new file mode 100644 index 0000000000..3a1de13782 --- /dev/null +++ b/.github/workflows/template-warnings.yaml @@ -0,0 +1,40 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Template Warnings + +on: + pull_request: + push: + branches: master + +jobs: + validate: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./scripts + + strategy: + matrix: + node-version: [12.x] + + steps: + - uses: actions/checkout@v4 + + - name: Get changed files + id: changed-workbook-files + uses: tj-actions/changed-files@v44 + # To compare changes between the current commit and the last pushed remote commit set `since_last_remote_commit: true`. e.g + with: + # since_last_remote_commit: true + files: | + **.workbook + - name: Use Node.js ${{ matrix.node-version }} + if: steps.changed-workbook-files.outputs.any_changed == 'true' + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm run analyze '${{ steps.changed-workbook-files.outputs.all_changed_files }}' \ No newline at end of file diff --git a/Workbooks/Azure Monitor - Getting Started/Say Cheese/Say Cheese.workbook b/Workbooks/Azure Monitor - Getting Started/Say Cheese/Say Cheese.workbook new file mode 100644 index 0000000000..3010ffbf42 --- /dev/null +++ b/Workbooks/Azure Monitor - Getting Started/Say Cheese/Say Cheese.workbook @@ -0,0 +1,26 @@ +{ + "version": "Notebook/1.0", + "items": [ + { + "id": "84cd454f-b852-4bbb-ae4f-6080b3801855", + "type": 1, + "name": "text - 0", + "content": { + "json": "# say cheese!\r\n\r\n🧀" + } + }, + { + "id": "9c56155c-9a7e-41db-ac56-40cabb7d7ddf", + "version": "KqlParameterItem/1.0", + "name": "TopN", + "type": 1, + "isRequired": true, + "query": "print 5", + "crossComponentResources": [ + "{Subscriptions}" + ], + "queryType": 0, + "resourceType": "microsoft.resources/subscriptions" + } + ] + } \ No newline at end of file diff --git a/scripts/.npmrc b/scripts/.npmrc deleted file mode 100644 index 4dd2be6ca1..0000000000 --- a/scripts/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -registry=https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/ -always-auth=true -custom-host-suffix='pkgs.visualstudio.com' \ No newline at end of file diff --git a/scripts/package-lock.json b/scripts/package-lock.json deleted file mode 100644 index b1ee068a06..0000000000 --- a/scripts/package-lock.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "name": "azure_monitor_workbook_templates", - "version": "1.0.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@types/node": { - "version": "12.0.0", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/@types/node/-/node-12.0.0.tgz", - "integrity": "sha1-0RgTucD/iqyinwTLwSgX9MfWVuU=", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha1-pvLc5hL63S7x9Rm3NVHxfoUZmDE=", - "dev": true - }, - "escodegen": { - "version": "1.14.3", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha1-TnuB+6YVgdyXWC7XjKt/Do1j9QM=", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "esprima": { - "version": "4.0.1", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha1-E7BM2z5sXRnfkatph6hpVhmwqnE=", - "dev": true - } - } - }, - "esprima": { - "version": "1.2.2", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/esprima/-/esprima-1.2.2.tgz", - "integrity": "sha1-dqD9Zvz+FU/SkmZ9wmQBl1CxZXs=", - "dev": true - }, - "estraverse": { - "version": "4.3.0", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0=", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q=", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "jsonpath": { - "version": "1.1.1", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/jsonpath/-/jsonpath-1.1.1.tgz", - "integrity": "sha1-DKHtj7ZbszCSSMydVGbRLVsLmQE=", - "dev": true, - "requires": { - "esprima": "1.2.2", - "static-eval": "2.0.2", - "underscore": "1.12.1" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha1-hPodA2/p08fiHZmIS2ARZ+yPtJU=", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", - "dev": true, - "optional": true - }, - "static-eval": { - "version": "2.0.2", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/static-eval/-/static-eval-2.0.2.tgz", - "integrity": "sha1-LRdZMGsb76aIk4RUxUa3hx+AakI=", - "dev": true, - "requires": { - "escodegen": "^1.8.1" - } - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "typescript": { - "version": "4.8.4", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha1-xGSryhWWaVl75flriUNQCyOOYOY=", - "dev": true - }, - "underscore": { - "version": "1.12.1", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/underscore/-/underscore-1.12.1.tgz", - "integrity": "sha1-e7jMmz05fiAc+FUzNtJiVE6tgp4=", - "dev": true - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://msazure.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha1-YQY29rH3A4kb00dxzLF/uTtHB5w=", - "dev": true - } - } -}