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

Implement Python API for setting check metadata #4230

Closed
wants to merge 1 commit into from

Conversation

ofek
Copy link
Contributor

@ofek ofek commented Sep 29, 2019

What does this PR do?

Allows Python checks to send metadata using the inventories provider introduced in #4158

@ofek ofek added [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. changelog/no-changelog team/integrations component/rtloader labels Sep 29, 2019
@ofek ofek added this to the 6.15.0 milestone Sep 29, 2019
@ofek ofek requested a review from a team as a code owner September 29, 2019 15:30
PyGILState_STATE gstate = PyGILState_Ensure();

// datadog_agent.set_check_metadata(check_id, name, value)
if (!PyArg_ParseTuple(args, "sss", &check_id, &name, &value)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we know the check_id already, instead of it being passed from the check itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we do. You see a way?

@ofek
Copy link
Contributor Author

ofek commented Sep 30, 2019

Superseded by #4234

@ofek ofek closed this Sep 30, 2019
@ofek ofek deleted the ofek/check-metadata-api branch September 30, 2019 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/rtloader [deprecated] team/agent-core Deprecated. Use metrics-logs / shared-components labels instead.. team/integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants