Class: Aws::CloudWatch::Types::InsightRule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb

Overview

This structure contains the definition for a Contributor Insights rule. For more information about this rule, see Using Constributor Insights to analyze high-cardinality data in the Amazon CloudWatch User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#definitionString

The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax.

Returns:

  • (String)


1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1736

class InsightRule < Struct.new(
  :name,
  :state,
  :schema,
  :definition,
  :managed_rule)
  SENSITIVE = []
  include Aws::Structure
end

#managed_ruleBoolean

An optional built-in rule that Amazon Web Services manages.

Returns:

  • (Boolean)


1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1736

class InsightRule < Struct.new(
  :name,
  :state,
  :schema,
  :definition,
  :managed_rule)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the rule.

Returns:

  • (String)


1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1736

class InsightRule < Struct.new(
  :name,
  :state,
  :schema,
  :definition,
  :managed_rule)
  SENSITIVE = []
  include Aws::Structure
end

#schemaString

For rules that you create, this is always \{"Name": "CloudWatchLogRule", "Version": 1\}. For managed rules, this is \{"Name": "ServiceLogRule", "Version": 1\}

Returns:

  • (String)


1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1736

class InsightRule < Struct.new(
  :name,
  :state,
  :schema,
  :definition,
  :managed_rule)
  SENSITIVE = []
  include Aws::Structure
end

#stateString

Indicates whether the rule is enabled or disabled.

Returns:

  • (String)


1736
1737
1738
1739
1740
1741
1742
1743
1744
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1736

class InsightRule < Struct.new(
  :name,
  :state,
  :schema,
  :definition,
  :managed_rule)
  SENSITIVE = []
  include Aws::Structure
end