You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this json:
{
"otlp_agent_collectors": [
{
"interval_in_seconds": 2,
"name": "watch_dog",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "otlp_agent",
"state": "disabled"
},
],
"script_collector_settings": {
"metrics": []
}
}
and I want to change the state into 2nd obj in the otlp_agent_collectors to enabeld
I used this function:
set("otlp_agent_collectors[1].state", "enabeld")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have this json:
{
"otlp_agent_collectors": [
{
"interval_in_seconds": 2,
"name": "watch_dog",
"state": "disabled"
},
{
"interval_in_seconds": 2,
"name": "otlp_agent",
"state": "disabled"
},
],
"script_collector_settings": {
"metrics": []
}
}
and I want to change the state into 2nd obj in the otlp_agent_collectors to enabeld
I used this function:
set("otlp_agent_collectors[1].state", "enabeld")
but it doesnt work,
what can be done?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions