Skip to content

Commit 20c391e

Browse files
authored
Merge pull request #84 from StackVista/fix-on-main
3 issues fixed
2 parents 4852b0e + cdd0863 commit 20c391e

62 files changed

Lines changed: 7085 additions & 723 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/topic/topic_describe.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030

3131
type DescribeArgs struct {
3232
Name string
33-
Offset int32
33+
Offset int64
3434
Limit int32
3535
Partition int32
3636
File string
@@ -48,15 +48,15 @@ func DescribeCommand(deps *di.Deps) *cobra.Command {
4848
cmd.Flags().StringVar(&args.Name, Name, "", NameUsage)
4949
cmd.MarkFlagRequired(Name) //nolint:errcheck
5050

51-
cmd.Flags().Int32Var(&args.Offset, Offset, -1, OffsetUsage)
51+
cmd.Flags().Int64Var(&args.Offset, Offset, -1, OffsetUsage)
5252
cmd.Flags().Int32Var(&args.Limit, Limit, DefaultLimit, LimitUsage)
5353
cmd.Flags().Int32Var(&args.Partition, Partition, -1, PartitionUsage)
5454
common.AddFileFlagVar(cmd, &args.File, FileUsage)
5555

5656
return cmd
5757
}
5858

59-
func argValueError(name string, value int32) common.CLIError {
59+
func argValueError(name string, value int64) common.CLIError {
6060
return common.NewCLIArgParseError(fmt.Errorf("invalid value for argument '%s' specified: %d", name, value))
6161
}
6262

@@ -85,7 +85,7 @@ func RunDescribeCommand(args *DescribeArgs) di.CmdWithApiFn {
8585
return argValueError(Offset, args.Offset)
8686
}
8787
if args.Limit < 1 {
88-
return argValueError(Limit, args.Limit)
88+
return argValueError(Limit, int64(args.Limit))
8989
}
9090

9191
request := api.TopicApi.Describe(cli.Context, args.Name)

cmd/topic/topic_describe_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func TestTopicDescribeDefaults(t *testing.T) {
186186

187187
type InvalidArgs struct {
188188
Name string
189-
Value int32
189+
Value int64
190190
}
191191

192192
func TestTopicDescribePaginationLimits(t *testing.T) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.0
1+
6.0.1

generated/stackstate_api/.openapi-generator/FILES

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
README.md
55
api/openapi.yaml
66
api_api_token.go
7+
api_authorize_ingestion_api_key.go
8+
api_component.go
79
api_dummy.go
810
api_event.go
911
api_export.go
1012
api_health_synchronization.go
1113
api_import.go
1214
api_ingestion_api_key.go
1315
api_kubernetes_logs.go
16+
api_layout.go
1417
api_metric.go
1518
api_monitor.go
1619
api_monitor_check_status.go
@@ -53,13 +56,21 @@ docs/ArgumentStructTypeVal.md
5356
docs/ArgumentTimeWindowVal.md
5457
docs/ArgumentTopologyPromQLMetricVal.md
5558
docs/ArgumentTopologyQueryVal.md
59+
docs/AuthorizeIngestionApiKeyApi.md
5660
docs/AuthorizeIngestionApiKeyRequest.md
61+
docs/BaseLayoutHint.md
5762
docs/BaseMonitorError.md
5863
docs/BaseNotificationChannel.md
5964
docs/CausingEventsAreNotAvailableForTheTime.md
6065
docs/CausingEventsResult.md
6166
docs/ChannelReferenceId.md
6267
docs/ComparatorWithoutEquality.md
68+
docs/ComponentApi.md
69+
docs/ComponentHealthChange.md
70+
docs/ComponentHealthHistory.md
71+
docs/ComponentHighlightMetricSection.md
72+
docs/ComponentHighlightMetricSectionAllOf.md
73+
docs/ComponentNotFoundError.md
6374
docs/ComponentQuery.md
6475
docs/CreateSubject.md
6576
docs/DataUnavailable.md
@@ -153,6 +164,10 @@ docs/KubernetesLogHistogramBucket.md
153164
docs/KubernetesLogRecord.md
154165
docs/KubernetesLogSeverityHistogramBucket.md
155166
docs/KubernetesLogsApi.md
167+
docs/LayoutApi.md
168+
docs/LayoutApiError.md
169+
docs/LayoutHint.md
170+
docs/LayoutList.md
156171
docs/LicensedSubscription.md
157172
docs/LimitOutOfRange.md
158173
docs/LockedResponse.md
@@ -164,10 +179,15 @@ docs/MessageLevel.md
164179
docs/Messages.md
165180
docs/MetricApi.md
166181
docs/MetricBucketValue.md
182+
docs/MetricPerspectiveSection.md
183+
docs/MetricPerspectiveSectionAllOf.md
184+
docs/MetricPerspectiveTab.md
185+
docs/MetricPerspectiveTabAllOf.md
167186
docs/Monitor.md
168187
docs/MonitorApi.md
169188
docs/MonitorApiError.md
170189
docs/MonitorApiErrorAllOf.md
190+
docs/MonitorCheckStates.md
171191
docs/MonitorCheckStatus.md
172192
docs/MonitorCheckStatusApi.md
173193
docs/MonitorCheckStatusApiError.md
@@ -300,6 +320,7 @@ docs/SpanSortDirection.md
300320
docs/SpanSortField.md
301321
docs/SpanSortOption.md
302322
docs/SpanSuggestionField.md
323+
docs/SpanSummary.md
303324
docs/Spans.md
304325
docs/StackElementNotFound.md
305326
docs/StackPack.md
@@ -356,6 +377,7 @@ docs/UserProfile.md
356377
docs/UserProfileApi.md
357378
docs/UserProfileSaveError.md
358379
docs/UserSessionApi.md
380+
docs/ViewCheckState.md
359381
docs/WebhookChannelRefId.md
360382
docs/WebhookChannelWriteSchema.md
361383
docs/WebhookNotificationChannel.md
@@ -384,12 +406,18 @@ model_argument_time_window_val.go
384406
model_argument_topology_prom_ql_metric_val.go
385407
model_argument_topology_query_val.go
386408
model_authorize_ingestion_api_key_request.go
409+
model_base_layout_hint.go
387410
model_base_monitor_error.go
388411
model_base_notification_channel.go
389412
model_causing_events_are_not_available_for_the_time.go
390413
model_causing_events_result.go
391414
model_channel_reference_id.go
392415
model_comparator_without_equality.go
416+
model_component_health_change.go
417+
model_component_health_history.go
418+
model_component_highlight_metric_section.go
419+
model_component_highlight_metric_section_all_of.go
420+
model_component_not_found_error.go
393421
model_component_query.go
394422
model_create_subject.go
395423
model_data_unavailable.go
@@ -476,6 +504,9 @@ model_kubernetes_log_highlight.go
476504
model_kubernetes_log_histogram_bucket.go
477505
model_kubernetes_log_record.go
478506
model_kubernetes_log_severity_histogram_bucket.go
507+
model_layout_api_error.go
508+
model_layout_hint.go
509+
model_layout_list.go
479510
model_licensed_subscription.go
480511
model_limit_out_of_range.go
481512
model_locked_response.go
@@ -486,9 +517,14 @@ model_message.go
486517
model_message_level.go
487518
model_messages.go
488519
model_metric_bucket_value.go
520+
model_metric_perspective_section.go
521+
model_metric_perspective_section_all_of.go
522+
model_metric_perspective_tab.go
523+
model_metric_perspective_tab_all_of.go
489524
model_monitor.go
490525
model_monitor_api_error.go
491526
model_monitor_api_error_all_of.go
527+
model_monitor_check_states.go
492528
model_monitor_check_status.go
493529
model_monitor_check_status_api_error.go
494530
model_monitor_check_status_component.go
@@ -612,6 +648,7 @@ model_span_sort_direction.go
612648
model_span_sort_field.go
613649
model_span_sort_option.go
614650
model_span_suggestion_field.go
651+
model_span_summary.go
615652
model_spans.go
616653
model_stack_element_not_found.go
617654
model_stack_pack.go
@@ -660,6 +697,7 @@ model_user_not_found_error.go
660697
model_user_not_logged_in_error.go
661698
model_user_profile.go
662699
model_user_profile_save_error.go
700+
model_view_check_state.go
663701
model_webhook_channel_ref_id.go
664702
model_webhook_channel_write_schema.go
665703
model_webhook_notification_channel.go
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.1.0
1+
6.0.1

generated/stackstate_api/README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ All URIs are relative to *http://localhost*
8888
Class | Method | HTTP request | Description
8989
------------ | ------------- | ------------- | -------------
9090
*ApiTokenApi* | [**GetCurrentUserApiTokens**](docs/ApiTokenApi.md#getcurrentuserapitokens) | **Get** /user/profile/tokens | Get current user&#39;s API tokens
91+
*AuthorizeIngestionApiKeyApi* | [**AuthorizeIngestionApiKey**](docs/AuthorizeIngestionApiKeyApi.md#authorizeingestionapikey) | **Post** /security/ingestion/authorize | Check authorization for an Ingestion Api Key
92+
*ComponentApi* | [**GetComponentHealthHistory**](docs/ComponentApi.md#getcomponenthealthhistory) | **Get** /components/{componentIdOrUrn}/healthHistory | Get a component health history
9193
*DummyApi* | [**Dummy**](docs/DummyApi.md#dummy) | **Get** /dummy/dummy | Dummy path to fix omission in openapi generation when a type is not included.
9294
*EventApi* | [**GetEvent**](docs/EventApi.md#getevent) | **Get** /events/{eventId} | Get single event
9395
*EventApi* | [**GetEventSources**](docs/EventApi.md#geteventsources) | **Get** /eventSources | Get event sources
@@ -105,13 +107,13 @@ Class | Method | HTTP request | Description
105107
*HealthSynchronizationApi* | [**GetHealthSynchronizationSubStreamTopologyMatches**](docs/HealthSynchronizationApi.md#gethealthsynchronizationsubstreamtopologymatches) | **Get** /synchronization/health/streams/{healthStreamUrn}/substreams/{healthSyncSubStreamId}/topologyMatches | List health sync sub-stream check-states
106108
*HealthSynchronizationApi* | [**PostHealthSynchronizationStreamClearErrors**](docs/HealthSynchronizationApi.md#posthealthsynchronizationstreamclearerrors) | **Post** /synchronization/health/streams/{healthStreamUrn}/clearErrors | Clear health sync stream errors
107109
*ImportApi* | [**ImportSettings**](docs/ImportApi.md#importsettings) | **Post** /import | Import settings
108-
*IngestionApiKeyApi* | [**AuthorizeIngestionApiKey**](docs/IngestionApiKeyApi.md#authorizeingestionapikey) | **Post** /security/ingestion/authorize | Check authorization for an Ingestion Api Key
109110
*IngestionApiKeyApi* | [**DeleteIngestionApiKey**](docs/IngestionApiKeyApi.md#deleteingestionapikey) | **Delete** /security/ingestion/api_keys/{ingestionApiKeyId} | Delete Ingestion Api Key
110111
*IngestionApiKeyApi* | [**GenerateIngestionApiKey**](docs/IngestionApiKeyApi.md#generateingestionapikey) | **Post** /security/ingestion/api_keys | Generate a new Ingestion Api Key
111112
*IngestionApiKeyApi* | [**GetIngestionApiKeys**](docs/IngestionApiKeyApi.md#getingestionapikeys) | **Get** /security/ingestion/api_keys | List Ingestion Api Keys
112113
*KubernetesLogsApi* | [**GetKubernetesLogs**](docs/KubernetesLogsApi.md#getkuberneteslogs) | **Get** /k8s/logs | Get Kubernetes logs
113114
*KubernetesLogsApi* | [**GetKubernetesLogsAutocomplete**](docs/KubernetesLogsApi.md#getkuberneteslogsautocomplete) | **Get** /k8s/logs/autocomplete | Get Kubernetes logs autocomplete values
114115
*KubernetesLogsApi* | [**GetKubernetesLogsHistogram**](docs/KubernetesLogsApi.md#getkuberneteslogshistogram) | **Get** /k8s/logs/histogram | Get Kubernetes logs histogram
116+
*LayoutApi* | [**GetAllLayouts**](docs/LayoutApi.md#getalllayouts) | **Get** /layouts | List layout hints
115117
*MetricApi* | [**GetExemplarsQuery**](docs/MetricApi.md#getexemplarsquery) | **Get** /metrics/query_exemplars | Experimental: Exemplars for a specific time range
116118
*MetricApi* | [**GetInstantQuery**](docs/MetricApi.md#getinstantquery) | **Get** /metrics/query | Instant query at a single point in time
117119
*MetricApi* | [**GetLabelValues**](docs/MetricApi.md#getlabelvalues) | **Get** /metrics/label/{label}/values | List of label values for a provided label name
@@ -129,16 +131,19 @@ Class | Method | HTTP request | Description
129131
*MonitorApi* | [**DeleteMonitor**](docs/MonitorApi.md#deletemonitor) | **Delete** /monitors/{monitorIdOrUrn} | Delete a monitor
130132
*MonitorApi* | [**GetAllMonitors**](docs/MonitorApi.md#getallmonitors) | **Get** /monitors | List monitors
131133
*MonitorApi* | [**GetMonitor**](docs/MonitorApi.md#getmonitor) | **Get** /monitors/{monitorIdOrUrn} | Get a monitor
134+
*MonitorApi* | [**GetMonitorCheckStates**](docs/MonitorApi.md#getmonitorcheckstates) | **Get** /monitors/{monitorIdOrUrn}/checkStates | Get the check states for a monitor
132135
*MonitorApi* | [**GetMonitorWithStatus**](docs/MonitorApi.md#getmonitorwithstatus) | **Get** /monitors/{monitorIdOrUrn}/status | Get a monitor with stream information
133136
*MonitorApi* | [**GetMonitorsOverview**](docs/MonitorApi.md#getmonitorsoverview) | **Get** /monitors/overview | List monitors overview
134137
*MonitorApi* | [**LookupIdentifier**](docs/MonitorApi.md#lookupidentifier) | **Post** /monitors/identifierLookup | Multiple component identifier lookup
135138
*MonitorApi* | [**PatchMonitor**](docs/MonitorApi.md#patchmonitor) | **Patch** /monitors/{monitorIdOrUrn} | Update some monitor properties
136139
*MonitorApi* | [**PreviewMonitor**](docs/MonitorApi.md#previewmonitor) | **Post** /monitors/{monitorIdOrUrn}/preview | Preview a monitor
140+
*MonitorApi* | [**PreviewMonitorCheckStates**](docs/MonitorApi.md#previewmonitorcheckstates) | **Post** /monitors/{monitorIdOrUrn}/preview/checkStates | Preview a monitor
137141
*MonitorApi* | [**PublishHealthStates**](docs/MonitorApi.md#publishhealthstates) | **Post** /monitors/{monitorIdOrUrn}/publish | Post monitor health states
138142
*MonitorApi* | [**RunMonitor**](docs/MonitorApi.md#runmonitor) | **Post** /monitors/{monitorIdOrUrn}/run | Run a monitor
139143
*MonitorApi* | [**TestMonitorFunction**](docs/MonitorApi.md#testmonitorfunction) | **Post** /monitors/{monitorFunctionIdOrUrn}/test | Test a monitor
144+
*MonitorApi* | [**TestMonitorFunctionCheckStates**](docs/MonitorApi.md#testmonitorfunctioncheckstates) | **Post** /monitors/{monitorFunctionIdOrUrn}/test/checkStates | Test a monitor
140145
*MonitorCheckStatusApi* | [**GetMonitorCheckStatus**](docs/MonitorCheckStatusApi.md#getmonitorcheckstatus) | **Get** /monitor/checkStatus/{id} | Get a monitor check status
141-
*MonitorCheckStatusApi* | [**GetMonitorCheckStatusHealthHistory**](docs/MonitorCheckStatusApi.md#getmonitorcheckstatushealthhistory) | **Get** /monitor/checkStatus/{id}/healthHistory | Get a monitor check health hisotry
146+
*MonitorCheckStatusApi* | [**GetMonitorCheckStatusHealthHistory**](docs/MonitorCheckStatusApi.md#getmonitorcheckstatushealthhistory) | **Get** /monitor/checkStatus/{id}/healthHistory | Get a monitor check health history
142147
*MonitorCheckStatusApi* | [**GetMonitorCheckStatusRelatedFailures**](docs/MonitorCheckStatusApi.md#getmonitorcheckstatusrelatedfailures) | **Get** /monitor/checkStatus/{id}/relatedFailures | Get a monitor check related failures
143148
*NodeApi* | [**Clone**](docs/NodeApi.md#clone) | **Post** /node/{nodeType}/{nodeIdOrUrn}/clone | Clone a node with a new name
144149
*NodeApi* | [**Delete**](docs/NodeApi.md#delete) | **Delete** /node/{nodeType}/{nodeId} | Node deletion API
@@ -236,12 +241,18 @@ Class | Method | HTTP request | Description
236241
- [ArgumentTopologyPromQLMetricVal](docs/ArgumentTopologyPromQLMetricVal.md)
237242
- [ArgumentTopologyQueryVal](docs/ArgumentTopologyQueryVal.md)
238243
- [AuthorizeIngestionApiKeyRequest](docs/AuthorizeIngestionApiKeyRequest.md)
244+
- [BaseLayoutHint](docs/BaseLayoutHint.md)
239245
- [BaseMonitorError](docs/BaseMonitorError.md)
240246
- [BaseNotificationChannel](docs/BaseNotificationChannel.md)
241247
- [CausingEventsAreNotAvailableForTheTime](docs/CausingEventsAreNotAvailableForTheTime.md)
242248
- [CausingEventsResult](docs/CausingEventsResult.md)
243249
- [ChannelReferenceId](docs/ChannelReferenceId.md)
244250
- [ComparatorWithoutEquality](docs/ComparatorWithoutEquality.md)
251+
- [ComponentHealthChange](docs/ComponentHealthChange.md)
252+
- [ComponentHealthHistory](docs/ComponentHealthHistory.md)
253+
- [ComponentHighlightMetricSection](docs/ComponentHighlightMetricSection.md)
254+
- [ComponentHighlightMetricSectionAllOf](docs/ComponentHighlightMetricSectionAllOf.md)
255+
- [ComponentNotFoundError](docs/ComponentNotFoundError.md)
245256
- [ComponentQuery](docs/ComponentQuery.md)
246257
- [CreateSubject](docs/CreateSubject.md)
247258
- [DataUnavailable](docs/DataUnavailable.md)
@@ -328,6 +339,9 @@ Class | Method | HTTP request | Description
328339
- [KubernetesLogHistogramBucket](docs/KubernetesLogHistogramBucket.md)
329340
- [KubernetesLogRecord](docs/KubernetesLogRecord.md)
330341
- [KubernetesLogSeverityHistogramBucket](docs/KubernetesLogSeverityHistogramBucket.md)
342+
- [LayoutApiError](docs/LayoutApiError.md)
343+
- [LayoutHint](docs/LayoutHint.md)
344+
- [LayoutList](docs/LayoutList.md)
331345
- [LicensedSubscription](docs/LicensedSubscription.md)
332346
- [LimitOutOfRange](docs/LimitOutOfRange.md)
333347
- [LockedResponse](docs/LockedResponse.md)
@@ -338,9 +352,14 @@ Class | Method | HTTP request | Description
338352
- [MessageLevel](docs/MessageLevel.md)
339353
- [Messages](docs/Messages.md)
340354
- [MetricBucketValue](docs/MetricBucketValue.md)
355+
- [MetricPerspectiveSection](docs/MetricPerspectiveSection.md)
356+
- [MetricPerspectiveSectionAllOf](docs/MetricPerspectiveSectionAllOf.md)
357+
- [MetricPerspectiveTab](docs/MetricPerspectiveTab.md)
358+
- [MetricPerspectiveTabAllOf](docs/MetricPerspectiveTabAllOf.md)
341359
- [Monitor](docs/Monitor.md)
342360
- [MonitorApiError](docs/MonitorApiError.md)
343361
- [MonitorApiErrorAllOf](docs/MonitorApiErrorAllOf.md)
362+
- [MonitorCheckStates](docs/MonitorCheckStates.md)
344363
- [MonitorCheckStatus](docs/MonitorCheckStatus.md)
345364
- [MonitorCheckStatusApiError](docs/MonitorCheckStatusApiError.md)
346365
- [MonitorCheckStatusComponent](docs/MonitorCheckStatusComponent.md)
@@ -464,6 +483,7 @@ Class | Method | HTTP request | Description
464483
- [SpanSortField](docs/SpanSortField.md)
465484
- [SpanSortOption](docs/SpanSortOption.md)
466485
- [SpanSuggestionField](docs/SpanSuggestionField.md)
486+
- [SpanSummary](docs/SpanSummary.md)
467487
- [Spans](docs/Spans.md)
468488
- [StackElementNotFound](docs/StackElementNotFound.md)
469489
- [StackPack](docs/StackPack.md)
@@ -512,6 +532,7 @@ Class | Method | HTTP request | Description
512532
- [UserNotLoggedInError](docs/UserNotLoggedInError.md)
513533
- [UserProfile](docs/UserProfile.md)
514534
- [UserProfileSaveError](docs/UserProfileSaveError.md)
535+
- [ViewCheckState](docs/ViewCheckState.md)
515536
- [WebhookChannelRefId](docs/WebhookChannelRefId.md)
516537
- [WebhookChannelWriteSchema](docs/WebhookChannelWriteSchema.md)
517538
- [WebhookNotificationChannel](docs/WebhookNotificationChannel.md)

0 commit comments

Comments
 (0)