Class LogsResponse
Response from the Observability service containing logs which match the query
Inherited Members
Namespace: Unity.Services.Apis.Admin.Observability
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "logs-response")]
[Preserve]
public class LogsResponse
Constructors
LogsResponse(int, int, int, List<LogRecord>)
Initializes a new instance of the Logs
Declaration
[Preserve]
public LogsResponse(int offset = 0, int limit = 0, int total = 0, List<LogRecord> results = null)
Parameters
Type | Name | Description |
---|---|---|
int | offset | The offset of records from the start of the query, matches the request. |
int | limit | The maximum number of records that could be returned. |
int | total | The total number of logs for the given project and environment. |
List<Log |
results | The log entries returned by the query. |
Properties
Limit
The maximum number of records that could be returned
Declaration
[DataMember(Name = "limit", EmitDefaultValue = false)]
[Preserve]
public int Limit { get; set; }
Property Value
Type | Description |
---|---|
int | The maximum number of records that could be returned |
Offset
The offset of records from the start of the query, matches the request
Declaration
[DataMember(Name = "offset", EmitDefaultValue = false)]
[Preserve]
public int Offset { get; set; }
Property Value
Type | Description |
---|---|
int | The offset of records from the start of the query, matches the request |
Results
The log entries returned by the query
Declaration
[DataMember(Name = "results", EmitDefaultValue = false)]
[Preserve]
public List<LogRecord> Results { get; set; }
Property Value
Total
The total number of logs for the given project and environment
Declaration
[DataMember(Name = "total", EmitDefaultValue = false)]
[Preserve]
public int Total { get; set; }
Property Value
Type | Description |
---|---|
int | The total number of logs for the given project and environment |