Skip to content

Commit

Permalink
docs(client_libs): update code examples for v3 client to new Point API (
Browse files Browse the repository at this point in the history
  • Loading branch information
bednar authored Oct 26, 2023
1 parent 407a31e commit 5ca2e71
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
24 changes: 12 additions & 12 deletions src/homepageExperience/components/steps/csharp/WriteDataSql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ export const WriteDataSqlComponent = (props: OwnProps) => {
var points = new[]
{
PointData.Measurement("census")
.AddTag("location", "Klamath")
.AddField("bees", 23),
.SetTag("location", "Klamath")
.SetField("bees", 23),
PointData.Measurement("census")
.AddTag("location", "Portland")
.AddField("ants", 30),
.SetTag("location", "Portland")
.SetField("ants", 30),
PointData.Measurement("census")
.AddTag("location", "Klamath")
.AddField("bees", 28),
.SetTag("location", "Klamath")
.SetField("bees", 28),
PointData.Measurement("census")
.AddTag("location", "Portland")
.AddField("ants", 32),
.SetTag("location", "Portland")
.SetField("ants", 32),
PointData.Measurement("census")
.AddTag("location", "Klamath")
.AddField("bees", 29),
.SetTag("location", "Klamath")
.SetField("bees", 29),
PointData.Measurement("census")
.AddTag("location", "Portland")
.AddField("ants", 40)
.SetTag("location", "Portland")
.SetField("ants", 40)
};
foreach (var point in points)
Expand Down
36 changes: 18 additions & 18 deletions src/homepageExperience/components/steps/nodejs/WriteDataSql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,24 @@ export const WriteDataSqlComponent = (props: OwnProps) => {
const points =
[
new Point("census")
.tag("location", "Klamath")
.intField("bees", 23),
new Point("census")
.tag("location", "Portland")
.intField("ants", 30),
new Point("census")
.tag("location", "Klamath")
.intField("bees", 28),
new Point("census")
.tag("location", "Portland")
.intField("ants", 32),
new Point("census")
.tag("location", "Klamath")
.intField("bees", 29),
new Point("census")
.tag("location", "Portland")
.intField("ants", 40)
Point.measurement("census")
.setTag("location", "Klamath")
.setIntegerField("bees", 23),
Point.measurement("census")
.setTag("location", "Portland")
.setIntegerField("ants", 30),
Point.measurement("census")
.setTag("location", "Klamath")
.setIntegerField("bees", 28),
Point.measurement("census")
.setTag("location", "Portland")
.setIntegerField("ants", 32),
Point.measurement("census")
.setTag("location", "Klamath")
.setIntegerField("bees", 29),
Point.measurement("census")
.setTag("location", "Portland")
.setIntegerField("ants", 40)
];
for (let i = 0; i < points.length; i++) {
Expand Down

0 comments on commit 5ca2e71

Please sign in to comment.