Interface CfnContainer.IMetricPolicyProperty
The metric policy that is associated with the container.
Namespace: Amazon.CDK.AWS.MediaStore
Assembly: Amazon.CDK.AWS.MediaStore.dll
Syntax (csharp)
public interface IMetricPolicyProperty
Syntax (vb)
Public Interface IMetricPolicyProperty
Remarks
A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include rules to define groups of objects that you want MediaStore to send object-level metrics for.
To view examples of how to construct a metric policy for your use case, see Example Metric Policies .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaStore;
var metricPolicyProperty = new MetricPolicyProperty {
ContainerLevelMetrics = "containerLevelMetrics",
// the properties below are optional
MetricPolicyRules = new [] { new MetricPolicyRuleProperty {
ObjectGroup = "objectGroup",
ObjectGroupName = "objectGroupName"
} }
};
Synopsis
Properties
ContainerLevelMetrics | A setting to enable or disable metrics at the container level. |
MetricPolicyRules | A parameter that holds an array of rules that enable metrics at the object level. |
Properties
ContainerLevelMetrics
A setting to enable or disable metrics at the container level.
string ContainerLevelMetrics { get; }
Property Value
System.String
Remarks
MetricPolicyRules
A parameter that holds an array of rules that enable metrics at the object level.
virtual object MetricPolicyRules { get; }
Property Value
System.Object
Remarks
This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.