tricorder-observability / Starship

Starship: next-generation Observability platform built with eBPF+WASM
GNU Affero General Public License v3.0
162 stars 25 forks source link

[UI] Update CreateModule forms to be consistent with Swagger definition #253

Open nascentcore-eng opened 1 year ago

nascentcore-eng commented 1 year ago

Describe what should be done

{
  "ebpf": {
    "code": "string",
    // This is an enum
    "fmt": 0,
    // This is an enum
    "lang": 0,
    "perf_buffer_name": "string",
    "probes": [
      {
        "binary_path": "string",
        "entry": "string",
        "return": "string",
        "sample_period_nanos": 0,
        "target": "string",
        // This is an enum
        "type": 0
      }
    ]
  },
  "id": "string",
  "name": "string",
  "wasm": {
    // This is a binary blob
    "code": [
      0
    ],
    // enum, same as above
    "fmt": 0,
    // enum, same as above
    "lang": 0,
    "fn_name": "string",
    "output_schema": {
      "fields": [
        {
          "name": "string",
          // enum, same as above
          "type": 0
        }
      ],
      "name": "string"
    }
  }
}

Describe alternatives considered None

Additional context None