{
  "GlobalSettings": {
    "type": "dynamic",
    "separator": "_"
  },
  "vectors": [
    {
      "URL": "${Protocol}://${Host}:${Port}/apis/apps/v1/deployments",
      "URLSetting": {
        "requestType": "get"
      },
      "metrics": [
        {
          "mPath": "$.items[*][?(@.spec.strategy.type=='RollingUpdate' && @.metadata.namespace == 'nameSpaceKey' && @.metadata.name == 'nameKey')].spec.strategy.rollingUpdate.",
          "attribute": [
            {
              "name": "maxUnavailable",
              "index": 1,
              "type": 1
            },
			 {
              "name": "maxSurge",
              "index": 2,
              "type": 1
            }
          ],
          "operation": "none"
        }
      ],
      "path": [
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*].metadata.namespace",
          "replaceVectorKey": "nameSpaceKey"
        },
        {
          "isPartOfHierarchy": true,
          "query": "$.items[*][?(@.spec.strategy.type=='RollingUpdate')].metadata[?(@.namespace == 'nameSpaceKey')].name",
           "replaceVectorKey": "nameKey"
          
        }
      ]
    }
  ]
}
