/status/incidentsCreate a new system event (admin API, requires admin privileges)
Schema: gitee_com_linmes_authms_micro-services_status-service_internal_handler_dto.CreateIncidentRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
severity |
object |
Yes | major |
||
status |
object |
Yes | investigating |
||
title |
string |
Yes | Authentication service response latency increased |
||
affected_services |
array of string |
No | ['["identity-service"', '"session-service"]'] |
||
description |
string |
No | Some users report slow login endpoint response |
| Status | Description | Schema |
|---|---|---|
| 201 | Event created successfully | gitee_com_linmes_authms_micro-services_status-service_internal_handler_dto.IncidentDataResponse |
| 400 | Invalid request parameters | dto.Problem |
| 401 | Unauthorized, please login first | dto.Problem |
| 403 | Forbidden, requires admin role | dto.Problem |
| 404 | Resource not found | dto.Problem |
| 500 | Internal server error | dto.Problem |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
string |
No | Code is the error code (optional). Used for programmatic identification of error types, e.g., "required", "format", "range" | ||
description |
string |
No | Description is a human-readable error description. Should explain which rule was violated, e.g., "Must be a valid email address" | ||
field |
string |
No | Field is the path to the error field. Use dot notation for nested fields, e.g., "user.email" or "addresses[0].city" | ||
value |
object |
No | Value is the value that caused the error (optional, used in development mode). May not be returned in production to avoid leaking sensitive information |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | Code is the business error code. Used for programmatic handling of specific error scenarios. Example: 30101001 | ||
detail |
string |
No | Detail is a human-readable explanation for this specific error instance. May include specific error details, e.g., "Field 'email' is required" | ||
errors |
array of |
No | Errors is a list of field-level validation errors (extended field). Follows Web API standard practices, each error contains field name and error message | ||
i18n_args |
object |
No | I18nArgs are internationalization arguments. Used to dynamically populate translation templates | ||
i18n_key |
string |
No | I18nKey is the internationalization key. Used for client-side localization of error messages. Example: "error.user_not_found" | ||
instance |
string |
No | Instance is the specific URI reference where the problem occurred. Usually the request URL, may include query parameters. Example: "/api/v1/users?limit=invalid" | ||
request_id |
string |
No | RequestID is the unique request identifier. Used for log correlation and issue tracking. Example: "req_550e8400-e29b-41d4-a716-446655440000" | ||
retry_after |
integer |
No | RetryAfter is used for 429 Too Many Requests responses. Indicates how many seconds the client should wait before retrying (RFC 6585) | ||
service |
string |
No | Service is the service name. Used in microservice architecture to locate the error source. Example: "auth-service" | ||
span_id |
string |
No | SpanID is the current span identifier. Used to precisely locate the current node in a distributed trace | ||
status |
integer |
No | Status is the HTTP status code generated. Used by clients to distinguish problem types, does not change with Accept-Language. Example: 400, 401, 403, 404, 500 | ||
timestamp |
string |
No | Timestamp is the time the error occurred. ISO 8601 format. Example: "2026-04-03T12:00:00Z" | ||
title |
string |
No | Title is a short, human-readable summary of the problem type. The same Type should always have the same Title (does not vary per instance). Example: "Invalid Request Parameters" | ||
trace_id |
string |
No | TraceID is the distributed trace identifier. Follows W3C Trace Context standard. Example: "00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01" | ||
type |
string |
No | Type is a URI reference that identifies the problem type. When dereferenced, should provide human-readable documentation. Example: "https://api.example.com/errors/invalid-request" |
string
string
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
gitee_com_linmes_authms_micro-services_status-service_internal_handler_dto.IncidentResponse |
No | |||
message |
string |
No |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
affected_services |
array of string |
No | ['["identity-service"]'] |
||
created_at |
string |
No | 2026-05-20T10:00:00Z |
||
description |
string |
No | Users experiencing slow login responses |
||
id |
string |
No | 01HX5J8K9M2N |
||
resolved_at |
string |
No | |||
severity |
object |
No | major |
||
status |
object |
No | investigating |
||
title |
string |
No | Login Service Latency Increased |
||
updated_at |
string |
No | 2026-05-20T10:30:00Z |
||
updates |
array of See |
No |
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
created_at |
string |
No | 2026-05-20T10:15:00Z |
||
id |
string |
No | 01HX5J9K0A3B |
||
message |
string |
No | Identified database connection pool exhaustion as root cause |
||
status |
object |
No | identified |