Skip to content

Commit a1855b5

Browse files
Merge pull request #22935 from newrelic/newrelic.notification.sendSlack-updates
Made the changes to the actions catalog
2 parents f8a6586 + fcf0ea4 commit a1855b5

File tree

24 files changed

+2447
-2547
lines changed

24 files changed

+2447
-2547
lines changed

src/content/docs/workflow-automation/setup-and-configuration/actions-catalog/auth/auth-jwt-create.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,22 @@ Create a JSON Web Token
149149

150150
<TabsPageItem id="httpdeleteexample">
151151
```yaml
152-
name: create-json-web-token
153-
description: ""
154-
steps:
155-
- name: auth_jwt_create_1
156-
type: action
157-
action: auth.jwt.create
158-
version: "1"
159-
inputs:
160-
algorithm: RS256
161-
privateKey: ${{ :secrets:namespace:privatekey}}
162-
headers:
163-
header1: value1
164-
claims:
165-
claim1: value1
166-
expirationTimeMinutes: 10
167-
next: end
152+
name: create-json-web-token
153+
description: ""
154+
steps:
155+
- name: auth_jwt_create_1
156+
type: action
157+
action: auth.jwt.create
158+
version: "1"
159+
inputs:
160+
algorithm: RS256
161+
privateKey: ${{ :secrets:namespace:privatekey}}
162+
headers:
163+
header1: value1
164+
claims:
165+
claim1: value1
166+
expirationTimeMinutes: 10
167+
next: end
168168
```
169169
</TabsPageItem>
170170
</TabsPages>

src/content/docs/workflow-automation/setup-and-configuration/actions-catalog/aws/aws-cloudwatch.mdx

Lines changed: 91 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
3030

3131
<CollapserGroup>
3232
<Collapser
33-
id="aws-cloudwatch-getlogevents"
33+
id="aws.cloudWatch.getLogEvents"
3434
title="Get CloudWatch log events"
3535
>
3636
Retrieves a batch of log events from a specified log stream in AWS CloudWatch Logs. It's essential for monitoring, auditing, and troubleshooting applications by programmatically fetching log data.
@@ -162,19 +162,19 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
162162
<td>**response**</td>
163163
<td>Object</td>
164164
<td>
165-
```yaml
166-
{
167-
'events': [
168-
{
169-
'timestamp': 123,
170-
'message': 'string',
171-
'ingestionTime': 123
172-
},
173-
],
174-
'nextForwardToken': 'string',
175-
'nextBackwardToken': 'string'
176-
}
177-
```
165+
```yaml
166+
{
167+
'events': [
168+
{
169+
'timestamp': 123,
170+
'message': 'string',
171+
'ingestionTime': 123
172+
},
173+
],
174+
'nextForwardToken': 'string',
175+
'nextBackwardToken': 'string'
176+
}
177+
```
178178
</td>
179179
</tr>
180180
<tr>
@@ -193,37 +193,38 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
193193

194194
<TabsPageItem id="aws-cloudwatch-getlogevents-example">
195195

196-
```yaml
197-
name: get-lambda-logs
198-
description: 'Retrieve log events from an AWS Lambda function'
199-
workflowInputs:
200-
region:
201-
type: String
202-
defaultValue: us-east-2
203-
logGroupName:
204-
type: String
205-
defaultValue: /aws/lambda/my-function
206-
logStreamName:
207-
type: String
208-
defaultValue: 2023/10/27/[$LATEST]abcdef123456
209-
steps:
210-
name: get_events_step
211-
type: action
212-
action: aws.cloudwatch.get_log_events
213-
version: '1'
214-
inputs:
215-
region: ${{ .workflowInputs.region }}
216-
logGroupName: ${{ .workflowInputs.logGroupName }}
217-
logStreamName: ${{ .workflowInputs.logStreamName }}
218-
limit: 100
219-
```
196+
```yaml
197+
name: get-lambda-logs
198+
description: 'Retrieve log events from an AWS Lambda function'
199+
workflowInputs:
200+
region:
201+
type: String
202+
defaultValue: us-east-2
203+
logGroupName:
204+
type: String
205+
defaultValue: /aws/lambda/my-function
206+
logStreamName:
207+
type: String
208+
defaultValue: 2023/10/27/[$LATEST]abcdef123456
209+
steps:
210+
name: get_events_step
211+
type: action
212+
action: aws.cloudwatch.get_log_events
213+
version: '1'
214+
inputs:
215+
region: ${{ .workflowInputs.region }}
216+
logGroupName: ${{ .workflowInputs.logGroupName }}
217+
logStreamName: ${{ .workflowInputs.logStreamName }}
218+
limit: 100
219+
220+
```
220221
</TabsPageItem>
221222
</TabsPages>
222223
</Tabs>
223224
</Collapser>
224225

225226
<Collapser
226-
id="aws-cloudwatch-putlogevents"
227+
id="aws.cloudwatch.putLogEvents"
227228
title="Put log events"
228229
>
229230
This uploads a batch of log events to the specified log stream in AWS CloudWatch Logs. It is used for programmatically sending log data from applications or services to CloudWatch for monitoring and analysis.
@@ -299,7 +300,15 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
299300
<td>**logEvents**</td>
300301
<td>Required</td>
301302
<td>List</td>
302-
<td>`[ { "timestamp": 1698384000000, "message": "Workflow task started." }, { "timestamp": 1698384000015, "message": "Data validated successfully." } ]`</td>
303+
<td>
304+
```yaml
305+
[
306+
307+
{ "timestamp": 1698384000000, "message": "Workflow task started." },
308+
309+
{ "timestamp": 1698384000015, "message": "Data validated successfully." } ]
310+
```
311+
</td>
303312
</tr>
304313
<tr>
305314
<td>**entity**</td>
@@ -327,19 +336,19 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
327336
<td>Object</td>
328337
<td>The raw JSON response, which includes the `nextSequenceToken`.</td>
329338
<td>
330-
```yaml
331-
{
332-
'nextSequenceToken': 'string',
333-
'rejectedLogEventsInfo': {
334-
'tooNewLogEventStartIndex': 123,
335-
'tooOldLogEventEndIndex': 123,
336-
'expiredLogEventEndIndex': 123
337-
},
338-
'rejectedEntityInfo': {
339-
'errorType': 'InvalidEntity'|'InvalidTypeValue'|'InvalidKeyAttributes'|'InvalidAttributes'|'EntitySizeTooLarge'|'UnsupportedLogGroupType'|'MissingRequiredFields'
340-
}
339+
```yaml
340+
{
341+
'nextSequenceToken': 'string',
342+
'rejectedLogEventsInfo': {
343+
'tooNewLogEventStartIndex': 123,
344+
'tooOldLogEventEndIndex': 123,
345+
'expiredLogEventEndIndex': 123
346+
},
347+
'rejectedEntityInfo': {
348+
'errorType': 'InvalidEntity'|'InvalidTypeValue'|'InvalidKeyAttributes'|'InvalidAttributes'|'EntitySizeTooLarge'|'UnsupportedLogGroupType'|'MissingRequiredFields'
341349
}
342-
```
350+
}
351+
```
343352
</td>
344353
</tr>
345354
<tr>
@@ -368,37 +377,37 @@ See [Set up AWS credentials](/docs/workflow-automation/setup-and-configuration/s
368377
<tbody>
369378
<tr>
370379
<td>
371-
```yaml
372-
name: put-custom-logs
373-
description: 'Upload a batch of custom log events to CloudWatch'
380+
```yaml
381+
name: put-custom-logs
382+
description: 'Upload a batch of custom log events to CloudWatch'
374383

375-
workflowInputs:
376-
region:
377-
type: String
378-
defaultValue: us-east-2
379-
logGroupName:
380-
type: String
381-
defaultValue: my-custom-app-logs
382-
logStreamName:
383-
type: String
384-
defaultValue: instance-01-thread-01
385-
386-
steps:
387-
- name: upload_logs
388-
type: action
389-
action: aws.cloudwatch.put_log_events
390-
version: '1'
391-
inputs:
392-
region: ${{ .workflowInputs.region }}
393-
logGroupName: ${{ .workflowInputs.logGroupName }}
394-
logStreamName: ${{ .workflowInputs.logStreamName }}
395-
logEvents:
396-
- timestamp: 1698384000000
397-
message: "Workflow started successfully"
398-
- timestamp: 1698384005000
399-
message: "Step 1 completed"
400-
next: end
401-
```
384+
workflowInputs:
385+
region:
386+
type: String
387+
defaultValue: us-east-2
388+
logGroupName:
389+
type: String
390+
defaultValue: my-custom-app-logs
391+
logStreamName:
392+
type: String
393+
defaultValue: instance-01-thread-01
394+
395+
steps:
396+
- name: upload_logs
397+
type: action
398+
action: aws.cloudwatch.put_log_events
399+
version: '1'
400+
inputs:
401+
region: ${{ .workflowInputs.region }}
402+
logGroupName: ${{ .workflowInputs.logGroupName }}
403+
logStreamName: ${{ .workflowInputs.logStreamName }}
404+
logEvents:
405+
- timestamp: 1698384000000
406+
message: "Workflow started successfully"
407+
- timestamp: 1698384005000
408+
message: "Step 1 completed"
409+
next: end
410+
```
402411
</td>
403412
</tr>
404413
</tbody>

0 commit comments

Comments
 (0)