// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.bulk({
  index: "datastream",
  refresh: "true",
  operations: [
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:49:00Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 91153,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 463314616,
            },
            usage: {
              bytes: 307007078,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 585236,
            },
            rss: {
              bytes: 102728,
            },
            pagefaults: 120901,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:45:50Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 124501,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 982546514,
            },
            usage: {
              bytes: 360035574,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 1339884,
            },
            rss: {
              bytes: 381174,
            },
            pagefaults: 178473,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:44:50Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 38907,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 862723768,
            },
            usage: {
              bytes: 379572388,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 431227,
            },
            rss: {
              bytes: 386580,
            },
            pagefaults: 233166,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:44:40Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 86706,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 567160996,
            },
            usage: {
              bytes: 103266017,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 1724908,
            },
            rss: {
              bytes: 105431,
            },
            pagefaults: 233166,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:44:00Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 150069,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 639054643,
            },
            usage: {
              bytes: 265142477,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 1786511,
            },
            rss: {
              bytes: 189235,
            },
            pagefaults: 138172,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:42:40Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 82260,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 854735585,
            },
            usage: {
              bytes: 309798052,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 924058,
            },
            rss: {
              bytes: 110838,
            },
            pagefaults: 259073,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:42:10Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 153404,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 279586406,
            },
            usage: {
              bytes: 214904955,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 1047265,
            },
            rss: {
              bytes: 91914,
            },
            pagefaults: 302252,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:40:20Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 125613,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 822782853,
            },
            usage: {
              bytes: 100475044,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 2109932,
            },
            rss: {
              bytes: 278446,
            },
            pagefaults: 74843,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:40:10Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 100046,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 567160996,
            },
            usage: {
              bytes: 362826547,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 1986724,
            },
            rss: {
              bytes: 402801,
            },
            pagefaults: 296495,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
    {
      create: {},
    },
    {
      "@timestamp": "2022-06-21T15:38:30Z",
      kubernetes: {
        host: "gke-apps-0",
        node: "gke-apps-0-0",
        pod: "gke-apps-0-0-0",
        container: {
          cpu: {
            usage: {
              nanocores: 40018,
              core: {
                ns: 12828317850,
              },
              node: {
                pct: 0.0000277905,
              },
              limit: {
                pct: 0.0000277905,
              },
            },
          },
          memory: {
            available: {
              bytes: 1062428344,
            },
            usage: {
              bytes: 265142477,
              node: {
                pct: 0.01770037710617187,
              },
              limit: {
                pct: 0.00009923134671484496,
              },
            },
            workingset: {
              bytes: 2294743,
            },
            rss: {
              bytes: 340623,
            },
            pagefaults: 224530,
            majorpagefaults: 0,
          },
          start_time: "2021-03-30T07:59:06Z",
          name: "container-name-44",
        },
        namespace: "namespace26",
      },
    },
  ],
});
console.log(response);
----
