GithubHelp home page GithubHelp logo

Usage of CloudEvents "subject" about spec HOT 5 CLOSED

afrittoli avatar afrittoli commented on September 2, 2024
Usage of CloudEvents "subject"

from spec.

Comments (5)

erkist avatar erkist commented on September 2, 2024

Your proposal makes a lot of sense to me. The type field would say what we are doing, and the subject field would say what we are doing it on/with/for.

I think we might need to provide a clear table in the spec stating for each event type what exactly the subject should be, just for clarity.

from spec.

afrittoli avatar afrittoli commented on September 2, 2024

Your proposal makes a lot of sense to me. The type field would say what we are doing, and the subject field would say what we are doing it on/with/for.

I think we might need to provide a clear table in the spec stating for each event type what exactly the subject should be, just for clarity.

Yeah, that's a great idea.
The setup that I'm forming in my mind is, for each event a few elements will go in the CloudEvents context.
We could consider id and source as general cdevents context, mapped to CloudEvents context.
subject instead would map to a different event field based on the event type i.e. PIpelineRun ID, Environment ID etc..

from spec.

m-linner-ericsson avatar m-linner-ericsson commented on September 2, 2024

With https://github.com/cdevents/spec/blob/main/spec.md#subject in mind: What would the subject look like in cloud events?

from spec.

afrittoli avatar afrittoli commented on September 2, 2024

With https://github.com/cdevents/spec/blob/main/spec.md#subject in mind: What would the subject look like in cloud events?

Since CloudEvents include the source in the headers, subject should be the ID of the CDEvents subject, which is unique within the source.

from spec.

afrittoli avatar afrittoli commented on September 2, 2024

Adressed by #35

from spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.