Code Monkey home page Code Monkey logo

sentry-api-client-java's Introduction

sentry-api-client-java

API Reference

  • API version: v0

  • Build date: 2023-06-16T15:46:47.521074Z[Etc/UTC]

Sentry Public API

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>com.sentry</groupId>
  <artifactId>sentry-api-client-java</artifactId>
  <version>v0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

  repositories {
    mavenCentral()     // Needed if the 'sentry-api-client-java' jar has been published to maven central.
    mavenLocal()       // Needed if the 'sentry-api-client-java' jar has been published to the local maven repo.
  }

  dependencies {
     implementation "com.sentry:sentry-api-client-java:v0"
  }

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/sentry-api-client-java-v0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.sentry.api.client.*;
import com.sentry.api.client.auth.*;
import com.sentry.api.client.model.*;
import com.sentry.api.client.api.CronsApi;

public class CronsApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://sentry.io");
        
        // Configure HTTP bearer authorization: auth_token
        HttpBearerAuth auth_token = (HttpBearerAuth) defaultClient.getAuthentication("auth_token");
        auth_token.setBearerToken("BEARER TOKEN");

        CronsApi apiInstance = new CronsApi(defaultClient);
        String organizationSlug = "organizationSlug_example"; // String | The slug of the organization the resource belongs to.
        CreateAMonitorRequest createAMonitorRequest = new CreateAMonitorRequest(); // CreateAMonitorRequest | 
        try {
            RetrieveMonitorsForAnOrganization200ResponseInner result = apiInstance.createAMonitor(organizationSlug, createAMonitorRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronsApi#createAMonitor");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://sentry.io

Class Method HTTP request Description
CronsApi createAMonitor POST /api/0/organizations/{organization_slug}/monitors/
CronsApi createANewCheckIn POST /api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/
CronsApi deleteAMonitorOrMonitorEnvironments DELETE /api/0/organizations/{organization_slug}/monitors/{monitor_slug}/
CronsApi retrieveAMonitor GET /api/0/organizations/{organization_slug}/monitors/{monitor_slug}/
CronsApi retrieveCheckInsForAMonitor GET /api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/
CronsApi retrieveMonitorsForAnOrganization GET /api/0/organizations/{organization_slug}/monitors/
CronsApi updateACheckIn PUT /api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/{checkin_id}/
CronsApi updateAMonitor PUT /api/0/organizations/{organization_slug}/monitors/{monitor_slug}/
DiscoverApi queryDiscoverEventsInTableFormat GET /api/0/organizations/{organization_slug}/events/
EventsApi bulkMutateAListOfIssues PUT /api/0/projects/{organization_slug}/{project_slug}/issues/
EventsApi bulkRemoveAListOfIssues DELETE /api/0/projects/{organization_slug}/{project_slug}/issues/
EventsApi debugIssuesRelatedToSourceMapsForAGivenEvent GET /api/0/projects/{organization_slug}/{project_slug}/events/{event_id}/source-map-debug/
EventsApi listAProjectsEvents GET /api/0/projects/{organization_slug}/{project_slug}/events/
EventsApi listAProjectsIssues GET /api/0/projects/{organization_slug}/{project_slug}/issues/
EventsApi listATagsValuesRelatedToAnIssue GET /api/0/issues/{issue_id}/tags/{key}/values/
EventsApi listAnIssuesEvents GET /api/0/issues/{issue_id}/events/
EventsApi listAnIssuesHashes GET /api/0/issues/{issue_id}/hashes/
EventsApi removeAnIssue DELETE /api/0/issues/{issue_id}/
EventsApi retrieveAnEventForAProject GET /api/0/projects/{organization_slug}/{project_slug}/events/{event_id}/
EventsApi retrieveAnIssue GET /api/0/issues/{issue_id}/
EventsApi retrieveTagDetails GET /api/0/issues/{issue_id}/tags/{key}/
EventsApi retrieveTheLatestEventForAnIssue GET /api/0/issues/{issue_id}/events/latest/
EventsApi retrieveTheOldestEventForAnIssue GET /api/0/issues/{issue_id}/events/oldest/
EventsApi updateAnIssue PUT /api/0/issues/{issue_id}/
IntegrationApi createAnExternalIssue POST /api/0/sentry-app-installations/{uuid}/external-issues/
IntegrationApi deleteAnExternalIssue DELETE /api/0/sentry-app-installations/{uuid}/external-issues/{external_issue_id}/
IntegrationApi listAnOrganizationsIntegrationPlatformInstallations GET /api/0/organizations/{organization_slug}/sentry-app-installations/
OrganizationsApi deleteAnOrganizationMember DELETE /api/0/organizations/{organization_slug}/members/{member_id}/
OrganizationsApi listARepositorysCommits GET /api/0/organizations/{organization_slug}/repos/{repo_id}/commits/
OrganizationsApi listAnOrganizationsProjects GET /api/0/organizations/{organization_slug}/projects/
OrganizationsApi listAnOrganizationsRepositories GET /api/0/organizations/{organization_slug}/repos/
OrganizationsApi listAnOrganizationsUsers GET /api/0/organizations/{organization_slug}/users/
OrganizationsApi listYourOrganizations GET /api/0/organizations/
OrganizationsApi resolveAShortID GET /api/0/organizations/{organization_slug}/shortids/{short_id}/
OrganizationsApi resolveAnEventID GET /api/0/organizations/{organization_slug}/eventids/{event_id}/
OrganizationsApi retrieveAnOrganization GET /api/0/organizations/{organization_slug}/
OrganizationsApi retrieveAnOrganizationMember GET /api/0/organizations/{organization_slug}/members/{member_id}/
OrganizationsApi retrieveEventCountsForAnOrganization GET /api/0/organizations/{organization_slug}/stats/
OrganizationsApi retrieveEventCountsForAnOrganizationV2 GET /api/0/organizations/{organization_slug}/stats_v2/
OrganizationsApi updateAnOrganization PUT /api/0/organizations/{organization_slug}/
ProjectsApi createANewClientKey POST /api/0/projects/{organization_slug}/{project_slug}/keys/
ProjectsApi createANewProject POST /api/0/teams/{organization_slug}/{team_slug}/projects/
ProjectsApi deleteAClientKey DELETE /api/0/projects/{organization_slug}/{project_slug}/keys/{key_id}/
ProjectsApi deleteAProject DELETE /api/0/projects/{organization_slug}/{project_slug}/
ProjectsApi deleteASpecificProjectsDebugInformationFile DELETE /api/0/projects/{organization_slug}/{project_slug}/files/dsyms/
ProjectsApi listAProjectsClientKeys GET /api/0/projects/{organization_slug}/{project_slug}/keys/
ProjectsApi listAProjectsDebugInformationFiles GET /api/0/projects/{organization_slug}/{project_slug}/files/dsyms/
ProjectsApi listAProjectsServiceHooks GET /api/0/projects/{organization_slug}/{project_slug}/hooks/
ProjectsApi listAProjectsUserFeedback GET /api/0/projects/{organization_slug}/{project_slug}/user-feedback/
ProjectsApi listAProjectsUsers GET /api/0/projects/{organization_slug}/{project_slug}/users/
ProjectsApi listATagsValues GET /api/0/projects/{organization_slug}/{project_slug}/tags/{key}/values/
ProjectsApi listYourProjects GET /api/0/projects/
ProjectsApi registerANewServiceHook POST /api/0/projects/{organization_slug}/{project_slug}/hooks/
ProjectsApi removeAServiceHook DELETE /api/0/projects/{organization_slug}/{project_slug}/hooks/{hook_id}/
ProjectsApi retrieveAProject GET /api/0/projects/{organization_slug}/{project_slug}/
ProjectsApi retrieveAServiceHook GET /api/0/projects/{organization_slug}/{project_slug}/hooks/{hook_id}/
ProjectsApi retrieveEventCountsForAProject GET /api/0/projects/{organization_slug}/{project_slug}/stats/ Caution This endpoint may change in the future without notice.
ProjectsApi submitUserFeedback POST /api/0/projects/{organization_slug}/{project_slug}/user-feedback/
ProjectsApi updateAClientKey PUT /api/0/projects/{organization_slug}/{project_slug}/keys/{key_id}/
ProjectsApi updateAProject PUT /api/0/projects/{organization_slug}/{project_slug}/
ProjectsApi updateAServiceHook PUT /api/0/projects/{organization_slug}/{project_slug}/hooks/{hook_id}/
ProjectsApi uploadANewFile POST /api/0/projects/{organization_slug}/{project_slug}/files/dsyms/
ReleasesApi createANewDeployForAnOrganization POST /api/0/organizations/{organization_slug}/releases/{version}/deploys/
ReleasesApi createANewReleaseForAnOrganization POST /api/0/organizations/{organization_slug}/releases/
ReleasesApi deleteAProjectReleasesFile DELETE /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/
ReleasesApi deleteAnOrganizationReleasesFile DELETE /api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/
ReleasesApi deleteAnOrganizationsRelease DELETE /api/0/organizations/{organization_slug}/releases/{version}/
ReleasesApi listAProjectReleasesCommits GET /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/commits/
ReleasesApi listAProjectsReleaseFiles GET /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/
ReleasesApi listAReleasesDeploys GET /api/0/organizations/{organization_slug}/releases/{version}/deploys/
ReleasesApi listAnOrganizationReleasesCommits GET /api/0/organizations/{organization_slug}/releases/{version}/commits/
ReleasesApi listAnOrganizationsReleaseFiles GET /api/0/organizations/{organization_slug}/releases/{version}/files/
ReleasesApi listAnOrganizationsReleases GET /api/0/organizations/{organization_slug}/releases/
ReleasesApi listIssuesToBeResolvedInAParticularRelease GET /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/resolved/
ReleasesApi retrieveAProjectReleasesFile GET /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/
ReleasesApi retrieveAnOrganizationReleasesFile GET /api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/
ReleasesApi retrieveAnOrganizationsReleases GET /api/0/organizations/{organization_slug}/releases/{version}/
ReleasesApi retrieveFilesChangedInAReleasesCommits GET /api/0/organizations/{organization_slug}/releases/{version}/commitfiles/
ReleasesApi retrieveReleaseHealthSessionStatistics GET /api/0/organizations/{organization_slug}/sessions/
ReleasesApi updateAProjectReleaseFile PUT /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/{file_id}/
ReleasesApi updateAnOrganizationReleaseFile PUT /api/0/organizations/{organization_slug}/releases/{version}/files/{file_id}/
ReleasesApi updateAnOrganizationsRelease PUT /api/0/organizations/{organization_slug}/releases/{version}/
ReleasesApi uploadANewOrganizationReleaseFile POST /api/0/organizations/{organization_slug}/releases/{version}/files/
ReleasesApi uploadANewProjectReleaseFile POST /api/0/projects/{organization_slug}/{project_slug}/releases/{version}/files/
ScimApi deleteAnIndividualTeam DELETE /api/0/organizations/{organization_slug}/scim/v2/Groups/{team_id}
ScimApi deleteAnOrganizationMemberViaSCIM DELETE /api/0/organizations/{organization_slug}/scim/v2/Users/{member_id}
ScimApi listAnOrganizationsMembers GET /api/0/organizations/{organization_slug}/scim/v2/Users
ScimApi listAnOrganizationsPaginatedTeams GET /api/0/organizations/{organization_slug}/scim/v2/Groups
ScimApi provisionANewOrganizationMember POST /api/0/organizations/{organization_slug}/scim/v2/Users
ScimApi provisionANewTeam POST /api/0/organizations/{organization_slug}/scim/v2/Groups
ScimApi queryAnIndividualOrganizationMember GET /api/0/organizations/{organization_slug}/scim/v2/Users/{member_id}
ScimApi queryAnIndividualTeam GET /api/0/organizations/{organization_slug}/scim/v2/Groups/{team_id}
ScimApi updateATeamsAttributes PATCH /api/0/organizations/{organization_slug}/scim/v2/Groups/{team_id}
ScimApi updateAnOrganizationMembersAttributes PATCH /api/0/organizations/{organization_slug}/scim/v2/Users/{member_id}
TeamsApi createANewTeam POST /api/0/organizations/{organization_slug}/teams/
TeamsApi deleteATeam DELETE /api/0/teams/{organization_slug}/{team_slug}/
TeamsApi listATeamsProjects GET /api/0/teams/{organization_slug}/{team_slug}/projects/
TeamsApi listAnOrganizationsTeams GET /api/0/organizations/{organization_slug}/teams/
TeamsApi retrieveATeam GET /api/0/teams/{organization_slug}/{team_slug}/
TeamsApi retrieveEventCountsForATeam GET /api/0/teams/{organization_slug}/{team_slug}/stats/ Caution: this endpoint may change in the future without notice.
TeamsApi updateATeam PUT /api/0/teams/{organization_slug}/{team_slug}/

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

auth_token

  • Type: HTTP basic authentication

dsn

  • Type: HTTP basic authentication

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

[email protected]

sentry-api-client-java's People

Contributors

fsmaia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.