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 monitoring url's in the report stage #10

Open
casabre opened this issue Sep 30, 2022 · 0 comments
Open

Add monitoring url's in the report stage #10

casabre opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@casabre
Copy link
Member

casabre commented Sep 30, 2022

It should be possible to decorate a user function which receives testcase start and stop datetimes in order to create a custom monitoring url(s) dictionary.

For instance

import time
from datetime import datetime

@monitoring_urls
def create_my_urls(start: datetime, stop: datetime) -> dict:
    return { "grafana": f"x.b.com/dashboard?from={time.mktime(start.timetuple())}&to={time.mktime(stop.timetuple())}"
@casabre casabre added the enhancement New feature or request label Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant