{
  "GlobalSettings": {
    "type": "dynamic"
  },
  "vectors": [
    {
      "URL": "$BaseURL/v1.0/sites/",
      "urlId": 1,
      "replaceParams": [
        {
          "param": "siteId",
          "path": "$.value[*].id"
        },
        {
          "param": "siteName",
          "path": "$.value[*].displayName"
        },
        {
          "param": "hostName",
          "path": "$.value[?(@.displayName == 'siteName')].siteCollection.hostname",
          "mappedPeer": "siteName"
        }
      ],
      "URLSetting": {
        "requestType": "get"
      }
    },
    {
      "URL": "$BaseURL/v1.0/sites/siteId#1/analytics/lastSevenDays?$expand=activities#siteName#1hostName#1",
      "urlId": 2,
      "depURLIds": [
        1
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "defName": "siteName#1"
        },
        {
          "isPartOfHierarchy": false,
          "defName": "hostName#1"
        }
      ],
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.access.",
          "attribute": [
            {
              "name": "actorCount",
              "index": 1,
              "type": 1
            },
            {
              "name": "actionCount",
              "index": 2,
              "type": 1
            },
            {
              "name": "timeSpentInSeconds",
              "index": 3,
              "type": 1,
              "convertFrom": "s",
              "convertTo": "m"
            }
          ]
        }
      ]
    }
  ]
}
