-
Notifications
You must be signed in to change notification settings - Fork 227
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 telemetry remove command #3035
Add telemetry remove command #3035
Conversation
9c6b4d5
to
635221f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No big problems here, so I'm approving, but I do have a couple of questions/comments
ux.action.start(`Removing all telemetry drains from app ${app}`) | ||
const {body: telemetryDrains} = await this.heroku.get<TelemetryDrain[]>(`/apps/${app}/telemetry-drains`, { | ||
headers: { | ||
Accept: 'application/vnd.heroku+json; version=3.fir', | ||
}, | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the fact that this action could remove all telemetry drains from an app or space be mentioned in the description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll check with sandy about this. it is mentioned in the flag's description, but maybe it merits an adjustment to the command's overall description?
635221f
to
6548c3e
Compare
GUS WI
Description
Adds
telemetry:remove
command. Will accept an ID for a specific telemetry drain, or--app
to remove all drains associated with an app or--space
to remove all drains associated with a space.