cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

monaco + Go templating to generate list of configs

channon4
Newcomer

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"

 

 

 

0 REPLIES 0

Featured Posts