All URIs are relative to https://dashboard.quantcdn.io
| Method | HTTP request | Description |
|---|---|---|
| CrawlerSchedulesAdd | Post /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules | Add a new schedule |
| CrawlerSchedulesDelete | Delete /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule} | Delete a schedule |
| CrawlerSchedulesEdit | Patch /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule} | Edit a schedule |
| CrawlerSchedulesList | Get /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules | List schedules for a crawler |
| CrawlerSchedulesShow | Get /api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule} | Show a specific schedule |
V2CrawlerSchedule CrawlerSchedulesAdd(ctx, organization, project, crawler).V2CrawlerScheduleRequest(v2CrawlerScheduleRequest).Execute()
Add a new schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "organization_example" // string | Organization identifier
project := "project_example" // string | Project identifier
crawler := "crawler_example" // string | Crawler identifier
v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("0 2 * * *") // V2CrawlerScheduleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CrawlerSchedulesAPI.CrawlerSchedulesAdd(context.Background(), organization, project, crawler).V2CrawlerScheduleRequest(v2CrawlerScheduleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CrawlerSchedulesAPI.CrawlerSchedulesAdd``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CrawlerSchedulesAdd`: V2CrawlerSchedule
fmt.Fprintf(os.Stdout, "Response from `CrawlerSchedulesAPI.CrawlerSchedulesAdd`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier | |
| crawler | string | Crawler identifier |
Other parameters are passed through a pointer to a apiCrawlerSchedulesAddRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
v2CrawlerScheduleRequest | V2CrawlerScheduleRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CrawlerSchedulesDelete(ctx, organization, project, crawler, crawlerSchedule).Execute()
Delete a schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "organization_example" // string | Organization identifier
project := "project_example" // string | Project identifier
crawler := "crawler_example" // string | Crawler identifier
crawlerSchedule := "crawlerSchedule_example" // string | Crawler schedule identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.CrawlerSchedulesAPI.CrawlerSchedulesDelete(context.Background(), organization, project, crawler, crawlerSchedule).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CrawlerSchedulesAPI.CrawlerSchedulesDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier | |
| crawler | string | Crawler identifier | |
| crawlerSchedule | string | Crawler schedule identifier |
Other parameters are passed through a pointer to a apiCrawlerSchedulesDeleteRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2CrawlerSchedule CrawlerSchedulesEdit(ctx, organization, project, crawler, crawlerSchedule).V2CrawlerScheduleRequest(v2CrawlerScheduleRequest).Execute()
Edit a schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "organization_example" // string | Organization identifier
project := "project_example" // string | Project identifier
crawler := "crawler_example" // string | Crawler identifier
crawlerSchedule := "crawlerSchedule_example" // string | Crawler schedule identifier
v2CrawlerScheduleRequest := *openapiclient.NewV2CrawlerScheduleRequest("0 2 * * *") // V2CrawlerScheduleRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CrawlerSchedulesAPI.CrawlerSchedulesEdit(context.Background(), organization, project, crawler, crawlerSchedule).V2CrawlerScheduleRequest(v2CrawlerScheduleRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CrawlerSchedulesAPI.CrawlerSchedulesEdit``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CrawlerSchedulesEdit`: V2CrawlerSchedule
fmt.Fprintf(os.Stdout, "Response from `CrawlerSchedulesAPI.CrawlerSchedulesEdit`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier | |
| crawler | string | Crawler identifier | |
| crawlerSchedule | string | Crawler schedule identifier |
Other parameters are passed through a pointer to a apiCrawlerSchedulesEditRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
v2CrawlerScheduleRequest | V2CrawlerScheduleRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]V2CrawlerSchedule CrawlerSchedulesList(ctx, organization, project, crawler).Execute()
List schedules for a crawler
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "test-org" // string |
project := "test-project" // string |
crawler := "00000000-0000-0000-0000-000000000000" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CrawlerSchedulesAPI.CrawlerSchedulesList(context.Background(), organization, project, crawler).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CrawlerSchedulesAPI.CrawlerSchedulesList``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CrawlerSchedulesList`: []V2CrawlerSchedule
fmt.Fprintf(os.Stdout, "Response from `CrawlerSchedulesAPI.CrawlerSchedulesList`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | ||
| project | string | ||
| crawler | string |
Other parameters are passed through a pointer to a apiCrawlerSchedulesListRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2CrawlerSchedule CrawlerSchedulesShow(ctx, organization, project, crawler, crawlerSchedule).Execute()
Show a specific schedule
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/quantcdn/quant-admin-go"
)
func main() {
organization := "organization_example" // string | Organization identifier
project := "project_example" // string | Project identifier
crawler := "crawler_example" // string | Crawler identifier
crawlerSchedule := "crawlerSchedule_example" // string | Crawler schedule identifier
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.CrawlerSchedulesAPI.CrawlerSchedulesShow(context.Background(), organization, project, crawler, crawlerSchedule).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CrawlerSchedulesAPI.CrawlerSchedulesShow``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CrawlerSchedulesShow`: V2CrawlerSchedule
fmt.Fprintf(os.Stdout, "Response from `CrawlerSchedulesAPI.CrawlerSchedulesShow`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organization | string | Organization identifier | |
| project | string | Project identifier | |
| crawler | string | Crawler identifier | |
| crawlerSchedule | string | Crawler schedule identifier |
Other parameters are passed through a pointer to a apiCrawlerSchedulesShowRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]