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

add log data model #3

Merged
merged 3 commits into from
Jul 27, 2023
Merged

add log data model #3

merged 3 commits into from
Jul 27, 2023

Conversation

pallabez
Copy link
Member

@pallabez pallabez commented Mar 5, 2022

Closes

Log Structure

{
  'type': string,
  'timestamp': timestamp,
  'meta': object,
  'body': object,
}

Profile Diff Approved Logs

Example

{
  "timestamp": {
    "_seconds": 1647254438,
    "_nanoseconds": 38000000
  },
  "meta": {
    "userId": "pcBpdEQ5ydRakHHSpY2p",
    "approvedBy": "pcBpdEQ5ydRakHHSpY2p"
  },
  "body": {
    "message": "",
    "profileDiffId": "ueMoEDdbMJhhmFYhCfwN"
  },
  "type": "PROFILE_DIFF_APPROVED"
}

Structure

{
  type: "PROFILE_DIFF_APPROVED",
  timestamp: <timestamp>,
  meta: {
    approvedBy: <super_user_id>,
    userId: <userId>,
  }
  body: {
    profileDiffId: <profileDiffId>,
    message: "reason",
  }
}

For more, refer to - Real-Dev-Squad/identity-service#54

Logs/README.md Outdated Show resolved Hide resolved
Logs/README.md Outdated Show resolved Hide resolved
@pallabez pallabez requested a review from rajakvk March 14, 2022 11:09
Logs/README.md Outdated Show resolved Hide resolved
@rajakvk rajakvk self-requested a review March 15, 2022 03:14
Copy link
Contributor

@rohan09-raj rohan09-raj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants