Skip to content

Commit

Permalink
Update public docs for CSM Enterprise and CSPM (#2183)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Sep 22, 2023
1 parent 97a21fc commit 54584d9
Show file tree
Hide file tree
Showing 15 changed files with 1,658 additions and 391 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-09-22 15:04:20.177015",
"spec_repo_commit": "61ae9703"
"regenerated": "2023-09-22 16:26:36.734279",
"spec_repo_commit": "45270a3e"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-09-22 15:04:20.191396",
"spec_repo_commit": "61ae9703"
"regenerated": "2023-09-22 16:26:36.748303",
"spec_repo_commit": "45270a3e"
}
}
}
305 changes: 238 additions & 67 deletions .generator/schemas/v1/openapi.yaml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27121,7 +27121,8 @@ paths:

`application_security`, `audit_trail`, `serverless`, `ci_app`, `cloud_cost_management`,

`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
`csm_container_enterprise`, `csm_host_enterprise`, `cspm`, `custom_events`,
`cws`, `dbm`, `fargate`,

`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
`iot`,
Expand Down
4 changes: 2 additions & 2 deletions api/datadogV1/api_usage_metering.go
Original file line number Diff line number Diff line change
Expand Up @@ -1615,8 +1615,8 @@ func (r *GetUsageCloudSecurityPostureManagementOptionalParameters) WithEndHr(end
return r
}

// GetUsageCloudSecurityPostureManagement Get hourly usage for CSPM.
// Get hourly usage for cloud security posture management (CSPM).
// GetUsageCloudSecurityPostureManagement Get hourly usage for CSM Pro.
// Get hourly usage for cloud security management (CSM) pro.
// **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
func (a *UsageMeteringApi) GetUsageCloudSecurityPostureManagement(ctx _context.Context, startHr time.Time, o ...GetUsageCloudSecurityPostureManagementOptionalParameters) (UsageCloudSecurityPostureManagementResponse, *_nethttp.Response, error) {
var (
Expand Down
8 changes: 4 additions & 4 deletions api/datadogV1/model_monthly_usage_attribution_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ type MonthlyUsageAttributionValues struct {
ContainerPercentage *float64 `json:"container_percentage,omitempty"`
// The container usage by tag(s).
ContainerUsage *float64 `json:"container_usage,omitempty"`
// The percentage of CSPM container usage by tag(s).
// The percentage of Cloud Security Management Pro container usage by tag(s).
CspmContainersPercentage *float64 `json:"cspm_containers_percentage,omitempty"`
// The CSPM container usage by tag(s).
// The Cloud Security Management Pro container usage by tag(s).
CspmContainersUsage *float64 `json:"cspm_containers_usage,omitempty"`
// The percentage of CSPM host usage by by tag(s).
// The percentage of Cloud Security Management Pro host usage by tag(s).
CspmHostsPercentage *float64 `json:"cspm_hosts_percentage,omitempty"`
// The CSPM host usage by tag(s).
// The Cloud Security Management Pro host usage by tag(s).
CspmHostsUsage *float64 `json:"cspm_hosts_usage,omitempty"`
// The percentage of ingested custom metrics usage by tag(s).
CustomIngestedTimeseriesPercentage *float64 `json:"custom_ingested_timeseries_percentage,omitempty"`
Expand Down
8 changes: 4 additions & 4 deletions api/datadogV1/model_usage_attribution_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ type UsageAttributionValues struct {
ContainerPercentage *float64 `json:"container_percentage,omitempty"`
// The container usage by tag(s).
ContainerUsage *float64 `json:"container_usage,omitempty"`
// The percentage of Cloud Security Posture Management container usage by tag(s)
// The percentage of Cloud Security Management Pro container usage by tag(s)
CspmContainerPercentage *float64 `json:"cspm_container_percentage,omitempty"`
// The Cloud Security Posture Management container usage by tag(s)
// The Cloud Security Management Pro container usage by tag(s)
CspmContainerUsage *float64 `json:"cspm_container_usage,omitempty"`
// The percentage of Cloud Security Posture Management host usage by tag(s)
// The percentage of Cloud Security Management Pro host usage by tag(s)
CspmHostPercentage *float64 `json:"cspm_host_percentage,omitempty"`
// The Cloud Security Posture Management host usage by tag(s)
// The Cloud Security Management Pro host usage by tag(s)
CspmHostUsage *float64 `json:"cspm_host_usage,omitempty"`
// The percentage of custom metrics usage by tag(s).
CustomTimeseriesPercentage *float64 `json:"custom_timeseries_percentage,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// UsageCloudSecurityPostureManagementHour Cloud Security Posture Management usage for a given organization for a given hour.
// UsageCloudSecurityPostureManagementHour Cloud Security Management Pro usage for a given organization for a given hour.
type UsageCloudSecurityPostureManagementHour struct {
// The number of Cloud Security Posture Management Azure app services hosts during a given hour.
// The number of Cloud Security Management Pro Azure app services hosts during a given hour.
AasHostCount datadog.NullableFloat64 `json:"aas_host_count,omitempty"`
// The number of Cloud Security Posture Management AWS hosts during a given hour.
// The number of Cloud Security Management Pro AWS hosts during a given hour.
AwsHostCount datadog.NullableFloat64 `json:"aws_host_count,omitempty"`
// The number of Cloud Security Posture Management Azure hosts during a given hour.
// The number of Cloud Security Management Pro Azure hosts during a given hour.
AzureHostCount datadog.NullableFloat64 `json:"azure_host_count,omitempty"`
// The number of Cloud Security Posture Management hosts during a given hour.
// The number of Cloud Security Management Pro hosts during a given hour.
ComplianceHostCount datadog.NullableFloat64 `json:"compliance_host_count,omitempty"`
// The total number of Cloud Security Posture Management containers during a given hour.
// The total number of Cloud Security Management Pro containers during a given hour.
ContainerCount datadog.NullableFloat64 `json:"container_count,omitempty"`
// The number of Cloud Security Posture Management GCP hosts during a given hour.
// The number of Cloud Security Management Pro GCP hosts during a given hour.
GcpHostCount datadog.NullableFloat64 `json:"gcp_host_count,omitempty"`
// The total number of Cloud Security Posture Management hosts during a given hour.
// The total number of Cloud Security Management Pro hosts during a given hour.
HostCount datadog.NullableFloat64 `json:"host_count,omitempty"`
// The hour for the usage.
Hour *time.Time `json:"hour,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
)

// UsageCloudSecurityPostureManagementResponse The response containing the Cloud Security Posture Management usage for each hour for a given organization.
// UsageCloudSecurityPostureManagementResponse The response containing the Cloud Security Management Pro usage for each hour for a given organization.
type UsageCloudSecurityPostureManagementResponse struct {
// Get hourly usage for Cloud Security Posture Management.
// Get hourly usage for Cloud Security Management Pro.
Usage []UsageCloudSecurityPostureManagementHour `json:"usage,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
UnparsedObject map[string]interface{} `json:"-"`
Expand Down
Loading

0 comments on commit 54584d9

Please sign in to comment.