fix(history): default exportHostValueHistory limit to undefined
When no limit is provided to exportHostValueHistory, return all available records instead of only one. This aligns GraphQL defaults with user expectations. - Change: set ZabbixHistoryGetParams.limit default to undefined - Type safety: widened limit type to number | null | undefined
This commit is contained in:
parent
0acef818c6
commit
b894687bea
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export class ZabbixHistoryGetParams extends ParsedArgs {
|
|||
*/
|
||||
constructor(public itemids: number[] | number | string | string[],
|
||||
public output: string[] = ["value", "itemid", "clock", "ns"],
|
||||
public limit: number | null = Array.isArray(itemids) ? itemids.length : 1,
|
||||
public limit: number | null | undefined = undefined,
|
||||
public history: StorageItemType | string = StorageItemType.Text,
|
||||
time_from?: Date,
|
||||
time_until?: Date,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue