Sha256: 343c77e78f10329a8732e47ac7fd66be8c13d3a4a406a8479d55be4fbe2952cd
Contents?: true
Size: 1.24 KB
Versions: 8
Compression:
Stored size: 1.24 KB
Contents
# Create a case returns "CREATED" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::CaseManagementAPI.new # there is a valid "user" in the system USER_DATA_ID = ENV["USER_DATA_ID"] body = DatadogAPIClient::V2::CaseCreateRequest.new({ data: DatadogAPIClient::V2::CaseCreate.new({ attributes: DatadogAPIClient::V2::CaseCreateAttributes.new({ priority: DatadogAPIClient::V2::CasePriority::NOT_DEFINED, title: "Security breach investigation in 0cfbc5cbc676ee71", type: DatadogAPIClient::V2::CaseType::STANDARD, }), relationships: DatadogAPIClient::V2::CaseCreateRelationships.new({ assignee: DatadogAPIClient::V2::NullableUserRelationship.new({ data: DatadogAPIClient::V2::NullableUserRelationshipData.new({ id: USER_DATA_ID, type: DatadogAPIClient::V2::UserResourceType::USER, }), }), project: DatadogAPIClient::V2::ProjectRelationship.new({ data: DatadogAPIClient::V2::ProjectRelationshipData.new({ id: "d4bbe1af-f36e-42f1-87c1-493ca35c320e", type: DatadogAPIClient::V2::ProjectResourceType::PROJECT, }), }), }), type: DatadogAPIClient::V2::CaseResourceType::CASE, }), }) p api_instance.create_case(body)
Version data entries
8 entries across 8 versions & 1 rubygems