Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1800

Write a from-scratch equivalent of the task message JSON

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • 2023-11-13- API
    • None
    • None

      We need to be able to queue up tasks (eg sync metrics hourly) for our task framework, but we don't want to have to add swatch-core as a dependency.

      (shown in YAML for brevity)

      { args: {
           metric: [ "Transfer-gibibytes" ],
           productTag: [ "rhosak" ],
           start: [ "2023-09-25T15:00Z" ],
           end: [ "2023-09-25T16:00Z" ],
           orgId: [ "org123" ]
         }
      } 
      • Ignore unknown properties
      • NOTE: future work could simplify the JSON a bit if we wish

            jcarvaja@redhat.com Jose Carvajal Hilario
            khowell@redhat.com Kevin Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: