Skip to content

Commit 3a4cc93

Browse files
github-actions[bot]Seppli11
authored andcommitted
Update rule metadata (#456)
Co-authored-by: Seppli11 <9285506+Seppli11@users.noreply.github.com> GitOrigin-RevId: 085e34b46eece4b3de59c366946fad9b71eb8eae
1 parent 84391c8 commit 3a4cc93

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S7609.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p>This rule raises and issue when AWS CloudWatch <code>put_metric_data</code> namespace begins with <code>AWS/</code></p>
1+
<p>This rule raises an issue when AWS CloudWatch <code>put_metric_data</code> namespace begins with <code>AWS/</code></p>
22
<h2>Why is this an issue?</h2>
33
<p>AWS CloudWatch has reserved namespaces that begin with 'AWS/' for its own internal services and metrics. These namespaces are used by AWS to
44
publish official service metrics such as EC2 instance metrics, Lambda function metrics, S3 bucket metrics, and others. When you attempt to publish
@@ -7,8 +7,8 @@ <h2>Why is this an issue?</h2>
77
<h3>What is the potential impact?</h3>
88
<p>Using AWS service namespaces can lead to metric publishing failures, data corruption, or unexpected behavior in CloudWatch dashboards. It may also
99
cause confusion between your custom metrics and official AWS service metrics, making monitoring and troubleshooting more difficult. Additionally, AWS
10-
may reject such metric publications or they may interfere with existing service metrics.</p>
11-
<h2>How to fix it in boto3</h2>
10+
may reject such metric publications, or they may interfere with existing service metrics.</p>
11+
<h2>How to fix it in Boto3</h2>
1212
<p>Use a custom namespace that does not begin with 'AWS/' when publishing metrics with CloudWatch. Choose a meaningful namespace that reflects your
1313
application or service name, such as 'MyApp/', 'CustomService/', or your organization name.</p>
1414
<h3>Code examples</h3>
@@ -87,9 +87,9 @@ <h4>Compliant solution</h4>
8787
<h2>Resources</h2>
8888
<h3>Documentation</h3>
8989
<ul>
90-
<li> <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html">AWS CloudWatch PutMetricData API
91-
Reference</a> </li>
92-
<li> <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace">CloudWatch Concepts -
93-
Namespaces</a> </li>
90+
<li> AWS Documentation - <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html">AWS CloudWatch
91+
PutMetricData API Reference</a> </li>
92+
<li> AWS Documentation - <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace">CloudWatch
93+
Concepts - Namespaces</a> </li>
9494
</ul>
9595

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S7609.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"func": "Constant\/Issue",
77
"constantCost": "5min"
88
},
9-
"tags": [],
9+
"tags": [
10+
"aws"
11+
],
1012
"defaultSeverity": "Major",
1113
"ruleSpecification": "RSPEC-7609",
1214
"sqKey": "S7609",

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S7621.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"aws"
1111
],
1212
"defaultSeverity": "Major",
13-
"ruleSpecification": "RSPEC-S7621",
13+
"ruleSpecification": "RSPEC-7621",
1414
"sqKey": "S7621",
1515
"scope": "Main",
1616
"quickfix": "infeasible",

sonarpedia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"PY"
55
],
6-
"latest-update": "2025-08-14T09:27:55.988002910Z",
6+
"latest-update": "2025-08-18T14:36:17.206114098Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": true

0 commit comments

Comments
 (0)