{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-cgroup.html",
    "ecs_version": "8.7.0-dev+exp"
  },
  "template": {
    "mappings": {
      "properties": {
        "cgroup": {
          "properties": {
            "cpu": {
              "properties": {
                "periods": {
                  "type": "long"
                },
                "throttled": {
                  "properties": {
                    "us": {
                      "type": "long"
                    }
                  }
                },
                "usage": {
                  "scaling_factor": 1000,
                  "type": "scaled_float"
                }
              }
            },
            "memory": {
              "properties": {
                "limit": {
                  "type": "long"
                },
                "swap": {
                  "properties": {
                    "usage": {
                      "type": "long"
                    }
                  }
                },
                "usage": {
                  "type": "long"
                }
              }
            },
            "version": {
              "type": "long"
            }
          }
        }
      }
    }
  }
}
