03 Jun 2024 04:38 PM - last edited on 04 Jun 2024 07:43 AM by MaciejNeumann
I have 2 lists of value maps that I would like to create synthetic http tests for the various combinations. If I put these in a single config I can generate an array of jsons. but It seems that the API is just looking for the single json for the synthetic monitor. Any advice for using go templating? Id like the below to create 4 synthetic tests (targets x destinations). With Go Templating this is straightforward but I cant figure out how to render 4 configs without explicitly defining them.
targets:
type: value
values:
- name: "dev"
url: "a.b.com"
- name: "stage"
url: "c.d.com"
destinations:
type: value
values:
- name: "Internet"
geoCode: "abc"
- name: "private"
geoCode: "def"