Skip to content

Commit 0d35a1d

Browse files
committed
Merge pull request influxdata#199 from syscollective/master
Change name to measurement in examples (Thanks @mvintila!)
2 parents 3e1a03c + 0eab673 commit 0d35a1d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def main(host='localhost', port=8086):
1212
query = 'select value from cpu_load_short;'
1313
json_body = [
1414
{
15-
"name": "cpu_load_short",
15+
"measurement": "cpu_load_short",
1616
"tags": {
1717
"host": "server01",
1818
"region": "us-west"

examples/tutorial_server_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def main(host='localhost', port=8086, nb_day=15):
2929
# pointValues = [int(past_date.strftime('%s')), value, hostName]
3030
pointValues = {
3131
"timestamp": int(past_date.strftime('%s')),
32-
"name": metric,
32+
"measurement": metric,
3333
'fields': {
3434
'value': value,
3535
},

examples/tutorial_sine_wave.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def main(host='localhost', port=8086):
2222
y = 10 + math.sin(math.radians(angle)) * 10
2323

2424
point = {
25-
"name": 'foobar',
25+
"measurement": 'foobar',
2626
"timestamp": int(now.strftime('%s')) + angle,
2727
"fields": {
2828
"value": y

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy