Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest minor changes to the current DB Schema #8

Open
dyuliu opened this issue Feb 15, 2021 · 0 comments
Open

Suggest minor changes to the current DB Schema #8

dyuliu opened this issue Feb 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@dyuliu
Copy link
Contributor

dyuliu commented Feb 15, 2021

Event (the current version)

Each one of the anomalies detected by the pipelines is stored as an Event, which
contains the details about the start time, the stop time and the severity score.

Fields

  • _id (ObjectID): Unique Identifier of this Event object
  • signalrun_id (ObjectID - Foreign Key): Unique Identifier of the Signalrun during which this
    Event was detected.
  • signal_id (ObjectID - Foreign Key): Unique Identifier of the Signal to which this Event relates
  • start_time (Integer): Timestamp where the anomalous interval starts
  • stop_time (Integer): Timestamp where the anomalous interval ends
  • severity (Float): Severity score given by the pipeline to this Event
  • source (String): ORION, SHAPE_MATCHING, or MANUALLY_CREATED
  • num_annotations (int): Number of Annotation associated to this Event.
  • insert_time (DateTime): Time when this Event Object was inserted

Event (the suggested version)

The previous version is not user friendly to read or track the latest tag information.

Fields

  • _id (ObjectID): Unique Identifier of this Event object
  • signalrun_id (ObjectID - Foreign Key): Unique Identifier of the Signalrun during which this
    Event was detected.
  • signal_id (ObjectID - Foreign Key): Unique Identifier of the Signal to which this Event relates
  • start_time (Integer): Timestamp where the anomalous interval starts
  • stop_time (Integer): Timestamp where the anomalous interval ends
  • severity (Float): Severity score given by the pipeline to this Event
  • source (String): ORION, SHAPE_MATCHING, or MANUALLY_CREATED
  • num_annotations (int): Number of Annotation associated to this Event.
  • #c5f015 latest_tag (ObjectID - Foreign Key): Unique Identifier of the most recent Annotation with tag.
  • insert_time (DateTime): Time when this Event Object was inserted

Event Interaction (the current version)

The Event Interaction collection records all the interaction history related to events.

Fields

  • _id (ObjectID): Unique Identifier of this Interaction object
  • event_id (ObjectID): Unique Identifier of the Event to which this event relates
  • action (String): Action type performed on this event, such as delete, split, and adjust
  • start_time (Integer): Timestamp where the anomalous interval starts
  • stop_time (Integer): Timestamp where the anomalous interval ends
  • created_by (String): Identifier of the user who interacted with the target Object
  • insert_time (DateTime): Time when this Event Interaction Object was inserted

Event Interaction (the suggested version)

The previous version is not good for maintaining histories of annotations. Annotation can be created, deleted, or updated. So the interaction also needs to maintain this history.

Fields

  • _id (ObjectID): Unique Identifier of this Interaction object
  • event_id (ObjectID): Unique Identifier of the Event to which this event relates
  • #c5f015 action (String): Action type performed on this event, such as delete, split, merge, adjust, and annotate (tag || comment)
  • start_time (Integer): Timestamp where the anomalous interval starts
  • stop_time (Integer): Timestamp where the anomalous interval ends
  • #c5f015 annotation (ObjectID - Foreign Key): Unique Identifier of the newly created Annotation from this interaction action.
  • created_by (String): Identifier of the user who interacted with the target Object
  • insert_time (DateTime): Time when this Event Interaction Object was inserted
@dyuliu dyuliu added the enhancement New feature or request label Feb 15, 2021
@sarahmish sarahmish transferred this issue from sintel-dev/Orion Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant