oci-apmtraces 2.81.0 → 2.82.2
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/index.d.ts +1 -0
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +159 -6
- package/lib/client.js +641 -10
- package/lib/client.js.map +1 -1
- package/lib/model/attribute-pin-response.d.ts +95 -0
- package/lib/model/attribute-pin-response.js +63 -0
- package/lib/model/attribute-pin-response.js.map +1 -0
- package/lib/model/attribute-response.d.ts +142 -0
- package/lib/model/attribute-response.js +94 -0
- package/lib/model/attribute-response.js.map +1 -0
- package/lib/model/attribute-unpin-response.d.ts +88 -0
- package/lib/model/attribute-unpin-response.js +62 -0
- package/lib/model/attribute-unpin-response.js.map +1 -0
- package/lib/model/attribute-update-notes-response.d.ts +95 -0
- package/lib/model/attribute-update-notes-response.js +63 -0
- package/lib/model/attribute-update-notes-response.js.map +1 -0
- package/lib/model/attribute-update-response.d.ts +128 -0
- package/lib/model/attribute-update-response.js +88 -0
- package/lib/model/attribute-update-response.js.map +1 -0
- package/lib/model/auto-activate-status.d.ts +42 -0
- package/lib/model/auto-activate-status.js +40 -0
- package/lib/model/auto-activate-status.js.map +1 -0
- package/lib/model/auto-activate-toggle-status.d.ts +55 -0
- package/lib/model/auto-activate-toggle-status.js +49 -0
- package/lib/model/auto-activate-toggle-status.js.map +1 -0
- package/lib/model/bulk-activate-attribute-detail.d.ts +62 -0
- package/lib/model/bulk-activate-attribute-detail.js +50 -0
- package/lib/model/bulk-activate-attribute-detail.js.map +1 -0
- package/lib/model/bulk-activate-attribute-details.d.ts +29 -0
- package/lib/model/bulk-activate-attribute-details.js +62 -0
- package/lib/model/bulk-activate-attribute-details.js.map +1 -0
- package/lib/model/bulk-activation-metadata.d.ts +112 -0
- package/lib/model/bulk-activation-metadata.js +54 -0
- package/lib/model/bulk-activation-metadata.js.map +1 -0
- package/lib/model/bulk-activation-status.d.ts +33 -0
- package/lib/model/bulk-activation-status.js +68 -0
- package/lib/model/bulk-activation-status.js.map +1 -0
- package/lib/model/bulk-de-activate-attribute-detail.d.ts +38 -0
- package/lib/model/bulk-de-activate-attribute-detail.js +35 -0
- package/lib/model/bulk-de-activate-attribute-detail.js.map +1 -0
- package/lib/model/bulk-de-activate-attribute-details.d.ts +29 -0
- package/lib/model/bulk-de-activate-attribute-details.js +62 -0
- package/lib/model/bulk-de-activate-attribute-details.js.map +1 -0
- package/lib/model/bulk-de-activation-metadata.d.ts +95 -0
- package/lib/model/bulk-de-activation-metadata.js +52 -0
- package/lib/model/bulk-de-activation-metadata.js.map +1 -0
- package/lib/model/bulk-de-activation-status.d.ts +33 -0
- package/lib/model/bulk-de-activation-status.js +68 -0
- package/lib/model/bulk-de-activation-status.js.map +1 -0
- package/lib/model/bulk-pin-attribute-detail.d.ts +38 -0
- package/lib/model/bulk-pin-attribute-detail.js +35 -0
- package/lib/model/bulk-pin-attribute-detail.js.map +1 -0
- package/lib/model/bulk-pin-attribute-details.d.ts +29 -0
- package/lib/model/bulk-pin-attribute-details.js +62 -0
- package/lib/model/bulk-pin-attribute-details.js.map +1 -0
- package/lib/model/bulk-pin-metadata.d.ts +67 -0
- package/lib/model/bulk-pin-metadata.js +50 -0
- package/lib/model/bulk-pin-metadata.js.map +1 -0
- package/lib/model/bulk-pin-status.d.ts +33 -0
- package/lib/model/bulk-pin-status.js +68 -0
- package/lib/model/bulk-pin-status.js.map +1 -0
- package/lib/model/bulk-unpin-attribute-detail.d.ts +38 -0
- package/lib/model/bulk-unpin-attribute-detail.js +35 -0
- package/lib/model/bulk-unpin-attribute-detail.js.map +1 -0
- package/lib/model/bulk-unpin-attribute-details.d.ts +29 -0
- package/lib/model/bulk-unpin-attribute-details.js +62 -0
- package/lib/model/bulk-unpin-attribute-details.js.map +1 -0
- package/lib/model/bulk-unpin-metadata.d.ts +67 -0
- package/lib/model/bulk-unpin-metadata.js +50 -0
- package/lib/model/bulk-unpin-metadata.js.map +1 -0
- package/lib/model/bulk-unpin-status.d.ts +33 -0
- package/lib/model/bulk-unpin-status.js +68 -0
- package/lib/model/bulk-unpin-status.js.map +1 -0
- package/lib/model/bulk-update-attribute-detail.d.ts +51 -0
- package/lib/model/bulk-update-attribute-detail.js +45 -0
- package/lib/model/bulk-update-attribute-detail.js.map +1 -0
- package/lib/model/bulk-update-attribute-details.d.ts +29 -0
- package/lib/model/bulk-update-attribute-details.js +62 -0
- package/lib/model/bulk-update-attribute-details.js.map +1 -0
- package/lib/model/bulk-update-attribute-metadata.d.ts +67 -0
- package/lib/model/bulk-update-attribute-metadata.js +50 -0
- package/lib/model/bulk-update-attribute-metadata.js.map +1 -0
- package/lib/model/bulk-update-attribute-notes-detail.d.ts +43 -0
- package/lib/model/bulk-update-attribute-notes-detail.js +35 -0
- package/lib/model/bulk-update-attribute-notes-detail.js.map +1 -0
- package/lib/model/bulk-update-attribute-notes-details.d.ts +29 -0
- package/lib/model/bulk-update-attribute-notes-details.js +62 -0
- package/lib/model/bulk-update-attribute-notes-details.js.map +1 -0
- package/lib/model/bulk-update-attribute-status.d.ts +33 -0
- package/lib/model/bulk-update-attribute-status.js +68 -0
- package/lib/model/bulk-update-attribute-status.js.map +1 -0
- package/lib/model/bulk-update-notes-metadata.d.ts +67 -0
- package/lib/model/bulk-update-notes-metadata.js +50 -0
- package/lib/model/bulk-update-notes-metadata.js.map +1 -0
- package/lib/model/bulk-update-notes-status.d.ts +33 -0
- package/lib/model/bulk-update-notes-status.js +68 -0
- package/lib/model/bulk-update-notes-status.js.map +1 -0
- package/lib/model/index.d.ts +70 -0
- package/lib/model/index.js +72 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/query-result-metadata-summary.d.ts +1 -0
- package/lib/model/query-result-metadata-summary.js +6 -0
- package/lib/model/query-result-metadata-summary.js.map +1 -1
- package/lib/model/query-result-response.d.ts +12 -0
- package/lib/model/query-result-response.js +10 -0
- package/lib/model/query-result-response.js.map +1 -1
- package/lib/model/query-result-warning.d.ts +28 -0
- package/lib/model/query-result-warning.js +30 -0
- package/lib/model/query-result-warning.js.map +1 -0
- package/lib/model/query-results-topology-info.d.ts +29 -0
- package/lib/model/query-results-topology-info.js +62 -0
- package/lib/model/query-results-topology-info.js.map +1 -0
- package/lib/model/query-results-topology-node-info.d.ts +27 -0
- package/lib/model/query-results-topology-node-info.js +30 -0
- package/lib/model/query-results-topology-node-info.js.map +1 -0
- package/lib/model/span-log-collection.d.ts +5 -0
- package/lib/model/span-log-collection.js.map +1 -1
- package/lib/model/span.d.ts +21 -0
- package/lib/model/span.js +17 -0
- package/lib/model/span.js.map +1 -1
- package/lib/model/tag-metadata.d.ts +56 -0
- package/lib/model/tag-metadata.js +55 -0
- package/lib/model/tag-metadata.js.map +1 -0
- package/lib/model/trace.d.ts +14 -0
- package/lib/model/trace.js +10 -0
- package/lib/model/trace.js.map +1 -1
- package/lib/request/bulk-activate-attribute-request.d.ts +35 -0
- package/lib/request/bulk-activate-attribute-request.js +15 -0
- package/lib/request/bulk-activate-attribute-request.js.map +1 -0
- package/lib/request/bulk-de-activate-attribute-request.d.ts +35 -0
- package/lib/request/bulk-de-activate-attribute-request.js +15 -0
- package/lib/request/bulk-de-activate-attribute-request.js.map +1 -0
- package/lib/request/bulk-pin-attribute-request.d.ts +35 -0
- package/lib/request/bulk-pin-attribute-request.js +15 -0
- package/lib/request/bulk-pin-attribute-request.js.map +1 -0
- package/lib/request/bulk-unpin-attribute-request.d.ts +35 -0
- package/lib/request/bulk-unpin-attribute-request.js +15 -0
- package/lib/request/bulk-unpin-attribute-request.js.map +1 -0
- package/lib/request/bulk-update-attribute-notes-request.d.ts +35 -0
- package/lib/request/bulk-update-attribute-notes-request.js +15 -0
- package/lib/request/bulk-update-attribute-notes-request.js.map +1 -0
- package/lib/request/bulk-update-attribute-request.d.ts +35 -0
- package/lib/request/bulk-update-attribute-request.js +15 -0
- package/lib/request/bulk-update-attribute-request.js.map +1 -0
- package/lib/request/get-aggregated-snapshot-request.d.ts +22 -2
- package/lib/request/get-span-request.d.ts +23 -2
- package/lib/request/get-span-request.js +9 -0
- package/lib/request/get-span-request.js.map +1 -1
- package/lib/request/get-status-auto-activate-request.d.ts +40 -0
- package/lib/request/get-status-auto-activate-request.js +24 -0
- package/lib/request/get-status-auto-activate-request.js.map +1 -0
- package/lib/request/get-trace-request.d.ts +23 -2
- package/lib/request/get-trace-request.js +9 -0
- package/lib/request/get-trace-request.js.map +1 -1
- package/lib/request/get-trace-snapshot-request.d.ts +4 -4
- package/lib/request/index.d.ts +16 -0
- package/lib/request/index.js +28 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-quick-picks-request.d.ts +3 -3
- package/lib/request/put-toggle-auto-activate-request.d.ts +45 -0
- package/lib/request/put-toggle-auto-activate-request.js +24 -0
- package/lib/request/put-toggle-auto-activate-request.js.map +1 -0
- package/lib/request/query-request.d.ts +3 -3
- package/lib/response/bulk-activate-attribute-response.d.ts +25 -0
- package/lib/response/bulk-activate-attribute-response.js +15 -0
- package/lib/response/bulk-activate-attribute-response.js.map +1 -0
- package/lib/response/bulk-de-activate-attribute-response.d.ts +25 -0
- package/lib/response/bulk-de-activate-attribute-response.js +15 -0
- package/lib/response/bulk-de-activate-attribute-response.js.map +1 -0
- package/lib/response/bulk-pin-attribute-response.d.ts +25 -0
- package/lib/response/bulk-pin-attribute-response.js +15 -0
- package/lib/response/bulk-pin-attribute-response.js.map +1 -0
- package/lib/response/bulk-unpin-attribute-response.d.ts +25 -0
- package/lib/response/bulk-unpin-attribute-response.js +15 -0
- package/lib/response/bulk-unpin-attribute-response.js.map +1 -0
- package/lib/response/bulk-update-attribute-notes-response.d.ts +25 -0
- package/lib/response/bulk-update-attribute-notes-response.js +15 -0
- package/lib/response/bulk-update-attribute-notes-response.js.map +1 -0
- package/lib/response/bulk-update-attribute-response.d.ts +25 -0
- package/lib/response/bulk-update-attribute-response.js +15 -0
- package/lib/response/bulk-update-attribute-response.js.map +1 -0
- package/lib/response/get-status-auto-activate-response.d.ts +25 -0
- package/lib/response/get-status-auto-activate-response.js +15 -0
- package/lib/response/get-status-auto-activate-response.js.map +1 -0
- package/lib/response/index.d.ts +16 -0
- package/lib/response/put-toggle-auto-activate-response.d.ts +25 -0
- package/lib/response/put-toggle-auto-activate-response.js +15 -0
- package/lib/response/put-toggle-auto-activate-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -41,7 +41,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
41
41
|
});
|
|
42
42
|
};
|
|
43
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.TraceClient = exports.TraceApiKeys = exports.QueryClient = exports.QueryApiKeys = void 0;
|
|
44
|
+
exports.TraceClient = exports.TraceApiKeys = exports.QueryClient = exports.QueryApiKeys = exports.AttributesClient = exports.AttributesApiKeys = void 0;
|
|
45
45
|
const common = require("oci-common");
|
|
46
46
|
const model = __importStar(require("./model"));
|
|
47
47
|
const oci_common_1 = require("oci-common");
|
|
@@ -50,6 +50,627 @@ const Breaker = require("opossum");
|
|
|
50
50
|
// ===============================================
|
|
51
51
|
// This file is autogenerated - Please do not edit
|
|
52
52
|
// ===============================================
|
|
53
|
+
var AttributesApiKeys;
|
|
54
|
+
(function (AttributesApiKeys) {
|
|
55
|
+
})(AttributesApiKeys = exports.AttributesApiKeys || (exports.AttributesApiKeys = {}));
|
|
56
|
+
/**
|
|
57
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
58
|
+
*/
|
|
59
|
+
class AttributesClient {
|
|
60
|
+
constructor(params, clientConfiguration) {
|
|
61
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
62
|
+
this["_endpoint"] = "";
|
|
63
|
+
this["_defaultHeaders"] = {};
|
|
64
|
+
this._circuitBreaker = null;
|
|
65
|
+
this._httpOptions = undefined;
|
|
66
|
+
this._bodyDuplexMode = undefined;
|
|
67
|
+
this.targetService = "Attributes";
|
|
68
|
+
this._regionId = "";
|
|
69
|
+
this._lastSetRegionOrRegionId = "";
|
|
70
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
71
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
72
|
+
: null;
|
|
73
|
+
if (clientConfiguration) {
|
|
74
|
+
this._clientConfiguration = clientConfiguration;
|
|
75
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
76
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
77
|
+
: null;
|
|
78
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
79
|
+
? clientConfiguration.httpOptions
|
|
80
|
+
: undefined;
|
|
81
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
82
|
+
? clientConfiguration.bodyDuplexMode
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
if (!oci_common_2.developerToolConfiguration.isServiceEnabled("apmtraces")) {
|
|
86
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
87
|
+
throw errmsg.concat("apmtraces");
|
|
88
|
+
}
|
|
89
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
90
|
+
const specCircuitBreakerEnabled = true;
|
|
91
|
+
if (!this._circuitBreaker &&
|
|
92
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
93
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
94
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
95
|
+
}
|
|
96
|
+
this._httpClient =
|
|
97
|
+
params.httpClient ||
|
|
98
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
99
|
+
if (params.authenticationDetailsProvider &&
|
|
100
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
101
|
+
const provider = params.authenticationDetailsProvider;
|
|
102
|
+
if (provider.getRegion()) {
|
|
103
|
+
this.region = provider.getRegion();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
109
|
+
*/
|
|
110
|
+
get endpoint() {
|
|
111
|
+
return this._endpoint;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
115
|
+
* @param endpoint The endpoint of the service.
|
|
116
|
+
*/
|
|
117
|
+
set endpoint(endpoint) {
|
|
118
|
+
this._endpoint = endpoint;
|
|
119
|
+
this._endpoint = this._endpoint + "/20200630";
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`AttributesClient endpoint set to ${this._endpoint}`);
|
|
122
|
+
}
|
|
123
|
+
get logger() {
|
|
124
|
+
return common.LOG.logger;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
128
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
129
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
130
|
+
*/
|
|
131
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
132
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
133
|
+
if (this.logger)
|
|
134
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AttributesClient.serviceEndpointTemplate, this._region, AttributesClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AttributesClient.serviceEndpointTemplate, this._regionId, AttributesClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
144
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
145
|
+
* @param region The region of the service.
|
|
146
|
+
*/
|
|
147
|
+
set region(region) {
|
|
148
|
+
this._region = region;
|
|
149
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(AttributesClient.serviceEndpointTemplate, region, AttributesClient.endpointServiceName);
|
|
150
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
154
|
+
*
|
|
155
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
156
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
157
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
158
|
+
* @param regionId The public region ID.
|
|
159
|
+
*/
|
|
160
|
+
set regionId(regionId) {
|
|
161
|
+
this._regionId = regionId;
|
|
162
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(AttributesClient.serviceEndpointTemplate, regionId, AttributesClient.endpointServiceName);
|
|
163
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
167
|
+
*/
|
|
168
|
+
shutdownCircuitBreaker() {
|
|
169
|
+
if (this._circuitBreaker) {
|
|
170
|
+
this._circuitBreaker.shutdown();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Activates a set of attributes for the given APM Domain. The API is not case-sensitive. Any duplicates present in the bulk activation
|
|
175
|
+
* request are deduplicated and only unique attributes are activated. A maximum number of 700 string attributes and 100 numeric attributes
|
|
176
|
+
* can be activated in an APM Domain subject to the available string and numeric slots. Once an attribute has been activated, it may take sometime
|
|
177
|
+
* for it to be appear in searches as ingest might not have picked up the changes or any associated caches might not have refreshed. The
|
|
178
|
+
* bulk activation operation is atomic, and the operation succeeds only if all the attributes in the request have been processed successfully and they
|
|
179
|
+
* get a success status back. If the processing of any attribute results in a processing or validation error, then none of the attributes in the bulk
|
|
180
|
+
* request are activated. Attributes that are activated are unpinned by default if they are pinned.
|
|
181
|
+
*
|
|
182
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
183
|
+
* @param BulkActivateAttributeRequest
|
|
184
|
+
* @return BulkActivateAttributeResponse
|
|
185
|
+
* @throws OciError when an error occurs
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkActivateAttribute.ts.html |here} to see how to use BulkActivateAttribute API.
|
|
187
|
+
*/
|
|
188
|
+
bulkActivateAttribute(bulkActivateAttributeRequest) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (this.logger)
|
|
191
|
+
this.logger.debug("Calling operation AttributesClient#bulkActivateAttribute.");
|
|
192
|
+
const operationName = "bulkActivateAttribute";
|
|
193
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkActivationStatus/BulkActivateAttribute";
|
|
194
|
+
const pathParams = {};
|
|
195
|
+
const queryParams = {
|
|
196
|
+
"apmDomainId": bulkActivateAttributeRequest.apmDomainId
|
|
197
|
+
};
|
|
198
|
+
let headerParams = {
|
|
199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
200
|
+
"opc-request-id": bulkActivateAttributeRequest.opcRequestId
|
|
201
|
+
};
|
|
202
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
203
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkActivateAttributeRequest.retryConfiguration, specRetryConfiguration);
|
|
204
|
+
if (this.logger)
|
|
205
|
+
retrier.logger = this.logger;
|
|
206
|
+
const request = yield oci_common_2.composeRequest({
|
|
207
|
+
baseEndpoint: this._endpoint,
|
|
208
|
+
defaultHeaders: this._defaultHeaders,
|
|
209
|
+
path: "/attributes/actions/activateAttributes",
|
|
210
|
+
method: "POST",
|
|
211
|
+
bodyContent: common.ObjectSerializer.serialize(bulkActivateAttributeRequest.bulkActivateAttributeDetails, "BulkActivateAttributeDetails", model.BulkActivateAttributeDetails.getJsonObj),
|
|
212
|
+
pathParams: pathParams,
|
|
213
|
+
headerParams: headerParams,
|
|
214
|
+
queryParams: queryParams
|
|
215
|
+
});
|
|
216
|
+
try {
|
|
217
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
218
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
219
|
+
responseObject: {},
|
|
220
|
+
body: yield response.json(),
|
|
221
|
+
bodyKey: "bulkActivationStatus",
|
|
222
|
+
bodyModel: model.BulkActivationStatus,
|
|
223
|
+
type: "model.BulkActivationStatus",
|
|
224
|
+
responseHeaders: [
|
|
225
|
+
{
|
|
226
|
+
value: response.headers.get("opc-request-id"),
|
|
227
|
+
key: "opcRequestId",
|
|
228
|
+
dataType: "string"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
});
|
|
232
|
+
return sdkResponse;
|
|
233
|
+
}
|
|
234
|
+
catch (err) {
|
|
235
|
+
throw err;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Deactivates a set of attributes for the given APM Domain. The API is case in-sensitive. Any duplicates present in the bulk deactivation
|
|
241
|
+
* request are deduplicated and only unique attributes are deactivated. A maximum number of 700 string attributes and 100 numeric attributes
|
|
242
|
+
* can be deactivated in an APM Domain subject to the available string and numeric slots. Out of box attributes (Trace and Span) cannot be
|
|
243
|
+
* deactivated, and will result in a processing error. Once an attribute has been deactivated, it may take sometime for it to disappear in
|
|
244
|
+
* searches as ingest might not have picked up the changes or any associated caches might not have refreshed. The bulk deactivation
|
|
245
|
+
* operation is atomic, and the operation succeeds only if all the attributes in the request have been processed successfully and they get a success
|
|
246
|
+
* status back. If the processing of any attribute results in a processing or validation error, then none of the attributes in the bulk request
|
|
247
|
+
* are deactivated.
|
|
248
|
+
*
|
|
249
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
250
|
+
* @param BulkDeActivateAttributeRequest
|
|
251
|
+
* @return BulkDeActivateAttributeResponse
|
|
252
|
+
* @throws OciError when an error occurs
|
|
253
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkDeActivateAttribute.ts.html |here} to see how to use BulkDeActivateAttribute API.
|
|
254
|
+
*/
|
|
255
|
+
bulkDeActivateAttribute(bulkDeActivateAttributeRequest) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
if (this.logger)
|
|
258
|
+
this.logger.debug("Calling operation AttributesClient#bulkDeActivateAttribute.");
|
|
259
|
+
const operationName = "bulkDeActivateAttribute";
|
|
260
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkDeActivationStatus/BulkDeActivateAttribute";
|
|
261
|
+
const pathParams = {};
|
|
262
|
+
const queryParams = {
|
|
263
|
+
"apmDomainId": bulkDeActivateAttributeRequest.apmDomainId
|
|
264
|
+
};
|
|
265
|
+
let headerParams = {
|
|
266
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
267
|
+
"opc-request-id": bulkDeActivateAttributeRequest.opcRequestId
|
|
268
|
+
};
|
|
269
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
270
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkDeActivateAttributeRequest.retryConfiguration, specRetryConfiguration);
|
|
271
|
+
if (this.logger)
|
|
272
|
+
retrier.logger = this.logger;
|
|
273
|
+
const request = yield oci_common_2.composeRequest({
|
|
274
|
+
baseEndpoint: this._endpoint,
|
|
275
|
+
defaultHeaders: this._defaultHeaders,
|
|
276
|
+
path: "/attributes/actions/deActivateAttributes",
|
|
277
|
+
method: "POST",
|
|
278
|
+
bodyContent: common.ObjectSerializer.serialize(bulkDeActivateAttributeRequest.bulkDeActivateAttributeDetails, "BulkDeActivateAttributeDetails", model.BulkDeActivateAttributeDetails.getJsonObj),
|
|
279
|
+
pathParams: pathParams,
|
|
280
|
+
headerParams: headerParams,
|
|
281
|
+
queryParams: queryParams
|
|
282
|
+
});
|
|
283
|
+
try {
|
|
284
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
285
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
286
|
+
responseObject: {},
|
|
287
|
+
body: yield response.json(),
|
|
288
|
+
bodyKey: "bulkDeActivationStatus",
|
|
289
|
+
bodyModel: model.BulkDeActivationStatus,
|
|
290
|
+
type: "model.BulkDeActivationStatus",
|
|
291
|
+
responseHeaders: [
|
|
292
|
+
{
|
|
293
|
+
value: response.headers.get("opc-request-id"),
|
|
294
|
+
key: "opcRequestId",
|
|
295
|
+
dataType: "string"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
});
|
|
299
|
+
return sdkResponse;
|
|
300
|
+
}
|
|
301
|
+
catch (err) {
|
|
302
|
+
throw err;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Pin a set of attributes in the APM Domain. Attributes that are marked pinned are not autoactivated by ingest.
|
|
308
|
+
* Attributes that are deactivated are pinned by default.
|
|
309
|
+
*
|
|
310
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
311
|
+
* @param BulkPinAttributeRequest
|
|
312
|
+
* @return BulkPinAttributeResponse
|
|
313
|
+
* @throws OciError when an error occurs
|
|
314
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkPinAttribute.ts.html |here} to see how to use BulkPinAttribute API.
|
|
315
|
+
*/
|
|
316
|
+
bulkPinAttribute(bulkPinAttributeRequest) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
if (this.logger)
|
|
319
|
+
this.logger.debug("Calling operation AttributesClient#bulkPinAttribute.");
|
|
320
|
+
const operationName = "bulkPinAttribute";
|
|
321
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkPinStatus/BulkPinAttribute";
|
|
322
|
+
const pathParams = {};
|
|
323
|
+
const queryParams = {
|
|
324
|
+
"apmDomainId": bulkPinAttributeRequest.apmDomainId
|
|
325
|
+
};
|
|
326
|
+
let headerParams = {
|
|
327
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
328
|
+
"opc-request-id": bulkPinAttributeRequest.opcRequestId
|
|
329
|
+
};
|
|
330
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
331
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkPinAttributeRequest.retryConfiguration, specRetryConfiguration);
|
|
332
|
+
if (this.logger)
|
|
333
|
+
retrier.logger = this.logger;
|
|
334
|
+
const request = yield oci_common_2.composeRequest({
|
|
335
|
+
baseEndpoint: this._endpoint,
|
|
336
|
+
defaultHeaders: this._defaultHeaders,
|
|
337
|
+
path: "/attributes/actions/pinAttributes",
|
|
338
|
+
method: "POST",
|
|
339
|
+
bodyContent: common.ObjectSerializer.serialize(bulkPinAttributeRequest.bulkPinAttributeDetails, "BulkPinAttributeDetails", model.BulkPinAttributeDetails.getJsonObj),
|
|
340
|
+
pathParams: pathParams,
|
|
341
|
+
headerParams: headerParams,
|
|
342
|
+
queryParams: queryParams
|
|
343
|
+
});
|
|
344
|
+
try {
|
|
345
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
346
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
347
|
+
responseObject: {},
|
|
348
|
+
body: yield response.json(),
|
|
349
|
+
bodyKey: "bulkPinStatus",
|
|
350
|
+
bodyModel: model.BulkPinStatus,
|
|
351
|
+
type: "model.BulkPinStatus",
|
|
352
|
+
responseHeaders: [
|
|
353
|
+
{
|
|
354
|
+
value: response.headers.get("opc-request-id"),
|
|
355
|
+
key: "opcRequestId",
|
|
356
|
+
dataType: "string"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
});
|
|
360
|
+
return sdkResponse;
|
|
361
|
+
}
|
|
362
|
+
catch (err) {
|
|
363
|
+
throw err;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Unpin a set of attributes in the APM Domain.
|
|
369
|
+
*
|
|
370
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
371
|
+
* @param BulkUnpinAttributeRequest
|
|
372
|
+
* @return BulkUnpinAttributeResponse
|
|
373
|
+
* @throws OciError when an error occurs
|
|
374
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkUnpinAttribute.ts.html |here} to see how to use BulkUnpinAttribute API.
|
|
375
|
+
*/
|
|
376
|
+
bulkUnpinAttribute(bulkUnpinAttributeRequest) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
378
|
+
if (this.logger)
|
|
379
|
+
this.logger.debug("Calling operation AttributesClient#bulkUnpinAttribute.");
|
|
380
|
+
const operationName = "bulkUnpinAttribute";
|
|
381
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkUnpinStatus/BulkUnpinAttribute";
|
|
382
|
+
const pathParams = {};
|
|
383
|
+
const queryParams = {
|
|
384
|
+
"apmDomainId": bulkUnpinAttributeRequest.apmDomainId
|
|
385
|
+
};
|
|
386
|
+
let headerParams = {
|
|
387
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
388
|
+
"opc-request-id": bulkUnpinAttributeRequest.opcRequestId
|
|
389
|
+
};
|
|
390
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
391
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkUnpinAttributeRequest.retryConfiguration, specRetryConfiguration);
|
|
392
|
+
if (this.logger)
|
|
393
|
+
retrier.logger = this.logger;
|
|
394
|
+
const request = yield oci_common_2.composeRequest({
|
|
395
|
+
baseEndpoint: this._endpoint,
|
|
396
|
+
defaultHeaders: this._defaultHeaders,
|
|
397
|
+
path: "/attributes/actions/unPinAttributes",
|
|
398
|
+
method: "POST",
|
|
399
|
+
bodyContent: common.ObjectSerializer.serialize(bulkUnpinAttributeRequest.bulkUnpinAttributeDetails, "BulkUnpinAttributeDetails", model.BulkUnpinAttributeDetails.getJsonObj),
|
|
400
|
+
pathParams: pathParams,
|
|
401
|
+
headerParams: headerParams,
|
|
402
|
+
queryParams: queryParams
|
|
403
|
+
});
|
|
404
|
+
try {
|
|
405
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
406
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
407
|
+
responseObject: {},
|
|
408
|
+
body: yield response.json(),
|
|
409
|
+
bodyKey: "bulkUnpinStatus",
|
|
410
|
+
bodyModel: model.BulkUnpinStatus,
|
|
411
|
+
type: "model.BulkUnpinStatus",
|
|
412
|
+
responseHeaders: [
|
|
413
|
+
{
|
|
414
|
+
value: response.headers.get("opc-request-id"),
|
|
415
|
+
key: "opcRequestId",
|
|
416
|
+
dataType: "string"
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
});
|
|
420
|
+
return sdkResponse;
|
|
421
|
+
}
|
|
422
|
+
catch (err) {
|
|
423
|
+
throw err;
|
|
424
|
+
}
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Update a set of attribute properties in the APM Domain.
|
|
429
|
+
*
|
|
430
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
431
|
+
* @param BulkUpdateAttributeRequest
|
|
432
|
+
* @return BulkUpdateAttributeResponse
|
|
433
|
+
* @throws OciError when an error occurs
|
|
434
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkUpdateAttribute.ts.html |here} to see how to use BulkUpdateAttribute API.
|
|
435
|
+
*/
|
|
436
|
+
bulkUpdateAttribute(bulkUpdateAttributeRequest) {
|
|
437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
438
|
+
if (this.logger)
|
|
439
|
+
this.logger.debug("Calling operation AttributesClient#bulkUpdateAttribute.");
|
|
440
|
+
const operationName = "bulkUpdateAttribute";
|
|
441
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkUpdateAttributeStatus/BulkUpdateAttribute";
|
|
442
|
+
const pathParams = {};
|
|
443
|
+
const queryParams = {
|
|
444
|
+
"apmDomainId": bulkUpdateAttributeRequest.apmDomainId
|
|
445
|
+
};
|
|
446
|
+
let headerParams = {
|
|
447
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
448
|
+
"opc-request-id": bulkUpdateAttributeRequest.opcRequestId
|
|
449
|
+
};
|
|
450
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
451
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkUpdateAttributeRequest.retryConfiguration, specRetryConfiguration);
|
|
452
|
+
if (this.logger)
|
|
453
|
+
retrier.logger = this.logger;
|
|
454
|
+
const request = yield oci_common_2.composeRequest({
|
|
455
|
+
baseEndpoint: this._endpoint,
|
|
456
|
+
defaultHeaders: this._defaultHeaders,
|
|
457
|
+
path: "/attributes/actions/updateAttributes",
|
|
458
|
+
method: "POST",
|
|
459
|
+
bodyContent: common.ObjectSerializer.serialize(bulkUpdateAttributeRequest.bulkUpdateAttributeDetails, "BulkUpdateAttributeDetails", model.BulkUpdateAttributeDetails.getJsonObj),
|
|
460
|
+
pathParams: pathParams,
|
|
461
|
+
headerParams: headerParams,
|
|
462
|
+
queryParams: queryParams
|
|
463
|
+
});
|
|
464
|
+
try {
|
|
465
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
466
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
467
|
+
responseObject: {},
|
|
468
|
+
body: yield response.json(),
|
|
469
|
+
bodyKey: "bulkUpdateAttributeStatus",
|
|
470
|
+
bodyModel: model.BulkUpdateAttributeStatus,
|
|
471
|
+
type: "model.BulkUpdateAttributeStatus",
|
|
472
|
+
responseHeaders: [
|
|
473
|
+
{
|
|
474
|
+
value: response.headers.get("opc-request-id"),
|
|
475
|
+
key: "opcRequestId",
|
|
476
|
+
dataType: "string"
|
|
477
|
+
}
|
|
478
|
+
]
|
|
479
|
+
});
|
|
480
|
+
return sdkResponse;
|
|
481
|
+
}
|
|
482
|
+
catch (err) {
|
|
483
|
+
throw err;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Add or edit notes to a set of attributes in the APM Domain. Notes can be added to either an active or an inactive attribute. The
|
|
489
|
+
* notes will be preserved even if the attribute changes state (when an active attribute is deactivated or when an inactive attribute
|
|
490
|
+
* is activated).
|
|
491
|
+
*
|
|
492
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
493
|
+
* @param BulkUpdateAttributeNotesRequest
|
|
494
|
+
* @return BulkUpdateAttributeNotesResponse
|
|
495
|
+
* @throws OciError when an error occurs
|
|
496
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/BulkUpdateAttributeNotes.ts.html |here} to see how to use BulkUpdateAttributeNotes API.
|
|
497
|
+
*/
|
|
498
|
+
bulkUpdateAttributeNotes(bulkUpdateAttributeNotesRequest) {
|
|
499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
500
|
+
if (this.logger)
|
|
501
|
+
this.logger.debug("Calling operation AttributesClient#bulkUpdateAttributeNotes.");
|
|
502
|
+
const operationName = "bulkUpdateAttributeNotes";
|
|
503
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/BulkUpdateNotesStatus/BulkUpdateAttributeNotes";
|
|
504
|
+
const pathParams = {};
|
|
505
|
+
const queryParams = {
|
|
506
|
+
"apmDomainId": bulkUpdateAttributeNotesRequest.apmDomainId
|
|
507
|
+
};
|
|
508
|
+
let headerParams = {
|
|
509
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
510
|
+
"opc-request-id": bulkUpdateAttributeNotesRequest.opcRequestId
|
|
511
|
+
};
|
|
512
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
513
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, bulkUpdateAttributeNotesRequest.retryConfiguration, specRetryConfiguration);
|
|
514
|
+
if (this.logger)
|
|
515
|
+
retrier.logger = this.logger;
|
|
516
|
+
const request = yield oci_common_2.composeRequest({
|
|
517
|
+
baseEndpoint: this._endpoint,
|
|
518
|
+
defaultHeaders: this._defaultHeaders,
|
|
519
|
+
path: "/attributes/actions/updateNotes",
|
|
520
|
+
method: "POST",
|
|
521
|
+
bodyContent: common.ObjectSerializer.serialize(bulkUpdateAttributeNotesRequest.bulkUpdateAttributeNotesDetails, "BulkUpdateAttributeNotesDetails", model.BulkUpdateAttributeNotesDetails.getJsonObj),
|
|
522
|
+
pathParams: pathParams,
|
|
523
|
+
headerParams: headerParams,
|
|
524
|
+
queryParams: queryParams
|
|
525
|
+
});
|
|
526
|
+
try {
|
|
527
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
528
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
529
|
+
responseObject: {},
|
|
530
|
+
body: yield response.json(),
|
|
531
|
+
bodyKey: "bulkUpdateNotesStatus",
|
|
532
|
+
bodyModel: model.BulkUpdateNotesStatus,
|
|
533
|
+
type: "model.BulkUpdateNotesStatus",
|
|
534
|
+
responseHeaders: [
|
|
535
|
+
{
|
|
536
|
+
value: response.headers.get("opc-request-id"),
|
|
537
|
+
key: "opcRequestId",
|
|
538
|
+
dataType: "string"
|
|
539
|
+
}
|
|
540
|
+
]
|
|
541
|
+
});
|
|
542
|
+
return sdkResponse;
|
|
543
|
+
}
|
|
544
|
+
catch (err) {
|
|
545
|
+
throw err;
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Get autoactivation status for a private data key or public data key in the APM Domain.
|
|
551
|
+
*
|
|
552
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
553
|
+
* @param GetStatusAutoActivateRequest
|
|
554
|
+
* @return GetStatusAutoActivateResponse
|
|
555
|
+
* @throws OciError when an error occurs
|
|
556
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/GetStatusAutoActivate.ts.html |here} to see how to use GetStatusAutoActivate API.
|
|
557
|
+
*/
|
|
558
|
+
getStatusAutoActivate(getStatusAutoActivateRequest) {
|
|
559
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
560
|
+
if (this.logger)
|
|
561
|
+
this.logger.debug("Calling operation AttributesClient#getStatusAutoActivate.");
|
|
562
|
+
const operationName = "getStatusAutoActivate";
|
|
563
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/AutoActivateStatus/GetStatusAutoActivate";
|
|
564
|
+
const pathParams = {};
|
|
565
|
+
const queryParams = {
|
|
566
|
+
"apmDomainId": getStatusAutoActivateRequest.apmDomainId,
|
|
567
|
+
"dataKeyType": getStatusAutoActivateRequest.dataKeyType
|
|
568
|
+
};
|
|
569
|
+
let headerParams = {
|
|
570
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
571
|
+
"opc-request-id": getStatusAutoActivateRequest.opcRequestId
|
|
572
|
+
};
|
|
573
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
574
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStatusAutoActivateRequest.retryConfiguration, specRetryConfiguration);
|
|
575
|
+
if (this.logger)
|
|
576
|
+
retrier.logger = this.logger;
|
|
577
|
+
const request = yield oci_common_2.composeRequest({
|
|
578
|
+
baseEndpoint: this._endpoint,
|
|
579
|
+
defaultHeaders: this._defaultHeaders,
|
|
580
|
+
path: "/attributes/autoActivateStatus",
|
|
581
|
+
method: "GET",
|
|
582
|
+
pathParams: pathParams,
|
|
583
|
+
headerParams: headerParams,
|
|
584
|
+
queryParams: queryParams
|
|
585
|
+
});
|
|
586
|
+
try {
|
|
587
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
588
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
589
|
+
responseObject: {},
|
|
590
|
+
body: yield response.json(),
|
|
591
|
+
bodyKey: "autoActivateStatus",
|
|
592
|
+
bodyModel: model.AutoActivateStatus,
|
|
593
|
+
type: "model.AutoActivateStatus",
|
|
594
|
+
responseHeaders: [
|
|
595
|
+
{
|
|
596
|
+
value: response.headers.get("opc-request-id"),
|
|
597
|
+
key: "opcRequestId",
|
|
598
|
+
dataType: "string"
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
});
|
|
602
|
+
return sdkResponse;
|
|
603
|
+
}
|
|
604
|
+
catch (err) {
|
|
605
|
+
throw err;
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Turn on or off autoactivate for private data key or public data key traffic a given APM Domain.
|
|
611
|
+
*
|
|
612
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
613
|
+
* @param PutToggleAutoActivateRequest
|
|
614
|
+
* @return PutToggleAutoActivateResponse
|
|
615
|
+
* @throws OciError when an error occurs
|
|
616
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/PutToggleAutoActivate.ts.html |here} to see how to use PutToggleAutoActivate API.
|
|
617
|
+
*/
|
|
618
|
+
putToggleAutoActivate(putToggleAutoActivateRequest) {
|
|
619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
620
|
+
if (this.logger)
|
|
621
|
+
this.logger.debug("Calling operation AttributesClient#putToggleAutoActivate.");
|
|
622
|
+
const operationName = "putToggleAutoActivate";
|
|
623
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/apm-trace-explorer/20200630/AutoActivateToggleStatus/PutToggleAutoActivate";
|
|
624
|
+
const pathParams = {};
|
|
625
|
+
const queryParams = {
|
|
626
|
+
"apmDomainId": putToggleAutoActivateRequest.apmDomainId,
|
|
627
|
+
"isAutoActivateOn": putToggleAutoActivateRequest.isAutoActivateOn,
|
|
628
|
+
"dataKeyType": putToggleAutoActivateRequest.dataKeyType
|
|
629
|
+
};
|
|
630
|
+
let headerParams = {
|
|
631
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
632
|
+
"opc-request-id": putToggleAutoActivateRequest.opcRequestId
|
|
633
|
+
};
|
|
634
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
635
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, putToggleAutoActivateRequest.retryConfiguration, specRetryConfiguration);
|
|
636
|
+
if (this.logger)
|
|
637
|
+
retrier.logger = this.logger;
|
|
638
|
+
const request = yield oci_common_2.composeRequest({
|
|
639
|
+
baseEndpoint: this._endpoint,
|
|
640
|
+
defaultHeaders: this._defaultHeaders,
|
|
641
|
+
path: "/attributes/actions/autoActivate",
|
|
642
|
+
method: "POST",
|
|
643
|
+
pathParams: pathParams,
|
|
644
|
+
headerParams: headerParams,
|
|
645
|
+
queryParams: queryParams
|
|
646
|
+
});
|
|
647
|
+
try {
|
|
648
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
649
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
650
|
+
responseObject: {},
|
|
651
|
+
body: yield response.json(),
|
|
652
|
+
bodyKey: "autoActivateToggleStatus",
|
|
653
|
+
bodyModel: model.AutoActivateToggleStatus,
|
|
654
|
+
type: "model.AutoActivateToggleStatus",
|
|
655
|
+
responseHeaders: [
|
|
656
|
+
{
|
|
657
|
+
value: response.headers.get("opc-request-id"),
|
|
658
|
+
key: "opcRequestId",
|
|
659
|
+
dataType: "string"
|
|
660
|
+
}
|
|
661
|
+
]
|
|
662
|
+
});
|
|
663
|
+
return sdkResponse;
|
|
664
|
+
}
|
|
665
|
+
catch (err) {
|
|
666
|
+
throw err;
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
exports.AttributesClient = AttributesClient;
|
|
672
|
+
AttributesClient.serviceEndpointTemplate = "https://apm-trace.{region}.oci.{secondLevelDomain}";
|
|
673
|
+
AttributesClient.endpointServiceName = "";
|
|
53
674
|
var QueryApiKeys;
|
|
54
675
|
(function (QueryApiKeys) {
|
|
55
676
|
})(QueryApiKeys = exports.QueryApiKeys || (exports.QueryApiKeys = {}));
|
|
@@ -178,7 +799,7 @@ class QueryClient {
|
|
|
178
799
|
* @param ListQuickPicksRequest
|
|
179
800
|
* @return ListQuickPicksResponse
|
|
180
801
|
* @throws OciError when an error occurs
|
|
181
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
802
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/ListQuickPicks.ts.html |here} to see how to use ListQuickPicks API.
|
|
182
803
|
*/
|
|
183
804
|
listQuickPicks(listQuickPicksRequest) {
|
|
184
805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -292,7 +913,7 @@ class QueryClient {
|
|
|
292
913
|
* @param QueryRequest
|
|
293
914
|
* @return QueryResponse
|
|
294
915
|
* @throws OciError when an error occurs
|
|
295
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
916
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/Query.ts.html |here} to see how to use Query API.
|
|
296
917
|
*/
|
|
297
918
|
query(queryRequest) {
|
|
298
919
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -490,7 +1111,7 @@ class TraceClient {
|
|
|
490
1111
|
* @param GetAggregatedSnapshotRequest
|
|
491
1112
|
* @return GetAggregatedSnapshotResponse
|
|
492
1113
|
* @throws OciError when an error occurs
|
|
493
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1114
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/GetAggregatedSnapshot.ts.html |here} to see how to use GetAggregatedSnapshot API.
|
|
494
1115
|
*/
|
|
495
1116
|
getAggregatedSnapshot(getAggregatedSnapshotRequest) {
|
|
496
1117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -502,7 +1123,11 @@ class TraceClient {
|
|
|
502
1123
|
"{traceKey}": getAggregatedSnapshotRequest.traceKey
|
|
503
1124
|
};
|
|
504
1125
|
const queryParams = {
|
|
505
|
-
"apmDomainId": getAggregatedSnapshotRequest.apmDomainId
|
|
1126
|
+
"apmDomainId": getAggregatedSnapshotRequest.apmDomainId,
|
|
1127
|
+
"serviceName": getAggregatedSnapshotRequest.serviceName,
|
|
1128
|
+
"serverName": getAggregatedSnapshotRequest.serverName,
|
|
1129
|
+
"spanKey": getAggregatedSnapshotRequest.spanKey,
|
|
1130
|
+
"spanName": getAggregatedSnapshotRequest.spanName
|
|
506
1131
|
};
|
|
507
1132
|
let headerParams = {
|
|
508
1133
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -551,7 +1176,7 @@ class TraceClient {
|
|
|
551
1176
|
* @param GetSpanRequest
|
|
552
1177
|
* @return GetSpanResponse
|
|
553
1178
|
* @throws OciError when an error occurs
|
|
554
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1179
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/GetSpan.ts.html |here} to see how to use GetSpan API.
|
|
555
1180
|
*/
|
|
556
1181
|
getSpan(getSpanRequest) {
|
|
557
1182
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -564,7 +1189,10 @@ class TraceClient {
|
|
|
564
1189
|
"{traceKey}": getSpanRequest.traceKey
|
|
565
1190
|
};
|
|
566
1191
|
const queryParams = {
|
|
567
|
-
"apmDomainId": getSpanRequest.apmDomainId
|
|
1192
|
+
"apmDomainId": getSpanRequest.apmDomainId,
|
|
1193
|
+
"timeSpanStartedGreaterThanOrEqualTo": getSpanRequest.timeSpanStartedGreaterThanOrEqualTo,
|
|
1194
|
+
"timeSpanStartedLessThan": getSpanRequest.timeSpanStartedLessThan,
|
|
1195
|
+
"spanNamespace": getSpanRequest.spanNamespace
|
|
568
1196
|
};
|
|
569
1197
|
let headerParams = {
|
|
570
1198
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -613,7 +1241,7 @@ class TraceClient {
|
|
|
613
1241
|
* @param GetTraceRequest
|
|
614
1242
|
* @return GetTraceResponse
|
|
615
1243
|
* @throws OciError when an error occurs
|
|
616
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1244
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/GetTrace.ts.html |here} to see how to use GetTrace API.
|
|
617
1245
|
*/
|
|
618
1246
|
getTrace(getTraceRequest) {
|
|
619
1247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -625,7 +1253,10 @@ class TraceClient {
|
|
|
625
1253
|
"{traceKey}": getTraceRequest.traceKey
|
|
626
1254
|
};
|
|
627
1255
|
const queryParams = {
|
|
628
|
-
"apmDomainId": getTraceRequest.apmDomainId
|
|
1256
|
+
"apmDomainId": getTraceRequest.apmDomainId,
|
|
1257
|
+
"timeTraceStartedGreaterThanOrEqualTo": getTraceRequest.timeTraceStartedGreaterThanOrEqualTo,
|
|
1258
|
+
"timeTraceStartedLessThan": getTraceRequest.timeTraceStartedLessThan,
|
|
1259
|
+
"traceNamespace": getTraceRequest.traceNamespace
|
|
629
1260
|
};
|
|
630
1261
|
let headerParams = {
|
|
631
1262
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -674,7 +1305,7 @@ class TraceClient {
|
|
|
674
1305
|
* @param GetTraceSnapshotRequest
|
|
675
1306
|
* @return GetTraceSnapshotResponse
|
|
676
1307
|
* @throws OciError when an error occurs
|
|
677
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1308
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.82.2/apmtraces/GetTraceSnapshot.ts.html |here} to see how to use GetTraceSnapshot API.
|
|
678
1309
|
*/
|
|
679
1310
|
getTraceSnapshot(getTraceSnapshotRequest) {
|
|
680
1311
|
return __awaiter(this, void 0, void 0, function* () {
|