datadog_api_client 2.9.0 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.apigentools-info +4 -4
- data/.generator/conftest.py +5 -24
- data/.generator/poetry.lock +164 -189
- data/.generator/schemas/v1/openapi.yaml +901 -30
- data/.generator/schemas/v2/openapi.yaml +3810 -1428
- data/.generator/src/generator/formatter.py +1 -1
- data/.generator/src/generator/openapi.py +2 -1
- data/.generator/src/generator/templates/api_client.j2 +2 -2
- data/.generator/src/generator/templates/example.j2 +1 -1
- data/.generator/src/generator/templates/model_oneof.j2 +1 -1
- data/.github/workflows/test.yml +1 -1
- data/.github/workflows/test_integration.yml +3 -3
- data/CHANGELOG.md +36 -0
- data/README.md +1 -1
- data/examples/v1/dashboard-lists/CreateDashboardList.rb +1 -1
- data/examples/v1/dashboard-lists/UpdateDashboardList.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1024858348.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1039800684.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_109450134.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1094917386.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1177423752.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1200099236.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1213075383.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1307120899.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1423904722.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1442588603.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_145494973.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_173805046.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_1738608750.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2029850837.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2034634967.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2064651578.rb +64 -0
- data/examples/v1/dashboards/CreateDashboard_2104498738.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2308247857.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2316374332.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2336428357.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2338918735.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2342457693.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2349863258.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2432046716.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2490110261.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_252716965.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2607944105.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2610827685.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2634813877.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2644712913.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2652180930.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2705593938.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2800096921.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2843286292.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2917274132.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_2921337351.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3117424216.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3195475781.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3250131584.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3669695268.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_3882428227.rb +2 -2
- data/examples/v1/dashboards/CreateDashboard_3982498788.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_4026341408.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_4076476470.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_41622531.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_417992286.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_578885732.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_651038379.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_765140092.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_798168180.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_803346562.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_913313564.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_915214113.rb +1 -1
- data/examples/v1/dashboards/CreateDashboard_927141680.rb +1 -1
- data/examples/v1/dashboards/CreatePublicDashboard.rb +17 -0
- data/examples/v1/dashboards/DeletePublicDashboard.rb +5 -0
- data/examples/v1/dashboards/DeletePublicDashboardInvitation.rb +16 -0
- data/examples/v1/dashboards/GetPublicDashboard.rb +8 -0
- data/examples/v1/dashboards/GetPublicDashboardInvitations.rb +8 -0
- data/examples/v1/dashboards/SendPublicDashboardInvitation.rb +17 -0
- data/examples/v1/dashboards/UpdateDashboard.rb +1 -1
- data/examples/v1/dashboards/UpdateDashboard_3454865944.rb +40 -0
- data/examples/v1/dashboards/UpdatePublicDashboard.rb +16 -0
- data/examples/v1/downtimes/CreateDowntime.rb +2 -2
- data/examples/v1/downtimes/CreateDowntime_1393233946.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_2908359488.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_3059354445.rb +1 -1
- data/examples/v1/downtimes/CreateDowntime_3355644446.rb +2 -2
- data/examples/v1/downtimes/ListDowntimes.rb +4 -1
- data/examples/v1/downtimes/UpdateDowntime.rb +1 -1
- data/examples/v1/events/CreateEvent.rb +2 -2
- data/examples/v1/events/CreateEvent_19927815.rb +2 -2
- data/examples/v1/logs/SubmitLog.rb +2 -2
- data/examples/v1/logs/SubmitLog_1920474053.rb +2 -2
- data/examples/v1/logs/SubmitLog_3418823904.rb +2 -2
- data/examples/v1/metrics/SubmitMetrics.rb +1 -1
- data/examples/v1/metrics/SubmitMetrics_2203981258.rb +1 -1
- data/examples/v1/monitors/CreateMonitor.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_1969035628.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_2012680290.rb +1 -1
- data/examples/v1/monitors/CreateMonitor_2520912138.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3790803616.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3824294658.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_3883669300.rb +2 -2
- data/examples/v1/monitors/CreateMonitor_440013737.rb +2 -2
- data/examples/v1/monitors/ListMonitors_3448441939.rb +1 -1
- data/examples/v1/monitors/ValidateExistingMonitor.rb +2 -2
- data/examples/v1/monitors/ValidateMonitor.rb +2 -2
- data/examples/v1/monitors/ValidateMonitor_4247196452.rb +2 -2
- data/examples/v1/notebooks/CreateNotebook.rb +1 -1
- data/examples/v1/notebooks/UpdateNotebook.rb +1 -1
- data/examples/v1/service-checks/SubmitServiceCheck.rb +1 -1
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection.rb +1 -1
- data/examples/v1/service-level-objective-corrections/CreateSLOCorrection_1326388368.rb +1 -1
- data/examples/v1/service-level-objective-corrections/UpdateSLOCorrection.rb +1 -1
- data/examples/v1/service-level-objectives/CreateSLO.rb +1 -1
- data/examples/v1/synthetics/CreateGlobalVariable_1068962881.rb +1 -1
- data/examples/v1/synthetics/CreatePrivateLocation.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1072503741.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1402674167.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_1487281163.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsAPITest_2472747642.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_3829801148.rb +2 -2
- data/examples/v1/synthetics/CreateSyntheticsAPITest_960766374.rb +3 -3
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_2932742688.rb +1 -1
- data/examples/v1/synthetics/CreateSyntheticsBrowserTest_397420811.rb +1 -1
- data/examples/v1/synthetics/UpdateAPITest.rb +2 -2
- data/examples/v1/webhooks-integration/CreateWebhooksIntegration.rb +1 -1
- data/examples/v1/webhooks-integration/CreateWebhooksIntegrationCustomVariable.rb +1 -1
- data/examples/v2/authn-mappings/CreateAuthNMapping.rb +2 -2
- data/examples/v2/cloud-workload-security/CreateCloudWorkloadSecurityAgentRule.rb +1 -1
- data/examples/v2/cloudflare-integration/CreateCloudflareAccount.rb +2 -2
- data/examples/v2/cloudflare-integration/UpdateCloudflareAccount.rb +1 -1
- data/examples/v2/confluent-cloud/CreateConfluentResource.rb +1 -1
- data/examples/v2/events/ListEvents.rb +1 -1
- data/examples/v2/events/ListEvents_1527584014.rb +1 -1
- data/examples/v2/events/ListEvents_2663715109.rb +1 -1
- data/examples/v2/events/SearchEvents.rb +1 -1
- data/examples/v2/events/SearchEvents_3856995058.rb +1 -1
- data/examples/v2/fastly-integration/CreateFastlyAccount.rb +2 -2
- data/examples/v2/incident-services/CreateIncidentService.rb +2 -2
- data/examples/v2/incident-services/DeleteIncidentService.rb +1 -1
- data/examples/v2/incident-services/GetIncidentService.rb +1 -1
- data/examples/v2/incident-services/ListIncidentServices.rb +1 -1
- data/examples/v2/incident-services/UpdateIncidentService.rb +1 -1
- data/examples/v2/incident-teams/CreateIncidentTeam.rb +2 -2
- data/examples/v2/incident-teams/DeleteIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/GetIncidentTeam.rb +1 -1
- data/examples/v2/incident-teams/ListIncidentTeams.rb +1 -1
- data/examples/v2/incident-teams/UpdateIncidentTeam.rb +1 -1
- data/examples/v2/incidents/CreateIncident.rb +2 -2
- data/examples/v2/incidents/CreateIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/CreateIncidentTodo.rb +23 -0
- data/examples/v2/incidents/DeleteIncident.rb +1 -1
- data/examples/v2/incidents/DeleteIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/DeleteIncidentTodo.rb +14 -0
- data/examples/v2/incidents/GetIncident.rb +1 -1
- data/examples/v2/incidents/GetIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/GetIncidentTodo.rb +14 -0
- data/examples/v2/incidents/ListIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/ListIncidentAttachments_2457735435.rb +1 -1
- data/examples/v2/incidents/ListIncidentIntegrations.rb +1 -1
- data/examples/v2/incidents/ListIncidentTodos.rb +11 -0
- data/examples/v2/incidents/ListIncidents.rb +1 -1
- data/examples/v2/incidents/ListIncidents_2665616954.rb +1 -1
- data/examples/v2/incidents/SearchIncidents.rb +1 -1
- data/examples/v2/incidents/SearchIncidents_1931679109.rb +11 -0
- data/examples/v2/incidents/UpdateIncident.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachments.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentAttachments_3881702075.rb +2 -2
- data/examples/v2/incidents/UpdateIncidentIntegration.rb +1 -1
- data/examples/v2/incidents/UpdateIncidentTodo.rb +28 -0
- data/examples/v2/incidents/UpdateIncident_1009194038.rb +1 -1
- data/examples/v2/incidents/UpdateIncident_3369341440.rb +1 -1
- data/examples/v2/ip-allowlist/UpdateIPAllowlist.rb +1 -1
- data/examples/v2/key-management/CreateAPIKey.rb +1 -1
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_1999509896.rb +1 -1
- data/examples/v2/key-management/CreateCurrentUserApplicationKey_3383369233.rb +1 -1
- data/examples/v2/key-management/UpdateAPIKey.rb +1 -1
- data/examples/v2/logs/SubmitLog.rb +1 -1
- data/examples/v2/logs-metrics/CreateLogsMetric.rb +1 -1
- data/examples/v2/logs-metrics/DeleteLogsMetric.rb +1 -1
- data/examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb +1 -1
- data/examples/v2/metrics/CreateTagConfiguration.rb +2 -2
- data/examples/v2/metrics/DeleteTagConfiguration.rb +1 -1
- data/examples/v2/metrics/ListActiveMetricConfigurations.rb +1 -1
- data/examples/v2/metrics/ListTagConfigurations_265033704.rb +1 -1
- data/examples/v2/metrics/ListVolumesByMetricName.rb +1 -1
- data/examples/v2/metrics/QueryScalarData.rb +1 -1
- data/examples/v2/metrics/QueryScalarData_3112571352.rb +1 -1
- data/examples/v2/metrics/QueryTimeseriesData.rb +1 -1
- data/examples/v2/metrics/QueryTimeseriesData_301142940.rb +1 -1
- data/examples/v2/opsgenie-integration/CreateOpsgenieService.rb +1 -1
- data/examples/v2/roles/CloneRole.rb +1 -1
- data/examples/v2/roles/CreateRole.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityFilter.rb +2 -2
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_1092490364.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_461183901.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_498211763.rb +1 -1
- data/examples/v2/security-monitoring/CreateSecurityMonitoringRule_914562040.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityFilter.rb +2 -2
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule.rb +1 -1
- data/examples/v2/security-monitoring/UpdateSecurityMonitoringRule_428087276.rb +1 -1
- data/examples/v2/sensitive-data-scanner/CreateScanningGroup.rb +1 -1
- data/examples/v2/sensitive-data-scanner/CreateScanningRule.rb +1 -1
- data/examples/v2/sensitive-data-scanner/UpdateScanningGroup.rb +1 -1
- data/examples/v2/sensitive-data-scanner/UpdateScanningRule.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccount.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_1761876297.rb +1 -1
- data/examples/v2/service-accounts/CreateServiceAccountApplicationKey_3480494373.rb +1 -1
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions.rb +19 -27
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_1808735248.rb +54 -0
- data/examples/v2/service-definition/CreateOrUpdateServiceDefinitions_2619874414.rb +53 -0
- data/examples/v2/service-definition/ListServiceDefinitions_336468013.rb +8 -0
- data/examples/v2/spans-metrics/CreateSpansMetric.rb +28 -0
- data/examples/v2/spans-metrics/DeleteSpansMetric.rb +8 -0
- data/examples/v2/spans-metrics/GetSpansMetric.rb +8 -0
- data/examples/v2/spans-metrics/ListSpansMetrics.rb +5 -0
- data/examples/v2/spans-metrics/UpdateSpansMetric.rb +29 -0
- data/examples/v2/teams/CreateTeam.rb +20 -0
- data/examples/v2/teams/CreateTeamLink.rb +19 -0
- data/examples/v2/teams/CreateTeamMembership.rb +22 -0
- data/examples/v2/teams/DeleteTeam.rb +8 -0
- data/examples/v2/teams/DeleteTeamLink.rb +11 -0
- data/examples/v2/teams/DeleteTeamMembership.rb +8 -0
- data/examples/v2/teams/GetTeam.rb +8 -0
- data/examples/v2/teams/GetTeamLink.rb +11 -0
- data/examples/v2/teams/GetTeamLinks.rb +8 -0
- data/examples/v2/teams/GetTeamMemberships.rb +8 -0
- data/examples/v2/teams/GetTeamPermissionSettings.rb +8 -0
- data/examples/v2/teams/ListTeams.rb +5 -0
- data/examples/v2/teams/UpdateTeam.rb +20 -0
- data/examples/v2/teams/UpdateTeamLink.rb +21 -0
- data/examples/v2/teams/UpdateTeamMembership.rb +14 -0
- data/examples/v2/teams/UpdateTeamPermissionSetting.rb +17 -0
- data/examples/v2/users/CreateUser.rb +1 -1
- data/lib/datadog_api_client/api_client.rb +2 -2
- data/lib/datadog_api_client/configuration.rb +10 -0
- data/lib/datadog_api_client/inflector.rb +126 -0
- data/lib/datadog_api_client/v1/api/dashboards_api.rb +482 -0
- data/lib/datadog_api_client/v1/api/downtimes_api.rb +2 -0
- data/lib/datadog_api_client/v1/api/monitors_api.rb +3 -3
- data/lib/datadog_api_client/v1/api/synthetics_api.rb +2 -2
- data/lib/datadog_api_client/v1/api/usage_metering_api.rb +9 -6
- data/lib/datadog_api_client/v1/models/check_can_delete_monitor_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/dashboard.rb +25 -1
- data/lib/datadog_api_client/v1/models/dashboard_global_time.rb +91 -0
- data/lib/datadog_api_client/v1/models/dashboard_global_time_live_span.rb +33 -0
- data/lib/datadog_api_client/v1/models/dashboard_invite_type.rb +26 -0
- data/lib/datadog_api_client/v1/models/dashboard_share_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/dashboard_type.rb +27 -0
- data/lib/datadog_api_client/v1/models/delete_shared_dashboard_response.rb +91 -0
- data/lib/datadog_api_client/v1/models/distribution_point_item.rb +1 -1
- data/lib/datadog_api_client/v1/models/distribution_widget_histogram_request_query.rb +1 -1
- data/lib/datadog_api_client/v1/models/downtime.rb +1 -0
- data/lib/datadog_api_client/v1/models/downtime_child.rb +1 -0
- data/lib/datadog_api_client/v1/models/formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/host.rb +8 -0
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_body.rb +19 -1
- data/lib/datadog_api_client/v1/models/hourly_usage_attribution_usage_type.rb +2 -0
- data/lib/datadog_api_client/v1/models/logs_list_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/logs_processor.rb +1 -1
- data/lib/datadog_api_client/v1/models/metrics_query_metadata.rb +2 -2
- data/lib/datadog_api_client/v1/models/monitor_formula_and_function_query_definition.rb +1 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_body.rb +19 -1
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_supported_metrics.rb +4 -0
- data/lib/datadog_api_client/v1/models/monthly_usage_attribution_values.rb +46 -6
- data/lib/datadog_api_client/v1/models/notebook_cell_create_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_response_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_cell_update_request_attributes.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_global_time.rb +1 -1
- data/lib/datadog_api_client/v1/models/notebook_update_cell.rb +1 -1
- data/lib/datadog_api_client/v1/models/selectable_template_variable_items.rb +131 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard.rb +228 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_author.rb +109 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites.rb +112 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data.rb +63 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object.rb +123 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_data_object_attributes.rb +149 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta.rb +91 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_invites_meta_page.rb +91 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_update_request.rb +147 -0
- data/lib/datadog_api_client/v1/models/shared_dashboard_update_request_global_time.rb +91 -0
- data/lib/datadog_api_client/v1/models/slo_correction_response_attributes.rb +3 -0
- data/lib/datadog_api_client/v1/models/slo_creator.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_monitor.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_response.rb +8 -0
- data/lib/datadog_api_client/v1/models/slo_history_sli_data.rb +9 -0
- data/lib/datadog_api_client/v1/models/sunburst_widget_legend.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_assertion.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_basic_auth.rb +1 -1
- data/lib/datadog_api_client/v1/models/synthetics_test_request.rb +11 -1
- data/lib/datadog_api_client/v1/models/usage_attribution_body.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_billable_summary_keys.rb +7 -7
- data/lib/datadog_api_client/v1/models/usage_ci_visibility_hour.rb +11 -0
- data/lib/datadog_api_client/v1/models/usage_cws_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_fargate_hour.rb +11 -0
- data/lib/datadog_api_client/v1/models/usage_host_hour.rb +22 -0
- data/lib/datadog_api_client/v1/models/usage_incident_management_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_lambda_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_logs_hour.rb +26 -1
- data/lib/datadog_api_client/v1/models/usage_online_archive_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_profiling_hour.rb +9 -0
- data/lib/datadog_api_client/v1/models/usage_rum_units_hour.rb +2 -0
- data/lib/datadog_api_client/v1/models/usage_snmp_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_summary_date.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_date_org.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_summary_response.rb +21 -1
- data/lib/datadog_api_client/v1/models/usage_synthetics_api_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_synthetics_browser_hour.rb +8 -0
- data/lib/datadog_api_client/v1/models/usage_top_avg_metrics_pagination.rb +1 -0
- data/lib/datadog_api_client/v1/models/widget_definition.rb +1 -1
- data/lib/datadog_api_client/v2/api/incidents_api.rb +409 -0
- data/lib/datadog_api_client/v2/api/restriction_policies_api.rb +9 -0
- data/lib/datadog_api_client/v2/api/service_definition_api.rb +25 -0
- data/lib/datadog_api_client/v2/api/spans_metrics_api.rb +357 -0
- data/lib/datadog_api_client/v2/api/teams_api.rb +1166 -0
- data/lib/datadog_api_client/v2/api/usage_metering_api.rb +1 -1
- data/lib/datadog_api_client/v2/models/api_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/application_key_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/authn_mapping_included.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/ci_app_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/cloud_configuration_rule_compliance_signal_options.rb +9 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_creator_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/cloud_workload_security_agent_rule_updater_attributes.rb +8 -0
- data/lib/datadog_api_client/v2/models/confluent_account_resource_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/confluent_resource_request_attributes.rb +12 -1
- data/lib/datadog_api_client/v2/models/creator.rb +8 -0
- data/lib/datadog_api_client/v2/models/dashboard_list_item.rb +8 -0
- data/lib/datadog_api_client/v2/models/get_team_memberships_sort.rb +33 -0
- data/lib/datadog_api_client/v2/models/incident_attachment_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachment_update_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_attachments_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_field_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_metadata.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_integration_metadata_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_search_response.rb +14 -4
- data/lib/datadog_api_client/v2/models/incident_search_response_meta.rb +91 -0
- data/lib/datadog_api_client/v2/models/incident_service_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_team_included_items.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_timeline_cell_create_attributes.rb +1 -1
- data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee.rb +165 -0
- data/lib/datadog_api_client/v2/models/incident_todo_anonymous_assignee_source.rb +27 -0
- data/lib/datadog_api_client/v2/models/incident_todo_assignee.rb +63 -0
- data/lib/datadog_api_client/v2/models/incident_todo_attributes.rb +164 -0
- data/lib/datadog_api_client/v2/models/incident_todo_create_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_todo_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_todo_list_response.rb +126 -0
- data/lib/datadog_api_client/v2/models/incident_todo_patch_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/incident_todo_patch_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response.rb +114 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_data.rb +133 -0
- data/lib/datadog_api_client/v2/models/incident_todo_response_included_item.rb +62 -0
- data/lib/datadog_api_client/v2/models/incident_todo_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/list_teams_include.rb +27 -0
- data/lib/datadog_api_client/v2/models/list_teams_sort.rb +29 -0
- data/lib/datadog_api_client/v2/models/logs_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_create_request_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_archive_destination.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/logs_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/metric_volumes.rb +1 -1
- data/lib/datadog_api_client/v2/models/metrics_and_metric_tag_configurations.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy.rb +1 -1
- data/lib/datadog_api_client/v2/models/monitor_config_policy_policy_create_request.rb +1 -1
- data/lib/datadog_api_client/v2/models/relationship_to_team_link_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_team_links.rb +93 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission.rb +91 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_permission_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_user.rb +102 -0
- data/lib/datadog_api_client/v2/models/relationship_to_user_team_user_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/rum_aggregate_bucket_value.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_missing.rb +1 -1
- data/lib/datadog_api_client/v2/models/rum_group_by_total.rb +1 -1
- data/lib/datadog_api_client/v2/models/scalar_column.rb +1 -1
- data/lib/datadog_api_client/v2/models/scalar_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_create_payload.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_rule_response.rb +1 -1
- data/lib/datadog_api_client/v2/models/security_monitoring_triage_user.rb +8 -0
- data/lib/datadog_api_client/v2/models/sensitive_data_scanner_get_config_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/service_definition_schema.rb +3 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_contact.rb +3 -2
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1.rb +229 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_contact.rb +64 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_email_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_integrations.rb +101 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link.rb +154 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_link_type.rb +30 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_ms_teams_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie.rb +112 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_opsgenie_region.rb +27 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_pagerduty.rb +91 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_slack_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_dot1_version.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams.rb +133 -0
- data/lib/datadog_api_client/v2/models/service_definition_v2_ms_teams_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/service_definitions_create_request.rb +2 -1
- data/lib/datadog_api_client/v2/models/spans_metric_compute.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_metric_compute_aggregation_type.rb +27 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_attributes.rb +124 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/spans_metric_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_metric_filter.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_group_by.rb +112 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_attributes.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_compute.rb +112 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_data.rb +111 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_filter.rb +91 -0
- data/lib/datadog_api_client/v2/models/spans_metric_response_group_by.rb +101 -0
- data/lib/datadog_api_client/v2/models/spans_metric_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_attributes.rb +113 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_compute.rb +92 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_data.rb +123 -0
- data/lib/datadog_api_client/v2/models/spans_metric_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/spans_metrics_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team.rb +154 -0
- data/lib/datadog_api_client/v2/models/team_attributes.rb +233 -0
- data/lib/datadog_api_client/v2/models/team_create.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_create_attributes.rb +162 -0
- data/lib/datadog_api_client/v2/models/team_create_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_data.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_included.rb +64 -0
- data/lib/datadog_api_client/v2/models/team_link.rb +144 -0
- data/lib/datadog_api_client/v2/models/team_link_attributes.rb +158 -0
- data/lib/datadog_api_client/v2/models/team_link_create.rb +123 -0
- data/lib/datadog_api_client/v2/models/team_link_create_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_link_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_link_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_links_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_attributes.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_serializer_action.rb +27 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update.rb +112 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/team_permission_setting_value.rb +30 -0
- data/lib/datadog_api_client/v2/models/team_permission_settings_response.rb +93 -0
- data/lib/datadog_api_client/v2/models/team_relationships.rb +101 -0
- data/lib/datadog_api_client/v2/models/team_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/team_update.rb +133 -0
- data/lib/datadog_api_client/v2/models/team_update_attributes.rb +187 -0
- data/lib/datadog_api_client/v2/models/team_update_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/team_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/teams_response.rb +105 -0
- data/lib/datadog_api_client/v2/models/timeseries_query.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_response_included_item.rb +1 -1
- data/lib/datadog_api_client/v2/models/user_team.rb +143 -0
- data/lib/datadog_api_client/v2/models/user_team_attributes.rb +99 -0
- data/lib/datadog_api_client/v2/models/user_team_create.rb +122 -0
- data/lib/datadog_api_client/v2/models/user_team_permission.rb +133 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_attributes.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_permission_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_relationships.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/user_team_response.rb +91 -0
- data/lib/datadog_api_client/v2/models/user_team_role.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_team_update.rb +112 -0
- data/lib/datadog_api_client/v2/models/user_team_update_request.rb +102 -0
- data/lib/datadog_api_client/v2/models/user_team_user_type.rb +26 -0
- data/lib/datadog_api_client/v2/models/user_teams_response.rb +93 -0
- data/lib/datadog_api_client/version.rb +1 -1
- metadata +167 -2
@@ -0,0 +1,123 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The new span-based metric properties.
|
21
|
+
class SpansMetricUpdateData
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# The span-based metric properties that will be updated.
|
29
|
+
attr_reader :attributes
|
30
|
+
|
31
|
+
# The type of resource. The value should always be spans_metrics.
|
32
|
+
attr_reader :type
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
# @!visibility private
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'attributes' => :'attributes',
|
39
|
+
:'type' => :'type'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
# @!visibility private
|
45
|
+
def self.openapi_types
|
46
|
+
{
|
47
|
+
:'attributes' => :'SpansMetricUpdateAttributes',
|
48
|
+
:'type' => :'SpansMetricType'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
54
|
+
# @!visibility private
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateData` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateData`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'attributes')
|
69
|
+
self.attributes = attributes[:'attributes']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'type')
|
73
|
+
self.type = attributes[:'type']
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
# @!visibility private
|
80
|
+
def valid?
|
81
|
+
return false if @attributes.nil?
|
82
|
+
return false if @type.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param attributes [Object] Object to be assigned
|
88
|
+
# @!visibility private
|
89
|
+
def attributes=(attributes)
|
90
|
+
if attributes.nil?
|
91
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
92
|
+
end
|
93
|
+
@attributes = attributes
|
94
|
+
end
|
95
|
+
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param type [Object] Object to be assigned
|
98
|
+
# @!visibility private
|
99
|
+
def type=(type)
|
100
|
+
if type.nil?
|
101
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
102
|
+
end
|
103
|
+
@type = type
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param o [Object] Object to be compared
|
108
|
+
# @!visibility private
|
109
|
+
def ==(o)
|
110
|
+
return true if self.equal?(o)
|
111
|
+
self.class == o.class &&
|
112
|
+
attributes == o.attributes &&
|
113
|
+
type == o.type
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
# @!visibility private
|
119
|
+
def hash
|
120
|
+
[attributes, type].hash
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# The new span-based metric body.
|
21
|
+
class SpansMetricUpdateRequest
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# The new span-based metric properties.
|
29
|
+
attr_reader :data
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
# @!visibility private
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'data' => :'data'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'data' => :'SpansMetricUpdateData'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
49
|
+
# @!visibility private
|
50
|
+
def initialize(attributes = {})
|
51
|
+
if (!attributes.is_a?(Hash))
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricUpdateRequest` initialize method"
|
53
|
+
end
|
54
|
+
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
end
|
60
|
+
h[k.to_sym] = v
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
self.data = attributes[:'data']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Check to see if the all the properties in the model are valid
|
69
|
+
# @return true if the model is valid
|
70
|
+
# @!visibility private
|
71
|
+
def valid?
|
72
|
+
return false if @data.nil?
|
73
|
+
true
|
74
|
+
end
|
75
|
+
|
76
|
+
# Custom attribute writer method with validation
|
77
|
+
# @param data [Object] Object to be assigned
|
78
|
+
# @!visibility private
|
79
|
+
def data=(data)
|
80
|
+
if data.nil?
|
81
|
+
fail ArgumentError, 'invalid value for "data", data cannot be nil.'
|
82
|
+
end
|
83
|
+
@data = data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param o [Object] Object to be compared
|
88
|
+
# @!visibility private
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
data == o.data
|
93
|
+
end
|
94
|
+
|
95
|
+
# Calculates hash code according to all attributes.
|
96
|
+
# @return [Integer] Hash code
|
97
|
+
# @!visibility private
|
98
|
+
def hash
|
99
|
+
[data].hash
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# All the available span-based metric objects.
|
21
|
+
class SpansMetricsResponse
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# A list of span-based metric objects.
|
29
|
+
attr_accessor :data
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
# @!visibility private
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'data' => :'data'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
# @!visibility private
|
41
|
+
def self.openapi_types
|
42
|
+
{
|
43
|
+
:'data' => :'Array<SpansMetricResponseData>'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
49
|
+
# @!visibility private
|
50
|
+
def initialize(attributes = {})
|
51
|
+
if (!attributes.is_a?(Hash))
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::SpansMetricsResponse` initialize method"
|
53
|
+
end
|
54
|
+
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::SpansMetricsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
end
|
60
|
+
h[k.to_sym] = v
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'data')
|
64
|
+
if (value = attributes[:'data']).is_a?(Array)
|
65
|
+
self.data = value
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Check to see if the all the properties in the model are valid
|
71
|
+
# @return true if the model is valid
|
72
|
+
# @!visibility private
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param o [Object] Object to be compared
|
79
|
+
# @!visibility private
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
data == o.data
|
84
|
+
end
|
85
|
+
|
86
|
+
# Calculates hash code according to all attributes.
|
87
|
+
# @return [Integer] Hash code
|
88
|
+
# @!visibility private
|
89
|
+
def hash
|
90
|
+
[data].hash
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,154 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# A team
|
21
|
+
class Team
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# Team attributes
|
29
|
+
attr_reader :attributes
|
30
|
+
|
31
|
+
# The team's identifier
|
32
|
+
attr_reader :id
|
33
|
+
|
34
|
+
# Resources related to a team
|
35
|
+
attr_accessor :relationships
|
36
|
+
|
37
|
+
# Team type
|
38
|
+
attr_reader :type
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
# @!visibility private
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'attributes' => :'attributes',
|
45
|
+
:'id' => :'id',
|
46
|
+
:'relationships' => :'relationships',
|
47
|
+
:'type' => :'type'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Attribute type mapping.
|
52
|
+
# @!visibility private
|
53
|
+
def self.openapi_types
|
54
|
+
{
|
55
|
+
:'attributes' => :'TeamAttributes',
|
56
|
+
:'id' => :'String',
|
57
|
+
:'relationships' => :'TeamRelationships',
|
58
|
+
:'type' => :'TeamType'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
64
|
+
# @!visibility private
|
65
|
+
def initialize(attributes = {})
|
66
|
+
if (!attributes.is_a?(Hash))
|
67
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::Team` initialize method"
|
68
|
+
end
|
69
|
+
|
70
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::Team`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
74
|
+
end
|
75
|
+
h[k.to_sym] = v
|
76
|
+
}
|
77
|
+
|
78
|
+
if attributes.key?(:'attributes')
|
79
|
+
self.attributes = attributes[:'attributes']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'id')
|
83
|
+
self.id = attributes[:'id']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'relationships')
|
87
|
+
self.relationships = attributes[:'relationships']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'type')
|
91
|
+
self.type = attributes[:'type']
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# Check to see if the all the properties in the model are valid
|
96
|
+
# @return true if the model is valid
|
97
|
+
# @!visibility private
|
98
|
+
def valid?
|
99
|
+
return false if @attributes.nil?
|
100
|
+
return false if @id.nil?
|
101
|
+
return false if @type.nil?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param attributes [Object] Object to be assigned
|
107
|
+
# @!visibility private
|
108
|
+
def attributes=(attributes)
|
109
|
+
if attributes.nil?
|
110
|
+
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
|
111
|
+
end
|
112
|
+
@attributes = attributes
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method with validation
|
116
|
+
# @param id [Object] Object to be assigned
|
117
|
+
# @!visibility private
|
118
|
+
def id=(id)
|
119
|
+
if id.nil?
|
120
|
+
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
|
121
|
+
end
|
122
|
+
@id = id
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param type [Object] Object to be assigned
|
127
|
+
# @!visibility private
|
128
|
+
def type=(type)
|
129
|
+
if type.nil?
|
130
|
+
fail ArgumentError, 'invalid value for "type", type cannot be nil.'
|
131
|
+
end
|
132
|
+
@type = type
|
133
|
+
end
|
134
|
+
|
135
|
+
# Checks equality by comparing each attribute.
|
136
|
+
# @param o [Object] Object to be compared
|
137
|
+
# @!visibility private
|
138
|
+
def ==(o)
|
139
|
+
return true if self.equal?(o)
|
140
|
+
self.class == o.class &&
|
141
|
+
attributes == o.attributes &&
|
142
|
+
id == o.id &&
|
143
|
+
relationships == o.relationships &&
|
144
|
+
type == o.type
|
145
|
+
end
|
146
|
+
|
147
|
+
# Calculates hash code according to all attributes.
|
148
|
+
# @return [Integer] Hash code
|
149
|
+
# @!visibility private
|
150
|
+
def hash
|
151
|
+
[attributes, id, relationships, type].hash
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -0,0 +1,233 @@
|
|
1
|
+
=begin
|
2
|
+
#Datadog API V2 Collection
|
3
|
+
|
4
|
+
#Collection of all Datadog Public endpoints.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: support@datadoghq.com
|
8
|
+
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
|
9
|
+
|
10
|
+
Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
|
11
|
+
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
12
|
+
Copyright 2020-Present Datadog, Inc.
|
13
|
+
|
14
|
+
=end
|
15
|
+
|
16
|
+
require 'date'
|
17
|
+
require 'time'
|
18
|
+
|
19
|
+
module DatadogAPIClient::V2
|
20
|
+
# Team attributes
|
21
|
+
class TeamAttributes
|
22
|
+
include BaseGenericModel
|
23
|
+
|
24
|
+
# Whether the object has unparsed attributes
|
25
|
+
# @!visibility private
|
26
|
+
attr_accessor :_unparsed
|
27
|
+
|
28
|
+
# Creation date of the team
|
29
|
+
attr_accessor :created_at
|
30
|
+
|
31
|
+
# Free-form markdown description/content for the team's homepage
|
32
|
+
attr_accessor :description
|
33
|
+
|
34
|
+
# The team's identifier
|
35
|
+
attr_reader :handle
|
36
|
+
|
37
|
+
# The number of links belonging to the team
|
38
|
+
attr_reader :link_count
|
39
|
+
|
40
|
+
# Modification date of the team
|
41
|
+
attr_accessor :modified_at
|
42
|
+
|
43
|
+
# The name of the team
|
44
|
+
attr_reader :name
|
45
|
+
|
46
|
+
# A brief summary of the team, derived from the `description`
|
47
|
+
attr_reader :summary
|
48
|
+
|
49
|
+
# The number of users belonging to the team
|
50
|
+
attr_reader :user_count
|
51
|
+
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
53
|
+
# @!visibility private
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'created_at' => :'created_at',
|
57
|
+
:'description' => :'description',
|
58
|
+
:'handle' => :'handle',
|
59
|
+
:'link_count' => :'link_count',
|
60
|
+
:'modified_at' => :'modified_at',
|
61
|
+
:'name' => :'name',
|
62
|
+
:'summary' => :'summary',
|
63
|
+
:'user_count' => :'user_count'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute type mapping.
|
68
|
+
# @!visibility private
|
69
|
+
def self.openapi_types
|
70
|
+
{
|
71
|
+
:'created_at' => :'Time',
|
72
|
+
:'description' => :'String',
|
73
|
+
:'handle' => :'String',
|
74
|
+
:'link_count' => :'Integer',
|
75
|
+
:'modified_at' => :'Time',
|
76
|
+
:'name' => :'String',
|
77
|
+
:'summary' => :'String',
|
78
|
+
:'user_count' => :'Integer'
|
79
|
+
}
|
80
|
+
end
|
81
|
+
|
82
|
+
# List of attributes with nullable: true
|
83
|
+
# @!visibility private
|
84
|
+
def self.openapi_nullable
|
85
|
+
Set.new([
|
86
|
+
:'description',
|
87
|
+
:'summary',
|
88
|
+
])
|
89
|
+
end
|
90
|
+
|
91
|
+
# Initializes the object
|
92
|
+
# @param attributes [Hash] Model attributes in the form of hash
|
93
|
+
# @!visibility private
|
94
|
+
def initialize(attributes = {})
|
95
|
+
if (!attributes.is_a?(Hash))
|
96
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::TeamAttributes` initialize method"
|
97
|
+
end
|
98
|
+
|
99
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
100
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
101
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
102
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::TeamAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
103
|
+
end
|
104
|
+
h[k.to_sym] = v
|
105
|
+
}
|
106
|
+
|
107
|
+
if attributes.key?(:'created_at')
|
108
|
+
self.created_at = attributes[:'created_at']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'description')
|
112
|
+
self.description = attributes[:'description']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'handle')
|
116
|
+
self.handle = attributes[:'handle']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'link_count')
|
120
|
+
self.link_count = attributes[:'link_count']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'modified_at')
|
124
|
+
self.modified_at = attributes[:'modified_at']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'name')
|
128
|
+
self.name = attributes[:'name']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'summary')
|
132
|
+
self.summary = attributes[:'summary']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'user_count')
|
136
|
+
self.user_count = attributes[:'user_count']
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# Check to see if the all the properties in the model are valid
|
141
|
+
# @return true if the model is valid
|
142
|
+
# @!visibility private
|
143
|
+
def valid?
|
144
|
+
return false if @handle.nil?
|
145
|
+
return false if @handle.to_s.length > 64
|
146
|
+
return false if !@link_count.nil? && @link_count > 2147483647
|
147
|
+
return false if @name.nil?
|
148
|
+
return false if @name.to_s.length > 64
|
149
|
+
return false if !@summary.nil? && @summary.to_s.length > 120
|
150
|
+
return false if !@user_count.nil? && @user_count > 2147483647
|
151
|
+
true
|
152
|
+
end
|
153
|
+
|
154
|
+
# Custom attribute writer method with validation
|
155
|
+
# @param handle [Object] Object to be assigned
|
156
|
+
# @!visibility private
|
157
|
+
def handle=(handle)
|
158
|
+
if handle.nil?
|
159
|
+
fail ArgumentError, 'invalid value for "handle", handle cannot be nil.'
|
160
|
+
end
|
161
|
+
if handle.to_s.length > 64
|
162
|
+
fail ArgumentError, 'invalid value for "handle", the character length must be smaller than or equal to 64.'
|
163
|
+
end
|
164
|
+
@handle = handle
|
165
|
+
end
|
166
|
+
|
167
|
+
# Custom attribute writer method with validation
|
168
|
+
# @param link_count [Object] Object to be assigned
|
169
|
+
# @!visibility private
|
170
|
+
def link_count=(link_count)
|
171
|
+
if !link_count.nil? && link_count > 2147483647
|
172
|
+
fail ArgumentError, 'invalid value for "link_count", must be smaller than or equal to 2147483647.'
|
173
|
+
end
|
174
|
+
@link_count = link_count
|
175
|
+
end
|
176
|
+
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param name [Object] Object to be assigned
|
179
|
+
# @!visibility private
|
180
|
+
def name=(name)
|
181
|
+
if name.nil?
|
182
|
+
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
|
183
|
+
end
|
184
|
+
if name.to_s.length > 64
|
185
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
186
|
+
end
|
187
|
+
@name = name
|
188
|
+
end
|
189
|
+
|
190
|
+
# Custom attribute writer method with validation
|
191
|
+
# @param summary [Object] Object to be assigned
|
192
|
+
# @!visibility private
|
193
|
+
def summary=(summary)
|
194
|
+
if !summary.nil? && summary.to_s.length > 120
|
195
|
+
fail ArgumentError, 'invalid value for "summary", the character length must be smaller than or equal to 120.'
|
196
|
+
end
|
197
|
+
@summary = summary
|
198
|
+
end
|
199
|
+
|
200
|
+
# Custom attribute writer method with validation
|
201
|
+
# @param user_count [Object] Object to be assigned
|
202
|
+
# @!visibility private
|
203
|
+
def user_count=(user_count)
|
204
|
+
if !user_count.nil? && user_count > 2147483647
|
205
|
+
fail ArgumentError, 'invalid value for "user_count", must be smaller than or equal to 2147483647.'
|
206
|
+
end
|
207
|
+
@user_count = user_count
|
208
|
+
end
|
209
|
+
|
210
|
+
# Checks equality by comparing each attribute.
|
211
|
+
# @param o [Object] Object to be compared
|
212
|
+
# @!visibility private
|
213
|
+
def ==(o)
|
214
|
+
return true if self.equal?(o)
|
215
|
+
self.class == o.class &&
|
216
|
+
created_at == o.created_at &&
|
217
|
+
description == o.description &&
|
218
|
+
handle == o.handle &&
|
219
|
+
link_count == o.link_count &&
|
220
|
+
modified_at == o.modified_at &&
|
221
|
+
name == o.name &&
|
222
|
+
summary == o.summary &&
|
223
|
+
user_count == o.user_count
|
224
|
+
end
|
225
|
+
|
226
|
+
# Calculates hash code according to all attributes.
|
227
|
+
# @return [Integer] Hash code
|
228
|
+
# @!visibility private
|
229
|
+
def hash
|
230
|
+
[created_at, description, handle, link_count, modified_at, name, summary, user_count].hash
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|