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

Adding status and lastPoll fields to CrStates #6612

Merged

Conversation

srijeet0406
Copy link
Contributor

@srijeet0406 srijeet0406 commented Mar 3, 2022

This PR closes #6448


Which Traffic Control components are affected by this PR?

  • Traffic Monitor

What is the best way to verify this PR?

Run TM locally and GET the publish/CrStates endpoint. Make sure the status and lastPoll fields show up in the output. Also confirm that the status for the caches is in fact what's being reported by the api/cache-statuses endpoint.

If this is a bugfix, which Traffic Control versions contained the bug?

  • master

PR submission checklist

@srijeet0406 srijeet0406 added the Traffic Monitor related to Traffic Monitor label Mar 3, 2022
Copy link
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you want to take this opportunity to fill out our missing docs for /publish/CrStates?

lib/go-tc/crstates.go Outdated Show resolved Hide resolved
@rawlinp rawlinp changed the title Adding status and lastHmPoll fields to CrStates Adding status and lastPoll fields to CrStates Mar 10, 2022
@rawlinp rawlinp added the new feature A new feature, capability or behavior label Mar 10, 2022
@rawlinp rawlinp merged commit 4924be4 into apache:master Mar 14, 2022
jrushford added a commit to jrushford/trafficcontrol that referenced this pull request Mar 21, 2022
When the tc-health-client was switched to using the combined
TM CrStates endpoint, the ability to log the cache status was
lost, Issue apache#6448.  PR apache#6612 adds the cache status field to the
TM CrStates endpoint allowing cache status to be logged again.
This PR adds back the cache status logging.
rawlinp pushed a commit that referenced this pull request Mar 30, 2022
When the tc-health-client was switched to using the combined
TM CrStates endpoint, the ability to log the cache status was
lost, Issue #6448.  PR #6612 adds the cache status field to the
TM CrStates endpoint allowing cache status to be logged again.
This PR adds back the cache status logging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature, capability or behavior Traffic Monitor related to Traffic Monitor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the cache status field to the Traffic Monitor CrStates endpoint
3 participants