Skip to content

Commit

Permalink
reverse usage of utf-8 in README introduced in commit da73108
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Nov 17, 2022
1 parent 28c0f26 commit 72a7f55
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ $ cli4 --post [email protected] /zones/:example.com/dns_records/import
}
$
```

### Zone file upload (i.e. import) Python examples (uses BIND format files)

Because `import` is a reserved word in Python there needs to be a slight workaround to calling this within code.
Expand Down Expand Up @@ -1106,42 +1106,42 @@ The `cli4` command along with the Python libaries can be used to control the ins

To query the states of the instant logs:
```
$ cli4 /zones/:███████████.com/logpush/edge/jobs | jq .
$ cli4 /zones/:example.com/logpush/edge/jobs | jq .
[]
$
```

To add monitoring:
```
$ cli4 --post \
='{
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID",
"sample": 1,
"filter": "",
"kind": "instant-logs"
}' \
/zones/:███████████.com/logpush/edge/jobs | jq .
='{
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID",
"sample": 1,
"filter": "",
"kind": "instant-logs"
}' \
/zones/:example.com/logpush/edge/jobs | jq .
{
"destination_conf": "wss://logs.cloudflare.com/instant-logs/ws/sessions/████████████████████████████████",
"destination_conf": "wss://logs.cloudflare.com/instant-logs/ws/sessions/00000000000000000000000000000000",
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID",
"filter": "",
"kind": "instant-logs",
"sample": 1,
"session_id": "████████████████████████████████"
"session_id": "00000000000000000000000000000000"
}
$
```

To see the results:
```
$ cli4 /zones/:███████████.com/logpush/edge/jobs | jq .
$ cli4 /zones/:example.com/logpush/edge/jobs | jq .
[
{
"fields": "ClientIP,ClientRequestHost,ClientRequestMethod,ClientRequestURI,EdgeEndTimestamp,EdgeResponseBytes,EdgeResponseStatus,EdgeStartTimestamp,RayID",
"filter": "",
"kind": "instant-logs",
"sample": 1,
"session_id": "████████████████████████████████"
"session_id": "00000000000000000000000000000000"
}
]
$
Expand Down

0 comments on commit 72a7f55

Please sign in to comment.