Skip to content

Commit

Permalink
feat(monitoring): update the API
Browse files Browse the repository at this point in the history
#### monitoring:v1

The following keys were added:
- schemas.TableDataSet.description
- schemas.TableDataSet.id
- schemas.TableDataSet.properties.minAlignmentPeriod.description
- schemas.TableDataSet.properties.minAlignmentPeriod.format
- schemas.TableDataSet.properties.minAlignmentPeriod.type
- schemas.TableDataSet.properties.tableDisplayOptions.$ref
- schemas.TableDataSet.properties.tableDisplayOptions.description
- schemas.TableDataSet.properties.tableTemplate.description
- schemas.TableDataSet.properties.tableTemplate.type
- schemas.TableDataSet.properties.timeSeriesQuery.$ref
- schemas.TableDataSet.properties.timeSeriesQuery.description
- schemas.TableDataSet.type
- schemas.TableDisplayOptions.description
- schemas.TableDisplayOptions.id
- schemas.TableDisplayOptions.properties.shownColumns.description
- schemas.TableDisplayOptions.properties.shownColumns.items.type
- schemas.TableDisplayOptions.properties.shownColumns.type
- schemas.TableDisplayOptions.type
- schemas.TimeSeriesTable.description
- schemas.TimeSeriesTable.id
- schemas.TimeSeriesTable.properties.dataSets.description
- schemas.TimeSeriesTable.properties.dataSets.items.$ref
- schemas.TimeSeriesTable.properties.dataSets.type
- schemas.TimeSeriesTable.type
- schemas.Widget.properties.timeSeriesTable.$ref
- schemas.Widget.properties.timeSeriesTable.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Sep 28, 2021
1 parent debeb46 commit 4141c3b
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 1 deletion.
58 changes: 57 additions & 1 deletion discovery/monitoring-v1.json
Expand Up @@ -441,7 +441,7 @@
}
}
},
"revision": "20210816",
"revision": "20210922",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
"Aggregation": {
Expand Down Expand Up @@ -1293,6 +1293,44 @@
},
"type": "object"
},
"TableDataSet": {
"description": "Groups a time series query definition with table options.",
"id": "TableDataSet",
"properties": {
"minAlignmentPeriod": {
"description": "Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.",
"format": "google-duration",
"type": "string"
},
"tableDisplayOptions": {
"$ref": "TableDisplayOptions",
"description": "Optional. Table display options for configuring how the table is rendered."
},
"tableTemplate": {
"description": "Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name}, which will resolve to the label's value i.e. \"${resource.labels.project_id}.\"",
"type": "string"
},
"timeSeriesQuery": {
"$ref": "TimeSeriesQuery",
"description": "Required. Fields for querying time series data from the Stackdriver metrics API."
}
},
"type": "object"
},
"TableDisplayOptions": {
"description": "Table display options that can be reused.",
"id": "TableDisplayOptions",
"properties": {
"shownColumns": {
"description": "Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"Text": {
"description": "A widget that displays textual content.",
"id": "Text",
Expand Down Expand Up @@ -1484,6 +1522,20 @@
},
"type": "object"
},
"TimeSeriesTable": {
"description": "A table that displays time series data.",
"id": "TimeSeriesTable",
"properties": {
"dataSets": {
"description": "Required. The data displayed in this table.",
"items": {
"$ref": "TableDataSet"
},
"type": "array"
}
},
"type": "object"
},
"Type": {
"description": "A protocol buffer message type.",
"id": "Type",
Expand Down Expand Up @@ -1552,6 +1604,10 @@
"$ref": "Text",
"description": "A raw string or markdown displaying textual content."
},
"timeSeriesTable": {
"$ref": "TimeSeriesTable",
"description": "A widget that displays time series data in a tabular format."
},
"title": {
"description": "Optional. The title of the widget.",
"type": "string"
Expand Down
43 changes: 43 additions & 0 deletions src/apis/monitoring/v1.ts
Expand Up @@ -603,6 +603,36 @@ export namespace monitoring_v1 {
*/
message?: string | null;
}
/**
* Groups a time series query definition with table options.
*/
export interface Schema$TableDataSet {
/**
* Optional. The lower bound on data point frequency for this data set, implemented by specifying the minimum alignment period to use in a time series query For example, if the data is published once every 10 minutes, the min_alignment_period should be at least 10 minutes. It would not make sense to fetch and align data at one minute intervals.
*/
minAlignmentPeriod?: string | null;
/**
* Optional. Table display options for configuring how the table is rendered.
*/
tableDisplayOptions?: Schema$TableDisplayOptions;
/**
* Optional. A template string for naming TimeSeries in the resulting data set. This should be a string with interpolations of the form ${label_name\}, which will resolve to the label's value i.e. "${resource.labels.project_id\}."
*/
tableTemplate?: string | null;
/**
* Required. Fields for querying time series data from the Stackdriver metrics API.
*/
timeSeriesQuery?: Schema$TimeSeriesQuery;
}
/**
* Table display options that can be reused.
*/
export interface Schema$TableDisplayOptions {
/**
* Optional. Columns to display in the table. Leave empty to display all available columns. Note: This field is for future features and is not currently used.
*/
shownColumns?: string[] | null;
}
/**
* A widget that displays textual content.
*/
Expand Down Expand Up @@ -737,6 +767,15 @@ export namespace monitoring_v1 {
*/
unitOverride?: string | null;
}
/**
* A table that displays time series data.
*/
export interface Schema$TimeSeriesTable {
/**
* Required. The data displayed in this table.
*/
dataSets?: Schema$TableDataSet[];
}
/**
* A protocol buffer message type.
*/
Expand Down Expand Up @@ -786,6 +825,10 @@ export namespace monitoring_v1 {
* A raw string or markdown displaying textual content.
*/
text?: Schema$Text;
/**
* A widget that displays time series data in a tabular format.
*/
timeSeriesTable?: Schema$TimeSeriesTable;
/**
* Optional. The title of the widget.
*/
Expand Down

0 comments on commit 4141c3b

Please sign in to comment.