File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ using System.Collections.Generic;
55{ {> snippets/import} }
66
77using Action = Algolia.Search.Models.Ingestion.Action;
8+ using PushTaskRecords = Algolia.Search.Models.Ingestion.PushTaskRecords;
89
910class PushSetup
1011{
1112 public static async Task Main(string[] args)
1213 {
1314 string jsonContent = File.ReadAllText(" /my-raw-records.json" );
1415
15- var records = JsonSerializer.Deserialize< List< Algolia.Search.Models.Ingestion. PushTaskRecords>> (jsonContent);
16+ var records = JsonSerializer.Deserialize< List< PushTaskRecords>> (jsonContent);
1617
1718 // use the region matching your applicationID
1819 {{> snippets/init} }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class pushSetup {
1616 RunResponse run = { {#dynamicSnippet} }pushSetup{ {/dynamicSnippet} };
1717
1818 // use runID in the Observability debugger
19- System.out.println(run);
19+ System.out.println(run.runID );
2020
2121 client.close();
2222 }
Original file line number Diff line number Diff line change 22require(__DIR__."/vendor/autoload.php");
33{ {> snippets/import} }
44
5- $records = json_decode(file_get_contents("/my-raw-records.json"); , true);
5+ $records = json_decode(file_get_contents("/my-raw-records.json"), true);
66
77// use the region matching your applicationID
88{ {> snippets/init} }
99
10- $run = { {#dynamicSnippet} }pushSetup{ {/dynamicSnippet} }
10+ $run = { {#dynamicSnippet} }pushSetup{ {/dynamicSnippet} };
1111
1212// use runID in the Observability debugger
1313print($run);
Original file line number Diff line number Diff line change @@ -13,6 +13,6 @@ async def main():
1313 run = { {#dynamicSnippet} }pushSetup{ {/dynamicSnippet} }
1414
1515 # use runID in the Observability debugger
16- print(run.to_dict()["runID"] )
16+ print(run.run_id )
1717
1818asyncio.run(main())
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ records = JSON.parse(File.read('/my-raw-records.json'))
99run = { {#dynamicSnippet} }pushSetup{ {/dynamicSnippet} }
1010
1111# use runID in the Observability debugger
12- puts( run)
12+ puts run.run_id
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ object PushSetup {
2727 )
2828
2929 // use runID in the Observability debugger
30- println(run)
30+ println(run.runID )
3131 } catch {
3232 case e: Exception => println(e)
3333 }
You can’t perform that action at this time.
0 commit comments