Nested Query To set value #1682
Unanswered
yonatan555
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this json:
{
"otlp_agent_collectors": [
{
"interval_in_seconds": 2,
"name": "watch_dog",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "script",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "otlp_agent",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "mis",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "blades",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "deployment",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "mds",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "processes",
"state": "disabled"
}
],
"script_collector_settings": {
"metrics": []
}
}
and I want to set a value using this query:
set(otlp_agent_collectors[2].state, "enabeld")
but it didn't work, what can I change the value?
set(otlp_agent_collectors2.state, "enabeld")
This was tested too, and still didnt work
but when I tried to get the value using this function get(otlp_agent_collectors.2.state), I got the real value
Thanks
Beta Was this translation helpful? Give feedback.
All reactions