Interface IncidentListOrBuilder (2.54.0)

public interface IncidentListOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMonitoredResources(int index)

public abstract MonitoredResource getMonitoredResources(int index)

Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.

repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResource

getMonitoredResourcesCount()

public abstract int getMonitoredResourcesCount()

Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.

repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMonitoredResourcesList()

public abstract List<MonitoredResource> getMonitoredResourcesList()

Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.

repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<com.google.api.MonitoredResource>

getMonitoredResourcesOrBuilder(int index)

public abstract MonitoredResourceOrBuilder getMonitoredResourcesOrBuilder(int index)

Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.

repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
com.google.api.MonitoredResourceOrBuilder

getMonitoredResourcesOrBuilderList()

public abstract List<? extends MonitoredResourceOrBuilder> getMonitoredResourcesOrBuilderList()

Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of the resource labels. The resource type and labels are used for filtering.

repeated .google.api.MonitoredResource monitored_resources = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.api.MonitoredResourceOrBuilder>

getPolicyNames(int index)

public abstract String getPolicyNames(int index)

Optional. A list of alert policy names to filter the incident list by. Don't include the project ID prefix in the policy name. For example, use alertPolicies/utilization.

repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The policyNames at the given index.

getPolicyNamesBytes(int index)

public abstract ByteString getPolicyNamesBytes(int index)

Optional. A list of alert policy names to filter the incident list by. Don't include the project ID prefix in the policy name. For example, use alertPolicies/utilization.

repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the policyNames at the given index.

getPolicyNamesCount()

public abstract int getPolicyNamesCount()

Optional. A list of alert policy names to filter the incident list by. Don't include the project ID prefix in the policy name. For example, use alertPolicies/utilization.

repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of policyNames.

getPolicyNamesList()

public abstract List<String> getPolicyNamesList()

Optional. A list of alert policy names to filter the incident list by. Don't include the project ID prefix in the policy name. For example, use alertPolicies/utilization.

repeated string policy_names = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the policyNames.