[ZBX-13006] API legacy item delay support Created: 2017 Nov 09  Updated: 2019 Apr 24

Status: Reopened
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.4.3
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Denis Legostaev Assignee: Miks Kronkalns
Resolution: Unresolved Votes: 4
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBXNEXT-1675 Add macros support for update intervals Closed
Team: Team B
Sprint: Sprint 20

 Description   

Same in English:
When an item is requested through API the delay is returned in format "1m" instead of "60". Would it be possible to add support for specific field in request to return delay as before, as integer (seconds)?



 Comments   
Comment by Ingus Vilnis [ 2017 Nov 09 ]

Hi Denis,

Could you please post the same request in English?

<dimir> There you go.

Comment by Glebs Ivanovskis (Inactive) [ 2017 Nov 09 ]

I'm not sure it's possible. ZBXNEXT-1675 not only introduced suffixes, but also dropped delay_flex. It's now all in one field.

Comment by Denis Legostaev [ 2017 Nov 09 ]

it's not about delay only,
when you use 'item.get' in API, the result is:

itemid                : 10016
type                  : 0
snmp_community        : 
snmp_oid              : 
hostid                : 10001
name                  : Number of logged in users
key_                  : system.users.num
delay                 : 1m
history               : 1w
trends                : 365d

delay, history, trends - were all as integers before 3.4

Comment by Denis Legostaev [ 2017 Nov 09 ]

it's not about delay only

Generated at Thu Mar 28 18:24:59 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.