Method | Description | |
---|---|---|
CheckApiErrorCode ( dynamic apiResponse ) : void |
Check the 'error_code' field and throw the appropriate exception if non-null.
|
|
GetBulkApiError ( Newtonsoft.Json.Linq.JObject apiResponse ) : |
Check the 'error' field on a bulk insert operation response and return the appropriate exception.
|
|
ToSafeString ( this obj ) : string | ||
TryGetDouble ( this s ) : double? | ||
TryGetInt ( this s ) : int? | ||
ValidateEventCollectionName ( string collection ) : void |
Apply the collection name restrictions. Throws KeenException with an explanation if a collection name is unacceptable.
|
|
ValidatePropertyName ( string property ) : void |
Apply property name restrictions. Throws KeenException with an explanation if a collection name is unacceptable.
|
Method | Description | |
---|---|---|
TryUnwrap ( this ex ) : |
Flatten an AggregateException and if only one exception instance is found in the innerexceptions, return it, otherwise return the original AggregateException unchanged.
|
public static CheckApiErrorCode ( dynamic apiResponse ) : void | ||
apiResponse | dynamic | Deserialized json response from a Keen API call. |
return | void |
public static GetBulkApiError ( Newtonsoft.Json.Linq.JObject apiResponse ) : |
||
apiResponse | Newtonsoft.Json.Linq.JObject | Deserialized json response from a Keen API call. |
return |
public static ToSafeString ( this obj ) : string | ||
obj | this | |
return | string |
public static TryGetDouble ( this s ) : double? | ||
s | this | |
return | double? |
public static ValidateEventCollectionName ( string collection ) : void | ||
collection | string | |
return | void |
public static ValidatePropertyName ( string property ) : void | ||
property | string | |
return | void |