Class ListWarningsRequest
Implements
Inherited Members
Namespace: Oci.LoganalyticsService.Requests
Assembly: OCI.DotNetSDK.Loganalytics.dll
Syntax
public class ListWarningsRequest : IOciRequest
Examples
Click here to see an example of how to use ListWarnings request.
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[HttpConverter(TargetEnum.Query, "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The ID of the compartment in which to list resources. |
Remarks
Required
EndTime
Declaration
[HttpConverter(TargetEnum.Query, "endTime")]
public string EndTime { get; set; }
Property Value
Type | Description |
---|---|
string | The warning end date query parameter. |
EntityName
Declaration
[HttpConverter(TargetEnum.Query, "entityName")]
public string EntityName { get; set; }
Property Value
Type | Description |
---|---|
string | The entity name used for filtering. Only warnings associated with an entity with the specified name will be returned. |
EntityType
Declaration
[HttpConverter(TargetEnum.Query, "entityType")]
public string EntityType { get; set; }
Property Value
Type | Description |
---|---|
string | The entity type used for filtering. Only associations on an entity with the specified type will be returned. |
IsNoSource
Declaration
[HttpConverter(TargetEnum.Query, "isNoSource")]
public bool? IsNoSource { get; set; }
Property Value
Type | Description |
---|---|
bool? | A flag indicating whether to filter warnings based on source display name or on warning level. A value of true will filter based on warning level (rule, source, or pattern), while a value of false will filter based on source display name. |
Limit
Declaration
[HttpConverter(TargetEnum.Query, "limit")]
public int? Limit { get; set; }
Property Value
Type | Description |
---|---|
int? | The maximum number of items to return. |
NamespaceName
Declaration
[Required(ErrorMessage = "NamespaceName is required.")]
[HttpConverter(TargetEnum.Path, "namespaceName")]
public string NamespaceName { get; set; }
Property Value
Type | Description |
---|---|
string | The Logging Analytics namespace used for the request. |
Remarks
Required
OpcRequestId
Declaration
[HttpConverter(TargetEnum.Header, "opc-request-id")]
public string OpcRequestId { get; set; }
Property Value
Type | Description |
---|---|
string | The client request ID for tracing. |
Page
Declaration
[HttpConverter(TargetEnum.Query, "page")]
public string Page { get; set; }
Property Value
Type | Description |
---|---|
string | The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call. |
SortBy
Declaration
[HttpConverter(TargetEnum.Query, "sortBy")]
public ListWarningsRequest.SortByEnum? SortBy { get; set; }
Property Value
Type | Description |
---|---|
ListWarningsRequest.SortByEnum? | The attribute used to sort the returned warnings |
SortOrder
Declaration
[HttpConverter(TargetEnum.Query, "sortOrder")]
public ListWarningsRequest.SortOrderEnum? SortOrder { get; set; }
Property Value
Type | Description |
---|---|
ListWarningsRequest.SortOrderEnum? | The sort order to use, either ascending ( |
SourceName
Declaration
[HttpConverter(TargetEnum.Query, "sourceName")]
public string SourceName { get; set; }
Property Value
Type | Description |
---|---|
string | The source name. |
SourcePattern
Declaration
[HttpConverter(TargetEnum.Query, "sourcePattern")]
public string SourcePattern { get; set; }
Property Value
Type | Description |
---|---|
string | The source pattern used for filtering. Only warnings associated with a source with the specified pattern will be returned. |
StartTime
Declaration
[HttpConverter(TargetEnum.Query, "startTime")]
public string StartTime { get; set; }
Property Value
Type | Description |
---|---|
string | The warning start date query parameter. |
WarningMessage
Declaration
[HttpConverter(TargetEnum.Query, "warningMessage")]
public string WarningMessage { get; set; }
Property Value
Type | Description |
---|---|
string | warning message query parameter |
WarningState
Declaration
[HttpConverter(TargetEnum.Query, "warningState")]
public ListWarningsRequest.WarningStateEnum? WarningState { get; set; }
Property Value
Type | Description |
---|---|
ListWarningsRequest.WarningStateEnum? | The warning state used for filtering. A value of SUPPRESSED will return only suppressed warnings, a value of UNSUPPRESSED will return only unsuppressed warnings, and a value of ALL will return all warnings regardless of their suppression state. Default is UNSUPPRESSED. |
WarningType
Declaration
[HttpConverter(TargetEnum.Query, "warningType")]
public string WarningType { get; set; }
Property Value
Type | Description |
---|---|
string | The warning type query parameter. |