diff --git a/docs/openapi/monitoring-api.json b/docs/openapi/monitoring-api.json index 146f30f..3ca170f 100644 --- a/docs/openapi/monitoring-api.json +++ b/docs/openapi/monitoring-api.json @@ -11919,7 +11919,7 @@ "Notification Policies" ], "summary": "List dispatches (firing history) for a notification policy", - "description": "Additive optional query params: since/until/cursor/limit. When all are omitted, returns the full history (legacy). When any is set, defaults to a 30-day window and limit 50, and may include nextCursor. Response remains TableValueResult — no CursorPage swap.", + "description": "Optional query params: since/until/cursor/limit. When all are omitted, returns the full history (legacy). When any is set, defaults to a 30-day window and limit 50. Response is CursorPage (hasMore + nextCursor), the same wrapper used by other append-only history endpoints.", "operationId": "listDispatches", "parameters": [ { @@ -11977,7 +11977,7 @@ "content": { "*/*": { "schema": { - "$ref": "#/components/schemas/TableValueResultNotificationDispatchDto" + "$ref": "#/components/schemas/CursorPageNotificationDispatchDto" } } } @@ -28219,6 +28219,32 @@ }, "description": "Cursor-paginated response for time-series and append-only data" }, + "CursorPageNotificationDispatchDto": { + "required": [ + "data", + "hasMore" + ], + "type": "object", + "properties": { + "data": { + "type": "array", + "description": "Items on this page", + "items": { + "$ref": "#/components/schemas/NotificationDispatchDto" + } + }, + "nextCursor": { + "type": "string", + "description": "Opaque cursor for the next page; null when there are no more results", + "nullable": true + }, + "hasMore": { + "type": "boolean", + "description": "Whether more results exist beyond this page" + } + }, + "description": "Cursor-paginated response for time-series and append-only data" + }, "CursorPageServiceCatalogDto": { "required": [ "data", @@ -37822,10 +37848,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -37858,10 +37880,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -37894,10 +37912,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -37930,10 +37944,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -37966,10 +37976,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38002,10 +38008,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38038,10 +38040,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38074,10 +38072,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38110,10 +38104,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38146,10 +38136,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38182,10 +38168,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38218,10 +38200,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38254,10 +38232,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38290,10 +38264,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38326,10 +38296,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38362,10 +38328,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38398,10 +38360,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38434,10 +38392,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38470,10 +38424,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38506,10 +38456,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38542,10 +38488,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38578,10 +38520,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38614,10 +38552,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38650,10 +38584,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38686,10 +38616,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38722,10 +38648,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38758,10 +38680,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38794,10 +38712,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38830,10 +38744,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38866,10 +38776,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38902,10 +38808,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38938,10 +38840,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -38974,10 +38872,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39010,10 +38904,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39046,10 +38936,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39082,10 +38968,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39118,10 +39000,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39154,10 +39032,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, @@ -39190,10 +39064,6 @@ "type": "integer", "format": "int32", "nullable": true - }, - "nextCursor": { - "type": "string", - "nullable": true } } }, diff --git a/internal/generated/types.go b/internal/generated/types.go index 7cb87d4..416c9c5 100644 --- a/internal/generated/types.go +++ b/internal/generated/types.go @@ -4784,6 +4784,18 @@ type CursorPageIncidentActivityEventDto struct { NextCursor *string `json:"nextCursor,omitempty"` } +// CursorPageNotificationDispatchDto Cursor-paginated response for time-series and append-only data +type CursorPageNotificationDispatchDto struct { + // Data Items on this page + Data []NotificationDispatchDto `json:"data"` + + // HasMore Whether more results exist beyond this page + HasMore bool `json:"hasMore"` + + // NextCursor Opaque cursor for the next page; null when there are no more results + NextCursor *string `json:"nextCursor,omitempty"` +} + // CursorPageServiceCatalogDto Cursor-paginated response for time-series and append-only data type CursorPageServiceCatalogDto struct { // Data Items on this page @@ -8810,7 +8822,6 @@ type TableValueResultAlertChannelDto struct { Data []AlertChannelDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8820,7 +8831,6 @@ type TableValueResultAlertDeliveryDto struct { Data []AlertDeliveryDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8830,7 +8840,6 @@ type TableValueResultApiKeyDto struct { Data []ApiKeyDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8840,7 +8849,6 @@ type TableValueResultAuditEventDto struct { Data []AuditEventDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8850,7 +8858,6 @@ type TableValueResultCategoryDto struct { Data []CategoryDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8860,7 +8867,6 @@ type TableValueResultComponentUptimeDayDto struct { Data []ComponentUptimeDayDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8870,7 +8876,6 @@ type TableValueResultDeliveryAttemptDto struct { Data []DeliveryAttemptDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8880,7 +8885,6 @@ type TableValueResultEnvironmentDto struct { Data []EnvironmentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8890,7 +8894,6 @@ type TableValueResultIncidentDto struct { Data []IncidentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8900,7 +8903,6 @@ type TableValueResultIncidentStateTransitionDto struct { Data []IncidentStateTransitionDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8910,7 +8912,6 @@ type TableValueResultIntegrationDto struct { Data []IntegrationDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8920,7 +8921,6 @@ type TableValueResultInviteDto struct { Data []InviteDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8930,7 +8930,6 @@ type TableValueResultMaintenanceWindowDto struct { Data []MaintenanceWindowDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8940,7 +8939,6 @@ type TableValueResultMemberDto struct { Data []MemberDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8950,7 +8948,6 @@ type TableValueResultMonitorDto struct { Data []MonitorDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8960,7 +8957,6 @@ type TableValueResultMonitorVersionDto struct { Data []MonitorVersionDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8970,7 +8966,6 @@ type TableValueResultNotificationDispatchDto struct { Data []NotificationDispatchDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8980,7 +8975,6 @@ type TableValueResultNotificationDto struct { Data []NotificationDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -8990,7 +8984,6 @@ type TableValueResultNotificationPolicyDto struct { Data []NotificationPolicyDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9000,7 +8993,6 @@ type TableValueResultResourceGroupDto struct { Data []ResourceGroupDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9010,7 +9002,6 @@ type TableValueResultRuleEvaluationDto struct { Data []RuleEvaluationDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9020,7 +9011,6 @@ type TableValueResultScheduledMaintenanceDto struct { Data []ScheduledMaintenanceDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9030,7 +9020,6 @@ type TableValueResultSecretDto struct { Data []SecretDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9040,7 +9029,6 @@ type TableValueResultServiceComponentDto struct { Data []ServiceComponentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9050,7 +9038,6 @@ type TableValueResultServiceIncidentDto struct { Data []ServiceIncidentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9060,7 +9047,6 @@ type TableValueResultServiceSubscriptionDto struct { Data []ServiceSubscriptionDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9070,7 +9056,6 @@ type TableValueResultStatusPageComponentDto struct { Data []StatusPageComponentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9080,7 +9065,6 @@ type TableValueResultStatusPageComponentGroupDto struct { Data []StatusPageComponentGroupDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9090,7 +9074,6 @@ type TableValueResultStatusPageCustomDomainDto struct { Data []StatusPageCustomDomainDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9100,7 +9083,6 @@ type TableValueResultStatusPageDto struct { Data []StatusPageDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9110,7 +9092,6 @@ type TableValueResultStatusPageIncidentDto struct { Data []StatusPageIncidentDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9120,7 +9101,6 @@ type TableValueResultStatusPageNotificationDeliveryDto struct { Data []StatusPageNotificationDeliveryDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9130,7 +9110,6 @@ type TableValueResultStatusPageSubscriberDto struct { Data []StatusPageSubscriberDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9140,7 +9119,6 @@ type TableValueResultTagDto struct { Data []TagDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9150,7 +9128,6 @@ type TableValueResultTestChannelResult struct { Data []TestChannelResult `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9160,7 +9137,6 @@ type TableValueResultVoiceLanguageDto struct { Data []VoiceLanguageDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9170,7 +9146,6 @@ type TableValueResultWebhookDeliveryDto struct { Data []WebhookDeliveryDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9180,7 +9155,6 @@ type TableValueResultWebhookEndpointDto struct { Data []WebhookEndpointDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` } @@ -9190,7 +9164,6 @@ type TableValueResultWorkspaceDto struct { Data []WorkspaceDto `json:"data"` HasNext bool `json:"hasNext"` HasPrev bool `json:"hasPrev"` - NextCursor *string `json:"nextCursor,omitempty"` TotalElements *int64 `json:"totalElements,omitempty"` TotalPages *int32 `json:"totalPages,omitempty"` }