Skip to content

Commit

Permalink
Inspection api definitions (oceanbase#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-sun-star authored and lizzy-0323 committed Sep 26, 2024
1 parent bf1307d commit cf5fc7c
Show file tree
Hide file tree
Showing 12 changed files with 2,096 additions and 20 deletions.
14 changes: 8 additions & 6 deletions internal/dashboard/business/oceanbase/obcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,19 @@ func buildOBClusterOverview(ctx context.Context, obcluster *v1alpha1.OBCluster)
}
}
return &response.OBClusterOverview{
UID: string(obcluster.UID),
Namespace: obcluster.Namespace,
Name: obcluster.Name,
ClusterName: obcluster.Spec.ClusterName,
ClusterId: obcluster.Spec.ClusterId,
OBClusterMeta: response.OBClusterMeta{
UID: string(obcluster.UID),
Namespace: obcluster.Namespace,
Name: obcluster.Name,
ClusterName: obcluster.Spec.ClusterName,
ClusterId: obcluster.Spec.ClusterId,
Mode: clusterMode,
},
Status: getStatisticStatus(obcluster),
StatusDetail: obcluster.Status.Status,
CreateTime: obcluster.ObjectMeta.CreationTimestamp.Unix(),
Image: obcluster.Status.Image,
Topology: topology,
Mode: clusterMode,
}, nil
}

Expand Down
4 changes: 2 additions & 2 deletions internal/dashboard/generated/bindata/bindata.go

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

Loading

0 comments on commit cf5fc7c

Please sign in to comment.