1// docs/reindex.asciidoc:751 2 3[source, php] 4---- 5$params = [ 6 'index' => 'metricbeat-2016.05.30', 7 'id' => '1', 8 'body' => [ 9 'system.cpu.idle.pct' => 0.908, 10 ], 11]; 12$response = $client->index($params); 13$params = [ 14 'index' => 'metricbeat-2016.05.31', 15 'id' => '1', 16 'body' => [ 17 'system.cpu.idle.pct' => 0.105, 18 ], 19]; 20$response = $client->index($params); 21---- 22