Method: legacy.legacyGetRuleCounts

Full name: projects.locations.instances.legacy.legacyGetRuleCounts

RPC to get rule counts.

HTTP request


Path parameters

Parameters
instance

string

Required. The name of the parent resource, which is the SecOps instance the resource belongs to. Format: projects/{project}/locations/{location}/instances/{instance}

Request body

The request body must be empty.

Response body

A legacy rpc response for rule count stats.

If successful, the response body contains data with the following structure:

JSON representation
{
  "totalActiveCount": integer,
  "totalArchivedCount": integer,
  "totalLiveRuleCountsPerRuleType": [
    {
      object (UserFacingRuleTypeToCount)
    }
  ],
  "maxLiveRuleCountsPerRuleType": [
    {
      object (UserFacingRuleTypeToCount)
    }
  ],
  "totalLiveRuleCount": integer,
  "maxLiveRuleCount": integer,
  "chronicleRulesQuotaLimit": integer,
  "chronicleRulesQuotaUsage": integer
}
Fields
totalActiveCount

integer

Number of active rules for a customer.

totalArchivedCount

integer

Number of archived rules for a customer.

totalLiveRuleCountsPerRuleType[]

object (UserFacingRuleTypeToCount)

Total rule count of all enabled Live Rules, per RuleType.

maxLiveRuleCountsPerRuleType[]

object (UserFacingRuleTypeToCount)

Maximum rule count of all enabled Live Rules, per RuleType.

totalLiveRuleCount

integer

Total rule count

maxLiveRuleCount

integer

Maximum rule count

chronicleRulesQuotaLimit

integer

Chronicle rules quota limit.

chronicleRulesQuotaUsage

integer

Chronicle rules quota usage.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the instance resource:

  • chronicle.legacies.legacyGetRuleCounts

For more information, see the IAM documentation.

UserFacingRuleTypeToCount

JSON representation
{
  "type": enum (UserFacingRuleType),
  "count": integer
}
Fields
type

enum (UserFacingRuleType)

count

integer