oncall-engine/engine/apps/mobile_app
Joey Orlando e69062cd73
update engine log format + log out device type when sending push notifications (#2021)
# What this PR does

- update engine log format to include `org_slug` + `user_agent`
```bash
2023-05-25 11:28:22 source=engine:app google_trace_id=none logger=root inbound latency=0.33164 status=200 method=GET path=/api/internal/v1/alertgroups/stats user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 content-length=0 slow=0 user_id=1 org_id=1 org_slug=self_hosted_org
2023-05-25 11:28:23 source=engine:app google_trace_id=none logger=root inbound latency=0.402866 status=200 method=GET path=/api/internal/v1/alertgroups user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 content-length=0 slow=0 user_id=1 org_id=1 org_slug=self_hosted_org
```
- log out device type when sending push notifications ([possible values
are `web`, `ios`, or
`android`](https://github.com/xtrinch/fcm-django/blob/master/fcm_django/models.py#L264-L266))

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated (N/A)
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required) (N/A)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required) (N/A)
2023-05-25 07:49:12 -04:00
..
migrations Disable "You're going OnCall soon" push notification (#1927) 2023-05-12 11:56:12 +00:00
tests Remove user defined time period from "you're going oncall" mobile push (#2001) 2023-05-24 16:14:48 +08:00
__init__.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
alert_rendering.py update mobile app push notification text + make telegram alert verbage consistent ("Firing" instead of "Alerting") (#1089) 2023-01-05 16:16:43 +01:00
auth.py Mobile app messaging backend (#874) 2022-11-23 15:56:43 +00:00
backend.py Fix of templates api behaviour for public and private api (#1408) 2023-03-01 16:32:15 +08:00
demo_push.py Test mobile push (#1933) 2023-05-18 15:52:42 +08:00
exceptions.py Test mobile push (#1933) 2023-05-18 15:52:42 +08:00
fcm_relay.py Support notification priority in FCM relay (#1630) 2023-03-27 14:36:51 +01:00
models.py Disable "You're going OnCall soon" push notification (#1927) 2023-05-12 11:56:12 +00:00
serializers.py add user settings for info notifications (#1926) 2023-05-12 10:23:42 +00:00
tasks.py update engine log format + log out device type when sending push notifications (#2021) 2023-05-25 07:49:12 -04:00
urls.py Mobile app settings backend (#1571) 2023-03-22 14:47:18 +00:00
views.py Mobile app settings backend (#1571) 2023-03-22 14:47:18 +00:00