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

Dashboards for call centers (was: JSON output of /scheduler/on_call) #257

Open
jasonwinget opened this issue Jul 17, 2020 · 7 comments
Open
Assignees
Labels

Comments

@jasonwinget
Copy link

Triggered either through Accept: Application/JSON HTTP header or through ?output=json provide data in a parsable format.

@jasonwinget
Copy link
Author

Currently, Minnesota is parsing the HTML output of the page, this leads to errors when application updates are made. There are also some malformed tag pairs that make automated client-side parsing difficult. In today's modern DevOps world JSON output would be nice to have.

@frankduncan
Copy link
Contributor

After talking with @OhMcGoo, this may change to actually having dcsops display the page that you are collecting the data for, meaning you no longer have to take care of this problem at all. If that turns out to be too large of a change, we'll fall back on the json data.

Do you script getting it, or do you log into dcsops and then save page?

@jasonwinget
Copy link
Author

jasonwinget commented Jul 21, 2020 via email

@frankduncan
Copy link
Contributor

How do you log in?

@jasonwinget
Copy link
Author

jasonwinget commented Jul 22, 2020 via email

@kfogel
Copy link
Member

kfogel commented Jul 22, 2020

Summarizing and providing some backstory hitherto unrepresented in this ticket:

Jason currently hosts (on his own server) a page that a third-party call center uses to reach the current on-call people. The way he populates this self-hosted page is by copying the SSO cookie into a script that uses curl to pull down the on_call HTML, parse it, and then generate his page. He's asked to refresh his page every so often.

It would be great if DCSOps could just provide that third-party-oriented on-call page directly. Then Jason could get out of the business of maintaining a self-hosted page that's generated from a script that does its best to parse DCSOps HTML pages that weren't ever meant to be parsed.

Thus, merely changing the source that his script parses to be JSON instead of HTML is probably not the real solution here. Instead, let's just have DCSOps itself generate the page those call centers need. (Now, if they want JSON, because they want the freedom that comes with a parseable format, that's fine -- we can do that. But that doesn't seem to be the solution actually called for here, given the full context.)

@kfogel kfogel added the M label Jul 28, 2020
@kfogel kfogel changed the title JSON output of /scheduler/on_call Dashboards for call centers (was: JSON output of /scheduler/on_call) Aug 11, 2020
@kfogel
Copy link
Member

kfogel commented Aug 20, 2020

Issue #301 now notes how it would be good to tackle that issue and this one at the same time, for efficiency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants