+
Skip to content

andyndang/demo-java

 
 

Repository files navigation

Songbird

SDK Installation

Gradle

implementation 'ai.whylabs.WhyLabs:Songbird:1.0.0'

SDK Example Usage

package hello.world;

import ai.whylabs.WhyLabs.Songbird;
import ai.whylabs.WhyLabs.models.operations.PostMonitorConfigValidationJobResponse;
import ai.whylabs.WhyLabs.models.operations.PostMonitorConfigValidationJobSecurity;

public class Application {
    public static void main(String[] args) {
        try {
            Songbird sdk = Songbird.builder()
                .build();

            PostMonitorConfigValidationJobResponse res = sdk.admin.postMonitorConfigValidationJob(new PostMonitorConfigValidationJobSecurity("corrupti") {{
                apiKeyAuth = "YOUR_API_KEY_HERE";
            }});

            if (res.statusCode == 200) {
                // handle response
            }
        } catch (Exception e) {
            // handle exception
        }
    }
}

Available Resources and Operations

  • createApiKey - Generate an API key for a user.
  • getApiKey - Get an api key by its id
  • listApiKeys - List API key metadata for a given organization and user
  • revokeApiKey - Revoke the given API Key, removing its ability to access WhyLabs systems
  • getConnection - Get the connection metadata for a given org
  • listJobs - List all of the jobs in a workspace.
  • refreshConnection - Refresh metadata for a workspace connection.
  • runJob - Run an existing job in a given databricks workspace.
  • updateConnection - Update the connection metadata for a given org
  • logAsync - Like /log, except this api doesn't take the actual profile content. It returns an upload link that can be used to upload the profile to.
  • logReference - Returns a presigned URL for uploading the reference profile to.

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !

SDK Created by Speakeasy

About

A java SDK for accessing the demo-java API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载