FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

api-client-java/docs/sdks/datasource/README.md at main · gleanwork/api-client-java · GitHub

Latest commit

 

History

History
60 lines (38 loc) · 2.23 KB

File metadata and controls

60 lines (38 loc) · 2.23 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()) {
            System.out.println(res.debugDatasourceStatusResponse().get());
        }
    }
}

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 */*

Back | FazBrowse Home | New Git URL