Hello.
I am not able to find a way how to pass a date range parameter ( from (date) and to (date) into the item.get API query.
The parameters time_till and time_from are not working (The API query is running though). This is the query I am using.
Any help?
I am not able to find a way how to pass a date range parameter ( from (date) and to (date) into the item.get API query.
The parameters time_till and time_from are not working (The API query is running though). This is the query I am using.
let
token = *hidden*
ZabbixURL = *hidden*
Body =
"{
""jsonrpc"": ""2.0"",
""method"": ""item.get"",
""params"": {
""output"": """output"": [""name"", ""hostid"", ""lastvalue"", ""prevvalue"", ""lastclock""]
},
""auth"": """ & token & """,
""id"": 1
}",
Source = Json.Document(
Web.Contents(
ZabbixURL,
[
Headers=[
[HASHTAG="t3950"]content-type[/HASHTAG]="application/json"
],
Content = Text.ToBinary(Body)
]
)
)
in
Source
token = *hidden*
ZabbixURL = *hidden*
Body =
"{
""jsonrpc"": ""2.0"",
""method"": ""item.get"",
""params"": {
""output"": """output"": [""name"", ""hostid"", ""lastvalue"", ""prevvalue"", ""lastclock""]
},
""auth"": """ & token & """,
""id"": 1
}",
Source = Json.Document(
Web.Contents(
ZabbixURL,
[
Headers=[
[HASHTAG="t3950"]content-type[/HASHTAG]="application/json"
],
Content = Text.ToBinary(Body)
]
)
)
in
Source
but you do not have any date range selection in item.get method...
Comment