send_feedback
async
¶
send_feedback(
case_id: CaseId,
result_id: ResultId,
usefulness: UsefulnessRating,
*,
config_overrides: Optional[AsyncSecurityIRClientConfig] = None,
comment: Optional[FeedbackComment] = None,
) -> SendFeedbackResponse
Send feedback based on response investigation action
Parameters:
-
case_id(CaseId) –Send feedback based on request caseID
-
result_id(ResultId) –Send feedback based on request result ID
-
usefulness(UsefulnessRating) –Required enum value indicating user assessment of result q.....
-
comment(Optional[FeedbackComment], default:None) –Send feedback based on request comments
Raises:
-
AccessDeniedException– -
ConflictException– -
InternalServerException– -
InvalidTokenException– -
ResourceNotFoundException– -
SecurityIncidentResponseNotActiveException– -
ServiceQuotaExceededException– -
ThrottlingException– -
ValidationException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Send positive feedback for investigation result
>>> await client.send_feedback(case_id='8403556009', result_id='inv-polkjhyuty', usefulness='USEFUL', comment='The CloudTrail analysis was very helpful in identifying the root cause of the security incident.')
Send negative feedback with detailed comment
>>> await client.send_feedback(case_id='8403556009', result_id='inv-irutjfhgjk', usefulness='NOT_USEFUL', comment="The investigation results were too generic and didn't provide actionable insights for our specific incident.")
Source code in docs_src/capo_security_ir/_services/async_security_ir.py
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 | |