Skip to content

Commit

Permalink
addition of cluster sync status
Browse files Browse the repository at this point in the history
  • Loading branch information
scott-cotton committed Oct 25, 2023
1 parent a159ec8 commit 42064c0
Show file tree
Hide file tree
Showing 8 changed files with 614 additions and 9 deletions.
82 changes: 82 additions & 0 deletions generate/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
},
"operator": {
"$ref": "#/definitions/cluster.Operator"
},
"syncStatus": {
"$ref": "#/definitions/clusters.SyncStatus"
}
},
"type": "object"
Expand Down Expand Up @@ -174,6 +177,85 @@
},
"type": "object"
},
"clusters.ErrorItem": {
"properties": {
"error": {
"type": "string"
},
"name": {
"type": "string"
}
},
"type": "object"
},
"clusters.ReadinessStats": {
"properties": {
"count": {
"type": "integer"
},
"readyCondition": {
"type": "string"
},
"readyReason": {
"type": "string"
}
},
"type": "object"
},
"clusters.SyncCollectionStatus": {
"properties": {
"clusterState": {
"description": "A snapshot of the cluster prior to sync.",
"items": {
"$ref": "#/definitions/clusters.ReadinessStats"
},
"type": "array"
},
"creations": {
"description": "The number of creations applied to ClusterState.",
"type": "integer"
},
"deletions": {
"description": "The number of deletions applied to ClusterState.",
"type": "integer"
},
"errors": {
"description": "Names and errorsassociated items which did not successfully sync,\npossibly truncated.",
"items": {
"$ref": "#/definitions/clusters.ErrorItem"
},
"type": "array"
},
"updates": {
"description": "The number of updates applied to ClusterState.",
"type": "integer"
}
},
"type": "object"
},
"clusters.SyncStatus": {
"properties": {
"lastError": {
"description": "The last global error of a sync, preventing any synchronisation\nfrom occuring.",
"type": "string"
},
"lastErrorTime": {
"description": "The time of the last global error of a sync",
"type": "string"
},
"lastSyncTime": {
"description": "The time of the last successful sync.",
"type": "string"
},
"routegroups": {
"$ref": "#/definitions/clusters.SyncCollectionStatus"
},
"sandboxes": {
"$ref": "#/definitions/clusters.SyncCollectionStatus"
}
},
"type": "object"
},
"local": {
"properties": {
"from": {
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ require (
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
go.mongodb.org/mongo-driver v1.12.1 // indirect
go.opentelemetry.io/otel v1.18.0 // indirect
go.opentelemetry.io/otel/metric v1.18.0 // indirect
go.opentelemetry.io/otel/trace v1.18.0 // indirect
go.opentelemetry.io/otel v1.19.0 // indirect
go.opentelemetry.io/otel/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@ go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4x
go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8=
go.mongodb.org/mongo-driver v1.12.1 h1:nLkghSU8fQNaK7oUmDhQFsnrtcoNy7Z6LVFKsEecqgE=
go.mongodb.org/mongo-driver v1.12.1/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ=
go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs=
go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI=
go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ=
go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k=
go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs=
go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY=
go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE=
go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8=
go.opentelemetry.io/otel/sdk v1.14.0 h1:PDCppFRDq8A1jL9v6KMI6dYesaq+DFcDZvjsoGvxGzY=
go.opentelemetry.io/otel/sdk v1.14.0/go.mod h1:bwIC5TjrNG6QDCHNWvW4HLHtUQ4I+VQDsnjhvyZCALM=
go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10=
go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0=
go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg=
go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
Expand Down
51 changes: 51 additions & 0 deletions models/cluster.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions models/clusters_error_item.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions models/clusters_readiness_stats.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 42064c0

Please sign in to comment.