Skip to content

Commit d335850

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add ci_code_coverage_committers to usage API (DataDog#3761)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ce5a4fc commit d335850

3 files changed

Lines changed: 87 additions & 1 deletion

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4624,6 +4624,8 @@ components:
46244624
- asm_serverless_traced_invocations_percentage
46254625
- bits_ai_investigations_usage
46264626
- browser_usage
4627+
- ci_code_coverage_committers_percentage
4628+
- ci_code_coverage_committers_usage
46274629
- ci_pipeline_indexed_spans_usage
46284630
- ci_test_indexed_spans_usage
46294631
- ci_visibility_itr_usage
@@ -4709,6 +4711,8 @@ components:
47094711
- ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE
47104712
- BITS_AI_INVESTIGATIONS_USAGE
47114713
- BROWSER_USAGE
4714+
- CI_CODE_COVERAGE_COMMITTERS_PERCENTAGE
4715+
- CI_CODE_COVERAGE_COMMITTERS_USAGE
47124716
- CI_PIPELINE_INDEXED_SPANS_USAGE
47134717
- CI_TEST_INDEXED_SPANS_USAGE
47144718
- CI_VISIBILITY_ITR_USAGE
@@ -9577,6 +9581,14 @@ components:
95779581
description: The synthetic browser test usage by tag(s).
95789582
format: double
95799583
type: number
9584+
ci_code_coverage_committers_percentage:
9585+
description: The percentage of Code Coverage committers usage by tag(s).
9586+
format: double
9587+
type: number
9588+
ci_code_coverage_committers_usage:
9589+
description: The total Code Coverage committers usage by tag(s).
9590+
format: double
9591+
type: number
95809592
ci_pipeline_indexed_spans_percentage:
95819593
description: The percentage of CI Pipeline Indexed Spans usage by tag(s).
95829594
format: double

api/datadogV1/model_hourly_usage_attribution_usage_type.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ const (
2626
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE HourlyUsageAttributionUsageType = "asm_serverless_traced_invocations_percentage"
2727
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BITS_AI_INVESTIGATIONS_USAGE HourlyUsageAttributionUsageType = "bits_ai_investigations_usage"
2828
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE HourlyUsageAttributionUsageType = "browser_usage"
29+
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_CODE_COVERAGE_COMMITTERS_PERCENTAGE HourlyUsageAttributionUsageType = "ci_code_coverage_committers_percentage"
30+
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_CODE_COVERAGE_COMMITTERS_USAGE HourlyUsageAttributionUsageType = "ci_code_coverage_committers_usage"
2931
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_PIPELINE_INDEXED_SPANS_USAGE HourlyUsageAttributionUsageType = "ci_pipeline_indexed_spans_usage"
3032
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_TEST_INDEXED_SPANS_USAGE HourlyUsageAttributionUsageType = "ci_test_indexed_spans_usage"
3133
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_VISIBILITY_ITR_USAGE HourlyUsageAttributionUsageType = "ci_visibility_itr_usage"
@@ -112,6 +114,8 @@ var allowedHourlyUsageAttributionUsageTypeEnumValues = []HourlyUsageAttributionU
112114
HOURLYUSAGEATTRIBUTIONUSAGETYPE_ASM_SERVERLESS_TRACED_INVOCATIONS_PERCENTAGE,
113115
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BITS_AI_INVESTIGATIONS_USAGE,
114116
HOURLYUSAGEATTRIBUTIONUSAGETYPE_BROWSER_USAGE,
117+
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_CODE_COVERAGE_COMMITTERS_PERCENTAGE,
118+
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_CODE_COVERAGE_COMMITTERS_USAGE,
115119
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_PIPELINE_INDEXED_SPANS_USAGE,
116120
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_TEST_INDEXED_SPANS_USAGE,
117121
HOURLYUSAGEATTRIBUTIONUSAGETYPE_CI_VISIBILITY_ITR_USAGE,

api/datadogV1/model_monthly_usage_attribution_values.go

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ type MonthlyUsageAttributionValues struct {
4646
BrowserPercentage *float64 `json:"browser_percentage,omitempty"`
4747
// The synthetic browser test usage by tag(s).
4848
BrowserUsage *float64 `json:"browser_usage,omitempty"`
49+
// The percentage of Code Coverage committers usage by tag(s).
50+
CiCodeCoverageCommittersPercentage *float64 `json:"ci_code_coverage_committers_percentage,omitempty"`
51+
// The total Code Coverage committers usage by tag(s).
52+
CiCodeCoverageCommittersUsage *float64 `json:"ci_code_coverage_committers_usage,omitempty"`
4953
// The percentage of CI Pipeline Indexed Spans usage by tag(s).
5054
CiPipelineIndexedSpansPercentage *float64 `json:"ci_pipeline_indexed_spans_percentage,omitempty"`
5155
// The total CI Pipeline Indexed Spans usage by tag(s).
@@ -856,6 +860,62 @@ func (o *MonthlyUsageAttributionValues) SetBrowserUsage(v float64) {
856860
o.BrowserUsage = &v
857861
}
858862

863+
// GetCiCodeCoverageCommittersPercentage returns the CiCodeCoverageCommittersPercentage field value if set, zero value otherwise.
864+
func (o *MonthlyUsageAttributionValues) GetCiCodeCoverageCommittersPercentage() float64 {
865+
if o == nil || o.CiCodeCoverageCommittersPercentage == nil {
866+
var ret float64
867+
return ret
868+
}
869+
return *o.CiCodeCoverageCommittersPercentage
870+
}
871+
872+
// GetCiCodeCoverageCommittersPercentageOk returns a tuple with the CiCodeCoverageCommittersPercentage field value if set, nil otherwise
873+
// and a boolean to check if the value has been set.
874+
func (o *MonthlyUsageAttributionValues) GetCiCodeCoverageCommittersPercentageOk() (*float64, bool) {
875+
if o == nil || o.CiCodeCoverageCommittersPercentage == nil {
876+
return nil, false
877+
}
878+
return o.CiCodeCoverageCommittersPercentage, true
879+
}
880+
881+
// HasCiCodeCoverageCommittersPercentage returns a boolean if a field has been set.
882+
func (o *MonthlyUsageAttributionValues) HasCiCodeCoverageCommittersPercentage() bool {
883+
return o != nil && o.CiCodeCoverageCommittersPercentage != nil
884+
}
885+
886+
// SetCiCodeCoverageCommittersPercentage gets a reference to the given float64 and assigns it to the CiCodeCoverageCommittersPercentage field.
887+
func (o *MonthlyUsageAttributionValues) SetCiCodeCoverageCommittersPercentage(v float64) {
888+
o.CiCodeCoverageCommittersPercentage = &v
889+
}
890+
891+
// GetCiCodeCoverageCommittersUsage returns the CiCodeCoverageCommittersUsage field value if set, zero value otherwise.
892+
func (o *MonthlyUsageAttributionValues) GetCiCodeCoverageCommittersUsage() float64 {
893+
if o == nil || o.CiCodeCoverageCommittersUsage == nil {
894+
var ret float64
895+
return ret
896+
}
897+
return *o.CiCodeCoverageCommittersUsage
898+
}
899+
900+
// GetCiCodeCoverageCommittersUsageOk returns a tuple with the CiCodeCoverageCommittersUsage field value if set, nil otherwise
901+
// and a boolean to check if the value has been set.
902+
func (o *MonthlyUsageAttributionValues) GetCiCodeCoverageCommittersUsageOk() (*float64, bool) {
903+
if o == nil || o.CiCodeCoverageCommittersUsage == nil {
904+
return nil, false
905+
}
906+
return o.CiCodeCoverageCommittersUsage, true
907+
}
908+
909+
// HasCiCodeCoverageCommittersUsage returns a boolean if a field has been set.
910+
func (o *MonthlyUsageAttributionValues) HasCiCodeCoverageCommittersUsage() bool {
911+
return o != nil && o.CiCodeCoverageCommittersUsage != nil
912+
}
913+
914+
// SetCiCodeCoverageCommittersUsage gets a reference to the given float64 and assigns it to the CiCodeCoverageCommittersUsage field.
915+
func (o *MonthlyUsageAttributionValues) SetCiCodeCoverageCommittersUsage(v float64) {
916+
o.CiCodeCoverageCommittersUsage = &v
917+
}
918+
859919
// GetCiPipelineIndexedSpansPercentage returns the CiPipelineIndexedSpansPercentage field value if set, zero value otherwise.
860920
func (o *MonthlyUsageAttributionValues) GetCiPipelineIndexedSpansPercentage() float64 {
861921
if o == nil || o.CiPipelineIndexedSpansPercentage == nil {
@@ -4892,6 +4952,12 @@ func (o MonthlyUsageAttributionValues) MarshalJSON() ([]byte, error) {
48924952
if o.BrowserUsage != nil {
48934953
toSerialize["browser_usage"] = o.BrowserUsage
48944954
}
4955+
if o.CiCodeCoverageCommittersPercentage != nil {
4956+
toSerialize["ci_code_coverage_committers_percentage"] = o.CiCodeCoverageCommittersPercentage
4957+
}
4958+
if o.CiCodeCoverageCommittersUsage != nil {
4959+
toSerialize["ci_code_coverage_committers_usage"] = o.CiCodeCoverageCommittersUsage
4960+
}
48954961
if o.CiPipelineIndexedSpansPercentage != nil {
48964962
toSerialize["ci_pipeline_indexed_spans_percentage"] = o.CiPipelineIndexedSpansPercentage
48974963
}
@@ -5346,6 +5412,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
53465412
BitsAiInvestigationsUsage *float64 `json:"bits_ai_investigations_usage,omitempty"`
53475413
BrowserPercentage *float64 `json:"browser_percentage,omitempty"`
53485414
BrowserUsage *float64 `json:"browser_usage,omitempty"`
5415+
CiCodeCoverageCommittersPercentage *float64 `json:"ci_code_coverage_committers_percentage,omitempty"`
5416+
CiCodeCoverageCommittersUsage *float64 `json:"ci_code_coverage_committers_usage,omitempty"`
53495417
CiPipelineIndexedSpansPercentage *float64 `json:"ci_pipeline_indexed_spans_percentage,omitempty"`
53505418
CiPipelineIndexedSpansUsage *float64 `json:"ci_pipeline_indexed_spans_usage,omitempty"`
53515419
CiTestIndexedSpansPercentage *float64 `json:"ci_test_indexed_spans_percentage,omitempty"`
@@ -5494,7 +5562,7 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
54945562
}
54955563
additionalProperties := make(map[string]interface{})
54965564
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
5497-
datadog.DeleteKeys(additionalProperties, &[]string{"api_percentage", "api_usage", "apm_fargate_percentage", "apm_fargate_usage", "apm_host_percentage", "apm_host_usage", "apm_usm_percentage", "apm_usm_usage", "appsec_fargate_percentage", "appsec_fargate_usage", "appsec_percentage", "appsec_usage", "asm_serverless_traced_invocations_percentage", "asm_serverless_traced_invocations_usage", "bits_ai_investigations_percentage", "bits_ai_investigations_usage", "browser_percentage", "browser_usage", "ci_pipeline_indexed_spans_percentage", "ci_pipeline_indexed_spans_usage", "ci_test_indexed_spans_percentage", "ci_test_indexed_spans_usage", "ci_visibility_itr_percentage", "ci_visibility_itr_usage", "cloud_siem_percentage", "cloud_siem_usage", "code_security_host_percentage", "code_security_host_usage", "container_excl_agent_percentage", "container_excl_agent_usage", "container_percentage", "container_usage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_event_percentage", "custom_event_usage", "custom_ingested_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_timeseries_percentage", "custom_timeseries_usage", "cws_containers_percentage", "cws_containers_usage", "cws_fargate_task_percentage", "cws_fargate_task_usage", "cws_hosts_percentage", "cws_hosts_usage", "data_jobs_monitoring_usage", "data_stream_monitoring_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "error_tracking_percentage", "error_tracking_usage", "estimated_indexed_spans_percentage", "estimated_indexed_spans_usage", "estimated_ingested_spans_percentage", "estimated_ingested_spans_usage", "fargate_percentage", "fargate_usage", "flex_logs_starter_percentage", "flex_logs_starter_usage", "flex_stored_logs_percentage", "flex_stored_logs_usage", "functions_percentage", "functions_usage", "incident_management_monthly_active_users_percentage", "incident_management_monthly_active_users_usage", "indexed_spans_percentage", "indexed_spans_usage", "infra_host_percentage", "infra_host_usage", "ingested_logs_bytes_percentage", "ingested_logs_bytes_usage", "ingested_spans_bytes_percentage", "ingested_spans_bytes_usage", "invocations_percentage", "invocations_usage", "lambda_traced_invocations_percentage", "lambda_traced_invocations_usage", "llm_observability_percentage", "llm_observability_usage", "llm_spans_percentage", "llm_spans_usage", "logs_indexed_15day_percentage", "logs_indexed_15day_usage", "logs_indexed_180day_percentage", "logs_indexed_180day_usage", "logs_indexed_1day_percentage", "logs_indexed_1day_usage", "logs_indexed_30day_percentage", "logs_indexed_30day_usage", "logs_indexed_360day_percentage", "logs_indexed_360day_usage", "logs_indexed_3day_percentage", "logs_indexed_3day_usage", "logs_indexed_45day_percentage", "logs_indexed_45day_usage", "logs_indexed_60day_percentage", "logs_indexed_60day_usage", "logs_indexed_7day_percentage", "logs_indexed_7day_usage", "logs_indexed_90day_percentage", "logs_indexed_90day_usage", "logs_indexed_custom_retention_percentage", "logs_indexed_custom_retention_usage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_percentage", "ndm_netflow_usage", "network_device_wireless_percentage", "network_device_wireless_usage", "npm_host_percentage", "npm_host_usage", "obs_pipeline_bytes_percentage", "obs_pipeline_bytes_usage", "obs_pipelines_vcpu_percentage", "obs_pipelines_vcpu_usage", "online_archive_percentage", "online_archive_usage", "product_analytics_session_percentage", "product_analytics_session_usage", "profiled_container_percentage", "profiled_container_usage", "profiled_fargate_percentage", "profiled_fargate_usage", "profiled_host_percentage", "profiled_host_usage", "published_app_percentage", "published_app_usage", "rum_browser_mobile_sessions_percentage", "rum_browser_mobile_sessions_usage", "rum_ingested_percentage", "rum_ingested_usage", "rum_investigate_percentage", "rum_investigate_usage", "rum_replay_sessions_percentage", "rum_replay_sessions_usage", "rum_session_replay_add_on_percentage", "rum_session_replay_add_on_usage", "sca_fargate_percentage", "sca_fargate_usage", "sds_scanned_bytes_percentage", "sds_scanned_bytes_usage", "serverless_apps_percentage", "serverless_apps_usage", "siem_analyzed_logs_add_on_percentage", "siem_analyzed_logs_add_on_usage", "siem_ingested_bytes_percentage", "siem_ingested_bytes_usage", "snmp_percentage", "snmp_usage", "universal_service_monitoring_percentage", "universal_service_monitoring_usage", "vuln_management_hosts_percentage", "vuln_management_hosts_usage", "workflow_executions_percentage", "workflow_executions_usage"})
5565+
datadog.DeleteKeys(additionalProperties, &[]string{"api_percentage", "api_usage", "apm_fargate_percentage", "apm_fargate_usage", "apm_host_percentage", "apm_host_usage", "apm_usm_percentage", "apm_usm_usage", "appsec_fargate_percentage", "appsec_fargate_usage", "appsec_percentage", "appsec_usage", "asm_serverless_traced_invocations_percentage", "asm_serverless_traced_invocations_usage", "bits_ai_investigations_percentage", "bits_ai_investigations_usage", "browser_percentage", "browser_usage", "ci_code_coverage_committers_percentage", "ci_code_coverage_committers_usage", "ci_pipeline_indexed_spans_percentage", "ci_pipeline_indexed_spans_usage", "ci_test_indexed_spans_percentage", "ci_test_indexed_spans_usage", "ci_visibility_itr_percentage", "ci_visibility_itr_usage", "cloud_siem_percentage", "cloud_siem_usage", "code_security_host_percentage", "code_security_host_usage", "container_excl_agent_percentage", "container_excl_agent_usage", "container_percentage", "container_usage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_event_percentage", "custom_event_usage", "custom_ingested_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_timeseries_percentage", "custom_timeseries_usage", "cws_containers_percentage", "cws_containers_usage", "cws_fargate_task_percentage", "cws_fargate_task_usage", "cws_hosts_percentage", "cws_hosts_usage", "data_jobs_monitoring_usage", "data_stream_monitoring_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "error_tracking_percentage", "error_tracking_usage", "estimated_indexed_spans_percentage", "estimated_indexed_spans_usage", "estimated_ingested_spans_percentage", "estimated_ingested_spans_usage", "fargate_percentage", "fargate_usage", "flex_logs_starter_percentage", "flex_logs_starter_usage", "flex_stored_logs_percentage", "flex_stored_logs_usage", "functions_percentage", "functions_usage", "incident_management_monthly_active_users_percentage", "incident_management_monthly_active_users_usage", "indexed_spans_percentage", "indexed_spans_usage", "infra_host_percentage", "infra_host_usage", "ingested_logs_bytes_percentage", "ingested_logs_bytes_usage", "ingested_spans_bytes_percentage", "ingested_spans_bytes_usage", "invocations_percentage", "invocations_usage", "lambda_traced_invocations_percentage", "lambda_traced_invocations_usage", "llm_observability_percentage", "llm_observability_usage", "llm_spans_percentage", "llm_spans_usage", "logs_indexed_15day_percentage", "logs_indexed_15day_usage", "logs_indexed_180day_percentage", "logs_indexed_180day_usage", "logs_indexed_1day_percentage", "logs_indexed_1day_usage", "logs_indexed_30day_percentage", "logs_indexed_30day_usage", "logs_indexed_360day_percentage", "logs_indexed_360day_usage", "logs_indexed_3day_percentage", "logs_indexed_3day_usage", "logs_indexed_45day_percentage", "logs_indexed_45day_usage", "logs_indexed_60day_percentage", "logs_indexed_60day_usage", "logs_indexed_7day_percentage", "logs_indexed_7day_usage", "logs_indexed_90day_percentage", "logs_indexed_90day_usage", "logs_indexed_custom_retention_percentage", "logs_indexed_custom_retention_usage", "mobile_app_testing_percentage", "mobile_app_testing_usage", "ndm_netflow_percentage", "ndm_netflow_usage", "network_device_wireless_percentage", "network_device_wireless_usage", "npm_host_percentage", "npm_host_usage", "obs_pipeline_bytes_percentage", "obs_pipeline_bytes_usage", "obs_pipelines_vcpu_percentage", "obs_pipelines_vcpu_usage", "online_archive_percentage", "online_archive_usage", "product_analytics_session_percentage", "product_analytics_session_usage", "profiled_container_percentage", "profiled_container_usage", "profiled_fargate_percentage", "profiled_fargate_usage", "profiled_host_percentage", "profiled_host_usage", "published_app_percentage", "published_app_usage", "rum_browser_mobile_sessions_percentage", "rum_browser_mobile_sessions_usage", "rum_ingested_percentage", "rum_ingested_usage", "rum_investigate_percentage", "rum_investigate_usage", "rum_replay_sessions_percentage", "rum_replay_sessions_usage", "rum_session_replay_add_on_percentage", "rum_session_replay_add_on_usage", "sca_fargate_percentage", "sca_fargate_usage", "sds_scanned_bytes_percentage", "sds_scanned_bytes_usage", "serverless_apps_percentage", "serverless_apps_usage", "siem_analyzed_logs_add_on_percentage", "siem_analyzed_logs_add_on_usage", "siem_ingested_bytes_percentage", "siem_ingested_bytes_usage", "snmp_percentage", "snmp_usage", "universal_service_monitoring_percentage", "universal_service_monitoring_usage", "vuln_management_hosts_percentage", "vuln_management_hosts_usage", "workflow_executions_percentage", "workflow_executions_usage"})
54985566
} else {
54995567
return err
55005568
}
@@ -5516,6 +5584,8 @@ func (o *MonthlyUsageAttributionValues) UnmarshalJSON(bytes []byte) (err error)
55165584
o.BitsAiInvestigationsUsage = all.BitsAiInvestigationsUsage
55175585
o.BrowserPercentage = all.BrowserPercentage
55185586
o.BrowserUsage = all.BrowserUsage
5587+
o.CiCodeCoverageCommittersPercentage = all.CiCodeCoverageCommittersPercentage
5588+
o.CiCodeCoverageCommittersUsage = all.CiCodeCoverageCommittersUsage
55195589
o.CiPipelineIndexedSpansPercentage = all.CiPipelineIndexedSpansPercentage
55205590
o.CiPipelineIndexedSpansUsage = all.CiPipelineIndexedSpansUsage
55215591
o.CiTestIndexedSpansPercentage = all.CiTestIndexedSpansPercentage

0 commit comments

Comments
 (0)