docstr: Get a list of queries that changed after last_updated_ms.
  ---
  get:
    summary: Get a list of queries that changed after last_updated_ms
    parameters:
    - in: query
      name: q
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/queries_get_updated_since_schema'
    responses:
      200:
        description: Queries list
        content:
          application/json:
            schema:
              type: object
              properties:
                result:
                  description: >-
                    A List of queries that changed after last_updated_ms
                  type: array
                  items:
                    $ref: '#/components/schemas/{{self.__class__.__name__}}.get'
      400:
        $ref: '#/components/responses/400'
      401:
        $ref: '#/components/responses/401'
      404:
        $ref: '#/components/responses/404'
      500:
        $ref: '#/components/responses/500'
docstr_tok: ["Get","a","list","of","queries","that","changed","after","last_updated_ms",".","--","-","get",":","summary",":","Get","a","list","of","queries","that","changed","after","last_updated_ms","parameters",":","-","in",":","query","name",":","q","content",":","application\/json",":","schema",":","$","ref",":","'","#","\/components\/schemas\/queries_get_updated_since_schema'","responses",":","200",":","description",":","Queries","list","content",":","application\/json",":","schema",":","type",":","object","properties",":","result",":","description",":",">","-","A","List","of","queries","that","changed","after","last_updated_ms","type",":","array","items",":","$","ref",":","'","#","\/components\/schemas\/","{","{","self.__class__.__name__","}","}",".get'","400",":","$","ref",":","'","#","\/components\/responses\/400'","401",":","$","ref",":","'","#","\/components\/responses\/401'","404",":","$","ref",":","'","#","\/components\/responses\/404'","500",":","$","ref",":","'","#","\/components\/responses\/500","'"]
code: def get_updated_since(self, **kwargs: Any) -> FlaskResponse:
      """Get a list of queries that changed after last_updated_ms.
      ---
      get:
        summary: Get a list of queries that changed after last_updated_ms
        parameters:
        - in: query
          name: q
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/queries_get_updated_since_schema'
        responses:
          200:
            description: Queries list
            content:
              application/json:
                schema:
                  type: object
                  properties:
                    result:
                      description: >-
                        A List of queries that changed after last_updated_ms
                      type: array
                      items:
                        $ref: '#/components/schemas/{{self.__class__.__name__}}.get'
          400:
            $ref: '#/components/responses/400'
          401:
            $ref: '#/components/responses/401'
          404:
            $ref: '#/components/responses/404'
          500:
            $ref: '#/components/responses/500'
      """
      try:
          last_updated_ms = kwargs["rison"].get("last_updated_ms", 0)
          queries = QueryDAO.get_queries_changed_after(last_updated_ms)
          payload = [q.to_dict() for q in queries]
          return self.response(200, result=payload)
      except SupersetException as ex:
          return self.response(ex.status, message=ex.message)
  
file_path: superset/superset/queries/api.py
imports: import logging
  from typing import Any
  import backoff
  from flask_appbuilder.api import expose, protect, request, rison, safe
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from superset import db, event_logger
  from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.daos.query import QueryDAO
  from superset.databases.filters import DatabaseFilter
  from superset.exceptions import SupersetException
  from superset.models.sql_lab import Query
  from superset.queries.filters import QueryFilter
  from superset.queries.schemas import openapi_spec_methods_override, queries_get_updated_since_schema, QuerySchema, StopQuerySchema
  from superset.superset_typing import FlaskResponse
  from superset.views.base_api import BaseSupersetModelRestApi, RelatedFieldFilter, requires_json, statsd_metrics
  from superset.views.filters import BaseFilterRelatedUsers, FilterRelatedOwners
label_desc: Use image node_id 1 for calling the QueryRestApi obj's underlying member method code with example usage: obj.get_updated_since() and returns: self, self