- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- UdmQueryFeedback
- YLRuleFeedback
- FeedbackType
- Try it!
Full name: projects.locations.instances.createFeedback
RPC to submit user feedback on content generated by Malachite Atlas services.
HTTP request
POST https://chronicle.googleapis.com/v1alpha/{instance}:createFeedback
Path parameters
Parameters | |
---|---|
instance |
Required. The Chronicle instance associated with the request. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "type": enum ( |
Fields | |
---|---|
type |
Optional. Feedback type. |
comment |
Optional. Feedback comment. |
Union field metadata . The feedback metadata associated with the user feedback. metadata can be only one of the following: |
|
udm_query_feedback |
Feedback metadata for UDM query translation. |
yl_rule_feedback |
Feedback metadata for Yara-L rule translation. |
Response body
Response message for CreateFeedback.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{ "feedback_id": string } |
Fields | |
---|---|
feedback_id |
Unique ID for this translation. Currently only used for audit logging purpose only. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the instance
resource:
chronicle.ais.createFeedback
For more information, see the IAM documentation.
UdmQueryFeedback
UdmQueryFeedback contains metadata for the feedback submitted on UDM query translation.
JSON representation |
---|
{ "original_input_text": string, "original_output_query": string, "rewritten_query": string } |
Fields | |
---|---|
original_input_text |
Required. The original natural language text used for the translation. |
original_output_query |
Optional. Original UDM query returned by the translation. |
rewritten_query |
Optional. Rewritten UDM query (if modified). |
YLRuleFeedback
YLRuleFeedback contains metadata for the feedback submitted on Yara-L rule translation.
JSON representation |
---|
{ "original_input_description": string, "original_input_query": string, "original_output_rule": string, "rewritten_rule": string } |
Fields | |
---|---|
original_input_description |
Required. The original natural language description used for the translation. |
original_input_query |
Optional. The original UDM query used for the rule generation. |
original_output_rule |
Optional. Original Yara-L rule returned by the translation. |
rewritten_rule |
Optional. Rewritten Yara-L rule text (if modified). |
FeedbackType
Feedback types.
Enums | |
---|---|
FEEDBACK_TYPE_UNKNOWN |
Unknown feedback. |
POSITIVE |
Positive feedback. |
NEGATIVE |
Negative feedback. |
REWRITE |
Negative feedback with a rewritten answer. |
DISCARD |
Indicates a generated response was discarded. |