Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.4 to 3.10.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/aio-libs/aiohttp/releases">aiohttp's releases</a>.</em></p> <blockquote> <h2>3.10.2</h2> <h2>Bug fixes</h2> <ul> <li> <p>Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:<code>steverep</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/aiohttp/issues/8565">#8565</a>.</p> </li> <li> <p>Fixed request body not being read when ignoring an Upgrade request -- by :user:<code>Dreamsorcerer</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/aiohttp/issues/8597">#8597</a>.</p> </li> <li> <p>Fixed an edge case where shutdown would wait for timeout when the handler was already completed -- by :user:<code>Dreamsorcerer</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/aiohttp/issues/8611">#8611</a>.</p> </li> <li> <p>Fixed connecting to <code>npipe://</code>, <code>tcp://</code>, and <code>unix://</code> urls -- by :user:<code>bdraco</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/aiohttp/issues/8632">#8632</a>.</p> </li> <li> <p>Fixed WebSocket ping tasks being prematurely garbage collected -- by :user:<code>bdraco</code>.</p> <p>There was a small risk that WebSocket ping tasks would be prematurely garbage collected because the event loop only holds a weak reference to the task. The garbage collection risk has been fixed by holding a strong reference to the task. Additionally, the task is now scheduled eagerly with Python 3.12+ to increase the chance it can be completed immediately and avoid having to hold any references to the task.</p> <p><em>Related issues and pull requests on GitHub:</em> <a href="https://redirect.github.com/aio-libs/aiohttp/issues/8641">#8641</a>.</p> </li> <li> <p>Fixed incorrectly following symlinks for compressed file variants -- by :user:<code>steverep</code>.</p> <p><em>Related issues and pull requests on GitHub:</em></p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst">aiohttp's changelog</a>.</em></p> <blockquote> <h1>3.10.2 (2024-08-08)</h1> <h2>Bug fixes</h2> <ul> <li> <p>Fixed server checks for circular symbolic links to be compatible with Python 3.13 -- by :user:<code>steverep</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>8565</code>.</p> </li> <li> <p>Fixed request body not being read when ignoring an Upgrade request -- by :user:<code>Dreamsorcerer</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>8597</code>.</p> </li> <li> <p>Fixed an edge case where shutdown would wait for timeout when the handler was already completed -- by :user:<code>Dreamsorcerer</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>8611</code>.</p> </li> <li> <p>Fixed connecting to <code>npipe://</code>, <code>tcp://</code>, and <code>unix://</code> urls -- by :user:<code>bdraco</code>.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>8632</code>.</p> </li> <li> <p>Fixed WebSocket ping tasks being prematurely garbage collected -- by :user:<code>bdraco</code>.</p> <p>There was a small risk that WebSocket ping tasks would be prematurely garbage collected because the event loop only holds a weak reference to the task. The garbage collection risk has been fixed by holding a strong reference to the task. Additionally, the task is now scheduled eagerly with Python 3.12+ to increase the chance it can be completed immediately and avoid having to hold any references to the task.</p> <p><em>Related issues and pull requests on GitHub:</em> :issue:<code>8641</code>.</p> </li> <li> <p>Fixed incorrectly following symlinks for compressed file variants -- by :user:<code>steverep</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href=" |
||
|---|---|---|
| .. | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
Fake Data Generator Script
This script can be used to easily populate fake data into your local Grafana/OnCall setup. Currently the script is capable of generating the following objects:
- teams
- users
- schedules
- schedule on call shifts
Prerequisites
- Create/active a Python 3.12 virtual environment
pip install -r requirements.txt- Must have a local version of Grafana and OnCall up and running
- Generate an API key inside of Grafana OnCall
How to run
Note: The below flag values assume you are running a grafana container locally via the docker-compose setup.
The reason why there is a few separate steps involved is that we need to first create teams and users in the Grafana
instance. Later on, in order to create OnCall schedules/oncall-shifts, we need the OnCall user ID to do so. There is
currently no way to trigger a Grafana -> OnCall data sync via the public API, hence the manual step in the middle
to have data synced between Grafana and OnCall.
-
Create teams and users in Grafana. The
teamsandusersflags represent the number of teams and users you would like to create respectively:# by default this will generate 10 teams and 1000 users python main.py generate_teams_and_usersSee
python main.py generate_teams_and_users -hfor more information on how to run the command. -
Head to your OnCall setup, and trigger a Grafana -> OnCall data sync by visiting the plugin page.
-
Create schedules and on call shifts in OnCall. The
schedulesflag represents the number of OnCall schedules you would like to generate. Note that one on call shift is created for each schedule:# by default this will generate 100 schedules python main.py generate_schedules_and_oncall_shifts --oncall-api-token=<oncall-api-key>See
python main.py generate_schedules_and_oncall_shifts -hfor more information on how to run the command.