@datadog/datadog-api-client 1.12.0 → 1.13.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/CHANGELOG.md +34 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/dist/packages/datadog-api-client-common/configuration.js +2 -0
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +18 -13
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +17 -14
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +16 -16
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +16 -16
- package/dist/packages/datadog-api-client-v1/index.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/index.js +15 -11
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/Downtime.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/Downtime.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/Downtime.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DowntimeChild.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/DowntimeChild.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/DowntimeChild.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionQueryDefinition.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLODataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOGroupMode.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.js +15 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.js +49 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MatchingDowntime.d.ts +42 -0
- package/dist/packages/datadog-api-client-v1/models/MatchingDowntime.js +47 -0
- package/dist/packages/datadog-api-client-v1/models/MatchingDowntime.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/Monitor.d.ts +5 -0
- package/dist/packages/datadog-api-client-v1/models/Monitor.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/Monitor.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/NotifyEndState.d.ts +13 -0
- package/dist/packages/datadog-api-client-v1/models/NotifyEndState.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/NotifyEndState.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/NotifyEndType.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/NotifyEndType.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/NotifyEndType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +27 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SLOWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SLOWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SignalArchiveReason.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPIStep.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPIStep.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITestResultData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAPITestResultShortResult.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchResult.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBatchResult.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCIBatchMetadata.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCITest.d.ts +4 -4
- package/dist/packages/datadog-api-client-v1/models/SyntheticsCITest.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.d.ts +3 -3
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariable.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParserType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsLocations.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsLocations.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsParsingOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStep.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStep.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsStepDetail.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestCiOptions.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestExecutionRule.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTiming.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTiming.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerBody.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestLocation.js +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestRunResult.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerCITestsResponse.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTriggerTest.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsVariableParser.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/GCPIntegrationApi.d.ts +133 -0
- package/dist/packages/datadog-api-client-v2/apis/GCPIntegrationApi.js +480 -0
- package/dist/packages/datadog-api-client-v2/apis/GCPIntegrationApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +138 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +261 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +13 -2
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +16 -5
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +8 -3
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +5 -2
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +32 -1
- package/dist/packages/datadog-api-client-v2/index.js +62 -16
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/DetailedFinding.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFinding.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFinding.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingAttributes.d.ts +72 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingAttributes.js +68 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/DetailedFindingType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Finding.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/Finding.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/Finding.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingAttributes.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/FindingAttributes.js +60 -0
- package/dist/packages/datadog-api-client-v2/models/FindingAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingEvaluation.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/FindingEvaluation.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/FindingEvaluation.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMute.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMute.js +48 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMute.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMuteReason.d.ts +14 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMuteReason.js +13 -0
- package/dist/packages/datadog-api-client-v2/models/FindingMuteReason.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingRule.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/FindingRule.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/FindingRule.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingStatus.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/FindingStatus.js +14 -0
- package/dist/packages/datadog-api-client-v2/models/FindingStatus.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FindingType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/FindingType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/FindingType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccount.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSDelegateAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccount.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.js +26 -0
- package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GCPServiceAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GetFindingResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/GetFindingResponse.js +27 -0
- package/dist/packages/datadog-api-client-v2/models/GetFindingResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ListFindingsMeta.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsMeta.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsPage.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsPage.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsResponse.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ListFindingsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalArchiveReason.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchemaVersions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/TeamCreateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/TeamUpdateAttributes.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
|
@@ -489,7 +489,7 @@ class LogsApi {
|
|
|
489
489
|
*
|
|
490
490
|
* Datadog recommends sending your logs compressed.
|
|
491
491
|
* Add the `Content-Encoding: gzip` header to the request when sending compressed logs.
|
|
492
|
-
* Log events can be submitted
|
|
492
|
+
* Log events can be submitted with a timestamp that is up to 18 hours in the past.
|
|
493
493
|
*
|
|
494
494
|
* The status codes answered by the HTTP API are:
|
|
495
495
|
* - 202: Accepted: the request has been accepted for processing
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi";
|
|
2
2
|
import { Configuration } from "../../datadog-api-client-common/configuration";
|
|
3
3
|
import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http";
|
|
4
|
+
import { Finding } from "../models/Finding";
|
|
5
|
+
import { FindingEvaluation } from "../models/FindingEvaluation";
|
|
6
|
+
import { FindingStatus } from "../models/FindingStatus";
|
|
7
|
+
import { GetFindingResponse } from "../models/GetFindingResponse";
|
|
8
|
+
import { ListFindingsResponse } from "../models/ListFindingsResponse";
|
|
4
9
|
import { SecurityFilterCreateRequest } from "../models/SecurityFilterCreateRequest";
|
|
5
10
|
import { SecurityFilterResponse } from "../models/SecurityFilterResponse";
|
|
6
11
|
import { SecurityFiltersResponse } from "../models/SecurityFiltersResponse";
|
|
@@ -25,9 +30,11 @@ export declare class SecurityMonitoringApiRequestFactory extends BaseAPIRequestF
|
|
|
25
30
|
editSecurityMonitoringSignalAssignee(signalId: string, body: SecurityMonitoringSignalAssigneeUpdateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
26
31
|
editSecurityMonitoringSignalIncidents(signalId: string, body: SecurityMonitoringSignalIncidentsUpdateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
27
32
|
editSecurityMonitoringSignalState(signalId: string, body: SecurityMonitoringSignalStateUpdateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
33
|
+
getFinding(findingId: string, snapshotTimestamp?: number, _options?: Configuration): Promise<RequestContext>;
|
|
28
34
|
getSecurityFilter(securityFilterId: string, _options?: Configuration): Promise<RequestContext>;
|
|
29
35
|
getSecurityMonitoringRule(ruleId: string, _options?: Configuration): Promise<RequestContext>;
|
|
30
36
|
getSecurityMonitoringSignal(signalId: string, _options?: Configuration): Promise<RequestContext>;
|
|
37
|
+
listFindings(pageLimit?: number, snapshotTimestamp?: number, pageCursor?: string, filterTags?: string, filterEvaluationChangedAt?: string, filterMuted?: boolean, filterRuleId?: string, filterRuleName?: string, filterResourceType?: string, filterDiscoveryTimestamp?: string, filterEvaluation?: FindingEvaluation, filterStatus?: FindingStatus, _options?: Configuration): Promise<RequestContext>;
|
|
31
38
|
listSecurityFilters(_options?: Configuration): Promise<RequestContext>;
|
|
32
39
|
listSecurityMonitoringRules(pageSize?: number, pageNumber?: number, _options?: Configuration): Promise<RequestContext>;
|
|
33
40
|
listSecurityMonitoringSignals(filterQuery?: string, filterFrom?: Date, filterTo?: Date, sort?: SecurityMonitoringSignalsSort, pageCursor?: string, pageLimit?: number, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -92,6 +99,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
|
|
|
92
99
|
* @throws ApiException if the response code was not in [200, 299]
|
|
93
100
|
*/
|
|
94
101
|
editSecurityMonitoringSignalState(response: ResponseContext): Promise<SecurityMonitoringSignalTriageUpdateResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
104
|
+
* to the expected objects
|
|
105
|
+
*
|
|
106
|
+
* @params response Response returned by the server for a request to getFinding
|
|
107
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
108
|
+
*/
|
|
109
|
+
getFinding(response: ResponseContext): Promise<GetFindingResponse>;
|
|
95
110
|
/**
|
|
96
111
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
97
112
|
* to the expected objects
|
|
@@ -116,6 +131,14 @@ export declare class SecurityMonitoringApiResponseProcessor {
|
|
|
116
131
|
* @throws ApiException if the response code was not in [200, 299]
|
|
117
132
|
*/
|
|
118
133
|
getSecurityMonitoringSignal(response: ResponseContext): Promise<SecurityMonitoringSignal>;
|
|
134
|
+
/**
|
|
135
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
136
|
+
* to the expected objects
|
|
137
|
+
*
|
|
138
|
+
* @params response Response returned by the server for a request to listFindings
|
|
139
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
140
|
+
*/
|
|
141
|
+
listFindings(response: ResponseContext): Promise<ListFindingsResponse>;
|
|
119
142
|
/**
|
|
120
143
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
121
144
|
* to the expected objects
|
|
@@ -228,6 +251,18 @@ export interface SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest {
|
|
|
228
251
|
*/
|
|
229
252
|
body: SecurityMonitoringSignalStateUpdateRequest;
|
|
230
253
|
}
|
|
254
|
+
export interface SecurityMonitoringApiGetFindingRequest {
|
|
255
|
+
/**
|
|
256
|
+
* The ID of the finding.
|
|
257
|
+
* @type string
|
|
258
|
+
*/
|
|
259
|
+
findingId: string;
|
|
260
|
+
/**
|
|
261
|
+
* Return the finding for a given snapshot of time (Unix ms).
|
|
262
|
+
* @type number
|
|
263
|
+
*/
|
|
264
|
+
snapshotTimestamp?: number;
|
|
265
|
+
}
|
|
231
266
|
export interface SecurityMonitoringApiGetSecurityFilterRequest {
|
|
232
267
|
/**
|
|
233
268
|
* The ID of the security filter.
|
|
@@ -249,6 +284,68 @@ export interface SecurityMonitoringApiGetSecurityMonitoringSignalRequest {
|
|
|
249
284
|
*/
|
|
250
285
|
signalId: string;
|
|
251
286
|
}
|
|
287
|
+
export interface SecurityMonitoringApiListFindingsRequest {
|
|
288
|
+
/**
|
|
289
|
+
* Limit the number of findings returned. Must be <= 1000.
|
|
290
|
+
* @type number
|
|
291
|
+
*/
|
|
292
|
+
pageLimit?: number;
|
|
293
|
+
/**
|
|
294
|
+
* Return findings for a given snapshot of time (Unix ms).
|
|
295
|
+
* @type number
|
|
296
|
+
*/
|
|
297
|
+
snapshotTimestamp?: number;
|
|
298
|
+
/**
|
|
299
|
+
* Return the next page of findings pointed to by the cursor.
|
|
300
|
+
* @type string
|
|
301
|
+
*/
|
|
302
|
+
pageCursor?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Return findings that have these associated tags (repeatable).
|
|
305
|
+
* @type string
|
|
306
|
+
*/
|
|
307
|
+
filterTags?: string;
|
|
308
|
+
/**
|
|
309
|
+
* Return findings that have changed from pass to fail or vice versa on a specified date (Unix ms) or date range (using comparison operators).
|
|
310
|
+
* @type string
|
|
311
|
+
*/
|
|
312
|
+
filterEvaluationChangedAt?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Set to `true` to return findings that are muted. Set to `false` to return unmuted findings.
|
|
315
|
+
* @type boolean
|
|
316
|
+
*/
|
|
317
|
+
filterMuted?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* Return findings for the specified rule ID.
|
|
320
|
+
* @type string
|
|
321
|
+
*/
|
|
322
|
+
filterRuleId?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Return findings for the specified rule.
|
|
325
|
+
* @type string
|
|
326
|
+
*/
|
|
327
|
+
filterRuleName?: string;
|
|
328
|
+
/**
|
|
329
|
+
* Return only findings for the specified resource type.
|
|
330
|
+
* @type string
|
|
331
|
+
*/
|
|
332
|
+
filterResourceType?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Return findings that were found on a specified date (Unix ms) or date range (using comparison operators).
|
|
335
|
+
* @type string
|
|
336
|
+
*/
|
|
337
|
+
filterDiscoveryTimestamp?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Return only `pass` or `fail` findings.
|
|
340
|
+
* @type FindingEvaluation
|
|
341
|
+
*/
|
|
342
|
+
filterEvaluation?: FindingEvaluation;
|
|
343
|
+
/**
|
|
344
|
+
* Return only findings with the specified status.
|
|
345
|
+
* @type FindingStatus
|
|
346
|
+
*/
|
|
347
|
+
filterStatus?: FindingStatus;
|
|
348
|
+
}
|
|
252
349
|
export interface SecurityMonitoringApiListSecurityMonitoringRulesRequest {
|
|
253
350
|
/**
|
|
254
351
|
* Size for a given page. The maximum allowed value is 5000.
|
|
@@ -365,6 +462,11 @@ export declare class SecurityMonitoringApi {
|
|
|
365
462
|
* @param param The request object
|
|
366
463
|
*/
|
|
367
464
|
editSecurityMonitoringSignalState(param: SecurityMonitoringApiEditSecurityMonitoringSignalStateRequest, options?: Configuration): Promise<SecurityMonitoringSignalTriageUpdateResponse>;
|
|
465
|
+
/**
|
|
466
|
+
* Returns a single finding with message and resource configuration.
|
|
467
|
+
* @param param The request object
|
|
468
|
+
*/
|
|
469
|
+
getFinding(param: SecurityMonitoringApiGetFindingRequest, options?: Configuration): Promise<GetFindingResponse>;
|
|
368
470
|
/**
|
|
369
471
|
* Get the details of a specific security filter.
|
|
370
472
|
*
|
|
@@ -383,6 +485,42 @@ export declare class SecurityMonitoringApi {
|
|
|
383
485
|
* @param param The request object
|
|
384
486
|
*/
|
|
385
487
|
getSecurityMonitoringSignal(param: SecurityMonitoringApiGetSecurityMonitoringSignalRequest, options?: Configuration): Promise<SecurityMonitoringSignal>;
|
|
488
|
+
/**
|
|
489
|
+
* Get a list of CSPM findings.
|
|
490
|
+
*
|
|
491
|
+
* ### Filtering
|
|
492
|
+
*
|
|
493
|
+
* Filters can be applied by appending query parameters to the URL.
|
|
494
|
+
*
|
|
495
|
+
* - Using a single filter: `?filter[attribute_key]=attribute_value`
|
|
496
|
+
* - Chaining filters: `?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...`
|
|
497
|
+
* - Filtering on tags: `?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2`
|
|
498
|
+
*
|
|
499
|
+
* Here, `attribute_key` can be any of the filter keys described further below.
|
|
500
|
+
*
|
|
501
|
+
* Query parameters of type `integer` support comparison operators (`>`, `>=`, `<`, `<=`). This is particularly useful when filtering by `evaluation_changed_at` or `resource_discovery_timestamp`. For example: `?filter[evaluation_changed_at]=>20123123121`.
|
|
502
|
+
*
|
|
503
|
+
* You can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*` to filter for any non-AWS resources.
|
|
504
|
+
*
|
|
505
|
+
* The operator must come after the equal sign. For example, to filter with the `>=` operator, add the operator after the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.
|
|
506
|
+
*
|
|
507
|
+
* ### Response
|
|
508
|
+
*
|
|
509
|
+
* The response includes an array of finding objects, pagination metadata, and a count of items that match the query.
|
|
510
|
+
*
|
|
511
|
+
* Each finding object contains the following:
|
|
512
|
+
*
|
|
513
|
+
* - The finding ID that can be used in a `GetFinding` request to retrieve the full finding details.
|
|
514
|
+
* - Core attributes, including status, evaluation, high-level resource details, muted state, and rule details.
|
|
515
|
+
* - `evaluation_changed_at` and `resource_discovery_date` time stamps.
|
|
516
|
+
* - An array of associated tags.
|
|
517
|
+
* @param param The request object
|
|
518
|
+
*/
|
|
519
|
+
listFindings(param?: SecurityMonitoringApiListFindingsRequest, options?: Configuration): Promise<ListFindingsResponse>;
|
|
520
|
+
/**
|
|
521
|
+
* Provide a paginated version of listFindings returning a generator with all the items.
|
|
522
|
+
*/
|
|
523
|
+
listFindingsWithPagination(param?: SecurityMonitoringApiListFindingsRequest, options?: Configuration): AsyncGenerator<Finding>;
|
|
386
524
|
/**
|
|
387
525
|
* Get the list of configured security filters with their definitions.
|
|
388
526
|
* @param param The request object
|
|
@@ -229,6 +229,36 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
229
229
|
return requestContext;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
+
getFinding(findingId, snapshotTimestamp, _options) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const _config = _options || this.configuration;
|
|
235
|
+
logger_1.logger.warn("Using unstable operation 'getFinding'");
|
|
236
|
+
if (!_config.unstableOperations["v2.getFinding"]) {
|
|
237
|
+
throw new Error("Unstable operation 'getFinding' is disabled");
|
|
238
|
+
}
|
|
239
|
+
// verify required parameter 'findingId' is not null or undefined
|
|
240
|
+
if (findingId === null || findingId === undefined) {
|
|
241
|
+
throw new baseapi_1.RequiredError("findingId", "getFinding");
|
|
242
|
+
}
|
|
243
|
+
// Path Params
|
|
244
|
+
const localVarPath = "/api/v2/posture_management/findings/{finding_id}".replace("{finding_id}", encodeURIComponent(String(findingId)));
|
|
245
|
+
// Make Request Context
|
|
246
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.getFinding").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
247
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
248
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
249
|
+
// Query Params
|
|
250
|
+
if (snapshotTimestamp !== undefined) {
|
|
251
|
+
requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"));
|
|
252
|
+
}
|
|
253
|
+
// Apply auth methods
|
|
254
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
255
|
+
"AuthZ",
|
|
256
|
+
"apiKeyAuth",
|
|
257
|
+
"appKeyAuth",
|
|
258
|
+
]);
|
|
259
|
+
return requestContext;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
232
262
|
getSecurityFilter(securityFilterId, _options) {
|
|
233
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
264
|
const _config = _options || this.configuration;
|
|
@@ -295,6 +325,65 @@ class SecurityMonitoringApiRequestFactory extends baseapi_1.BaseAPIRequestFactor
|
|
|
295
325
|
return requestContext;
|
|
296
326
|
});
|
|
297
327
|
}
|
|
328
|
+
listFindings(pageLimit, snapshotTimestamp, pageCursor, filterTags, filterEvaluationChangedAt, filterMuted, filterRuleId, filterRuleName, filterResourceType, filterDiscoveryTimestamp, filterEvaluation, filterStatus, _options) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
const _config = _options || this.configuration;
|
|
331
|
+
logger_1.logger.warn("Using unstable operation 'listFindings'");
|
|
332
|
+
if (!_config.unstableOperations["v2.listFindings"]) {
|
|
333
|
+
throw new Error("Unstable operation 'listFindings' is disabled");
|
|
334
|
+
}
|
|
335
|
+
// Path Params
|
|
336
|
+
const localVarPath = "/api/v2/posture_management/findings";
|
|
337
|
+
// Make Request Context
|
|
338
|
+
const requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.listFindings").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
339
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
340
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
341
|
+
// Query Params
|
|
342
|
+
if (pageLimit !== undefined) {
|
|
343
|
+
requestContext.setQueryParam("page[limit]", ObjectSerializer_1.ObjectSerializer.serialize(pageLimit, "number", "int64"));
|
|
344
|
+
}
|
|
345
|
+
if (snapshotTimestamp !== undefined) {
|
|
346
|
+
requestContext.setQueryParam("snapshot_timestamp", ObjectSerializer_1.ObjectSerializer.serialize(snapshotTimestamp, "number", "int64"));
|
|
347
|
+
}
|
|
348
|
+
if (pageCursor !== undefined) {
|
|
349
|
+
requestContext.setQueryParam("page[cursor]", ObjectSerializer_1.ObjectSerializer.serialize(pageCursor, "string", ""));
|
|
350
|
+
}
|
|
351
|
+
if (filterTags !== undefined) {
|
|
352
|
+
requestContext.setQueryParam("filter[tags]", ObjectSerializer_1.ObjectSerializer.serialize(filterTags, "string", ""));
|
|
353
|
+
}
|
|
354
|
+
if (filterEvaluationChangedAt !== undefined) {
|
|
355
|
+
requestContext.setQueryParam("filter[evaluation_changed_at]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluationChangedAt, "string", ""));
|
|
356
|
+
}
|
|
357
|
+
if (filterMuted !== undefined) {
|
|
358
|
+
requestContext.setQueryParam("filter[muted]", ObjectSerializer_1.ObjectSerializer.serialize(filterMuted, "boolean", ""));
|
|
359
|
+
}
|
|
360
|
+
if (filterRuleId !== undefined) {
|
|
361
|
+
requestContext.setQueryParam("filter[rule_id]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleId, "string", ""));
|
|
362
|
+
}
|
|
363
|
+
if (filterRuleName !== undefined) {
|
|
364
|
+
requestContext.setQueryParam("filter[rule_name]", ObjectSerializer_1.ObjectSerializer.serialize(filterRuleName, "string", ""));
|
|
365
|
+
}
|
|
366
|
+
if (filterResourceType !== undefined) {
|
|
367
|
+
requestContext.setQueryParam("filter[resource_type]", ObjectSerializer_1.ObjectSerializer.serialize(filterResourceType, "string", ""));
|
|
368
|
+
}
|
|
369
|
+
if (filterDiscoveryTimestamp !== undefined) {
|
|
370
|
+
requestContext.setQueryParam("filter[discovery_timestamp]", ObjectSerializer_1.ObjectSerializer.serialize(filterDiscoveryTimestamp, "string", ""));
|
|
371
|
+
}
|
|
372
|
+
if (filterEvaluation !== undefined) {
|
|
373
|
+
requestContext.setQueryParam("filter[evaluation]", ObjectSerializer_1.ObjectSerializer.serialize(filterEvaluation, "FindingEvaluation", ""));
|
|
374
|
+
}
|
|
375
|
+
if (filterStatus !== undefined) {
|
|
376
|
+
requestContext.setQueryParam("filter[status]", ObjectSerializer_1.ObjectSerializer.serialize(filterStatus, "FindingStatus", ""));
|
|
377
|
+
}
|
|
378
|
+
// Apply auth methods
|
|
379
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
380
|
+
"AuthZ",
|
|
381
|
+
"apiKeyAuth",
|
|
382
|
+
"appKeyAuth",
|
|
383
|
+
]);
|
|
384
|
+
return requestContext;
|
|
385
|
+
});
|
|
386
|
+
}
|
|
298
387
|
listSecurityFilters(_options) {
|
|
299
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
300
389
|
const _config = _options || this.configuration;
|
|
@@ -730,6 +819,44 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
730
819
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
731
820
|
});
|
|
732
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
824
|
+
* to the expected objects
|
|
825
|
+
*
|
|
826
|
+
* @params response Response returned by the server for a request to getFinding
|
|
827
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
828
|
+
*/
|
|
829
|
+
getFinding(response) {
|
|
830
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
832
|
+
if (response.httpStatusCode == 200) {
|
|
833
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse");
|
|
834
|
+
return body;
|
|
835
|
+
}
|
|
836
|
+
if (response.httpStatusCode == 400 ||
|
|
837
|
+
response.httpStatusCode == 403 ||
|
|
838
|
+
response.httpStatusCode == 404 ||
|
|
839
|
+
response.httpStatusCode == 429) {
|
|
840
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
841
|
+
let body;
|
|
842
|
+
try {
|
|
843
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
844
|
+
}
|
|
845
|
+
catch (error) {
|
|
846
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
847
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
848
|
+
}
|
|
849
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
850
|
+
}
|
|
851
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
852
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
853
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GetFindingResponse", "");
|
|
854
|
+
return body;
|
|
855
|
+
}
|
|
856
|
+
const body = (yield response.body.text()) || "";
|
|
857
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
858
|
+
});
|
|
859
|
+
}
|
|
733
860
|
/**
|
|
734
861
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
735
862
|
* to the expected objects
|
|
@@ -837,6 +964,44 @@ class SecurityMonitoringApiResponseProcessor {
|
|
|
837
964
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
838
965
|
});
|
|
839
966
|
}
|
|
967
|
+
/**
|
|
968
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
969
|
+
* to the expected objects
|
|
970
|
+
*
|
|
971
|
+
* @params response Response returned by the server for a request to listFindings
|
|
972
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
973
|
+
*/
|
|
974
|
+
listFindings(response) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
976
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
977
|
+
if (response.httpStatusCode == 200) {
|
|
978
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse");
|
|
979
|
+
return body;
|
|
980
|
+
}
|
|
981
|
+
if (response.httpStatusCode == 400 ||
|
|
982
|
+
response.httpStatusCode == 403 ||
|
|
983
|
+
response.httpStatusCode == 404 ||
|
|
984
|
+
response.httpStatusCode == 429) {
|
|
985
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
986
|
+
let body;
|
|
987
|
+
try {
|
|
988
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
989
|
+
}
|
|
990
|
+
catch (error) {
|
|
991
|
+
logger_1.logger.info(`Got error deserializing error: ${error}`);
|
|
992
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
993
|
+
}
|
|
994
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
995
|
+
}
|
|
996
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
997
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
998
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ListFindingsResponse", "");
|
|
999
|
+
return body;
|
|
1000
|
+
}
|
|
1001
|
+
const body = (yield response.body.text()) || "";
|
|
1002
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
840
1005
|
/**
|
|
841
1006
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
842
1007
|
* to the expected objects
|
|
@@ -1170,6 +1335,20 @@ class SecurityMonitoringApi {
|
|
|
1170
1335
|
});
|
|
1171
1336
|
});
|
|
1172
1337
|
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Returns a single finding with message and resource configuration.
|
|
1340
|
+
* @param param The request object
|
|
1341
|
+
*/
|
|
1342
|
+
getFinding(param, options) {
|
|
1343
|
+
const requestContextPromise = this.requestFactory.getFinding(param.findingId, param.snapshotTimestamp, options);
|
|
1344
|
+
return requestContextPromise.then((requestContext) => {
|
|
1345
|
+
return this.configuration.httpApi
|
|
1346
|
+
.send(requestContext)
|
|
1347
|
+
.then((responseContext) => {
|
|
1348
|
+
return this.responseProcessor.getFinding(responseContext);
|
|
1349
|
+
});
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1173
1352
|
/**
|
|
1174
1353
|
* Get the details of a specific security filter.
|
|
1175
1354
|
*
|
|
@@ -1215,6 +1394,88 @@ class SecurityMonitoringApi {
|
|
|
1215
1394
|
});
|
|
1216
1395
|
});
|
|
1217
1396
|
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Get a list of CSPM findings.
|
|
1399
|
+
*
|
|
1400
|
+
* ### Filtering
|
|
1401
|
+
*
|
|
1402
|
+
* Filters can be applied by appending query parameters to the URL.
|
|
1403
|
+
*
|
|
1404
|
+
* - Using a single filter: `?filter[attribute_key]=attribute_value`
|
|
1405
|
+
* - Chaining filters: `?filter[attribute_key]=attribute_value&filter[attribute_key]=attribute_value...`
|
|
1406
|
+
* - Filtering on tags: `?filter[tags]=tag_key:tag_value&filter[tags]=tag_key_2:tag_value_2`
|
|
1407
|
+
*
|
|
1408
|
+
* Here, `attribute_key` can be any of the filter keys described further below.
|
|
1409
|
+
*
|
|
1410
|
+
* Query parameters of type `integer` support comparison operators (`>`, `>=`, `<`, `<=`). This is particularly useful when filtering by `evaluation_changed_at` or `resource_discovery_timestamp`. For example: `?filter[evaluation_changed_at]=>20123123121`.
|
|
1411
|
+
*
|
|
1412
|
+
* You can also use the negation operator on strings. For example, use `filter[resource_type]=-aws*` to filter for any non-AWS resources.
|
|
1413
|
+
*
|
|
1414
|
+
* The operator must come after the equal sign. For example, to filter with the `>=` operator, add the operator after the equal sign: `filter[evaluation_changed_at]=>=1678809373257`.
|
|
1415
|
+
*
|
|
1416
|
+
* ### Response
|
|
1417
|
+
*
|
|
1418
|
+
* The response includes an array of finding objects, pagination metadata, and a count of items that match the query.
|
|
1419
|
+
*
|
|
1420
|
+
* Each finding object contains the following:
|
|
1421
|
+
*
|
|
1422
|
+
* - The finding ID that can be used in a `GetFinding` request to retrieve the full finding details.
|
|
1423
|
+
* - Core attributes, including status, evaluation, high-level resource details, muted state, and rule details.
|
|
1424
|
+
* - `evaluation_changed_at` and `resource_discovery_date` time stamps.
|
|
1425
|
+
* - An array of associated tags.
|
|
1426
|
+
* @param param The request object
|
|
1427
|
+
*/
|
|
1428
|
+
listFindings(param = {}, options) {
|
|
1429
|
+
const requestContextPromise = this.requestFactory.listFindings(param.pageLimit, param.snapshotTimestamp, param.pageCursor, param.filterTags, param.filterEvaluationChangedAt, param.filterMuted, param.filterRuleId, param.filterRuleName, param.filterResourceType, param.filterDiscoveryTimestamp, param.filterEvaluation, param.filterStatus, options);
|
|
1430
|
+
return requestContextPromise.then((requestContext) => {
|
|
1431
|
+
return this.configuration.httpApi
|
|
1432
|
+
.send(requestContext)
|
|
1433
|
+
.then((responseContext) => {
|
|
1434
|
+
return this.responseProcessor.listFindings(responseContext);
|
|
1435
|
+
});
|
|
1436
|
+
});
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Provide a paginated version of listFindings returning a generator with all the items.
|
|
1440
|
+
*/
|
|
1441
|
+
listFindingsWithPagination(param = {}, options) {
|
|
1442
|
+
return __asyncGenerator(this, arguments, function* listFindingsWithPagination_1() {
|
|
1443
|
+
let pageSize = 100;
|
|
1444
|
+
if (param.pageLimit !== undefined) {
|
|
1445
|
+
pageSize = param.pageLimit;
|
|
1446
|
+
}
|
|
1447
|
+
param.pageLimit = pageSize;
|
|
1448
|
+
while (true) {
|
|
1449
|
+
const requestContext = yield __await(this.requestFactory.listFindings(param.pageLimit, param.snapshotTimestamp, param.pageCursor, param.filterTags, param.filterEvaluationChangedAt, param.filterMuted, param.filterRuleId, param.filterRuleName, param.filterResourceType, param.filterDiscoveryTimestamp, param.filterEvaluation, param.filterStatus, options));
|
|
1450
|
+
const responseContext = yield __await(this.configuration.httpApi.send(requestContext));
|
|
1451
|
+
const response = yield __await(this.responseProcessor.listFindings(responseContext));
|
|
1452
|
+
const responseData = response.data;
|
|
1453
|
+
if (responseData === undefined) {
|
|
1454
|
+
break;
|
|
1455
|
+
}
|
|
1456
|
+
const results = responseData;
|
|
1457
|
+
for (const item of results) {
|
|
1458
|
+
yield yield __await(item);
|
|
1459
|
+
}
|
|
1460
|
+
if (results.length < pageSize) {
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1463
|
+
const cursorMeta = response.meta;
|
|
1464
|
+
if (cursorMeta === undefined) {
|
|
1465
|
+
break;
|
|
1466
|
+
}
|
|
1467
|
+
const cursorMetaPage = cursorMeta.page;
|
|
1468
|
+
if (cursorMetaPage === undefined) {
|
|
1469
|
+
break;
|
|
1470
|
+
}
|
|
1471
|
+
const cursorMetaPageCursor = cursorMetaPage.cursor;
|
|
1472
|
+
if (cursorMetaPageCursor === undefined) {
|
|
1473
|
+
break;
|
|
1474
|
+
}
|
|
1475
|
+
param.pageCursor = cursorMetaPageCursor;
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1218
1479
|
/**
|
|
1219
1480
|
* Get the list of configured security filters with their definitions.
|
|
1220
1481
|
* @param param The request object
|