Skip to content

Commit 755715a

Browse files
STAC-0: Drop status field
1 parent ea4007d commit 755715a

34 files changed

Lines changed: 3493 additions & 223 deletions

cmd/topologysync/topologysync_describe_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ func TestTopologySyncDescribeErrors(t *testing.T) {
8585

8686
expectedTableCall := []printer.TableData{
8787
{
88-
Header: []string{"Id", "Name", "Identifier", "Status", "Components", "Relations", "Errors"},
88+
Header: []string{"Id", "Name", "Identifier", "Components", "Relations", "Errors"},
8989
Data: [][]interface{}{
90-
{Topo1.NodeId, Topo1.Name, "-", Topo1.Status, "+0 -0", "+0 -0", int64(0)},
90+
{Topo1.NodeId, Topo1.Name, "-", "+0 -0", "+0 -0", int64(0)},
9191
},
9292
MissingTableDataMsg: printer.NotFoundMsg{Types: "synchronizations"},
9393
},

cmd/topologysync/topologysync_list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ func FormatSyncTable(streams []stackstate_api.TopologyStreamListItem) printer.Ta
3333
stream.NodeId,
3434
stream.Name,
3535
identifier,
36-
stream.Status,
3736
fmt.Sprintf("+%-4d %5s", stream.CreatedComponents, fmt.Sprintf("-%d", stream.DeletedComponents)),
3837
fmt.Sprintf("+%-4d %5s", stream.CreatedRelations, fmt.Sprintf("-%d", stream.DeletedRelations)),
3938
stream.Errors,
4039
}
4140
}
4241
return printer.TableData{
43-
Header: []string{"Id", "Name", "Identifier", "Status", "Components", "Relations", "Errors"},
42+
Header: []string{"Id", "Name", "Identifier", "Components", "Relations", "Errors"},
4443
Data: data,
4544
MissingTableDataMsg: printer.NotFoundMsg{Types: "synchronizations"},
4645
}

cmd/topologysync/topologysync_list_test.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
)
1111

1212
var (
13-
Topo1 = stackstate_api.NewTopologyStreamListItem(int64(23), "Topo 1", 0, 0, 0, 0, 0, stackstate_api.TOPOLOGYSYNCSTATUS_RUNNING)
14-
Topo2 = stackstate_api.NewTopologyStreamListItem(5, "Topo 2", 23, 5, 23, 5, 0, stackstate_api.TOPOLOGYSYNCSTATUS_DELETING)
13+
Topo1 = stackstate_api.NewTopologyStreamListItem(int64(23), "Topo 1", 0, 0, 0, 0, 0)
14+
Topo2 = stackstate_api.NewTopologyStreamListItem(5, "Topo 2", 23, 5, 23, 5, 0)
1515

16-
Topo3 = stackstate_api.NewTopologyStreamListItem(13, "Topo 3", 12345, 23, 23, 12345, 1, stackstate_api.TOPOLOGYSYNCSTATUS_DELETE_FAILED)
16+
Topo3 = stackstate_api.NewTopologyStreamListItem(13, "Topo 3", 12345, 23, 23, 12345, 1)
1717

18-
Topo4 = stackstate_api.NewTopologyStreamListItem(7, "Topo 4", 12345, 12345, 12345, 12345, 23, stackstate_api.TOPOLOGYSYNCSTATUS_RESETTING)
18+
Topo4 = stackstate_api.NewTopologyStreamListItem(7, "Topo 4", 12345, 12345, 12345, 12345, 23)
1919

2020
AllTopos = []stackstate_api.TopologyStreamListItem{*Topo1, *Topo2, *Topo3, *Topo4}
2121

@@ -31,12 +31,12 @@ func TestTopologySyncListTable(t *testing.T) {
3131

3232
expectedTableCall := []printer.TableData{
3333
{
34-
Header: []string{"Id", "Name", "Identifier", "Status", "Components", "Relations", "Errors"},
34+
Header: []string{"Id", "Name", "Identifier", "Components", "Relations", "Errors"},
3535
Data: [][]interface{}{
36-
{Topo1.NodeId, Topo1.Name, "-", Topo1.Status, "+0 -0", "+0 -0", int64(0)},
37-
{Topo2.NodeId, Topo2.Name, "-", Topo2.Status, "+23 -5", "+23 -5", int64(0)},
38-
{Topo3.NodeId, Topo3.Name, "-", Topo3.Status, "+23 -12345", "+12345 -23", int64(1)},
39-
{Topo4.NodeId, Topo4.Name, "-", Topo4.Status, "+12345 -12345", "+12345 -12345", int64(23)},
36+
{Topo1.NodeId, Topo1.Name, "-", "+0 -0", "+0 -0", int64(0)},
37+
{Topo2.NodeId, Topo2.Name, "-", "+23 -5", "+23 -5", int64(0)},
38+
{Topo3.NodeId, Topo3.Name, "-", "+23 -12345", "+12345 -23", int64(1)},
39+
{Topo4.NodeId, Topo4.Name, "-", "+12345 -12345", "+12345 -12345", int64(23)},
4040
},
4141
MissingTableDataMsg: printer.NotFoundMsg{Types: "synchronizations"},
4242
},

generated/stackstate_api/.openapi-generator/FILES

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ api_stackpack.go
3131
api_subject.go
3232
api_subscription.go
3333
api_system_notifications.go
34+
api_timeline.go
3435
api_topic.go
3536
api_topology_synchronization.go
3637
api_traces.go
38+
api_user_authorization.go
3739
api_user_profile.go
3840
api_user_session.go
3941
client.go
@@ -81,6 +83,7 @@ docs/ComponentHighlightMetricSection.md
8183
docs/ComponentHighlightMetricSectionAllOf.md
8284
docs/ComponentNotFoundError.md
8385
docs/ComponentQuery.md
86+
docs/ComponentViewArguments.md
8487
docs/CreateSubject.md
8588
docs/DataUnavailable.md
8689
docs/DependencyDirection.md
@@ -100,6 +103,7 @@ docs/EventCategoryBucket.md
100103
docs/EventComponent.md
101104
docs/EventCursor.md
102105
docs/EventElement.md
106+
docs/EventFilters.md
103107
docs/EventItemsWithTotal.md
104108
docs/EventListRequest.md
105109
docs/EventNotFoundError.md
@@ -297,6 +301,7 @@ docs/PromSeriesEnvelope.md
297301
docs/PromVector.md
298302
docs/PromVectorResult.md
299303
docs/ProvisionResponse.md
304+
docs/QueryViewArguments.md
300305
docs/ReleaseStatus.md
301306
docs/RequestError.md
302307
docs/RequestValidationError.md
@@ -359,6 +364,13 @@ docs/TeamsChannelRefId.md
359364
docs/TeamsChannelWriteSchema.md
360365
docs/TeamsNotificationChannel.md
361366
docs/TeamsNotificationChannelAllOf.md
367+
docs/TimelineApi.md
368+
docs/TimelineSummary.md
369+
docs/TimelineSummaryError.md
370+
docs/TimelineSummaryEventBucket.md
371+
docs/TimelineSummaryHealthChange.md
372+
docs/TimelineSummaryRequest.md
373+
docs/TimelineSummaryRequestArguments.md
362374
docs/TooManyActiveQueries.md
363375
docs/TooManyTopologyResults.md
364376
docs/Topic.md
@@ -373,7 +385,6 @@ docs/TopologyStreamListItem.md
373385
docs/TopologyStreamListItemWithErrorDetails.md
374386
docs/TopologyStreamMetrics.md
375387
docs/TopologySyncError.md
376-
docs/TopologySyncStatus.md
377388
docs/TopologySynchronizationApi.md
378389
docs/TopologyTimeOutOfRange.md
379390
docs/Trace.md
@@ -391,6 +402,7 @@ docs/Traces.md
391402
docs/TracesApi.md
392403
docs/UnlicensedSubscription.md
393404
docs/UnmatchedCheckState.md
405+
docs/UserAuthorizationApi.md
394406
docs/UserNameMismatchError.md
395407
docs/UserNotFoundError.md
396408
docs/UserNotLoggedInError.md
@@ -444,6 +456,7 @@ model_component_highlight_metric_section.go
444456
model_component_highlight_metric_section_all_of.go
445457
model_component_not_found_error.go
446458
model_component_query.go
459+
model_component_view_arguments.go
447460
model_create_subject.go
448461
model_data_unavailable.go
449462
model_dependency_direction.go
@@ -461,6 +474,7 @@ model_event_category_bucket.go
461474
model_event_component.go
462475
model_event_cursor.go
463476
model_event_element.go
477+
model_event_filters.go
464478
model_event_items_with_total.go
465479
model_event_list_request.go
466480
model_event_not_found_error.go
@@ -644,6 +658,7 @@ model_prom_series_envelope.go
644658
model_prom_vector.go
645659
model_prom_vector_result.go
646660
model_provision_response.go
661+
model_query_view_arguments.go
647662
model_release_status.go
648663
model_request_error.go
649664
model_request_validation_error.go
@@ -699,6 +714,12 @@ model_teams_channel_ref_id.go
699714
model_teams_channel_write_schema.go
700715
model_teams_notification_channel.go
701716
model_teams_notification_channel_all_of.go
717+
model_timeline_summary.go
718+
model_timeline_summary_error.go
719+
model_timeline_summary_event_bucket.go
720+
model_timeline_summary_health_change.go
721+
model_timeline_summary_request.go
722+
model_timeline_summary_request_arguments.go
702723
model_too_many_active_queries.go
703724
model_too_many_topology_results.go
704725
model_topic.go
@@ -712,7 +733,6 @@ model_topology_stream_list_item.go
712733
model_topology_stream_list_item_with_error_details.go
713734
model_topology_stream_metrics.go
714735
model_topology_sync_error.go
715-
model_topology_sync_status.go
716736
model_topology_time_out_of_range.go
717737
model_trace.go
718738
model_trace_api_error.go

generated/stackstate_api/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
211211
*SubscriptionApi* | [**GetSubscription**](docs/SubscriptionApi.md#getsubscription) | **Get** /subscription | Get subscription info
212212
*SubscriptionApi* | [**PostSubscription**](docs/SubscriptionApi.md#postsubscription) | **Post** /subscription | Submit a new license to update the subscription
213213
*SystemNotificationsApi* | [**AllSystemNotifications**](docs/SystemNotificationsApi.md#allsystemnotifications) | **Get** /system/notifications | Overview of system notifications
214+
*TimelineApi* | [**GetTimelineSummary**](docs/TimelineApi.md#gettimelinesummary) | **Post** /timeline/summary | Timeline summary
214215
*TopicApi* | [**Describe**](docs/TopicApi.md#describe) | **Get** /topic/{topic} | Describe a topic
215216
*TopicApi* | [**List**](docs/TopicApi.md#list) | **Get** /topic | List topics
216217
*TopologySynchronizationApi* | [**GetTopologySynchronizationStreamById**](docs/TopologySynchronizationApi.md#gettopologysynchronizationstreambyid) | **Get** /synchronization/topology/streams/sync | Overview of a specific Topology Stream, queried by node id or sync identifier
@@ -225,6 +226,7 @@ Class | Method | HTTP request | Description
225226
*TracesApi* | [**SuggestionsAttributeName**](docs/TracesApi.md#suggestionsattributename) | **Get** /traces/spans/fields/attributes | Suggestions for attribute names
226227
*TracesApi* | [**SuggestionsAttributeValue**](docs/TracesApi.md#suggestionsattributevalue) | **Get** /traces/spans/fields/attributes/{attributeName}/values | Suggestions for attribute values
227228
*TracesApi* | [**SuggestionsFieldValues**](docs/TracesApi.md#suggestionsfieldvalues) | **Get** /traces/spans/fields/{field}/values | Suggestions for span fields
229+
*UserAuthorizationApi* | [**GetUserAuthorizationFor**](docs/UserAuthorizationApi.md#getuserauthorizationfor) | **Get** /user/authorization/for | Is the current user authorized for the provided permission
228230
*UserProfileApi* | [**GetCurrentUserProfile**](docs/UserProfileApi.md#getcurrentuserprofile) | **Get** /user/profile | Get current user profile
229231
*UserProfileApi* | [**SaveCurrentUserProfile**](docs/UserProfileApi.md#savecurrentuserprofile) | **Put** /user/profile | Save current user profile
230232
*UserSessionApi* | [**GetUserSessionAssumedRole**](docs/UserSessionApi.md#getusersessionassumedrole) | **Get** /user/session/assumedRole | Get the assumed a role for the current session
@@ -272,6 +274,7 @@ Class | Method | HTTP request | Description
272274
- [ComponentHighlightMetricSectionAllOf](docs/ComponentHighlightMetricSectionAllOf.md)
273275
- [ComponentNotFoundError](docs/ComponentNotFoundError.md)
274276
- [ComponentQuery](docs/ComponentQuery.md)
277+
- [ComponentViewArguments](docs/ComponentViewArguments.md)
275278
- [CreateSubject](docs/CreateSubject.md)
276279
- [DataUnavailable](docs/DataUnavailable.md)
277280
- [DependencyDirection](docs/DependencyDirection.md)
@@ -289,6 +292,7 @@ Class | Method | HTTP request | Description
289292
- [EventComponent](docs/EventComponent.md)
290293
- [EventCursor](docs/EventCursor.md)
291294
- [EventElement](docs/EventElement.md)
295+
- [EventFilters](docs/EventFilters.md)
292296
- [EventItemsWithTotal](docs/EventItemsWithTotal.md)
293297
- [EventListRequest](docs/EventListRequest.md)
294298
- [EventNotFoundError](docs/EventNotFoundError.md)
@@ -472,6 +476,7 @@ Class | Method | HTTP request | Description
472476
- [PromVector](docs/PromVector.md)
473477
- [PromVectorResult](docs/PromVectorResult.md)
474478
- [ProvisionResponse](docs/ProvisionResponse.md)
479+
- [QueryViewArguments](docs/QueryViewArguments.md)
475480
- [ReleaseStatus](docs/ReleaseStatus.md)
476481
- [RequestError](docs/RequestError.md)
477482
- [RequestValidationError](docs/RequestValidationError.md)
@@ -527,6 +532,12 @@ Class | Method | HTTP request | Description
527532
- [TeamsChannelWriteSchema](docs/TeamsChannelWriteSchema.md)
528533
- [TeamsNotificationChannel](docs/TeamsNotificationChannel.md)
529534
- [TeamsNotificationChannelAllOf](docs/TeamsNotificationChannelAllOf.md)
535+
- [TimelineSummary](docs/TimelineSummary.md)
536+
- [TimelineSummaryError](docs/TimelineSummaryError.md)
537+
- [TimelineSummaryEventBucket](docs/TimelineSummaryEventBucket.md)
538+
- [TimelineSummaryHealthChange](docs/TimelineSummaryHealthChange.md)
539+
- [TimelineSummaryRequest](docs/TimelineSummaryRequest.md)
540+
- [TimelineSummaryRequestArguments](docs/TimelineSummaryRequestArguments.md)
530541
- [TooManyActiveQueries](docs/TooManyActiveQueries.md)
531542
- [TooManyTopologyResults](docs/TooManyTopologyResults.md)
532543
- [Topic](docs/Topic.md)
@@ -540,7 +551,6 @@ Class | Method | HTTP request | Description
540551
- [TopologyStreamListItemWithErrorDetails](docs/TopologyStreamListItemWithErrorDetails.md)
541552
- [TopologyStreamMetrics](docs/TopologyStreamMetrics.md)
542553
- [TopologySyncError](docs/TopologySyncError.md)
543-
- [TopologySyncStatus](docs/TopologySyncStatus.md)
544554
- [TopologyTimeOutOfRange](docs/TopologyTimeOutOfRange.md)
545555
- [Trace](docs/Trace.md)
546556
- [TraceApiError](docs/TraceApiError.md)

0 commit comments

Comments
 (0)