Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9820

Update telemetry payload

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Telemetry, Web API
    • Labels:

      Description

      Some updates should be done on the payload:

      • Regarding the format of the content:
        • instead of having a map { pluginKey, version }

          for plugins and distribution by language, the Elastic Search querying is easier with an array of objects like the following:

          {
             "id": "AVdllfqQ9IFRWI6U49y8",
             "version": "6.6.0.29738",
             "plugins": [
               { “name”: “scmcvs”, “version”: “1.0" },
               { “name”: "scmsvn", "version": "1.3" },
               { “name”: "plsql", "version": "2.9.1.1051" },
               { “name”: "csharp", "version": "5.9.0.1001" },
               { “name”: "java", "version": "4.8.0.9441" },
               { “name”: "web", "version": "2.5.0.476" },
               { “name”: "flex", "version": "2.3" },
               { “name”: "xml", "version": "1.4.2.885" },
               { “name”: "vbnet", "version": "3.0.3.346" },
               { “name”: "swift", "version": "2.0.0.1127" },
               { “name”: "github", "version": "1.4.0.699" },
               { “name”: "python", "version": "1.7.0.1195" },
               { “name”: "cpp", "version": "4.7.0.7341" },
               { “name”: "authgithub", "version": "1.3" },
               { “name”: "scmmercurial", "version": "1.1.1" },
               { “name”: "rpg", "version": "2.1.0.736" },
               { “name”: "googleanalytics", "version": "1.1" }
             ],
             "userCount": 8814,
             "projectCount": 2975,
             "lines": 88354253,
             "ncloc": 56968596,
             "projectCountByLanguage": [
               { "language": "java", "count": 2017 },
               { "language": "xml", "count": 1664 },
               { "language": "js", "count": 434 },
               { "language": "web", "count": 417 },
               { "language": "cs", "count": 169 },
               { "language": "py", "count": 132 },
               { "language": "c", "count": 130 },
               { "language": "php", "count": 95 },
               { "language": "plsql", "count": 82 }
             ],
             "nclocByLanguage": [
               { "language": "cpp", "ncloc": 5353924 },
               { "language": "css", "ncloc": 3075 },
               { "language": "jproperties", "ncloc": 23 },
               { "language": "c", "ncloc": 6911369 },
               { "language": "rpg", "ncloc": 5917 },
               { "language": "js", "ncloc": 6022305 },
               { "language": "py", "ncloc": 671440 },
               { "language": "pli", "ncloc": 1940 },
               { "language": "vb", "ncloc": 4944 },
               { "language": "plsql", "ncloc": 309079 }
             ]
           }
          
      • we also want to send the DB vendor and DB version, like they appear on the System Info page
        • For example:
          "db": { "name": "PostgreSQL", "version": "9.5.4" }
          
      • finally, we'd like to know if the branch feature is used
        • this means checking in the "branch" table that we have at least one non-default branch
        • would look like:
          "usingBranches": true
          

        Attachments

          Activity

            People

            Assignee:
            xavier.bourguignon Xavier Bourguignon (Inactive)
            Reporter:
            fabrice.bellingard Fabrice Bellingard
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: