public interface TelegrafsService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Void> |
deleteTelegrafsID(String telegrafID,
String zapTraceSpan)
Delete a Telegraf configuration
|
retrofit2.Call<Void> |
deleteTelegrafsIDLabelsID(String telegrafID,
String labelID,
String zapTraceSpan)
Delete a label from a Telegraf config
|
retrofit2.Call<Void> |
deleteTelegrafsIDMembersID(String userID,
String telegrafID,
String zapTraceSpan)
Remove a member from a Telegraf config
|
retrofit2.Call<Void> |
deleteTelegrafsIDOwnersID(String userID,
String telegrafID,
String zapTraceSpan)
Remove an owner from a Telegraf config
|
retrofit2.Call<Telegrafs> |
getTelegrafs(String zapTraceSpan,
String orgID)
List all Telegraf configurations
|
retrofit2.Call<String> |
getTelegrafsID(String telegrafID,
String zapTraceSpan,
String accept)
Retrieve a Telegraf configuration
|
retrofit2.Call<LabelsResponse> |
getTelegrafsIDLabels(String telegrafID,
String zapTraceSpan)
List all labels for a Telegraf config
|
retrofit2.Call<ResourceMembers> |
getTelegrafsIDMembers(String telegrafID,
String zapTraceSpan)
List all users with member privileges for a Telegraf config
|
retrofit2.Call<ResourceOwners> |
getTelegrafsIDOwners(String telegrafID,
String zapTraceSpan)
List all owners of a Telegraf configuration
|
retrofit2.Call<okhttp3.ResponseBody> |
getTelegrafsIDResponseBody(String telegrafID,
String zapTraceSpan,
String accept)
Retrieve a Telegraf configuration
|
retrofit2.Call<String> |
getTelegrafsIDString(String telegrafID,
String zapTraceSpan,
String accept)
Retrieve a Telegraf configuration
|
retrofit2.Call<Telegraf> |
getTelegrafsIDTelegraf(String telegrafID,
String zapTraceSpan,
String accept)
Retrieve a Telegraf configuration
|
retrofit2.Call<Telegraf> |
postTelegrafs(TelegrafPluginRequest telegrafPluginRequest,
String zapTraceSpan)
Create a Telegraf configuration
|
retrofit2.Call<LabelResponse> |
postTelegrafsIDLabels(String telegrafID,
LabelMapping labelMapping,
String zapTraceSpan)
Add a label to a Telegraf config
|
retrofit2.Call<ResourceMember> |
postTelegrafsIDMembers(String telegrafID,
AddResourceMemberRequestBody addResourceMemberRequestBody,
String zapTraceSpan)
Add a member to a Telegraf config
|
retrofit2.Call<ResourceOwner> |
postTelegrafsIDOwners(String telegrafID,
AddResourceMemberRequestBody addResourceMemberRequestBody,
String zapTraceSpan)
Add an owner to a Telegraf configuration
|
retrofit2.Call<Telegraf> |
putTelegrafsID(String telegrafID,
TelegrafPluginRequest telegrafPluginRequest,
String zapTraceSpan)
Update a Telegraf configuration
|
@DELETE(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<Void> deleteTelegrafsID(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)@DELETE(value="api/v2/telegrafs/{telegrafID}/labels/{labelID}")
retrofit2.Call<Void> deleteTelegrafsIDLabelsID(@Path(value="telegrafID")
String telegrafID,
@Path(value="labelID")
String labelID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)labelID - The label ID. (required)zapTraceSpan - OpenTracing span context (optional)@DELETE(value="api/v2/telegrafs/{telegrafID}/members/{userID}")
retrofit2.Call<Void> deleteTelegrafsIDMembersID(@Path(value="userID")
String userID,
@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
userID - The ID of the member to remove. (required)telegrafID - The Telegraf config ID. (required)zapTraceSpan - OpenTracing span context (optional)@DELETE(value="api/v2/telegrafs/{telegrafID}/owners/{userID}")
retrofit2.Call<Void> deleteTelegrafsIDOwnersID(@Path(value="userID")
String userID,
@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
userID - The ID of the owner to remove. (required)telegrafID - The Telegraf config ID. (required)zapTraceSpan - OpenTracing span context (optional)@GET(value="api/v2/telegrafs") retrofit2.Call<Telegrafs> getTelegrafs(@Header(value="Zap-Trace-Span") String zapTraceSpan, @Query(value="orgID") String orgID)
zapTraceSpan - OpenTracing span context (optional)orgID - The organization ID the Telegraf config belongs to. (optional)@GET(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<String> getTelegrafsID(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan,
@Header(value="Accept")
String accept)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)accept - (optional, default to application/toml)@GET(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<okhttp3.ResponseBody> getTelegrafsIDResponseBody(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan,
@Header(value="Accept")
String accept)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)accept - (optional, default to application/toml)@GET(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<String> getTelegrafsIDString(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan,
@Header(value="Accept")
String accept)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)accept - (optional, default to application/toml)@GET(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<Telegraf> getTelegrafsIDTelegraf(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan,
@Header(value="Accept")
String accept)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)accept - (optional, default to application/toml)@GET(value="api/v2/telegrafs/{telegrafID}/labels")
retrofit2.Call<LabelsResponse> getTelegrafsIDLabels(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)zapTraceSpan - OpenTracing span context (optional)@GET(value="api/v2/telegrafs/{telegrafID}/members")
retrofit2.Call<ResourceMembers> getTelegrafsIDMembers(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)zapTraceSpan - OpenTracing span context (optional)@GET(value="api/v2/telegrafs/{telegrafID}/owners")
retrofit2.Call<ResourceOwners> getTelegrafsIDOwners(@Path(value="telegrafID")
String telegrafID,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf configuration ID. (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/telegrafs") retrofit2.Call<Telegraf> postTelegrafs(@Body TelegrafPluginRequest telegrafPluginRequest, @Header(value="Zap-Trace-Span") String zapTraceSpan)
telegrafPluginRequest - Telegraf configuration to create (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json")
@POST(value="api/v2/telegrafs/{telegrafID}/labels")
retrofit2.Call<LabelResponse> postTelegrafsIDLabels(@Path(value="telegrafID")
String telegrafID,
@Body
LabelMapping labelMapping,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)labelMapping - Label to add (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json")
@POST(value="api/v2/telegrafs/{telegrafID}/members")
retrofit2.Call<ResourceMember> postTelegrafsIDMembers(@Path(value="telegrafID")
String telegrafID,
@Body
AddResourceMemberRequestBody addResourceMemberRequestBody,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)addResourceMemberRequestBody - User to add as member (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json")
@POST(value="api/v2/telegrafs/{telegrafID}/owners")
retrofit2.Call<ResourceOwner> postTelegrafsIDOwners(@Path(value="telegrafID")
String telegrafID,
@Body
AddResourceMemberRequestBody addResourceMemberRequestBody,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf configuration ID. (required)addResourceMemberRequestBody - User to add as owner (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json")
@PUT(value="api/v2/telegrafs/{telegrafID}")
retrofit2.Call<Telegraf> putTelegrafsID(@Path(value="telegrafID")
String telegrafID,
@Body
TelegrafPluginRequest telegrafPluginRequest,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
telegrafID - The Telegraf config ID. (required)telegrafPluginRequest - Telegraf configuration update to apply (required)zapTraceSpan - OpenTracing span context (optional)Copyright © 2018–2023 InfluxData, Inc.. All rights reserved.