Update actors_api.md

Adding link to between Reminder and Timers
This commit is contained in:
Mark Fussell 2023-05-22 14:14:24 -07:00 committed by GitHub
parent 7b4380be41
commit 0aad16f969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -187,7 +187,7 @@ Creates a persistent reminder for an actor.
POST/PUT http://localhost:<daprPort>/v1.0/actors/<actorType>/<actorId>/reminders/<name> POST/PUT http://localhost:<daprPort>/v1.0/actors/<actorType>/<actorId>/reminders/<name>
``` ```
#### Request Body #### Reminder request body
A JSON object with the following fields: A JSON object with the following fields:
@ -351,7 +351,8 @@ Creates a timer for an actor.
POST/PUT http://localhost:<daprPort>/v1.0/actors/<actorType>/<actorId>/timers/<name> POST/PUT http://localhost:<daprPort>/v1.0/actors/<actorType>/<actorId>/timers/<name>
``` ```
Body: #### Timer request body:
The format for the timer request body is the same as for [actor reminders]({{< ref "#reminder-request-body" >}}). For example:
The following specifies a `dueTime` of 3 seconds and a period of 7 seconds. The following specifies a `dueTime` of 3 seconds and a period of 7 seconds.
@ -492,8 +493,6 @@ Actor settings in configuration for timeouts and intervals use [time.ParseDurati
- `500ms`: A duration of 500 milliseconds - `500ms`: A duration of 500 milliseconds
- `-30m`: A negative duration of 30 minutes - `-30m`: A negative duration of 30 minutes
This format also applies when [creating actor reminders]({{< ref "#request-body" >}}).
{{% /alert %}} {{% /alert %}}
```json ```json