DNS-OARC / dns-metrics

DNS Metrics JSON Schema
https://dns-oarc.github.io/dns-metrics/
Creative Commons Zero v1.0 Universal
1 stars 2 forks source link

Arbitrary JSON objects in generator_params #3

Open jelu opened 1 month ago

jelu commented 1 month ago
          I would go for an arbitrary JSON object. It's up to generator how it encodes it's parameters.

_Originally posted by @pspacek in https://github.com/DNS-OARC/dns-metrics/pull/2#discussion_r1609871635_

pspacek commented 1 month ago

I did not realize the schema by default allows arbitrary properties. I think that mostly covers it.

With this in mind I would define an optional 'cmdline' property in the header 'header' object, make it an array of strings, and leave it up to generators to add whatever other properties they want or need.

cmdline should be optional because sometimes the command line does not exist - e.g. when the workload is generated by a library. Think e.g. of dnsjit used to send stuff to the server.