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

New nip33 event to publish mostro stats #265

Open
grunch opened this issue Apr 16, 2024 · 2 comments
Open

New nip33 event to publish mostro stats #265

grunch opened this issue Apr 16, 2024 · 2 comments

Comments

@grunch
Copy link
Member

grunch commented Apr 16, 2024

We need to publish a scheduled event that gives Mostro's stats, I'm thinking something like this:

Overall Stats

[
  "EVENT",
  "RAND",
  {
    "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31",
    "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a",
    "created_at": 1702548701,
    "kind": 38383,
    "tags": [
      ["d", "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a"],
      ["new_orders", "10"],
      ["new_disputes", "1"],
      ["completed_orders", "50"],
      ["avg_time_attending_disputes", "65"],
      ["y", "mostrop2p"],
      ["z", "overall-stats"]
    ],
    "content": "",
    "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2"
  }
]

Monthly Stats

[
  "EVENT",
  "RAND",
  {
    "id": "84fad0d29cb3529d789faeff2033e88fe157a48e071c6a5d1619928289420e31",
    "pubkey": "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a",
    "created_at": 1702548701,
    "kind": 38383,
    "tags": [
      ["d", "dbe0b1be7aafd3cfba92d7463edbd4e33b2969f61bd554d37ac56f032e13355a"],
      ["new_orders", "10"],
      ["new_disputes", "1"],
      ["completed_orders", "50"],
      ["avg_time_attending_disputes", "65"],
      ["y", "mostrop2p"],
      ["z", "monthly-stats"]
    ],
    "content": "",
    "sig": "7e8fe1eb644f33ff51d8805c02a0e1a6d034e6234eac50ef7a7e0dac68a0414f7910366204fa8217086f90eddaa37ded71e61f736d1838e37c0b73f6a16c4af2"
  }
]
@arkanoider
Copy link
Collaborator

A question about the different kind of stats, if they are ex NIP33 event ( now NIP01 ) the same d tag in the events will overwrite the latest, so let me say that if we publish monthly events once a month ( just speakin loud ) and every 24 h global stats, latest global stats will overwrite monthly stats...
Maybe we need to use different d tags?

Let me know your ideas @bilthon @grunch ....

@grunch
Copy link
Member Author

grunch commented Apr 25, 2024

A question about the different kind of stats, if they are ex NIP33 event ( now NIP01 ) the same d tag in the events will overwrite the latest, so let me say that if we publish monthly events once a month ( just speakin loud ) and every 24 h global stats, latest global stats will overwrite monthly stats... Maybe we need to use different d tags?

Let me know your ideas @bilthon @grunch ....

you are right, we should use a different d tag for any stats we are publishing

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

No branches or pull requests

2 participants