oci-loggingingestion 2.79.1 → 2.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +3 -2
- package/lib/client.js +13 -5
- package/lib/client.js.map +1 -1
- package/lib/request/put-logs-request.d.ts +1 -1
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare enum LoggingApiKeys {
|
|
|
22
22
|
export declare class LoggingClient {
|
|
23
23
|
protected static serviceEndpointTemplate: string;
|
|
24
24
|
protected static endpointServiceName: string;
|
|
25
|
-
protected "_realmSpecificEndpointTemplateEnabled": boolean;
|
|
25
|
+
protected "_realmSpecificEndpointTemplateEnabled": boolean | undefined;
|
|
26
26
|
protected "_endpoint": string;
|
|
27
27
|
protected "_defaultHeaders": any;
|
|
28
28
|
protected "_clientConfiguration": common.ClientConfiguration;
|
|
@@ -44,6 +44,7 @@ export declare class LoggingClient {
|
|
|
44
44
|
* @param endpoint The endpoint of the service.
|
|
45
45
|
*/
|
|
46
46
|
set endpoint(endpoint: string);
|
|
47
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
47
48
|
/**
|
|
48
49
|
* Determines whether realm specific endpoint should be used or not.
|
|
49
50
|
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
@@ -77,7 +78,7 @@ export declare class LoggingClient {
|
|
|
77
78
|
* @param PutLogsRequest
|
|
78
79
|
* @return PutLogsResponse
|
|
79
80
|
* @throws OciError when an error occurs
|
|
80
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
81
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/loggingingestion/PutLogs.ts.html |here} to see how to use PutLogs API.
|
|
81
82
|
*/
|
|
82
83
|
putLogs(putLogsRequest: requests.PutLogsRequest): Promise<responses.PutLogsResponse>;
|
|
83
84
|
}
|
package/lib/client.js
CHANGED
|
@@ -56,7 +56,7 @@ var LoggingApiKeys;
|
|
|
56
56
|
*/
|
|
57
57
|
class LoggingClient {
|
|
58
58
|
constructor(params, clientConfiguration) {
|
|
59
|
-
this["_realmSpecificEndpointTemplateEnabled"] =
|
|
59
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
60
60
|
this["_endpoint"] = "";
|
|
61
61
|
this["_defaultHeaders"] = {};
|
|
62
62
|
this._circuitBreaker = null;
|
|
@@ -115,7 +115,11 @@ class LoggingClient {
|
|
|
115
115
|
set endpoint(endpoint) {
|
|
116
116
|
this._endpoint = endpoint;
|
|
117
117
|
this._endpoint = this._endpoint + "/20200831";
|
|
118
|
-
|
|
118
|
+
if (this.logger)
|
|
119
|
+
this.logger.info(`LoggingClient endpoint set to ${this._endpoint}`);
|
|
120
|
+
}
|
|
121
|
+
get logger() {
|
|
122
|
+
return common.LOG.logger;
|
|
119
123
|
}
|
|
120
124
|
/**
|
|
121
125
|
* Determines whether realm specific endpoint should be used or not.
|
|
@@ -124,7 +128,8 @@ class LoggingClient {
|
|
|
124
128
|
*/
|
|
125
129
|
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
126
130
|
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
127
|
-
|
|
131
|
+
if (this.logger)
|
|
132
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
128
133
|
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
129
134
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LoggingClient.serviceEndpointTemplate, this._region, LoggingClient.endpointServiceName);
|
|
130
135
|
}
|
|
@@ -171,11 +176,12 @@ class LoggingClient {
|
|
|
171
176
|
* @param PutLogsRequest
|
|
172
177
|
* @return PutLogsResponse
|
|
173
178
|
* @throws OciError when an error occurs
|
|
174
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
179
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/loggingingestion/PutLogs.ts.html |here} to see how to use PutLogs API.
|
|
175
180
|
*/
|
|
176
181
|
putLogs(putLogsRequest) {
|
|
177
182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
-
|
|
183
|
+
if (this.logger)
|
|
184
|
+
this.logger.debug("Calling operation LoggingClient#putLogs.");
|
|
179
185
|
const operationName = "putLogs";
|
|
180
186
|
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logging-dataplane/20200831/LogEntry/PutLogs";
|
|
181
187
|
const pathParams = {
|
|
@@ -190,6 +196,8 @@ class LoggingClient {
|
|
|
190
196
|
};
|
|
191
197
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
192
198
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
199
|
+
if (this.logger)
|
|
200
|
+
retrier.logger = this.logger;
|
|
193
201
|
const request = yield oci_common_1.composeRequest({
|
|
194
202
|
baseEndpoint: this._endpoint,
|
|
195
203
|
defaultHeaders: this._defaultHeaders,
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/loggingingestion/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,+CAAiC;AAEjC,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../lib/loggingingestion/lib/client.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAsC;AAEtC,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AAY,EAAE,IAAI,CAAC,SAAS;gBAC5B,cAAc,EAAE,IAAI,CAAC,eAAe;gBACpC,IAAI,EAAE,4BAA4B;gBAClC,MAAM,EAAE,MAAM;gBACd,WAAW,EAAE,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAC5C,cAAc,CAAC,cAAc,EAC7B,gBAAgB,EAChB,KAAK,CAAC,cAAc,CAAC,UAAU,CAChC;gBACD,UAAU,EAAE,UAAU;gBACtB,YAAY,EAAE,YAAY;gBAC1B,WAAW,EAAE,WAAW;aACzB,CAAC,CAAC;YACH,IAAI;gBACF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,eAAe,CAC5C,IAAI,CAAC,WAAW,EAChB,OAAO,EACP,IAAI,CAAC,aAAa,EAClB,aAAa,EACb,gBAAgB,CACjB,CAAC;gBACF,MAAM,WAAW,GAAG,4BAAe,CAAC;oBAClC,cAAc,EAA6B,EAAE;oBAC7C,eAAe,EAAE;wBACf;4BACE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;4BAC7C,GAAG,EAAE,cAAc;4BACnB,QAAQ,EAAE,QAAQ;yBACnB;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,WAAW,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACZ,MAAM,GAAG,CAAC;aACX;QACH,CAAC;KAAA;;AAzOH,sCA0OC;AAzOkB,qCAAuB,GACtC,4DAA4D,CAAC;AAC9C,iCAAmB,GAAG,EAAE,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/loggingingestion/PutLogs.ts.html |here} to see how to use PutLogsRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface PutLogsRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-loggingingestion",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.0",
|
|
4
4
|
"description": "OCI NodeJS client for Loggingingestion Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.81.0",
|
|
19
|
+
"oci-workrequests": "2.81.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|