---
# System prepended metadata

title: Test Ethical metrics infra

---

# Test Ethical metrics infra

## API

- `/targets`
    - POST
        - VALID
            - [x] new email && new tgchannelid
            - [x] same email && new tgchannelid
            - [x] new email && same tgChannelid
            - [x] same email && same tgchannelid -- write only if different in service
            - [x] only email
            - [x] only tgchannelid
            - [x] only email -> only tgchannelid
            - [x] only tgchannelid -> only email
        - Not valid
            - [x] wrong email
            - [x] wrong tgchannelid
            - [x] no email && no tgchannelid
    - DELETE
        - [x] Delete target with email
        - [x] Delete target with tgchannel id
        - [x] delete target with email and tgchannelid
- `/target-by-insrtance`
    - POST
- `/unregister-from-email`
    - GET

## Cron

- Persist targets into monitors
- Redistribute targets
- Automatic unregister
- Send dappnode down notification

## Notifications

- `/check` command in telegram
- Telegram notifications
- Email notifications
- 
## Bugs reported

- Proxy:
    - 

- Monitor service:
    - 


```json 
  {
    instance:
      "g37rwhr7xwdbbz2teizsuxiocwc2r4q3wf4ger7hxu7z5senyhgzyqyd.onion:9090",
    mail: "marc@dappnode.io",
  },
  {
    instance:
      "g37rwhr7xwdbbz2teizsuxiocwc2r4q3wf4ger7hxu7z5senyhgzyqyj.onion:9090",
    mail: "marc@dappnode.io",
  },
  {
    instance:
      "g37rwhr7xwdbbz2teizsuxiocwc2r4q3wf4ger7hxu7z5senyhgzyqys.onion:9090",
    mail: "marc@dappnode.io",
  },
```

**tgchannelid** `-1002129857417`