Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateAWSCloudWatchIntegration(acwi *integration.AwsCloudWatchIntegration) (*integration.AwsCloudWatchIntegration, error)
- func (c *Client) CreateAzureIntegration(acwi *integration.AzureIntegration) (*integration.AzureIntegration, error)
- func (c *Client) CreateChart(chartRequest *chart.CreateUpdateChartRequest) (*chart.Chart, error)
- func (c *Client) CreateDashboard(dashboardRequest *dashboard.CreateUpdateDashboardRequest) (*dashboard.Dashboard, error)
- func (c *Client) CreateDashboardGroup(dashboardGroupRequest *dashboard_group.CreateUpdateDashboardGroupRequest, ...) (*dashboard_group.DashboardGroup, error)
- func (c *Client) CreateDetector(detectorRequest *detector.CreateUpdateDetectorRequest) (*detector.Detector, error)
- func (c *Client) CreateGCPIntegration(gcpi *integration.GCPIntegration) (*integration.GCPIntegration, error)
- func (c *Client) CreateOpsgenieIntegration(oi *integration.OpsgenieIntegration) (*integration.OpsgenieIntegration, error)
- func (c *Client) CreateOrgToken(tokenRequest *orgtoken.CreateUpdateTokenRequest) (*orgtoken.Token, error)
- func (c *Client) CreatePagerDutyIntegration(pdi *integration.PagerDutyIntegration) (*integration.PagerDutyIntegration, error)
- func (c *Client) CreateSlackIntegration(si *integration.SlackIntegration) (*integration.SlackIntegration, error)
- func (c *Client) CreateTeam(t *team.CreateUpdateTeamRequest) (*team.Team, error)
- func (c *Client) CreateUpdateTag(name string, cutr *metrics_metadata.CreateUpdateTagRequest) (*metrics_metadata.Tag, error)
- func (c *Client) CreateVictorOpsIntegration(oi *integration.VictorOpsIntegration) (*integration.VictorOpsIntegration, error)
- func (c *Client) DeleteAWSCloudWatchIntegration(id string) error
- func (c *Client) DeleteAzureIntegration(id string) error
- func (c *Client) DeleteChart(id string) error
- func (c *Client) DeleteDashboard(id string) error
- func (c *Client) DeleteDashboardGroup(id string) error
- func (c *Client) DeleteDetector(id string) error
- func (c *Client) DeleteGCPIntegration(id string) error
- func (c *Client) DeleteIntegration(id string) error
- func (c *Client) DeleteMember(id string) error
- func (c *Client) DeleteOpsgenieIntegration(id string) error
- func (c *Client) DeleteOrgToken(name string) error
- func (c *Client) DeletePagerDutyIntegration(id string) error
- func (c *Client) DeleteSlackIntegration(id string) error
- func (c *Client) DeleteTag(id string) error
- func (c *Client) DeleteTeam(id string) error
- func (c *Client) DeleteVictorOpsIntegration(id string) error
- func (c *Client) DisableDetector(id string, labels []string) error
- func (c *Client) EnableDetector(id string, labels []string) error
- func (c *Client) GetAWSCloudWatchIntegration(id string) (*integration.AwsCloudWatchIntegration, error)
- func (c *Client) GetAzureIntegration(id string) (*integration.AzureIntegration, error)
- func (c *Client) GetChart(id string) (*chart.Chart, error)
- func (c *Client) GetDashboard(id string) (*dashboard.Dashboard, error)
- func (c *Client) GetDashboardGroup(id string) (*dashboard_group.DashboardGroup, error)
- func (c *Client) GetDetector(id string) (*detector.Detector, error)
- func (c *Client) GetDimension(key string, value string) (*metrics_metadata.Dimension, error)
- func (c *Client) GetGCPIntegration(id string) (*integration.GCPIntegration, error)
- func (c *Client) GetIntegration(id string) (map[string]interface{}, error)
- func (c *Client) GetMember(id string) (*organization.Member, error)
- func (c *Client) GetMetric(name string) (*metrics_metadata.Metric, error)
- func (c *Client) GetMetricTimeSeries(id string) (*metrics_metadata.MetricTimeSeries, error)
- func (c *Client) GetOpsgenieIntegration(id string) (*integration.OpsgenieIntegration, error)
- func (c *Client) GetOrgToken(id string) (*orgtoken.Token, error)
- func (c *Client) GetOrganization(id string) (*organization.Organization, error)
- func (c *Client) GetOrganizationMembers(limit int, query string, offset int, orderBy string) (*organization.MemberSearchResults, error)
- func (c *Client) GetPagerDutyIntegration(id string) (*integration.PagerDutyIntegration, error)
- func (c *Client) GetSlackIntegration(id string) (*integration.SlackIntegration, error)
- func (c *Client) GetTag(name string) (*metrics_metadata.Tag, error)
- func (c *Client) GetTeam(id string) (*team.Team, error)
- func (c *Client) GetVictorOpsIntegration(id string) (*integration.VictorOpsIntegration, error)
- func (c *Client) InviteMember(inviteRequest *organization.CreateUpdateMemberRequest) (*organization.Member, error)
- func (c *Client) InviteMembers(inviteRequest *organization.InviteMembersRequest) (*organization.InviteMembersRequest, error)
- func (c *Client) SearchCharts(limit int, name string, offset int, tags string) (*chart.SearchResult, error)
- func (c *Client) SearchDashboard(limit int, name string, offset int, tags string) (*dashboard.SearchResult, error)
- func (c *Client) SearchDashboardGroups(limit int, name string, offset int) (*dashboard_group.SearchResult, error)
- func (c *Client) SearchDetectors(limit int, name string, offset int, tags string) (*detector.SearchResults, error)
- func (c *Client) SearchDimension(query string, orderBy string, limit int, offset int) (*metrics_metadata.DimensionQueryResponseModel, error)
- func (c *Client) SearchMetric(query string, orderBy string, limit int, offset int) (*metrics_metadata.RetrieveMetricMetadataResponseModel, error)
- func (c *Client) SearchMetricTimeSeries(query string, orderBy string, limit int, offset int) (*metrics_metadata.MetricTimeSeriesRetrieveResponseModel, error)
- func (c *Client) SearchOrgTokens(limit int, name string, offset int) (*orgtoken.SearchResults, error)
- func (c *Client) SearchTag(query string, orderBy string, limit int, offset int) (*metrics_metadata.TagRetrieveResponseModel, error)
- func (c *Client) SearchTeam(limit int, name string, offset int, tags string) (*team.SearchResults, error)
- func (c *Client) SignalFlow(options ...signalflow.ClientParam) (*signalflow.Client, error)
- func (c *Client) UpdateAWSCloudWatchIntegration(id string, acwi *integration.AwsCloudWatchIntegration) (*integration.AwsCloudWatchIntegration, error)
- func (c *Client) UpdateAzureIntegration(id string, acwi *integration.AzureIntegration) (*integration.AzureIntegration, error)
- func (c *Client) UpdateChart(id string, chartRequest *chart.CreateUpdateChartRequest) (*chart.Chart, error)
- func (c *Client) UpdateDashboard(id string, dashboardRequest *dashboard.CreateUpdateDashboardRequest) (*dashboard.Dashboard, error)
- func (c *Client) UpdateDashboardGroup(id string, ...) (*dashboard_group.DashboardGroup, error)
- func (c *Client) UpdateDetector(id string, detectorRequest *detector.CreateUpdateDetectorRequest) (*detector.Detector, error)
- func (c *Client) UpdateDimension(key string, value string, dim *metrics_metadata.Dimension) (*metrics_metadata.Dimension, error)
- func (c *Client) UpdateGCPIntegration(id string, gcpi *integration.GCPIntegration) (*integration.GCPIntegration, error)
- func (c *Client) UpdateOpsgenieIntegration(id string, oi *integration.OpsgenieIntegration) (*integration.OpsgenieIntegration, error)
- func (c *Client) UpdateOrgToken(id string, tokenRequest *orgtoken.CreateUpdateTokenRequest) (*orgtoken.Token, error)
- func (c *Client) UpdatePagerDutyIntegration(id string, pdi *integration.PagerDutyIntegration) (*integration.PagerDutyIntegration, error)
- func (c *Client) UpdateSlackIntegration(id string, si *integration.SlackIntegration) (*integration.SlackIntegration, error)
- func (c *Client) UpdateTeam(id string, t *team.CreateUpdateTeamRequest) (*team.Team, error)
- func (c *Client) UpdateVictorOpsIntegration(id string, oi *integration.VictorOpsIntegration) (*integration.VictorOpsIntegration, error)
- type ClientParam
Constants ¶
const AuthHeaderKey = "X-Sf-Token"
AuthHeaderKey is the HTTP header used to pass along the auth token Note that while HTTP headers are case insensitive this header is case sensitive on the tests for convenience.
const ChartAPIURL = "/v2/chart"
ChartAPIURL is the base URL for interacting with charts.
const DashboardAPIURL = "/v2/dashboard"
DashboardAPIURL is the base URL for interacting with dashboard.
const DashboardGroupAPIURL = "/v2/dashboardgroup"
DashboardGroupAPIURL is the base URL for interacting with dashboard.
const DefaultAPIURL = "https://api.signalfx.com"
DefaultAPIURL is the default URL for making API requests
const DetectorAPIURL = "/v2/detector"
DetectorAPIURL is the base URL for interacting with detectors.
const DimensionAPIURL = "/v2/dimension"
DimensionAPIURL is the base URL for interacting with dimensions.
const IntegrationAPIURL = "/v2/integration"
IntegrationAPIURL is the base URL for interacting with intergrations.
const MetricAPIURL = "/v2/metric"
MetricAPIURL is the base URL for interacting with dimensions.
const MetricTimeSeriesAPIURL = "/v2/metrictimeseries"
MetricTimeSeriesAPIURL is the base URL for interacting with dimensions.
const OrganizationAPIURL = "/v2/organization"
OrganizationAPIURL is the base URL for interacting with detectors.
const OrganizationMemberAPIURL = "/v2/organization/member"
const OrganizationMembersAPIURL = "/v2/organization/members"
const TagAPIURL = "/v2/tag"
TagAPIURL is the base URL for interacting with dimensions.
const TeamAPIURL = "/v2/team"
TeamAPIURL is the base URL for interacting with teams.
const TokenAPIURL = "/v2/token"
TokenAPIURL is the base URL for interacting with org tokens.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a SignalFx API client.
func NewClient ¶
func NewClient(token string, options ...ClientParam) (*Client, error)
NewClient creates a new SignalFx client using the specified token.
func (*Client) CreateAWSCloudWatchIntegration ¶ added in v1.3.0
func (c *Client) CreateAWSCloudWatchIntegration(acwi *integration.AwsCloudWatchIntegration) (*integration.AwsCloudWatchIntegration, error)
CreateAWSCloudWatchIntegration creates an AWS CloudWatch integration.
func (*Client) CreateAzureIntegration ¶ added in v1.4.0
func (c *Client) CreateAzureIntegration(acwi *integration.AzureIntegration) (*integration.AzureIntegration, error)
CreateAzureIntegration creates an Azure integration.
func (*Client) CreateChart ¶
CreateChart creates a chart.
func (*Client) CreateDashboard ¶
func (c *Client) CreateDashboard(dashboardRequest *dashboard.CreateUpdateDashboardRequest) (*dashboard.Dashboard, error)
CreateDashboard creates a dashboard.
func (*Client) CreateDashboardGroup ¶
func (c *Client) CreateDashboardGroup(dashboardGroupRequest *dashboard_group.CreateUpdateDashboardGroupRequest, skipImplicitDashboard bool) (*dashboard_group.DashboardGroup, error)
CreateDashboardGroup creates a dashboard.
func (*Client) CreateDetector ¶
func (c *Client) CreateDetector(detectorRequest *detector.CreateUpdateDetectorRequest) (*detector.Detector, error)
CreateDetector creates a detector.
func (*Client) CreateGCPIntegration ¶ added in v1.6.0
func (c *Client) CreateGCPIntegration(gcpi *integration.GCPIntegration) (*integration.GCPIntegration, error)
CreateGCPIntegration creates a GCP integration.
func (*Client) CreateOpsgenieIntegration ¶ added in v1.6.0
func (c *Client) CreateOpsgenieIntegration(oi *integration.OpsgenieIntegration) (*integration.OpsgenieIntegration, error)
CreateOpsgenieIntegration creates an Opsgenie integration.
func (*Client) CreateOrgToken ¶ added in v1.5.0
func (c *Client) CreateOrgToken(tokenRequest *orgtoken.CreateUpdateTokenRequest) (*orgtoken.Token, error)
CreateOrgToken creates a org token.
func (*Client) CreatePagerDutyIntegration ¶ added in v1.6.0
func (c *Client) CreatePagerDutyIntegration(pdi *integration.PagerDutyIntegration) (*integration.PagerDutyIntegration, error)
CreatePagerDutyIntegration creates a PagerDuty integration.
func (*Client) CreateSlackIntegration ¶ added in v1.6.0
func (c *Client) CreateSlackIntegration(si *integration.SlackIntegration) (*integration.SlackIntegration, error)
CreateSlackIntegration creates a Slack integration.
func (*Client) CreateTeam ¶
CreateTeam creates a team.
func (*Client) CreateUpdateTag ¶
func (c *Client) CreateUpdateTag(name string, cutr *metrics_metadata.CreateUpdateTagRequest) (*metrics_metadata.Tag, error)
CreateUpdateTag creates or updates a dimension.
func (*Client) CreateVictorOpsIntegration ¶ added in v1.6.2
func (c *Client) CreateVictorOpsIntegration(oi *integration.VictorOpsIntegration) (*integration.VictorOpsIntegration, error)
CreateVictorOpsIntegration creates an VictorOps integration.
func (*Client) DeleteAWSCloudWatchIntegration ¶ added in v1.3.0
DeleteAWSCloudWatchIntegration deletes an AWS CloudWatch integration.
func (*Client) DeleteAzureIntegration ¶ added in v1.4.0
DeleteAzureIntegration deletes an Azure integration.
func (*Client) DeleteChart ¶
DeleteChart deletes a chart.
func (*Client) DeleteDashboard ¶
DeleteDashboard deletes a dashboard.
func (*Client) DeleteDashboardGroup ¶
DeleteDashboardGroup deletes a dashboard.
func (*Client) DeleteDetector ¶
DeleteDetector deletes a detector.
func (*Client) DeleteGCPIntegration ¶ added in v1.6.0
DeleteGCPIntegration deletes a GCP integration.
func (*Client) DeleteIntegration ¶
DeleteIntegration deletes an integration.
func (*Client) DeleteMember ¶
DeleteMember deletes a detector.
func (*Client) DeleteOpsgenieIntegration ¶ added in v1.6.0
DeleteOpsgenieIntegration deletes an Opsgenie integration.
func (*Client) DeleteOrgToken ¶ added in v1.5.0
DeleteOrgToken deletes a token.
func (*Client) DeletePagerDutyIntegration ¶ added in v1.6.0
DeletePagerDutyIntegration deletes a PagerDuty integration.
func (*Client) DeleteSlackIntegration ¶ added in v1.6.0
DeleteSlackIntegration deletes a Slack integration.
func (*Client) DeleteVictorOpsIntegration ¶ added in v1.6.2
DeleteVictorOpsIntegration deletes an VictorOps integration.
func (*Client) DisableDetector ¶
DisableDetector disables a detector.
func (*Client) EnableDetector ¶
EnableDetector enables a detector.
func (*Client) GetAWSCloudWatchIntegration ¶ added in v1.3.0
func (c *Client) GetAWSCloudWatchIntegration(id string) (*integration.AwsCloudWatchIntegration, error)
GetAWSCloudWatchIntegration retrieves an AWS CloudWatch integration.
func (*Client) GetAzureIntegration ¶ added in v1.4.0
func (c *Client) GetAzureIntegration(id string) (*integration.AzureIntegration, error)
GetAzureIntegration retrieves an Azure integration.
func (*Client) GetDashboard ¶
GetDashboard gets a dashboard.
func (*Client) GetDashboardGroup ¶
func (c *Client) GetDashboardGroup(id string) (*dashboard_group.DashboardGroup, error)
GetDashboardGroup gets a dashboard group.
func (*Client) GetDetector ¶
GetDetector gets a detector.
func (*Client) GetDimension ¶
GetDimension gets a dimension.
func (*Client) GetGCPIntegration ¶ added in v1.6.0
func (c *Client) GetGCPIntegration(id string) (*integration.GCPIntegration, error)
GetGCPIntegration retrieves a GCP integration.
func (*Client) GetIntegration ¶
GetIntegration gets a integration.
func (*Client) GetMember ¶
func (c *Client) GetMember(id string) (*organization.Member, error)
GetMember gets a member.
func (*Client) GetMetric ¶
func (c *Client) GetMetric(name string) (*metrics_metadata.Metric, error)
GetMetric retrieves a single metric by name.
func (*Client) GetMetricTimeSeries ¶
func (c *Client) GetMetricTimeSeries(id string) (*metrics_metadata.MetricTimeSeries, error)
GetMetricTimeSeries retrieves a metric time series by id.
func (*Client) GetOpsgenieIntegration ¶ added in v1.6.0
func (c *Client) GetOpsgenieIntegration(id string) (*integration.OpsgenieIntegration, error)
GetOpsgenieIntegration retrieves an Opsgenie integration.
func (*Client) GetOrgToken ¶ added in v1.5.0
GetToken gets a token.
func (*Client) GetOrganization ¶
func (c *Client) GetOrganization(id string) (*organization.Organization, error)
GetOrganization gets an organization.
func (*Client) GetOrganizationMembers ¶
func (c *Client) GetOrganizationMembers(limit int, query string, offset int, orderBy string) (*organization.MemberSearchResults, error)
GetOrganizationMembers gets members for an org, with an optional search.
func (*Client) GetPagerDutyIntegration ¶ added in v1.6.0
func (c *Client) GetPagerDutyIntegration(id string) (*integration.PagerDutyIntegration, error)
GetPagerDutyIntegration retrieves a PagerDuty integration.
func (*Client) GetSlackIntegration ¶ added in v1.6.0
func (c *Client) GetSlackIntegration(id string) (*integration.SlackIntegration, error)
GetSlackIntegration retrieves a Slack integration.
func (*Client) GetTag ¶
func (c *Client) GetTag(name string) (*metrics_metadata.Tag, error)
GetTag gets a tag by name
func (*Client) GetVictorOpsIntegration ¶ added in v1.6.2
func (c *Client) GetVictorOpsIntegration(id string) (*integration.VictorOpsIntegration, error)
GetVictorOpsIntegration retrieves an VictorOps integration.
func (*Client) InviteMember ¶
func (c *Client) InviteMember(inviteRequest *organization.CreateUpdateMemberRequest) (*organization.Member, error)
InviteMember invites a member to the organization.
func (*Client) InviteMembers ¶
func (c *Client) InviteMembers(inviteRequest *organization.InviteMembersRequest) (*organization.InviteMembersRequest, error)
InviteMembers invites many members to the organization.
func (*Client) SearchCharts ¶
func (c *Client) SearchCharts(limit int, name string, offset int, tags string) (*chart.SearchResult, error)
SearchCharts searches for charts, given a query string in `name`.
func (*Client) SearchDashboard ¶
func (c *Client) SearchDashboard(limit int, name string, offset int, tags string) (*dashboard.SearchResult, error)
SearchDashboard searches for dashboards, given a query string in `name`.
func (*Client) SearchDashboardGroups ¶
func (c *Client) SearchDashboardGroups(limit int, name string, offset int) (*dashboard_group.SearchResult, error)
SearchDashboardGroup searches for dashboard groups, given a query string in `name`.
func (*Client) SearchDetectors ¶
func (c *Client) SearchDetectors(limit int, name string, offset int, tags string) (*detector.SearchResults, error)
SearchDetector searches for detectors, given a query string in `name`.
func (*Client) SearchDimension ¶
func (c *Client) SearchDimension(query string, orderBy string, limit int, offset int) (*metrics_metadata.DimensionQueryResponseModel, error)
SearchDimension searches for dimensions, given a query string in `query`.
func (*Client) SearchMetric ¶
func (c *Client) SearchMetric(query string, orderBy string, limit int, offset int) (*metrics_metadata.RetrieveMetricMetadataResponseModel, error)
SearchMetric searches for metrics, given a query string in `query`.
func (*Client) SearchMetricTimeSeries ¶
func (c *Client) SearchMetricTimeSeries(query string, orderBy string, limit int, offset int) (*metrics_metadata.MetricTimeSeriesRetrieveResponseModel, error)
SearchMetricTimeSeries searches for metric time series, given a query string in `query`.
func (*Client) SearchOrgTokens ¶ added in v1.5.0
func (c *Client) SearchOrgTokens(limit int, name string, offset int) (*orgtoken.SearchResults, error)
SearchToken searches for tokens given a query string in `name`.
func (*Client) SearchTag ¶
func (c *Client) SearchTag(query string, orderBy string, limit int, offset int) (*metrics_metadata.TagRetrieveResponseModel, error)
SearchTag searches for tags, given a query string in `query`.
func (*Client) SearchTeam ¶
func (c *Client) SearchTeam(limit int, name string, offset int, tags string) (*team.SearchResults, error)
SearchTeam searches for teams, given a query string in `name`.
func (*Client) SignalFlow ¶
func (c *Client) SignalFlow(options ...signalflow.ClientParam) (*signalflow.Client, error)
SignalFlow creates and returns a SignalFlow client that can be used to execute streaming jobs.
func (*Client) UpdateAWSCloudWatchIntegration ¶ added in v1.3.0
func (c *Client) UpdateAWSCloudWatchIntegration(id string, acwi *integration.AwsCloudWatchIntegration) (*integration.AwsCloudWatchIntegration, error)
UpdateAWSCloudWatchIntegration updates an AWS CloudWatch integration.
func (*Client) UpdateAzureIntegration ¶ added in v1.4.0
func (c *Client) UpdateAzureIntegration(id string, acwi *integration.AzureIntegration) (*integration.AzureIntegration, error)
UpdateAzureIntegration updates an Azure integration.
func (*Client) UpdateChart ¶
func (c *Client) UpdateChart(id string, chartRequest *chart.CreateUpdateChartRequest) (*chart.Chart, error)
UpdateChart updates a chart.
func (*Client) UpdateDashboard ¶
func (c *Client) UpdateDashboard(id string, dashboardRequest *dashboard.CreateUpdateDashboardRequest) (*dashboard.Dashboard, error)
UpdateDashboard updates a dashboard.
func (*Client) UpdateDashboardGroup ¶
func (c *Client) UpdateDashboardGroup(id string, dashboardGroupRequest *dashboard_group.CreateUpdateDashboardGroupRequest) (*dashboard_group.DashboardGroup, error)
UpdateDashboardGroup updates a dashboard group.
func (*Client) UpdateDetector ¶
func (c *Client) UpdateDetector(id string, detectorRequest *detector.CreateUpdateDetectorRequest) (*detector.Detector, error)
UpdateDetector updates a detector.
func (*Client) UpdateDimension ¶
func (c *Client) UpdateDimension(key string, value string, dim *metrics_metadata.Dimension) (*metrics_metadata.Dimension, error)
UpdateDimension updates a dimension.
func (*Client) UpdateGCPIntegration ¶ added in v1.6.0
func (c *Client) UpdateGCPIntegration(id string, gcpi *integration.GCPIntegration) (*integration.GCPIntegration, error)
UpdateGCPIntegration updates a GCP integration.
func (*Client) UpdateOpsgenieIntegration ¶ added in v1.6.0
func (c *Client) UpdateOpsgenieIntegration(id string, oi *integration.OpsgenieIntegration) (*integration.OpsgenieIntegration, error)
UpdateOpsgenieIntegration updates an Opsgenie integration.
func (*Client) UpdateOrgToken ¶ added in v1.5.0
func (c *Client) UpdateOrgToken(id string, tokenRequest *orgtoken.CreateUpdateTokenRequest) (*orgtoken.Token, error)
UpdateToken updates a token.
func (*Client) UpdatePagerDutyIntegration ¶ added in v1.6.0
func (c *Client) UpdatePagerDutyIntegration(id string, pdi *integration.PagerDutyIntegration) (*integration.PagerDutyIntegration, error)
UpdatePagerDutyIntegration updates a PagerDuty integration.
func (*Client) UpdateSlackIntegration ¶ added in v1.6.0
func (c *Client) UpdateSlackIntegration(id string, si *integration.SlackIntegration) (*integration.SlackIntegration, error)
UpdateSlackIntegration updates a Slack integration.
func (*Client) UpdateTeam ¶
UpdateTeam updates a team.
func (*Client) UpdateVictorOpsIntegration ¶ added in v1.6.2
func (c *Client) UpdateVictorOpsIntegration(id string, oi *integration.VictorOpsIntegration) (*integration.VictorOpsIntegration, error)
UpdateVictorOpsIntegration updates an VictorOps integration.
type ClientParam ¶
ClientParam is an option for NewClient. Its implementation borrows from Dave Cheney's functional options API (https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis).
func APIUrl ¶
func APIUrl(apiURL string) ClientParam
APIUrl sets the URL that our client will communicate with, allowing it to be adjusted to another URL for testing or communication with other SignalFx clusters.
func HTTPClient ¶
func HTTPClient(httpClient *http.Client) ClientParam
HTTPClient sets the `http.Client` that this API client will use to to communicate. This allows you to replace the client or tune it to your needs.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package signalflow contains a SignalFx SignalFlow client, which can be used to execute analytics jobs against the SignalFx backend.
|
Package signalflow contains a SignalFx SignalFlow client, which can be used to execute analytics jobs against the SignalFx backend. |
example
package main shows a basic usage pattern of the SiganlFlow client.
|
package main shows a basic usage pattern of the SiganlFlow client. |