Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 2.18 KB

File metadata and controls

60 lines (38 loc) · 2.18 KB

Indexing.Datasource

Overview

Available Operations

  • status - Beta: Get datasource status

status

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice.

Tip: Refer to the Troubleshooting tutorial for more information.

Example Usage

package hello.world;

import com.glean.api_client.glean_api_client.Glean;
import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DebugDatasourceStatusResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        Glean sdk = Glean.builder()
                .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", ""))
            .build();

        PostApiIndexV1DebugDatasourceStatusResponse res = sdk.indexing().datasource().status()
                .datasource("<value>")
                .call();

        if (res.debugDatasourceStatusResponse().isPresent()) {
            // handle response
        }
    }
}

Parameters

Parameter Type Required Description
datasource String ✔️ The datasource to get debug status for.

Response

PostApiIndexV1DebugDatasourceStatusResponse

Errors

Error Type Status Code Content Type
models/errors/APIException 4XX, 5XX */*