oci-loganalytics 2.107.3 → 2.109.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 +71 -1
- package/lib/client.js +514 -7
- package/lib/client.js.map +1 -1
- package/lib/model/abstract-command-descriptor.js +4 -0
- package/lib/model/abstract-command-descriptor.js.map +1 -1
- package/lib/model/auto-schedule.d.ts +25 -0
- package/lib/model/auto-schedule.js +51 -0
- package/lib/model/auto-schedule.js.map +1 -0
- package/lib/model/change-lookup-compartment-details.d.ts +28 -0
- package/lib/model/change-lookup-compartment-details.js +30 -0
- package/lib/model/change-lookup-compartment-details.js.map +1 -0
- package/lib/model/create-log-analytics-object-collection-rule-details.d.ts +22 -1
- package/lib/model/create-log-analytics-object-collection-rule-details.js.map +1 -1
- package/lib/model/create-standard-task-details.d.ts +1 -1
- package/lib/model/cron-schedule.d.ts +2 -2
- package/lib/model/dependency.d.ts +8 -0
- package/lib/model/dependency.js.map +1 -1
- package/lib/model/dependent-parser.d.ts +1 -1
- package/lib/model/dependent-source.d.ts +1 -1
- package/lib/model/estimate-recall-data-size-result.d.ts +8 -0
- package/lib/model/estimate-recall-data-size-result.js.map +1 -1
- package/lib/model/export-details.d.ts +2 -1
- package/lib/model/export-details.js +1 -0
- package/lib/model/export-details.js.map +1 -1
- package/lib/model/fixed-frequency-schedule.d.ts +1 -1
- package/lib/model/generic-condition-block.d.ts +67 -0
- package/lib/model/generic-condition-block.js +74 -0
- package/lib/model/generic-condition-block.js.map +1 -0
- package/lib/model/index.d.ts +40 -0
- package/lib/model/index.js +49 -9
- package/lib/model/index.js.map +1 -1
- package/lib/model/log-analytics-entity-summary.d.ts +5 -0
- package/lib/model/log-analytics-entity-summary.js.map +1 -1
- package/lib/model/log-analytics-entity-topology-link.d.ts +9 -0
- package/lib/model/log-analytics-entity-topology-link.js.map +1 -1
- package/lib/model/log-analytics-entity.d.ts +5 -0
- package/lib/model/log-analytics-entity.js.map +1 -1
- package/lib/model/log-analytics-field-summary.d.ts +9 -0
- package/lib/model/log-analytics-field-summary.js.map +1 -1
- package/lib/model/log-analytics-field-usages.d.ts +32 -0
- package/lib/model/log-analytics-field-usages.js +72 -0
- package/lib/model/log-analytics-field-usages.js.map +1 -0
- package/lib/model/log-analytics-field.d.ts +9 -0
- package/lib/model/log-analytics-field.js.map +1 -1
- package/lib/model/log-analytics-lookup.d.ts +28 -0
- package/lib/model/log-analytics-lookup.js.map +1 -1
- package/lib/model/log-analytics-object-collection-rule-summary.d.ts +5 -0
- package/lib/model/log-analytics-object-collection-rule-summary.js.map +1 -1
- package/lib/model/log-analytics-object-collection-rule.d.ts +26 -0
- package/lib/model/log-analytics-object-collection-rule.js.map +1 -1
- package/lib/model/log-analytics-parser-field.d.ts +5 -0
- package/lib/model/log-analytics-parser-field.js +11 -1
- package/lib/model/log-analytics-parser-field.js.map +1 -1
- package/lib/model/log-analytics-resource-category.d.ts +8 -0
- package/lib/model/log-analytics-resource-category.js.map +1 -1
- package/lib/model/log-analytics-source-extended-field-definition.d.ts +7 -1
- package/lib/model/log-analytics-source-extended-field-definition.js +6 -0
- package/lib/model/log-analytics-source-extended-field-definition.js.map +1 -1
- package/lib/model/log-analytics-template-collection.d.ts +27 -0
- package/lib/model/log-analytics-template-collection.js +62 -0
- package/lib/model/log-analytics-template-collection.js.map +1 -0
- package/lib/model/log-analytics-template-summary.d.ts +90 -0
- package/lib/model/log-analytics-template-summary.js +62 -0
- package/lib/model/log-analytics-template-summary.js.map +1 -0
- package/lib/model/log-analytics-template.d.ts +110 -0
- package/lib/model/log-analytics-template.js +62 -0
- package/lib/model/log-analytics-template.js.map +1 -0
- package/lib/model/metric-extraction.d.ts +3 -3
- package/lib/model/module-command-descriptor.d.ts +20 -0
- package/lib/model/module-command-descriptor.js +24 -2
- package/lib/model/module-command-descriptor.js.map +1 -1
- package/lib/model/namespace-summary.d.ts +4 -0
- package/lib/model/namespace-summary.js.map +1 -1
- package/lib/model/namespace.d.ts +4 -0
- package/lib/model/namespace.js.map +1 -1
- package/lib/model/parse-query-output.d.ts +10 -0
- package/lib/model/parse-query-output.js +20 -0
- package/lib/model/parse-query-output.js.map +1 -1
- package/lib/model/parser-action-summary-collection.d.ts +27 -0
- package/lib/model/parser-action-summary-collection.js +62 -0
- package/lib/model/parser-action-summary-collection.js.map +1 -0
- package/lib/model/parser-action-summary.d.ts +35 -0
- package/lib/model/parser-action-summary.js +30 -0
- package/lib/model/parser-action-summary.js.map +1 -0
- package/lib/model/parser-action.d.ts +31 -0
- package/lib/model/parser-action.js +30 -0
- package/lib/model/parser-action.js.map +1 -0
- package/lib/model/property-definition.d.ts +56 -0
- package/lib/model/property-definition.js +44 -0
- package/lib/model/property-definition.js.map +1 -0
- package/lib/model/query-aggregation.d.ts +11 -0
- package/lib/model/query-aggregation.js +14 -0
- package/lib/model/query-aggregation.js.map +1 -1
- package/lib/model/recall-archived-data-details.d.ts +6 -0
- package/lib/model/recall-archived-data-details.js.map +1 -1
- package/lib/model/recall-definition.d.ts +33 -0
- package/lib/model/recall-definition.js +30 -0
- package/lib/model/recall-definition.js.map +1 -0
- package/lib/model/recall-status.d.ts +1 -0
- package/lib/model/recall-status.js +1 -0
- package/lib/model/recall-status.js.map +1 -1
- package/lib/model/recalled-data.d.ts +5 -0
- package/lib/model/recalled-data.js +1 -0
- package/lib/model/recalled-data.js.map +1 -1
- package/lib/model/recalled-info-collection.d.ts +27 -0
- package/lib/model/recalled-info-collection.js +62 -0
- package/lib/model/recalled-info-collection.js.map +1 -0
- package/lib/model/recalled-info.d.ts +51 -0
- package/lib/model/recalled-info.js +30 -0
- package/lib/model/recalled-info.js.map +1 -0
- package/lib/model/schedule.js +4 -0
- package/lib/model/schedule.js.map +1 -1
- package/lib/model/scheduled-task-summary.d.ts +13 -0
- package/lib/model/scheduled-task-summary.js +10 -0
- package/lib/model/scheduled-task-summary.js.map +1 -1
- package/lib/model/stream-action.d.ts +1 -0
- package/lib/model/stream-action.js +6 -0
- package/lib/model/stream-action.js.map +1 -1
- package/lib/model/stream-cursor-types.d.ts +32 -0
- package/lib/model/stream-cursor-types.js +43 -0
- package/lib/model/stream-cursor-types.js.map +1 -0
- package/lib/model/template-details.d.ts +31 -0
- package/lib/model/template-details.js +62 -0
- package/lib/model/template-details.js.map +1 -0
- package/lib/model/template-facet.d.ts +31 -0
- package/lib/model/template-facet.js +30 -0
- package/lib/model/template-facet.js.map +1 -0
- package/lib/model/template-params.d.ts +30 -0
- package/lib/model/template-params.js +30 -0
- package/lib/model/template-params.js.map +1 -0
- package/lib/model/update-log-analytics-object-collection-rule-details.d.ts +21 -0
- package/lib/model/update-log-analytics-object-collection-rule-details.js.map +1 -1
- package/lib/model/update-lookup-metadata-details.d.ts +18 -0
- package/lib/model/update-lookup-metadata-details.js.map +1 -1
- package/lib/model/update-table-command-descriptor.d.ts +31 -0
- package/lib/model/update-table-command-descriptor.js +55 -0
- package/lib/model/update-table-command-descriptor.js.map +1 -0
- package/lib/model/upsert-log-analytics-field-details.d.ts +5 -0
- package/lib/model/upsert-log-analytics-field-details.js.map +1 -1
- package/lib/model/usage-status-item.d.ts +5 -0
- package/lib/model/usage-status-item.js.map +1 -1
- package/lib/model/variable-definition.d.ts +59 -0
- package/lib/model/variable-definition.js +73 -0
- package/lib/model/variable-definition.js.map +1 -0
- package/lib/request/change-lookup-compartment-request.d.ts +54 -0
- package/lib/request/change-lookup-compartment-request.js +15 -0
- package/lib/request/change-lookup-compartment-request.js.map +1 -0
- package/lib/request/delete-log-analytics-entity-request.d.ts +4 -0
- package/lib/request/get-field-usages-request.d.ts +31 -0
- package/lib/request/get-field-usages-request.js +15 -0
- package/lib/request/get-field-usages-request.js.map +1 -0
- package/lib/request/get-log-analytics-entity-request.d.ts +4 -0
- package/lib/request/get-lookup-summary-request.d.ts +4 -0
- package/lib/request/get-template-request.d.ts +32 -0
- package/lib/request/get-template-request.js +15 -0
- package/lib/request/get-template-request.js.map +1 -0
- package/lib/request/index.d.ts +14 -0
- package/lib/request/index.js +8 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-effective-properties-request.d.ts +5 -0
- package/lib/request/list-effective-properties-request.js.map +1 -1
- package/lib/request/list-fields-request.d.ts +2 -1
- package/lib/request/list-fields-request.js +1 -0
- package/lib/request/list-fields-request.js.map +1 -1
- package/lib/request/list-log-analytics-entities-request.d.ts +37 -0
- package/lib/request/list-log-analytics-entities-request.js.map +1 -1
- package/lib/request/list-log-analytics-entity-topology-request.d.ts +5 -0
- package/lib/request/list-log-analytics-entity-topology-request.js.map +1 -1
- package/lib/request/list-lookups-request.d.ts +4 -0
- package/lib/request/list-lookups-request.js.map +1 -1
- package/lib/request/list-parser-actions-request.d.ts +63 -0
- package/lib/request/list-parser-actions-request.js +28 -0
- package/lib/request/list-parser-actions-request.js.map +1 -0
- package/lib/request/list-recalled-info-request.d.ts +68 -0
- package/lib/request/list-recalled-info-request.js +29 -0
- package/lib/request/list-recalled-info-request.js.map +1 -0
- package/lib/request/list-resource-categories-request.d.ts +4 -0
- package/lib/request/list-resource-categories-request.js.map +1 -1
- package/lib/request/list-scheduled-tasks-request.d.ts +6 -0
- package/lib/request/list-scheduled-tasks-request.js.map +1 -1
- package/lib/request/list-sources-request.d.ts +6 -0
- package/lib/request/list-sources-request.js.map +1 -1
- package/lib/request/list-templates-request.d.ts +87 -0
- package/lib/request/list-templates-request.js +30 -0
- package/lib/request/list-templates-request.js.map +1 -0
- package/lib/request/register-lookup-request.d.ts +8 -1
- package/lib/request/register-lookup-request.js.map +1 -1
- package/lib/request/upload-log-file-request.d.ts +5 -5
- package/lib/request/upload-otlp-logs-request.d.ts +70 -0
- package/lib/request/upload-otlp-logs-request.js +15 -0
- package/lib/request/upload-otlp-logs-request.js.map +1 -0
- package/lib/response/change-lookup-compartment-response.d.ts +19 -0
- package/lib/response/change-lookup-compartment-response.js +15 -0
- package/lib/response/change-lookup-compartment-response.js.map +1 -0
- package/lib/response/get-field-usages-response.d.ts +24 -0
- package/lib/response/get-field-usages-response.js +15 -0
- package/lib/response/get-field-usages-response.js.map +1 -0
- package/lib/response/get-template-response.d.ts +29 -0
- package/lib/response/get-template-response.js +15 -0
- package/lib/response/get-template-response.js.map +1 -0
- package/lib/response/index.d.ts +14 -0
- package/lib/response/list-parser-actions-response.d.ts +38 -0
- package/lib/response/list-parser-actions-response.js +15 -0
- package/lib/response/list-parser-actions-response.js.map +1 -0
- package/lib/response/list-recalled-info-response.d.ts +38 -0
- package/lib/response/list-recalled-info-response.js +15 -0
- package/lib/response/list-recalled-info-response.js.map +1 -0
- package/lib/response/list-templates-response.d.ts +38 -0
- package/lib/response/list-templates-response.js +15 -0
- package/lib/response/list-templates-response.js.map +1 -0
- package/lib/response/upload-otlp-logs-response.d.ts +27 -0
- package/lib/response/upload-otlp-logs-response.js +15 -0
- package/lib/response/upload-otlp-logs-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -883,6 +883,65 @@ class LogAnalyticsClient {
|
|
|
883
883
|
}
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
|
+
/**
|
|
887
|
+
* Moves the specified lookup to a different compartment.
|
|
888
|
+
*
|
|
889
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
890
|
+
* @param ChangeLookupCompartmentRequest
|
|
891
|
+
* @return ChangeLookupCompartmentResponse
|
|
892
|
+
* @throws OciError when an error occurs
|
|
893
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/ChangeLookupCompartment.ts.html |here} to see how to use ChangeLookupCompartment API.
|
|
894
|
+
*/
|
|
895
|
+
changeLookupCompartment(changeLookupCompartmentRequest) {
|
|
896
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
897
|
+
if (this.logger)
|
|
898
|
+
this.logger.debug("Calling operation LogAnalyticsClient#changeLookupCompartment.");
|
|
899
|
+
const operationName = "changeLookupCompartment";
|
|
900
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/LogAnalyticsLookup/ChangeLookupCompartment";
|
|
901
|
+
const pathParams = {
|
|
902
|
+
"{namespaceName}": changeLookupCompartmentRequest.namespaceName,
|
|
903
|
+
"{lookupName}": changeLookupCompartmentRequest.lookupName
|
|
904
|
+
};
|
|
905
|
+
const queryParams = {};
|
|
906
|
+
let headerParams = {
|
|
907
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
908
|
+
"if-match": changeLookupCompartmentRequest.ifMatch,
|
|
909
|
+
"opc-request-id": changeLookupCompartmentRequest.opcRequestId,
|
|
910
|
+
"opc-retry-token": changeLookupCompartmentRequest.opcRetryToken
|
|
911
|
+
};
|
|
912
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
913
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeLookupCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
914
|
+
if (this.logger)
|
|
915
|
+
retrier.logger = this.logger;
|
|
916
|
+
const request = yield oci_common_1.composeRequest({
|
|
917
|
+
baseEndpoint: this._endpoint,
|
|
918
|
+
defaultHeaders: this._defaultHeaders,
|
|
919
|
+
path: "/namespaces/{namespaceName}/lookups/{lookupName}/actions/changeCompartment",
|
|
920
|
+
method: "POST",
|
|
921
|
+
bodyContent: common.ObjectSerializer.serialize(changeLookupCompartmentRequest.changeLookupCompartmentDetails, "ChangeLookupCompartmentDetails", model.ChangeLookupCompartmentDetails.getJsonObj),
|
|
922
|
+
pathParams: pathParams,
|
|
923
|
+
headerParams: headerParams,
|
|
924
|
+
queryParams: queryParams
|
|
925
|
+
});
|
|
926
|
+
try {
|
|
927
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
928
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
929
|
+
responseObject: {},
|
|
930
|
+
responseHeaders: [
|
|
931
|
+
{
|
|
932
|
+
value: response.headers.get("opc-request-id"),
|
|
933
|
+
key: "opcRequestId",
|
|
934
|
+
dataType: "string"
|
|
935
|
+
}
|
|
936
|
+
]
|
|
937
|
+
});
|
|
938
|
+
return sdkResponse;
|
|
939
|
+
}
|
|
940
|
+
catch (err) {
|
|
941
|
+
throw err;
|
|
942
|
+
}
|
|
943
|
+
});
|
|
944
|
+
}
|
|
886
945
|
/**
|
|
887
946
|
* Move the scheduled task into a different compartment within the same tenancy.
|
|
888
947
|
*
|
|
@@ -1821,7 +1880,9 @@ class LogAnalyticsClient {
|
|
|
1821
1880
|
"{namespaceName}": deleteLogAnalyticsEntityRequest.namespaceName,
|
|
1822
1881
|
"{logAnalyticsEntityId}": deleteLogAnalyticsEntityRequest.logAnalyticsEntityId
|
|
1823
1882
|
};
|
|
1824
|
-
const queryParams = {
|
|
1883
|
+
const queryParams = {
|
|
1884
|
+
"isForceDelete": deleteLogAnalyticsEntityRequest.isForceDelete
|
|
1885
|
+
};
|
|
1825
1886
|
let headerParams = {
|
|
1826
1887
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1827
1888
|
"if-match": deleteLogAnalyticsEntityRequest.ifMatch,
|
|
@@ -3758,6 +3819,66 @@ class LogAnalyticsClient {
|
|
|
3758
3819
|
}
|
|
3759
3820
|
});
|
|
3760
3821
|
}
|
|
3822
|
+
/**
|
|
3823
|
+
* Gets usage information about the field with the specified name.
|
|
3824
|
+
*
|
|
3825
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3826
|
+
* @param GetFieldUsagesRequest
|
|
3827
|
+
* @return GetFieldUsagesResponse
|
|
3828
|
+
* @throws OciError when an error occurs
|
|
3829
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/GetFieldUsages.ts.html |here} to see how to use GetFieldUsages API.
|
|
3830
|
+
*/
|
|
3831
|
+
getFieldUsages(getFieldUsagesRequest) {
|
|
3832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3833
|
+
if (this.logger)
|
|
3834
|
+
this.logger.debug("Calling operation LogAnalyticsClient#getFieldUsages.");
|
|
3835
|
+
const operationName = "getFieldUsages";
|
|
3836
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/LogAnalyticsField/GetFieldUsages";
|
|
3837
|
+
const pathParams = {
|
|
3838
|
+
"{namespaceName}": getFieldUsagesRequest.namespaceName,
|
|
3839
|
+
"{fieldName}": getFieldUsagesRequest.fieldName
|
|
3840
|
+
};
|
|
3841
|
+
const queryParams = {};
|
|
3842
|
+
let headerParams = {
|
|
3843
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3844
|
+
"opc-request-id": getFieldUsagesRequest.opcRequestId
|
|
3845
|
+
};
|
|
3846
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3847
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getFieldUsagesRequest.retryConfiguration, specRetryConfiguration);
|
|
3848
|
+
if (this.logger)
|
|
3849
|
+
retrier.logger = this.logger;
|
|
3850
|
+
const request = yield oci_common_1.composeRequest({
|
|
3851
|
+
baseEndpoint: this._endpoint,
|
|
3852
|
+
defaultHeaders: this._defaultHeaders,
|
|
3853
|
+
path: "/namespaces/{namespaceName}/fields/{fieldName}/usages",
|
|
3854
|
+
method: "GET",
|
|
3855
|
+
pathParams: pathParams,
|
|
3856
|
+
headerParams: headerParams,
|
|
3857
|
+
queryParams: queryParams
|
|
3858
|
+
});
|
|
3859
|
+
try {
|
|
3860
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3861
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3862
|
+
responseObject: {},
|
|
3863
|
+
body: yield response.json(),
|
|
3864
|
+
bodyKey: "logAnalyticsFieldUsages",
|
|
3865
|
+
bodyModel: model.LogAnalyticsFieldUsages,
|
|
3866
|
+
type: "model.LogAnalyticsFieldUsages",
|
|
3867
|
+
responseHeaders: [
|
|
3868
|
+
{
|
|
3869
|
+
value: response.headers.get("opc-request-id"),
|
|
3870
|
+
key: "opcRequestId",
|
|
3871
|
+
dataType: "string"
|
|
3872
|
+
}
|
|
3873
|
+
]
|
|
3874
|
+
});
|
|
3875
|
+
return sdkResponse;
|
|
3876
|
+
}
|
|
3877
|
+
catch (err) {
|
|
3878
|
+
throw err;
|
|
3879
|
+
}
|
|
3880
|
+
});
|
|
3881
|
+
}
|
|
3761
3882
|
/**
|
|
3762
3883
|
* Returns the count of fields. You may optionally specify isShowDetail=true to view a summary of each field data type.
|
|
3763
3884
|
*
|
|
@@ -4210,7 +4331,9 @@ class LogAnalyticsClient {
|
|
|
4210
4331
|
"{namespaceName}": getLogAnalyticsEntityRequest.namespaceName,
|
|
4211
4332
|
"{logAnalyticsEntityId}": getLogAnalyticsEntityRequest.logAnalyticsEntityId
|
|
4212
4333
|
};
|
|
4213
|
-
const queryParams = {
|
|
4334
|
+
const queryParams = {
|
|
4335
|
+
"isShowAssociatedSourcesCount": getLogAnalyticsEntityRequest.isShowAssociatedSourcesCount
|
|
4336
|
+
};
|
|
4214
4337
|
let headerParams = {
|
|
4215
4338
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4216
4339
|
"opc-request-id": getLogAnalyticsEntityRequest.opcRequestId
|
|
@@ -4651,7 +4774,9 @@ class LogAnalyticsClient {
|
|
|
4651
4774
|
const pathParams = {
|
|
4652
4775
|
"{namespaceName}": getLookupSummaryRequest.namespaceName
|
|
4653
4776
|
};
|
|
4654
|
-
const queryParams = {
|
|
4777
|
+
const queryParams = {
|
|
4778
|
+
"compartmentId": getLookupSummaryRequest.compartmentId
|
|
4779
|
+
};
|
|
4655
4780
|
let headerParams = {
|
|
4656
4781
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4657
4782
|
"opc-request-id": getLookupSummaryRequest.opcRequestId
|
|
@@ -5682,6 +5807,71 @@ class LogAnalyticsClient {
|
|
|
5682
5807
|
}
|
|
5683
5808
|
});
|
|
5684
5809
|
}
|
|
5810
|
+
/**
|
|
5811
|
+
* Gets detailed information about the template with the specified ocid.
|
|
5812
|
+
*
|
|
5813
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5814
|
+
* @param GetTemplateRequest
|
|
5815
|
+
* @return GetTemplateResponse
|
|
5816
|
+
* @throws OciError when an error occurs
|
|
5817
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/GetTemplate.ts.html |here} to see how to use GetTemplate API.
|
|
5818
|
+
*/
|
|
5819
|
+
getTemplate(getTemplateRequest) {
|
|
5820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5821
|
+
if (this.logger)
|
|
5822
|
+
this.logger.debug("Calling operation LogAnalyticsClient#getTemplate.");
|
|
5823
|
+
const operationName = "getTemplate";
|
|
5824
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/LogAnalyticsTemplate/GetTemplate";
|
|
5825
|
+
const pathParams = {
|
|
5826
|
+
"{namespaceName}": getTemplateRequest.namespaceName,
|
|
5827
|
+
"{templateId}": getTemplateRequest.templateId
|
|
5828
|
+
};
|
|
5829
|
+
const queryParams = {};
|
|
5830
|
+
let headerParams = {
|
|
5831
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5832
|
+
"opc-request-id": getTemplateRequest.opcRequestId
|
|
5833
|
+
};
|
|
5834
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5835
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
5836
|
+
if (this.logger)
|
|
5837
|
+
retrier.logger = this.logger;
|
|
5838
|
+
const request = yield oci_common_1.composeRequest({
|
|
5839
|
+
baseEndpoint: this._endpoint,
|
|
5840
|
+
defaultHeaders: this._defaultHeaders,
|
|
5841
|
+
path: "/namespaces/{namespaceName}/templates/{templateId}",
|
|
5842
|
+
method: "GET",
|
|
5843
|
+
pathParams: pathParams,
|
|
5844
|
+
headerParams: headerParams,
|
|
5845
|
+
queryParams: queryParams
|
|
5846
|
+
});
|
|
5847
|
+
try {
|
|
5848
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5849
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5850
|
+
responseObject: {},
|
|
5851
|
+
body: yield response.json(),
|
|
5852
|
+
bodyKey: "logAnalyticsTemplate",
|
|
5853
|
+
bodyModel: model.LogAnalyticsTemplate,
|
|
5854
|
+
type: "model.LogAnalyticsTemplate",
|
|
5855
|
+
responseHeaders: [
|
|
5856
|
+
{
|
|
5857
|
+
value: response.headers.get("etag"),
|
|
5858
|
+
key: "etag",
|
|
5859
|
+
dataType: "string"
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
value: response.headers.get("opc-request-id"),
|
|
5863
|
+
key: "opcRequestId",
|
|
5864
|
+
dataType: "string"
|
|
5865
|
+
}
|
|
5866
|
+
]
|
|
5867
|
+
});
|
|
5868
|
+
return sdkResponse;
|
|
5869
|
+
}
|
|
5870
|
+
catch (err) {
|
|
5871
|
+
throw err;
|
|
5872
|
+
}
|
|
5873
|
+
});
|
|
5874
|
+
}
|
|
5685
5875
|
/**
|
|
5686
5876
|
* This API retrieves details of the configured bucket that stores unprocessed payloads.
|
|
5687
5877
|
*
|
|
@@ -6339,6 +6529,7 @@ class LogAnalyticsClient {
|
|
|
6339
6529
|
"isIncludePatterns": listEffectivePropertiesRequest.isIncludePatterns,
|
|
6340
6530
|
"entityId": listEffectivePropertiesRequest.entityId,
|
|
6341
6531
|
"patternId": listEffectivePropertiesRequest.patternId,
|
|
6532
|
+
"patternIdLong": listEffectivePropertiesRequest.patternIdLong,
|
|
6342
6533
|
"name": listEffectivePropertiesRequest.name,
|
|
6343
6534
|
"limit": listEffectivePropertiesRequest.limit,
|
|
6344
6535
|
"page": listEffectivePropertiesRequest.page,
|
|
@@ -7100,7 +7291,12 @@ class LogAnalyticsClient {
|
|
|
7100
7291
|
"page": listLogAnalyticsEntitiesRequest.page,
|
|
7101
7292
|
"sortOrder": listLogAnalyticsEntitiesRequest.sortOrder,
|
|
7102
7293
|
"sortBy": listLogAnalyticsEntitiesRequest.sortBy,
|
|
7103
|
-
"metadataEquals": listLogAnalyticsEntitiesRequest.metadataEquals
|
|
7294
|
+
"metadataEquals": listLogAnalyticsEntitiesRequest.metadataEquals,
|
|
7295
|
+
"definedTagEquals": listLogAnalyticsEntitiesRequest.definedTagEquals,
|
|
7296
|
+
"freeformTagEquals": listLogAnalyticsEntitiesRequest.freeformTagEquals,
|
|
7297
|
+
"definedTagExists": listLogAnalyticsEntitiesRequest.definedTagExists,
|
|
7298
|
+
"freeformTagExists": listLogAnalyticsEntitiesRequest.freeformTagExists,
|
|
7299
|
+
"isShowAssociatedSourcesCount": listLogAnalyticsEntitiesRequest.isShowAssociatedSourcesCount
|
|
7104
7300
|
};
|
|
7105
7301
|
let headerParams = {
|
|
7106
7302
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -7171,7 +7367,8 @@ class LogAnalyticsClient {
|
|
|
7171
7367
|
"page": listLogAnalyticsEntityTopologyRequest.page,
|
|
7172
7368
|
"sortOrder": listLogAnalyticsEntityTopologyRequest.sortOrder,
|
|
7173
7369
|
"sortBy": listLogAnalyticsEntityTopologyRequest.sortBy,
|
|
7174
|
-
"metadataEquals": listLogAnalyticsEntityTopologyRequest.metadataEquals
|
|
7370
|
+
"metadataEquals": listLogAnalyticsEntityTopologyRequest.metadataEquals,
|
|
7371
|
+
"context": listLogAnalyticsEntityTopologyRequest.context
|
|
7175
7372
|
};
|
|
7176
7373
|
let headerParams = {
|
|
7177
7374
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
@@ -7531,6 +7728,7 @@ class LogAnalyticsClient {
|
|
|
7531
7728
|
"sortBy": listLookupsRequest.sortBy,
|
|
7532
7729
|
"status": listLookupsRequest.status,
|
|
7533
7730
|
"categories": listLookupsRequest.categories,
|
|
7731
|
+
"compartmentId": listLookupsRequest.compartmentId,
|
|
7534
7732
|
"isHideSpecial": listLookupsRequest.isHideSpecial,
|
|
7535
7733
|
"limit": listLookupsRequest.limit,
|
|
7536
7734
|
"page": listLookupsRequest.page,
|
|
@@ -7796,6 +7994,82 @@ class LogAnalyticsClient {
|
|
|
7796
7994
|
}
|
|
7797
7995
|
});
|
|
7798
7996
|
}
|
|
7997
|
+
/**
|
|
7998
|
+
* Returns a list of parser actions. You may limit the number of results and provide sorting order.
|
|
7999
|
+
*
|
|
8000
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8001
|
+
* @param ListParserActionsRequest
|
|
8002
|
+
* @return ListParserActionsResponse
|
|
8003
|
+
* @throws OciError when an error occurs
|
|
8004
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/ListParserActions.ts.html |here} to see how to use ListParserActions API.
|
|
8005
|
+
*/
|
|
8006
|
+
listParserActions(listParserActionsRequest) {
|
|
8007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8008
|
+
if (this.logger)
|
|
8009
|
+
this.logger.debug("Calling operation LogAnalyticsClient#listParserActions.");
|
|
8010
|
+
const operationName = "listParserActions";
|
|
8011
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/LogAnalyticsParser/ListParserActions";
|
|
8012
|
+
const pathParams = {
|
|
8013
|
+
"{namespaceName}": listParserActionsRequest.namespaceName
|
|
8014
|
+
};
|
|
8015
|
+
const queryParams = {
|
|
8016
|
+
"name": listParserActionsRequest.name,
|
|
8017
|
+
"actionDisplayText": listParserActionsRequest.actionDisplayText,
|
|
8018
|
+
"limit": listParserActionsRequest.limit,
|
|
8019
|
+
"page": listParserActionsRequest.page,
|
|
8020
|
+
"sortOrder": listParserActionsRequest.sortOrder,
|
|
8021
|
+
"sortBy": listParserActionsRequest.sortBy
|
|
8022
|
+
};
|
|
8023
|
+
let headerParams = {
|
|
8024
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
8025
|
+
"opc-request-id": listParserActionsRequest.opcRequestId
|
|
8026
|
+
};
|
|
8027
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
8028
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listParserActionsRequest.retryConfiguration, specRetryConfiguration);
|
|
8029
|
+
if (this.logger)
|
|
8030
|
+
retrier.logger = this.logger;
|
|
8031
|
+
const request = yield oci_common_1.composeRequest({
|
|
8032
|
+
baseEndpoint: this._endpoint,
|
|
8033
|
+
defaultHeaders: this._defaultHeaders,
|
|
8034
|
+
path: "/namespaces/{namespaceName}/parserActions",
|
|
8035
|
+
method: "GET",
|
|
8036
|
+
pathParams: pathParams,
|
|
8037
|
+
headerParams: headerParams,
|
|
8038
|
+
queryParams: queryParams
|
|
8039
|
+
});
|
|
8040
|
+
try {
|
|
8041
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
8042
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
8043
|
+
responseObject: {},
|
|
8044
|
+
body: yield response.json(),
|
|
8045
|
+
bodyKey: "parserActionSummaryCollection",
|
|
8046
|
+
bodyModel: model.ParserActionSummaryCollection,
|
|
8047
|
+
type: "model.ParserActionSummaryCollection",
|
|
8048
|
+
responseHeaders: [
|
|
8049
|
+
{
|
|
8050
|
+
value: response.headers.get("opc-prev-page"),
|
|
8051
|
+
key: "opcPrevPage",
|
|
8052
|
+
dataType: "string"
|
|
8053
|
+
},
|
|
8054
|
+
{
|
|
8055
|
+
value: response.headers.get("opc-next-page"),
|
|
8056
|
+
key: "opcNextPage",
|
|
8057
|
+
dataType: "string"
|
|
8058
|
+
},
|
|
8059
|
+
{
|
|
8060
|
+
value: response.headers.get("opc-request-id"),
|
|
8061
|
+
key: "opcRequestId",
|
|
8062
|
+
dataType: "string"
|
|
8063
|
+
}
|
|
8064
|
+
]
|
|
8065
|
+
});
|
|
8066
|
+
return sdkResponse;
|
|
8067
|
+
}
|
|
8068
|
+
catch (err) {
|
|
8069
|
+
throw err;
|
|
8070
|
+
}
|
|
8071
|
+
});
|
|
8072
|
+
}
|
|
7799
8073
|
/**
|
|
7800
8074
|
* Lists the parser functions defined for the specified parser.
|
|
7801
8075
|
*
|
|
@@ -8255,6 +8529,83 @@ class LogAnalyticsClient {
|
|
|
8255
8529
|
}
|
|
8256
8530
|
});
|
|
8257
8531
|
}
|
|
8532
|
+
/**
|
|
8533
|
+
* This API returns the list of recalled data of a tenancy.
|
|
8534
|
+
*
|
|
8535
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8536
|
+
* @param ListRecalledInfoRequest
|
|
8537
|
+
* @return ListRecalledInfoResponse
|
|
8538
|
+
* @throws OciError when an error occurs
|
|
8539
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/ListRecalledInfo.ts.html |here} to see how to use ListRecalledInfo API.
|
|
8540
|
+
*/
|
|
8541
|
+
listRecalledInfo(listRecalledInfoRequest) {
|
|
8542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8543
|
+
if (this.logger)
|
|
8544
|
+
this.logger.debug("Calling operation LogAnalyticsClient#listRecalledInfo.");
|
|
8545
|
+
const operationName = "listRecalledInfo";
|
|
8546
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/Storage/ListRecalledInfo";
|
|
8547
|
+
const pathParams = {
|
|
8548
|
+
"{namespaceName}": listRecalledInfoRequest.namespaceName
|
|
8549
|
+
};
|
|
8550
|
+
const queryParams = {
|
|
8551
|
+
"limit": listRecalledInfoRequest.limit,
|
|
8552
|
+
"page": listRecalledInfoRequest.page,
|
|
8553
|
+
"sortBy": listRecalledInfoRequest.sortBy,
|
|
8554
|
+
"sortOrder": listRecalledInfoRequest.sortOrder,
|
|
8555
|
+
"timeDataStartedGreaterThanOrEqual": listRecalledInfoRequest.timeDataStartedGreaterThanOrEqual,
|
|
8556
|
+
"timeDataEndedLessThan": listRecalledInfoRequest.timeDataEndedLessThan,
|
|
8557
|
+
"logSets": listRecalledInfoRequest.logSets
|
|
8558
|
+
};
|
|
8559
|
+
let headerParams = {
|
|
8560
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
8561
|
+
"opc-request-id": listRecalledInfoRequest.opcRequestId
|
|
8562
|
+
};
|
|
8563
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
8564
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRecalledInfoRequest.retryConfiguration, specRetryConfiguration);
|
|
8565
|
+
if (this.logger)
|
|
8566
|
+
retrier.logger = this.logger;
|
|
8567
|
+
const request = yield oci_common_1.composeRequest({
|
|
8568
|
+
baseEndpoint: this._endpoint,
|
|
8569
|
+
defaultHeaders: this._defaultHeaders,
|
|
8570
|
+
path: "/namespaces/{namespaceName}/storage/recalledInfoCollection",
|
|
8571
|
+
method: "GET",
|
|
8572
|
+
pathParams: pathParams,
|
|
8573
|
+
headerParams: headerParams,
|
|
8574
|
+
queryParams: queryParams
|
|
8575
|
+
});
|
|
8576
|
+
try {
|
|
8577
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
8578
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
8579
|
+
responseObject: {},
|
|
8580
|
+
body: yield response.json(),
|
|
8581
|
+
bodyKey: "recalledInfoCollection",
|
|
8582
|
+
bodyModel: model.RecalledInfoCollection,
|
|
8583
|
+
type: "model.RecalledInfoCollection",
|
|
8584
|
+
responseHeaders: [
|
|
8585
|
+
{
|
|
8586
|
+
value: response.headers.get("opc-request-id"),
|
|
8587
|
+
key: "opcRequestId",
|
|
8588
|
+
dataType: "string"
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
value: response.headers.get("opc-next-page"),
|
|
8592
|
+
key: "opcNextPage",
|
|
8593
|
+
dataType: "string"
|
|
8594
|
+
},
|
|
8595
|
+
{
|
|
8596
|
+
value: response.headers.get("opc-prev-page"),
|
|
8597
|
+
key: "opcPrevPage",
|
|
8598
|
+
dataType: "string"
|
|
8599
|
+
}
|
|
8600
|
+
]
|
|
8601
|
+
});
|
|
8602
|
+
return sdkResponse;
|
|
8603
|
+
}
|
|
8604
|
+
catch (err) {
|
|
8605
|
+
throw err;
|
|
8606
|
+
}
|
|
8607
|
+
});
|
|
8608
|
+
}
|
|
8258
8609
|
/**
|
|
8259
8610
|
* Returns a list of resources and their category assignments.
|
|
8260
8611
|
* You may limit the number of results, provide sorting order, and filter by information such as resource type.
|
|
@@ -8278,6 +8629,7 @@ class LogAnalyticsClient {
|
|
|
8278
8629
|
"categories": listResourceCategoriesRequest.categories,
|
|
8279
8630
|
"resourceTypes": listResourceCategoriesRequest.resourceTypes,
|
|
8280
8631
|
"resourceIds": listResourceCategoriesRequest.resourceIds,
|
|
8632
|
+
"compartmentId": listResourceCategoriesRequest.compartmentId,
|
|
8281
8633
|
"sortOrder": listResourceCategoriesRequest.sortOrder,
|
|
8282
8634
|
"sortBy": listResourceCategoriesRequest.sortBy,
|
|
8283
8635
|
"limit": listResourceCategoriesRequest.limit,
|
|
@@ -8437,6 +8789,7 @@ class LogAnalyticsClient {
|
|
|
8437
8789
|
"displayName": listScheduledTasksRequest.displayName,
|
|
8438
8790
|
"sortOrder": listScheduledTasksRequest.sortOrder,
|
|
8439
8791
|
"sortBy": listScheduledTasksRequest.sortBy,
|
|
8792
|
+
"templateId": listScheduledTasksRequest.templateId,
|
|
8440
8793
|
"savedSearchId": listScheduledTasksRequest.savedSearchId,
|
|
8441
8794
|
"displayNameContains": listScheduledTasksRequest.displayNameContains,
|
|
8442
8795
|
"targetService": listScheduledTasksRequest.targetService
|
|
@@ -8977,6 +9330,7 @@ class LogAnalyticsClient {
|
|
|
8977
9330
|
"name": listSourcesRequest.name,
|
|
8978
9331
|
"sourceType": listSourcesRequest.sourceType,
|
|
8979
9332
|
"categories": listSourcesRequest.categories,
|
|
9333
|
+
"patternText": listSourcesRequest.patternText,
|
|
8980
9334
|
"isSimplified": listSourcesRequest.isSimplified,
|
|
8981
9335
|
"compartmentId": listSourcesRequest.compartmentId
|
|
8982
9336
|
};
|
|
@@ -9328,6 +9682,86 @@ class LogAnalyticsClient {
|
|
|
9328
9682
|
}
|
|
9329
9683
|
});
|
|
9330
9684
|
}
|
|
9685
|
+
/**
|
|
9686
|
+
* Returns a list of templates, containing detailed information about them. You may limit the number of results, provide sorting order, and filter by information such as template name, type, display name and description.
|
|
9687
|
+
*
|
|
9688
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
9689
|
+
* @param ListTemplatesRequest
|
|
9690
|
+
* @return ListTemplatesResponse
|
|
9691
|
+
* @throws OciError when an error occurs
|
|
9692
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/ListTemplates.ts.html |here} to see how to use ListTemplates API.
|
|
9693
|
+
*/
|
|
9694
|
+
listTemplates(listTemplatesRequest) {
|
|
9695
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9696
|
+
if (this.logger)
|
|
9697
|
+
this.logger.debug("Calling operation LogAnalyticsClient#listTemplates.");
|
|
9698
|
+
const operationName = "listTemplates";
|
|
9699
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/LogAnalyticsTemplate/ListTemplates";
|
|
9700
|
+
const pathParams = {
|
|
9701
|
+
"{namespaceName}": listTemplatesRequest.namespaceName
|
|
9702
|
+
};
|
|
9703
|
+
const queryParams = {
|
|
9704
|
+
"compartmentId": listTemplatesRequest.compartmentId,
|
|
9705
|
+
"type": listTemplatesRequest.type,
|
|
9706
|
+
"name": listTemplatesRequest.name,
|
|
9707
|
+
"templateDisplayText": listTemplatesRequest.templateDisplayText,
|
|
9708
|
+
"lifecycleState": listTemplatesRequest.lifecycleState,
|
|
9709
|
+
"filter": listTemplatesRequest.filter,
|
|
9710
|
+
"limit": listTemplatesRequest.limit,
|
|
9711
|
+
"page": listTemplatesRequest.page,
|
|
9712
|
+
"sortOrder": listTemplatesRequest.sortOrder,
|
|
9713
|
+
"sortBy": listTemplatesRequest.sortBy
|
|
9714
|
+
};
|
|
9715
|
+
let headerParams = {
|
|
9716
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9717
|
+
"opc-request-id": listTemplatesRequest.opcRequestId
|
|
9718
|
+
};
|
|
9719
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
9720
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listTemplatesRequest.retryConfiguration, specRetryConfiguration);
|
|
9721
|
+
if (this.logger)
|
|
9722
|
+
retrier.logger = this.logger;
|
|
9723
|
+
const request = yield oci_common_1.composeRequest({
|
|
9724
|
+
baseEndpoint: this._endpoint,
|
|
9725
|
+
defaultHeaders: this._defaultHeaders,
|
|
9726
|
+
path: "/namespaces/{namespaceName}/templates",
|
|
9727
|
+
method: "GET",
|
|
9728
|
+
pathParams: pathParams,
|
|
9729
|
+
headerParams: headerParams,
|
|
9730
|
+
queryParams: queryParams
|
|
9731
|
+
});
|
|
9732
|
+
try {
|
|
9733
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
9734
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
9735
|
+
responseObject: {},
|
|
9736
|
+
body: yield response.json(),
|
|
9737
|
+
bodyKey: "logAnalyticsTemplateCollection",
|
|
9738
|
+
bodyModel: model.LogAnalyticsTemplateCollection,
|
|
9739
|
+
type: "model.LogAnalyticsTemplateCollection",
|
|
9740
|
+
responseHeaders: [
|
|
9741
|
+
{
|
|
9742
|
+
value: response.headers.get("opc-prev-page"),
|
|
9743
|
+
key: "opcPrevPage",
|
|
9744
|
+
dataType: "string"
|
|
9745
|
+
},
|
|
9746
|
+
{
|
|
9747
|
+
value: response.headers.get("opc-next-page"),
|
|
9748
|
+
key: "opcNextPage",
|
|
9749
|
+
dataType: "string"
|
|
9750
|
+
},
|
|
9751
|
+
{
|
|
9752
|
+
value: response.headers.get("opc-request-id"),
|
|
9753
|
+
key: "opcRequestId",
|
|
9754
|
+
dataType: "string"
|
|
9755
|
+
}
|
|
9756
|
+
]
|
|
9757
|
+
});
|
|
9758
|
+
return sdkResponse;
|
|
9759
|
+
}
|
|
9760
|
+
catch (err) {
|
|
9761
|
+
throw err;
|
|
9762
|
+
}
|
|
9763
|
+
});
|
|
9764
|
+
}
|
|
9331
9765
|
/**
|
|
9332
9766
|
* Gets list of files in an upload along with its processing state.
|
|
9333
9767
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -10374,7 +10808,7 @@ class LogAnalyticsClient {
|
|
|
10374
10808
|
});
|
|
10375
10809
|
}
|
|
10376
10810
|
/**
|
|
10377
|
-
* Creates a lookup with the specified name, type and description.
|
|
10811
|
+
* Creates a lookup with the specified name, type and description.
|
|
10378
10812
|
*
|
|
10379
10813
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10380
10814
|
* @param RegisterLookupRequest
|
|
@@ -10396,7 +10830,8 @@ class LogAnalyticsClient {
|
|
|
10396
10830
|
"description": registerLookupRequest.description,
|
|
10397
10831
|
"charEncoding": registerLookupRequest.charEncoding,
|
|
10398
10832
|
"isHidden": registerLookupRequest.isHidden,
|
|
10399
|
-
"type": registerLookupRequest.type
|
|
10833
|
+
"type": registerLookupRequest.type,
|
|
10834
|
+
"compartmentId": registerLookupRequest.compartmentId
|
|
10400
10835
|
};
|
|
10401
10836
|
let headerParams = {
|
|
10402
10837
|
"opc-retry-token": registerLookupRequest.opcRetryToken,
|
|
@@ -12180,6 +12615,78 @@ class LogAnalyticsClient {
|
|
|
12180
12615
|
}
|
|
12181
12616
|
});
|
|
12182
12617
|
}
|
|
12618
|
+
/**
|
|
12619
|
+
* Accepts log data in OTLP JSON-encoded Protobuf format.
|
|
12620
|
+
*
|
|
12621
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
12622
|
+
* @param UploadOtlpLogsRequest
|
|
12623
|
+
* @return UploadOtlpLogsResponse
|
|
12624
|
+
* @throws OciError when an error occurs
|
|
12625
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/loganalytics/UploadOtlpLogs.ts.html |here} to see how to use UploadOtlpLogs API.
|
|
12626
|
+
*/
|
|
12627
|
+
uploadOtlpLogs(uploadOtlpLogsRequest) {
|
|
12628
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12629
|
+
if (this.logger)
|
|
12630
|
+
this.logger.debug("Calling operation LogAnalyticsClient#uploadOtlpLogs.");
|
|
12631
|
+
const operationName = "uploadOtlpLogs";
|
|
12632
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/logan-api-spec/20200601/Upload/UploadOtlpLogs";
|
|
12633
|
+
const pathParams = {
|
|
12634
|
+
"{namespaceName}": uploadOtlpLogsRequest.namespaceName
|
|
12635
|
+
};
|
|
12636
|
+
const queryParams = {};
|
|
12637
|
+
let headerParams = {
|
|
12638
|
+
"opc-request-id": uploadOtlpLogsRequest.opcRequestId,
|
|
12639
|
+
"opc-meta-loggrpid": uploadOtlpLogsRequest.opcMetaLoggrpid,
|
|
12640
|
+
"log-set": uploadOtlpLogsRequest.logSet,
|
|
12641
|
+
"content-type": uploadOtlpLogsRequest.contentType,
|
|
12642
|
+
"opc-retry-token": uploadOtlpLogsRequest.opcRetryToken,
|
|
12643
|
+
"opc-meta-properties": uploadOtlpLogsRequest.opcMetaProperties,
|
|
12644
|
+
"expect": uploadOtlpLogsRequest.expect
|
|
12645
|
+
};
|
|
12646
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
12647
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, uploadOtlpLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
12648
|
+
if (this.logger)
|
|
12649
|
+
retrier.logger = this.logger;
|
|
12650
|
+
const request = yield oci_common_1.composeRequest({
|
|
12651
|
+
baseEndpoint: this._endpoint,
|
|
12652
|
+
defaultHeaders: this._defaultHeaders,
|
|
12653
|
+
path: "/namespaces/{namespaceName}/actions/otlp/v1/logs",
|
|
12654
|
+
method: "POST",
|
|
12655
|
+
bodyContent: uploadOtlpLogsRequest.uploadOtlpLogsDetails,
|
|
12656
|
+
pathParams: pathParams,
|
|
12657
|
+
headerParams: headerParams,
|
|
12658
|
+
backupBinaryBody: retrier.backUpBinaryBody,
|
|
12659
|
+
queryParams: queryParams
|
|
12660
|
+
});
|
|
12661
|
+
try {
|
|
12662
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink, true);
|
|
12663
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
12664
|
+
responseObject: {},
|
|
12665
|
+
responseHeaders: [
|
|
12666
|
+
{
|
|
12667
|
+
value: response.headers.get("opc-request-id"),
|
|
12668
|
+
key: "opcRequestId",
|
|
12669
|
+
dataType: "string"
|
|
12670
|
+
},
|
|
12671
|
+
{
|
|
12672
|
+
value: response.headers.get("opc-object-id"),
|
|
12673
|
+
key: "opcObjectId",
|
|
12674
|
+
dataType: "string"
|
|
12675
|
+
},
|
|
12676
|
+
{
|
|
12677
|
+
value: response.headers.get("timeCreated"),
|
|
12678
|
+
key: "timeCreated",
|
|
12679
|
+
dataType: "Date"
|
|
12680
|
+
}
|
|
12681
|
+
]
|
|
12682
|
+
});
|
|
12683
|
+
return sdkResponse;
|
|
12684
|
+
}
|
|
12685
|
+
catch (err) {
|
|
12686
|
+
throw err;
|
|
12687
|
+
}
|
|
12688
|
+
});
|
|
12689
|
+
}
|
|
12183
12690
|
/**
|
|
12184
12691
|
* Creates or updates associations between sources and entities. All entities should belong to the specified input compartment.
|
|
12185
12692
|
*
|