@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
82 lines (81 loc) • 2.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
*
* const dsTest = grafana.connections.getMetricsEndpointScrapeJob({
* stackId: "1",
* name: "my-scrape-job",
* });
* ```
*/
/** @deprecated grafana.index/getconnectionsmetricsendpointscrapejob.getConnectionsMetricsEndpointScrapeJob has been deprecated in favor of grafana.connections/getmetricsendpointscrapejob.getMetricsEndpointScrapeJob */
export declare function getConnectionsMetricsEndpointScrapeJob(args: GetConnectionsMetricsEndpointScrapeJobArgs, opts?: pulumi.InvokeOptions): Promise<GetConnectionsMetricsEndpointScrapeJobResult>;
/**
* A collection of arguments for invoking getConnectionsMetricsEndpointScrapeJob.
*/
export interface GetConnectionsMetricsEndpointScrapeJobArgs {
name: string;
stackId: string;
}
/**
* A collection of values returned by getConnectionsMetricsEndpointScrapeJob.
*/
export interface GetConnectionsMetricsEndpointScrapeJobResult {
/**
* Password for basic authentication.
*/
readonly authenticationBasicPassword: string;
/**
* Username for basic authentication.
*/
readonly authenticationBasicUsername: string;
/**
* Token for authentication bearer.
*/
readonly authenticationBearerToken: string;
/**
* Method to pass authentication credentials: basic or bearer.
*/
readonly authenticationMethod: string;
/**
* Whether the metrics endpoint scrape job is enabled or not.
*/
readonly enabled: boolean;
readonly id: string;
readonly name: string;
/**
* Frequency for scraping the metrics endpoint: 30, 60, or 120 seconds.
*/
readonly scrapeIntervalSeconds: number;
readonly stackId: string;
/**
* The url to scrape metrics.
*/
readonly url: string;
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumi/grafana";
*
* const dsTest = grafana.connections.getMetricsEndpointScrapeJob({
* stackId: "1",
* name: "my-scrape-job",
* });
* ```
*/
/** @deprecated grafana.index/getconnectionsmetricsendpointscrapejob.getConnectionsMetricsEndpointScrapeJob has been deprecated in favor of grafana.connections/getmetricsendpointscrapejob.getMetricsEndpointScrapeJob */
export declare function getConnectionsMetricsEndpointScrapeJobOutput(args: GetConnectionsMetricsEndpointScrapeJobOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetConnectionsMetricsEndpointScrapeJobResult>;
/**
* A collection of arguments for invoking getConnectionsMetricsEndpointScrapeJob.
*/
export interface GetConnectionsMetricsEndpointScrapeJobOutputArgs {
name: pulumi.Input<string>;
stackId: pulumi.Input<string>;
}