-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CSM Coverage Analysis API specs (#2628)
Co-authored-by: ci.datadog-api-spec <[email protected]>
- Loading branch information
1 parent
6ac94d0
commit ebf0afa
Showing
24 changed files
with
2,778 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
examples/v2/csm-coverage-analysis/GetCSMCloudAccountsCoverageAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Get the CSM Cloud Accounts Coverage Analysis returns "OK" response | ||
|
||
import com.datadog.api.client.ApiClient; | ||
import com.datadog.api.client.ApiException; | ||
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi; | ||
import com.datadog.api.client.v2.model.CsmCloudAccountsCoverageAnalysisResponse; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = ApiClient.getDefaultApiClient(); | ||
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient); | ||
|
||
try { | ||
CsmCloudAccountsCoverageAnalysisResponse result = | ||
apiInstance.getCSMCloudAccountsCoverageAnalysis(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println( | ||
"Exception when calling CsmCoverageAnalysisApi#getCSMCloudAccountsCoverageAnalysis"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
examples/v2/csm-coverage-analysis/GetCSMHostsAndContainersCoverageAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Get the CSM Hosts and Containers Coverage Analysis returns "OK" response | ||
|
||
import com.datadog.api.client.ApiClient; | ||
import com.datadog.api.client.ApiException; | ||
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi; | ||
import com.datadog.api.client.v2.model.CsmHostsAndContainersCoverageAnalysisResponse; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = ApiClient.getDefaultApiClient(); | ||
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient); | ||
|
||
try { | ||
CsmHostsAndContainersCoverageAnalysisResponse result = | ||
apiInstance.getCSMHostsAndContainersCoverageAnalysis(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println( | ||
"Exception when calling CsmCoverageAnalysisApi#getCSMHostsAndContainersCoverageAnalysis"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
examples/v2/csm-coverage-analysis/GetCSMServerlessCoverageAnalysis.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Get the CSM Serverless Coverage Analysis returns "OK" response | ||
|
||
import com.datadog.api.client.ApiClient; | ||
import com.datadog.api.client.ApiException; | ||
import com.datadog.api.client.v2.api.CsmCoverageAnalysisApi; | ||
import com.datadog.api.client.v2.model.CsmServerlessCoverageAnalysisResponse; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ApiClient defaultClient = ApiClient.getDefaultApiClient(); | ||
CsmCoverageAnalysisApi apiInstance = new CsmCoverageAnalysisApi(defaultClient); | ||
|
||
try { | ||
CsmServerlessCoverageAnalysisResponse result = apiInstance.getCSMServerlessCoverageAnalysis(); | ||
System.out.println(result); | ||
} catch (ApiException e) { | ||
System.err.println( | ||
"Exception when calling CsmCoverageAnalysisApi#getCSMServerlessCoverageAnalysis"); | ||
System.err.println("Status code: " + e.getCode()); | ||
System.err.println("Reason: " + e.getResponseBody()); | ||
System.err.println("Response headers: " + e.getResponseHeaders()); | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
Oops, something went wrong.