Bonjour j’ai un fichier json mais lorsque j’execute mon script voici l’erreur : error":“json: cannot unmarshal object into Go value of type synthetic_monitoring.Check”
voici mon fichier json : {
“id”: “123”,
“name”: “Mon Check”,
“target”: “http://example.com”,
“locations”: [“location1”, “location2”],
“frequency”: 60,
“timeout”: 10,
“basic_auth_user”: “username”,
“basic_auth_password”: “password”,
“labels”: [“label1”, “label2”],
“created_at”: {
“seconds”: 1632451200,
“nanos”: 0
},
“updated_at”: {
“seconds”: 1632451200,
“nanos”: 0
}
}
comment faire ?