ListRefreshExternalCollectionJobs()
This operation lists the external collection refresh jobs of all or specified collections.
func (c *Client) ListRefreshExternalCollectionJobs(ctx context.Context, option ListRefreshExternalCollectionJobsOption, callOptions ...grpc.CallOption) ([]*entity.RefreshExternalCollectionJobInfo, error) {
Request Syntax
option := client.NewListRefreshExternalCollectionJobsOption(collectionName)
result, err := client.ListRefreshExternalCollectionJobs(option)
PARAMETERS:
-
collectionName (string) -
The name of the target collection. If this parameter is left unspecified, the refresh jobs of all external collections are turned.
RETURN TYPE:
[]*entity.RefreshExternalCollectionJobInfo
RETURNS:
A list of entity.RefreshExternalCollectionJobInfo struct, each recording the details of the an external collection refresh job.
Example
// List refresh jobs of a specified collection
option := client.NewListRefreshExternalCollectionJobsOption("test_collection")
// List refresh jobs of all external collections
option = client.NewListRefreshExternalCollectionJobsOption()
result, err = client.ListRefreshExternalCollectionJobs(option)