Skip to content

Commit

Permalink
P-II: API changes, introduces: logLevel,deploymentStage and contextEn…
Browse files Browse the repository at this point in the history
…vLanguage
  • Loading branch information
trakerr-io committed Mar 13, 2017
1 parent 6d480b1 commit 53493e0
Show file tree
Hide file tree
Showing 16 changed files with 139 additions and 25 deletions.
20 changes: 17 additions & 3 deletions generated/docs/AppEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**apiKey** | **String** | API key generated for the application |
**classification** | **String** | one of 'debug','info','warning','error' or a custom string |
**eventType** | **String** | type or event or error (eg. NullPointerException) |
**logLevel** | [**LogLevelEnum**](#LogLevelEnum) | (optional) Logging level, one of 'debug','info','warning','error', 'fatal', defaults to 'error' | [optional]
**classification** | **String** | (optional) one of 'error' or a custom string for non-errors, defaults to 'error' |
**eventType** | **String** | type of the event or error (eg. NullPointerException) |
**eventMessage** | **String** | message containing details of the event or error |
**eventTime** | **Long** | (optional) event time in ms since epoch | [optional]
**eventStacktrace** | [**Stacktrace**](Stacktrace.md) | | [optional]
**eventUser** | **String** | (optional) event user identifying a user | [optional]
**eventSession** | **String** | (optional) session identification | [optional]
**contextAppVersion** | **String** | (optional) application version information | [optional]
**contextEnvName** | **String** | (optional) one of 'development','staging','production' or a custom string | [optional]
**deploymentStage** | **String** | (optional) deployment stage, one of 'development','staging','production' or a custom string | [optional]
**contextEnvName** | **String** | (optional) environment name (like 'cpython' or 'ironpython' etc.) | [optional]
**contextEnvLanguage** | **String** | (optional) language (like 'python' or 'c#' etc.) | [optional]
**contextEnvVersion** | **String** | (optional) version of environment | [optional]
**contextEnvHostname** | **String** | (optional) hostname or ID of environment | [optional]
**contextAppBrowser** | **String** | (optional) browser name if running in a browser (eg. Chrome) | [optional]
Expand All @@ -26,4 +29,15 @@ Name | Type | Description | Notes
**customSegments** | [**CustomData**](CustomData.md) | | [optional]


<a name="LogLevelEnum"></a>
## Enum: LogLevelEnum
Name | Value
---- | -----
DEBUG | &quot;debug&quot;
INFO | &quot;info&quot;
WARNING | &quot;warning&quot;
ERROR | &quot;error&quot;
FATAL | &quot;fatal&quot;



2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

package io.trakerr;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

package io.trakerr;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

package io.trakerr;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/auth/OAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class OAuth implements Authentication {
private String accessToken;

Expand Down
116 changes: 108 additions & 8 deletions generated/src/main/java/io/trakerr/model/AppEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,45 @@
/**
* AppEvent
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class AppEvent {
@SerializedName("apiKey")
private String apiKey = null;

/**
* (optional) Logging level, one of 'debug','info','warning','error', 'fatal', defaults to 'error'
*/
public enum LogLevelEnum {
@SerializedName("debug")
DEBUG("debug"),

@SerializedName("info")
INFO("info"),

@SerializedName("warning")
WARNING("warning"),

@SerializedName("error")
ERROR("error"),

@SerializedName("fatal")
FATAL("fatal");

private String value;

LogLevelEnum(String value) {
this.value = value;
}

@Override
public String toString() {
return String.valueOf(value);
}
}

@SerializedName("logLevel")
private LogLevelEnum logLevel = null;

@SerializedName("classification")
private String classification = null;

Expand All @@ -65,9 +99,15 @@ public class AppEvent {
@SerializedName("contextAppVersion")
private String contextAppVersion = null;

@SerializedName("deploymentStage")
private String deploymentStage = null;

@SerializedName("contextEnvName")
private String contextEnvName = null;

@SerializedName("contextEnvLanguage")
private String contextEnvLanguage = null;

@SerializedName("contextEnvVersion")
private String contextEnvVersion = null;

Expand Down Expand Up @@ -116,16 +156,34 @@ public void setApiKey(String apiKey) {
this.apiKey = apiKey;
}

public AppEvent logLevel(LogLevelEnum logLevel) {
this.logLevel = logLevel;
return this;
}

/**
* (optional) Logging level, one of 'debug','info','warning','error', 'fatal', defaults to 'error'
* @return logLevel
**/
@ApiModelProperty(example = "null", value = "(optional) Logging level, one of 'debug','info','warning','error', 'fatal', defaults to 'error'")
public LogLevelEnum getLogLevel() {
return logLevel;
}

public void setLogLevel(LogLevelEnum logLevel) {
this.logLevel = logLevel;
}

public AppEvent classification(String classification) {
this.classification = classification;
return this;
}

/**
* one of 'debug','info','warning','error' or a custom string
* (optional) one of 'error' or a custom string for non-errors, defaults to 'error'
* @return classification
**/
@ApiModelProperty(example = "null", required = true, value = "one of 'debug','info','warning','error' or a custom string")
@ApiModelProperty(example = "null", required = true, value = "(optional) one of 'error' or a custom string for non-errors, defaults to 'error'")
public String getClassification() {
return classification;
}
Expand All @@ -140,10 +198,10 @@ public AppEvent eventType(String eventType) {
}

/**
* type or event or error (eg. NullPointerException)
* type of the event or error (eg. NullPointerException)
* @return eventType
**/
@ApiModelProperty(example = "null", required = true, value = "type or event or error (eg. NullPointerException)")
@ApiModelProperty(example = "null", required = true, value = "type of the event or error (eg. NullPointerException)")
public String getEventType() {
return eventType;
}
Expand Down Expand Up @@ -260,16 +318,34 @@ public void setContextAppVersion(String contextAppVersion) {
this.contextAppVersion = contextAppVersion;
}

public AppEvent deploymentStage(String deploymentStage) {
this.deploymentStage = deploymentStage;
return this;
}

/**
* (optional) deployment stage, one of 'development','staging','production' or a custom string
* @return deploymentStage
**/
@ApiModelProperty(example = "null", value = "(optional) deployment stage, one of 'development','staging','production' or a custom string")
public String getDeploymentStage() {
return deploymentStage;
}

public void setDeploymentStage(String deploymentStage) {
this.deploymentStage = deploymentStage;
}

public AppEvent contextEnvName(String contextEnvName) {
this.contextEnvName = contextEnvName;
return this;
}

/**
* (optional) one of 'development','staging','production' or a custom string
* (optional) environment name (like 'cpython' or 'ironpython' etc.)
* @return contextEnvName
**/
@ApiModelProperty(example = "null", value = "(optional) one of 'development','staging','production' or a custom string")
@ApiModelProperty(example = "null", value = "(optional) environment name (like 'cpython' or 'ironpython' etc.)")
public String getContextEnvName() {
return contextEnvName;
}
Expand All @@ -278,6 +354,24 @@ public void setContextEnvName(String contextEnvName) {
this.contextEnvName = contextEnvName;
}

public AppEvent contextEnvLanguage(String contextEnvLanguage) {
this.contextEnvLanguage = contextEnvLanguage;
return this;
}

/**
* (optional) language (like 'python' or 'c#' etc.)
* @return contextEnvLanguage
**/
@ApiModelProperty(example = "null", value = "(optional) language (like 'python' or 'c#' etc.)")
public String getContextEnvLanguage() {
return contextEnvLanguage;
}

public void setContextEnvLanguage(String contextEnvLanguage) {
this.contextEnvLanguage = contextEnvLanguage;
}

public AppEvent contextEnvVersion(String contextEnvVersion) {
this.contextEnvVersion = contextEnvVersion;
return this;
Expand Down Expand Up @@ -469,6 +563,7 @@ public boolean equals(java.lang.Object o) {
}
AppEvent appEvent = (AppEvent) o;
return Objects.equals(this.apiKey, appEvent.apiKey) &&
Objects.equals(this.logLevel, appEvent.logLevel) &&
Objects.equals(this.classification, appEvent.classification) &&
Objects.equals(this.eventType, appEvent.eventType) &&
Objects.equals(this.eventMessage, appEvent.eventMessage) &&
Expand All @@ -477,7 +572,9 @@ public boolean equals(java.lang.Object o) {
Objects.equals(this.eventUser, appEvent.eventUser) &&
Objects.equals(this.eventSession, appEvent.eventSession) &&
Objects.equals(this.contextAppVersion, appEvent.contextAppVersion) &&
Objects.equals(this.deploymentStage, appEvent.deploymentStage) &&
Objects.equals(this.contextEnvName, appEvent.contextEnvName) &&
Objects.equals(this.contextEnvLanguage, appEvent.contextEnvLanguage) &&
Objects.equals(this.contextEnvVersion, appEvent.contextEnvVersion) &&
Objects.equals(this.contextEnvHostname, appEvent.contextEnvHostname) &&
Objects.equals(this.contextAppBrowser, appEvent.contextAppBrowser) &&
Expand All @@ -492,7 +589,7 @@ public boolean equals(java.lang.Object o) {

@Override
public int hashCode() {
return Objects.hash(apiKey, classification, eventType, eventMessage, eventTime, eventStacktrace, eventUser, eventSession, contextAppVersion, contextEnvName, contextEnvVersion, contextEnvHostname, contextAppBrowser, contextAppBrowserVersion, contextAppOS, contextAppOSVersion, contextDataCenter, contextDataCenterRegion, customProperties, customSegments);
return Objects.hash(apiKey, logLevel, classification, eventType, eventMessage, eventTime, eventStacktrace, eventUser, eventSession, contextAppVersion, deploymentStage, contextEnvName, contextEnvLanguage, contextEnvVersion, contextEnvHostname, contextAppBrowser, contextAppBrowserVersion, contextAppOS, contextAppOSVersion, contextDataCenter, contextDataCenterRegion, customProperties, customSegments);
}

@Override
Expand All @@ -501,6 +598,7 @@ public String toString() {
sb.append("class AppEvent {\n");

sb.append(" apiKey: ").append(toIndentedString(apiKey)).append("\n");
sb.append(" logLevel: ").append(toIndentedString(logLevel)).append("\n");
sb.append(" classification: ").append(toIndentedString(classification)).append("\n");
sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n");
sb.append(" eventMessage: ").append(toIndentedString(eventMessage)).append("\n");
Expand All @@ -509,7 +607,9 @@ public String toString() {
sb.append(" eventUser: ").append(toIndentedString(eventUser)).append("\n");
sb.append(" eventSession: ").append(toIndentedString(eventSession)).append("\n");
sb.append(" contextAppVersion: ").append(toIndentedString(contextAppVersion)).append("\n");
sb.append(" deploymentStage: ").append(toIndentedString(deploymentStage)).append("\n");
sb.append(" contextEnvName: ").append(toIndentedString(contextEnvName)).append("\n");
sb.append(" contextEnvLanguage: ").append(toIndentedString(contextEnvLanguage)).append("\n");
sb.append(" contextEnvVersion: ").append(toIndentedString(contextEnvVersion)).append("\n");
sb.append(" contextEnvHostname: ").append(toIndentedString(contextEnvHostname)).append("\n");
sb.append(" contextAppBrowser: ").append(toIndentedString(contextAppBrowser)).append("\n");
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/model/CustomData.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* (optional) Custom string or double data to submit along with the event. This data can then be used in the Trakerr UI to view segmented data.
*/
@ApiModel(description = "(optional) Custom string or double data to submit along with the event. This data can then be used in the Trakerr UI to view segmented data.")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class CustomData {
@SerializedName("stringData")
private CustomStringData stringData = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* CustomDoubleData
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class CustomDoubleData {
@SerializedName("customData1")
private Double customData1 = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* CustomStringData
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class CustomStringData {
@SerializedName("customData1")
private String customData1 = null;
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/model/Error.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* Error
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class Error {
@SerializedName("code")
private Integer code = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* InnerStackTrace
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class InnerStackTrace {
@SerializedName("type")
private String type = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* StackTraceLine
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class StackTraceLine {
@SerializedName("function")
private String function = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* StackTraceLines
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class StackTraceLines extends ArrayList<StackTraceLine> {

@Override
Expand Down
2 changes: 1 addition & 1 deletion generated/src/main/java/io/trakerr/model/Stacktrace.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**
* Stacktrace
*/
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-19T10:48:29.731-08:00")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-03-13T16:49:29.032-07:00")
public class Stacktrace extends ArrayList<InnerStackTrace> {

@Override
Expand Down

0 comments on commit 53493e0

Please sign in to comment.