feat: Add new replication field to better show queue sync progress (#480)
* chore: update openapi * feat: update replication field names to match influx changes * feat: add new field to show replication queue sync progress * chore: update to master openapi
This commit is contained in:
@ -12,7 +12,7 @@ import (
|
||||
|
||||
type Client struct {
|
||||
clients.CLI
|
||||
api.AuthorizationsApi
|
||||
api.AuthorizationsAPITokensApi
|
||||
api.UsersApi
|
||||
api.OrganizationsApi
|
||||
api.ResourcesApi
|
||||
|
@ -241,7 +241,7 @@ func (c Client) printReplication(opts printReplicationOpts) error {
|
||||
}
|
||||
|
||||
headers := []string{"ID", "Name", "Org ID", "Remote ID", "Local Bucket ID", "Remote Bucket ID", "Remote Bucket Name",
|
||||
"Current Queue Bytes", "Max Queue Bytes", "Latest Status Code", "Drop Non-Retryable Data"}
|
||||
"Remaining Bytes to be Synced", "Current Queue Bytes on Disk", "Max Queue Bytes", "Latest Status Code", "Drop Non-Retryable Data"}
|
||||
if opts.deleted {
|
||||
headers = append(headers, "Deleted")
|
||||
}
|
||||
@ -258,17 +258,18 @@ func (c Client) printReplication(opts printReplicationOpts) error {
|
||||
bucketID = ""
|
||||
}
|
||||
row := map[string]interface{}{
|
||||
"ID": r.GetId(),
|
||||
"Name": r.GetName(),
|
||||
"Org ID": r.GetOrgID(),
|
||||
"Remote ID": r.GetRemoteID(),
|
||||
"Local Bucket ID": r.GetLocalBucketID(),
|
||||
"Remote Bucket ID": bucketID,
|
||||
"Remote Bucket Name": r.GetRemoteBucketName(),
|
||||
"Current Queue Bytes": r.GetCurrentQueueSizeBytes(),
|
||||
"Max Queue Bytes": r.GetMaxQueueSizeBytes(),
|
||||
"Latest Status Code": r.GetLatestResponseCode(),
|
||||
"Drop Non-Retryable Data": r.GetDropNonRetryableData(),
|
||||
"ID": r.GetId(),
|
||||
"Name": r.GetName(),
|
||||
"Org ID": r.GetOrgID(),
|
||||
"Remote ID": r.GetRemoteID(),
|
||||
"Local Bucket ID": r.GetLocalBucketID(),
|
||||
"Remote Bucket ID": bucketID,
|
||||
"Remote Bucket Name": r.GetRemoteBucketName(),
|
||||
"Remaining Bytes to be Synced": r.GetRemainingBytesToBeSynced(),
|
||||
"Current Queue Bytes on Disk": r.GetCurrentQueueSizeBytes(),
|
||||
"Max Queue Bytes": r.GetMaxQueueSizeBytes(),
|
||||
"Latest Status Code": r.GetLatestResponseCode(),
|
||||
"Drop Non-Retryable Data": r.GetDropNonRetryableData(),
|
||||
}
|
||||
if opts.deleted {
|
||||
row["Deleted"] = true
|
||||
|
@ -139,7 +139,6 @@ func (c Client) Update(ctx context.Context, params *UpdateParams) error {
|
||||
}
|
||||
|
||||
req := api.ScriptUpdateRequest{
|
||||
Name: ¶ms.Name,
|
||||
Description: ¶ms.Description,
|
||||
Script: ¶ms.Script,
|
||||
}
|
||||
|
Reference in New Issue
Block a user