brendankeeler
09/07/2023, 6:25 PM{
action
U
agent
[...]
meta
{
project
<UUID>
}
outcome
4
outcomeDesc
Too Many Requests
recorded
2023-09-07T17:53:44.339Z
resourceType
AuditEvent
service
flexpa_medplum
source
stdout
subtype
[
{
code
update
display
update
system
http://hl7.org/fhir/restful-interaction
}
]
timestamp
1694109224340
type
{
code
rest
display
Restful Operation
system
http://terminology.hl7.org/CodeSystem/audit-event-type
}
}
For an issue like the above, it'd be valuable to include the resource ID (for this particular outcome, where it was due to writing to a resource too frequently as we load versioned history). In all creates or updates, it would be amazing to include at least resource type from the request.
This isn't possible today, is it?rahul1
09/07/2023, 10:41 PMreshma
10/23/2023, 9:17 PMjoshua_kelly
10/31/2023, 3:17 AMlatest Docker tag for some time (re-deploying frequently), so just trying to narrow down when it was releasedjoshua_kelly
10/31/2023, 3:17 AMreshma
10/31/2023, 6:34 PMjakxz
10/31/2023, 9:23 PMjakxz
10/31/2023, 9:29 PM{
"agent": [
{
"requestor": true,
"who": {
"reference": "ClientApplication/xxxx-a9f0d0448f1a",
"display": "flexpa-client"
}
}
],
"source": "stdout",
"type": {
"system": "http://terminology.hl7.org/CodeSystem/audit-event-type",
"code": "rest",
"display": "Restful Operation"
},
"recorded": "2023-10-31T18:29:10.270Z",
"subtype": [
{
"system": "http://hl7.org/fhir/restful-interaction",
"code": "update",
"display": "update"
}
],
"service": "flexpa_medplum",
"meta": {
"project": "xxxx-7db1d71a27ae"
},
"outcomeDesc": "Invalid additional property \"identifier\" (identifier)",
"action": "U",
"outcome": "4",
"timestamp": 1698776950271,
"resourceType": "AuditEvent"
}
I can see that we are incorrectly adding an additional property to some resource, but I'm not sure which resource 😅rahul1
10/31/2023, 10:56 PMrahul1
10/31/2023, 10:58 PMjoshua_kelly
11/01/2023, 12:55 AMjoshua_kelly
11/01/2023, 1:04 AMrahul1
11/01/2023, 1:10 AMjoshua_kelly
11/01/2023, 1:13 AMasync updateResource<T extends Resource>(resource: T)
So we can pass the resource to logEvent: this.logEvent(UpdateInteraction, AuditEventOutcome.MinorFailure, err, resource);joshua_kelly
11/01/2023, 1:19 AM